@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.435Z") @Stability(value=Stable) public interface ISecurityGroup extends software.amazon.jsii.JsiiSerializable, IResource, IPeer
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ISecurityGroup.Jsii$Default
Internal default implementation for
ISecurityGroup. |
static class |
ISecurityGroup.Jsii$Proxy
A proxy class which represents a concrete javascript instance of this type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEgressRule(IPeer peer,
Port connection)
Add an egress rule for the current security group.
|
void |
addEgressRule(IPeer peer,
Port connection,
String description)
Add an egress rule for the current security group.
|
void |
addEgressRule(IPeer peer,
Port connection,
String description,
Boolean remoteRule)
Add an egress rule for the current security group.
|
void |
addIngressRule(IPeer peer,
Port connection)
Add an ingress rule for the current security group.
|
void |
addIngressRule(IPeer peer,
Port connection,
String description)
Add an ingress rule for the current security group.
|
void |
addIngressRule(IPeer peer,
Port connection,
String description,
Boolean remoteRule)
Add an ingress rule for the current security group.
|
Boolean |
getAllowAllOutbound()
Whether the SecurityGroup has been configured to allow all outbound traffic.
|
String |
getSecurityGroupId()
ID for the current security group.
|
applyRemovalPolicy, getEnv, getStackgetCanInlineRule, getUniqueId, toEgressRuleConfig, toIngressRuleConfiggetConnections@Stability(value=Stable) @NotNull Boolean getAllowAllOutbound()
@Stability(value=Stable) @NotNull String getSecurityGroupId()
@Stability(value=Stable)
void addEgressRule(@NotNull
IPeer peer,
@NotNull
Port connection,
@Nullable
String description,
@Nullable
Boolean remoteRule)
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.
peer - This parameter is required.connection - This parameter is required.description - remoteRule - @Stability(value=Stable)
void addEgressRule(@NotNull
IPeer peer,
@NotNull
Port connection,
@Nullable
String description)
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.
peer - This parameter is required.connection - This parameter is required.description - @Stability(value=Stable)
void addEgressRule(@NotNull
IPeer peer,
@NotNull
Port connection)
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.
peer - This parameter is required.connection - This parameter is required.@Stability(value=Stable)
void addIngressRule(@NotNull
IPeer peer,
@NotNull
Port connection,
@Nullable
String description,
@Nullable
Boolean remoteRule)
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.
peer - This parameter is required.connection - This parameter is required.description - remoteRule - @Stability(value=Stable)
void addIngressRule(@NotNull
IPeer peer,
@NotNull
Port connection,
@Nullable
String description)
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.
peer - This parameter is required.connection - This parameter is required.description - @Stability(value=Stable)
void addIngressRule(@NotNull
IPeer peer,
@NotNull
Port connection)
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.
peer - This parameter is required.connection - This parameter is required.Copyright © 2022. All rights reserved.