@Stability(Stable)
public finalvoidaddEgressRule(@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.
@Stability(Stable)
public finalvoidaddEgressRule(@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.
@Stability(Stable)
public finalvoidaddIngressRule(@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.
@Stability(Stable)
public finalvoidaddIngressRule(@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.