Add an egress rule for the current security group.
remoteRule controls where the Rule object is created if the peer is also a
securityGroup and they are in different stack. If false (default) the
rule object is created under the current SecurityGroup object. If true and the
peer is also a SecurityGroup, the rule object is created under the remote
SecurityGroup object.
Parameters:
peer - This parameter is required.
connection - This parameter is required.
description -
remoteRule -
addEgressRule
@Stability(Stable)
voidaddEgressRule(@NotNull
IPeer peer,
@NotNull
Port connection,
@Nullable
String description)
Add an egress rule for the current security group.
remoteRule controls where the Rule object is created if the peer is also a
securityGroup and they are in different stack. If false (default) the
rule object is created under the current SecurityGroup object. If true and the
peer is also a SecurityGroup, the rule object is created under the remote
SecurityGroup object.
Parameters:
peer - This parameter is required.
connection - This parameter is required.
description -
addEgressRule
@Stability(Stable)
voidaddEgressRule(@NotNull
IPeer peer,
@NotNull
Port connection)
Add an egress rule for the current security group.
remoteRule controls where the Rule object is created if the peer is also a
securityGroup and they are in different stack. If false (default) the
rule object is created under the current SecurityGroup object. If true and the
peer is also a SecurityGroup, the rule object is created under the remote
SecurityGroup object.
Add an ingress rule for the current security group.
remoteRule controls where the Rule object is created if the peer is also a
securityGroup and they are in different stack. If false (default) the
rule object is created under the current SecurityGroup object. If true and the
peer is also a SecurityGroup, the rule object is created under the remote
SecurityGroup object.
Parameters:
peer - This parameter is required.
connection - This parameter is required.
description -
remoteRule -
addIngressRule
@Stability(Stable)
voidaddIngressRule(@NotNull
IPeer peer,
@NotNull
Port connection,
@Nullable
String description)
Add an ingress rule for the current security group.
remoteRule controls where the Rule object is created if the peer is also a
securityGroup and they are in different stack. If false (default) the
rule object is created under the current SecurityGroup object. If true and the
peer is also a SecurityGroup, the rule object is created under the remote
SecurityGroup object.
Parameters:
peer - This parameter is required.
connection - This parameter is required.
description -
addIngressRule
@Stability(Stable)
voidaddIngressRule(@NotNull
IPeer peer,
@NotNull
Port connection)
Add an ingress rule for the current security group.
remoteRule controls where the Rule object is created if the peer is also a
securityGroup and they are in different stack. If false (default) the
rule object is created under the current SecurityGroup object. If true and the
peer is also a SecurityGroup, the rule object is created under the remote
SecurityGroup object.