Interface ISecurityGroup.Jsii$Default
- All Superinterfaces:
IConnectable
,IConnectable.Jsii$Default
,IConstruct
,software.constructs.IConstruct
,IConstruct.Jsii$Default
,software.constructs.IConstruct.Jsii$Default
,IDependable
,IDependable.Jsii$Default
,IPeer
,IPeer.Jsii$Default
,IResource
,IResource.Jsii$Default
,ISecurityGroup
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ISecurityGroup.Jsii$Proxy
- Enclosing interface:
ISecurityGroup
ISecurityGroup
.-
Nested Class Summary
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.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.amazon.awscdk.core.IDependable
IDependable.Jsii$Default, 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.core.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
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
addEgressRule
(IPeer peer, Port connection, String description, Boolean remoteRule) Add an egress rule for the current security group.default void
addIngressRule
(IPeer peer, Port connection, String description, Boolean remoteRule) Add an ingress rule for the current security group.default void
applyRemovalPolicy
(RemovalPolicy policy) Apply the given removal policy to this resource.default Boolean
Whether the SecurityGroup has been configured to allow all outbound traffic.default Boolean
Whether the rule can be inlined into a SecurityGroup or not.default Connections
The network connections associated with this resource.default ResourceEnvironment
getEnv()
The environment this resource belongs to.default ConstructNode
getNode()
The construct tree node for this construct.default String
ID for the current security group.default Stack
getStack()
The stack in which this resource is defined.default String
A unique identifier for this connection peer.default Object
Produce the egress rule JSON for the given connection.default Object
Produce the ingress rule JSON for the given connection.Methods inherited from interface software.amazon.awscdk.services.ec2.ISecurityGroup
addEgressRule, addEgressRule, addIngressRule, addIngressRule
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
The construct tree node for this construct.- Specified by:
getNode
in interfaceIConstruct
- Specified by:
getNode
in interfaceIConstruct.Jsii$Default
- Specified by:
getNode
in interfaceIResource.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
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.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
-
getCanInlineRule
Whether the rule can be inlined into a SecurityGroup or not.- Specified by:
getCanInlineRule
in interfaceIPeer
- Specified by:
getCanInlineRule
in interfaceIPeer.Jsii$Default
-
getUniqueId
A unique identifier for this connection peer.- Specified by:
getUniqueId
in interfaceIPeer
- Specified by:
getUniqueId
in interfaceIPeer.Jsii$Default
-
getAllowAllOutbound
Whether the SecurityGroup has been configured to allow all outbound traffic.- Specified by:
getAllowAllOutbound
in interfaceISecurityGroup
-
getSecurityGroupId
ID for the current security group.- Specified by:
getSecurityGroupId
in interfaceISecurityGroup
-
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
- 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
-
toIngressRuleConfig
Produce the ingress rule JSON for the given connection.- Specified by:
toIngressRuleConfig
in interfaceIPeer
- Specified by:
toIngressRuleConfig
in interfaceIPeer.Jsii$Default
-
addEgressRule
@Stability(Stable) default 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
- Parameters:
peer
- This parameter is required.connection
- This parameter is required.description
-remoteRule
-
-
addIngressRule
@Stability(Stable) default 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
- Parameters:
peer
- This parameter is required.connection
- This parameter is required.description
-remoteRule
-
-