public static final class ISecurityGroup.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ISecurityGroup.Jsii$Default
ISecurityGroup.Jsii$Default, ISecurityGroup.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
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,
java.lang.String description)
Add an egress rule for the current security group.
|
void |
addEgressRule(IPeer peer,
Port connection,
java.lang.String description,
java.lang.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,
java.lang.String description)
Add an ingress rule for the current security group.
|
void |
addIngressRule(IPeer peer,
Port connection,
java.lang.String description,
java.lang.Boolean remoteRule)
Add an ingress rule for the current security group.
|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
java.lang.Boolean |
getAllowAllOutbound()
Whether the SecurityGroup has been configured to allow all outbound traffic.
|
java.lang.Boolean |
getCanInlineRule()
Whether the rule can be inlined into a SecurityGroup or not.
|
Connections |
getConnections()
The network connections associated with this resource.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
ConstructNode |
getNode()
The construct tree node for this construct.
|
java.lang.String |
getSecurityGroupId()
ID for the current security group.
|
Stack |
getStack()
The stack in which this resource is defined.
|
java.lang.String |
getUniqueId()
A unique identifier for this connection peer.
|
java.lang.Object |
toEgressRuleConfig()
Produce the egress rule JSON for the given connection.
|
java.lang.Object |
toIngressRuleConfig()
Produce the ingress rule JSON for the given connection.
|
public final ConstructNode getNode()
getNode
in interface IConstruct
getNode
in interface IConstruct.Jsii$Default
getNode
in interface IResource.Jsii$Default
getNode
in interface ISecurityGroup.Jsii$Default
public final ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv
in interface IResource
getEnv
in interface IResource.Jsii$Default
getEnv
in interface ISecurityGroup.Jsii$Default
public final Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
getStack
in interface ISecurityGroup.Jsii$Default
public final Connections getConnections()
getConnections
in interface IConnectable
getConnections
in interface IConnectable.Jsii$Default
getConnections
in interface IPeer.Jsii$Default
getConnections
in interface ISecurityGroup.Jsii$Default
public final java.lang.Boolean getCanInlineRule()
getCanInlineRule
in interface IPeer
getCanInlineRule
in interface IPeer.Jsii$Default
getCanInlineRule
in interface ISecurityGroup.Jsii$Default
public final java.lang.String getUniqueId()
getUniqueId
in interface IPeer
getUniqueId
in interface IPeer.Jsii$Default
getUniqueId
in interface ISecurityGroup.Jsii$Default
public final java.lang.Boolean getAllowAllOutbound()
getAllowAllOutbound
in interface ISecurityGroup
getAllowAllOutbound
in interface ISecurityGroup.Jsii$Default
public final java.lang.String getSecurityGroupId()
getSecurityGroupId
in interface ISecurityGroup
getSecurityGroupId
in interface ISecurityGroup.Jsii$Default
public final void applyRemovalPolicy(RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY
), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN
).
applyRemovalPolicy
in interface IResource
applyRemovalPolicy
in interface IResource.Jsii$Default
applyRemovalPolicy
in interface ISecurityGroup.Jsii$Default
policy
- This parameter is required.public final java.lang.Object toEgressRuleConfig()
toEgressRuleConfig
in interface IPeer
toEgressRuleConfig
in interface IPeer.Jsii$Default
toEgressRuleConfig
in interface ISecurityGroup.Jsii$Default
public final java.lang.Object toIngressRuleConfig()
toIngressRuleConfig
in interface IPeer
toIngressRuleConfig
in interface IPeer.Jsii$Default
toIngressRuleConfig
in interface ISecurityGroup.Jsii$Default
public final void addEgressRule(IPeer peer, Port connection, java.lang.String description, java.lang.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.
addEgressRule
in interface ISecurityGroup
addEgressRule
in interface ISecurityGroup.Jsii$Default
peer
- This parameter is required.connection
- This parameter is required.description
- remoteRule
- public final void addEgressRule(IPeer peer, Port connection, java.lang.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.
addEgressRule
in interface ISecurityGroup
peer
- This parameter is required.connection
- This parameter is required.description
- public final void addEgressRule(IPeer peer, 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.
addEgressRule
in interface ISecurityGroup
peer
- This parameter is required.connection
- This parameter is required.public final void addIngressRule(IPeer peer, Port connection, java.lang.String description, java.lang.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.
addIngressRule
in interface ISecurityGroup
addIngressRule
in interface ISecurityGroup.Jsii$Default
peer
- This parameter is required.connection
- This parameter is required.description
- remoteRule
- public final void addIngressRule(IPeer peer, Port connection, java.lang.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.
addIngressRule
in interface ISecurityGroup
peer
- This parameter is required.connection
- This parameter is required.description
- public final void addIngressRule(IPeer peer, 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.
addIngressRule
in interface ISecurityGroup
peer
- This parameter is required.connection
- This parameter is required.