Class ISecurityGroup.Jsii$Proxy
- All Implemented Interfaces:
IResource
,IResource.Jsii$Default
,IConnectable
,IConnectable.Jsii$Default
,IPeer
,IPeer.Jsii$Default
,ISecurityGroup
,ISecurityGroup.Jsii$Default
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IConstruct.Jsii$Default
,software.constructs.IDependable
,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
ISecurityGroup
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IPeer
IPeer.Jsii$Default, IPeer.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.ISecurityGroup
ISecurityGroup.Jsii$Default, ISecurityGroup.Jsii$Proxy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
addEgressRule
(IPeer peer, Port connection) Add an egress rule for the current security group.final void
addEgressRule
(IPeer peer, Port connection, String description) Add an egress rule for the current security group.final void
addEgressRule
(IPeer peer, Port connection, String description, Boolean remoteRule) Add an egress rule for the current security group.final void
addIngressRule
(IPeer peer, Port connection) Add an ingress rule for the current security group.final void
addIngressRule
(IPeer peer, Port connection, String description) Add an ingress rule for the current security group.final void
addIngressRule
(IPeer peer, Port connection, String description, Boolean remoteRule) Add an ingress rule for the current security group.final void
applyRemovalPolicy
(RemovalPolicy policy) Apply the given removal policy to this resource.final Boolean
Whether the SecurityGroup has been configured to allow all outbound traffic.final Boolean
Whether the rule can be inlined into a SecurityGroup or not.final Connections
The network connections associated with this resource.final ResourceEnvironment
getEnv()
The environment this resource belongs to.final software.constructs.Node
getNode()
The tree node.final String
ID for the current security group.final Stack
getStack()
The stack in which this resource is defined.final String
A unique identifier for this connection peer.final Object
Produce the egress rule JSON for the given connection.final Object
Produce the ingress rule JSON for the given connection.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
getNode
in interfacesoftware.constructs.IConstruct
- Specified by:
getNode
in interfacesoftware.constructs.IConstruct.Jsii$Default
- Specified by:
getNode
in interfaceIResource.Jsii$Default
- Specified by:
getNode
in interfaceISecurityGroup.Jsii$Default
-
getEnv
The environment this resource belongs to.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.
- Specified by:
getEnv
in interfaceIResource
- Specified by:
getEnv
in interfaceIResource.Jsii$Default
- Specified by:
getEnv
in interfaceISecurityGroup.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.Jsii$Default
- Specified by:
getStack
in interfaceISecurityGroup.Jsii$Default
-
getConnections
The network connections associated with this resource.- Specified by:
getConnections
in interfaceIConnectable
- Specified by:
getConnections
in interfaceIConnectable.Jsii$Default
- Specified by:
getConnections
in interfaceIPeer.Jsii$Default
- Specified by:
getConnections
in interfaceISecurityGroup.Jsii$Default
-
getCanInlineRule
Whether the rule can be inlined into a SecurityGroup or not.- Specified by:
getCanInlineRule
in interfaceIPeer
- Specified by:
getCanInlineRule
in interfaceIPeer.Jsii$Default
- Specified by:
getCanInlineRule
in interfaceISecurityGroup.Jsii$Default
-
getUniqueId
A unique identifier for this connection peer.- Specified by:
getUniqueId
in interfaceIPeer
- Specified by:
getUniqueId
in interfaceIPeer.Jsii$Default
- Specified by:
getUniqueId
in interfaceISecurityGroup.Jsii$Default
-
getAllowAllOutbound
Whether the SecurityGroup has been configured to allow all outbound traffic.- Specified by:
getAllowAllOutbound
in interfaceISecurityGroup
- Specified by:
getAllowAllOutbound
in interfaceISecurityGroup.Jsii$Default
-
getSecurityGroupId
ID for the current security group.- Specified by:
getSecurityGroupId
in interfaceISecurityGroup
- Specified by:
getSecurityGroupId
in interfaceISecurityGroup.Jsii$Default
-
applyRemovalPolicy
Apply the given removal policy to this resource.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
).- Specified by:
applyRemovalPolicy
in interfaceIResource
- Specified by:
applyRemovalPolicy
in interfaceIResource.Jsii$Default
- Specified by:
applyRemovalPolicy
in interfaceISecurityGroup.Jsii$Default
- Parameters:
policy
- This parameter is required.
-
toEgressRuleConfig
Produce the egress rule JSON for the given connection.- Specified by:
toEgressRuleConfig
in interfaceIPeer
- Specified by:
toEgressRuleConfig
in interfaceIPeer.Jsii$Default
- Specified by:
toEgressRuleConfig
in interfaceISecurityGroup.Jsii$Default
-
toIngressRuleConfig
Produce the ingress rule JSON for the given connection.- Specified by:
toIngressRuleConfig
in interfaceIPeer
- Specified by:
toIngressRuleConfig
in interfaceIPeer.Jsii$Default
- Specified by:
toIngressRuleConfig
in interfaceISecurityGroup.Jsii$Default
-
addEgressRule
@Stability(Stable) public final void addEgressRule(@NotNull IPeer peer, @NotNull Port connection, @Nullable String description, @Nullable Boolean remoteRule) 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.- Specified by:
addEgressRule
in interfaceISecurityGroup
- Specified by:
addEgressRule
in interfaceISecurityGroup.Jsii$Default
- Parameters:
peer
- This parameter is required.connection
- This parameter is required.description
-remoteRule
-
-
addEgressRule
@Stability(Stable) public final void addEgressRule(@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.- Specified by:
addEgressRule
in interfaceISecurityGroup
- Parameters:
peer
- This parameter is required.connection
- This parameter is required.description
-
-
addEgressRule
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.- Specified by:
addEgressRule
in interfaceISecurityGroup
- Parameters:
peer
- This parameter is required.connection
- This parameter is required.
-
addIngressRule
@Stability(Stable) public final void addIngressRule(@NotNull IPeer peer, @NotNull Port connection, @Nullable String description, @Nullable Boolean remoteRule) 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.- Specified by:
addIngressRule
in interfaceISecurityGroup
- Specified by:
addIngressRule
in interfaceISecurityGroup.Jsii$Default
- Parameters:
peer
- This parameter is required.connection
- This parameter is required.description
-remoteRule
-
-
addIngressRule
@Stability(Stable) public final void addIngressRule(@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.- Specified by:
addIngressRule
in interfaceISecurityGroup
- Parameters:
peer
- This parameter is required.connection
- This parameter is required.description
-
-
addIngressRule
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.- Specified by:
addIngressRule
in interfaceISecurityGroup
- Parameters:
peer
- This parameter is required.connection
- This parameter is required.
-