Interface ISecurityGroup.Jsii$Default
- All Superinterfaces:
IConnectable,IConnectable.Jsii$Default,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default,IEnvironmentAware,IEnvironmentAware.Jsii$Default,IPeer,IPeer.Jsii$Default,IResource,IResource.Jsii$Default,ISecurityGroup,ISecurityGroupRef,ISecurityGroupRef.Jsii$Default,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$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IPeer
IPeer.Jsii$Default, IPeer.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.ISecurityGroup
ISecurityGroup.Jsii$Default, ISecurityGroup.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ec2.ISecurityGroupRef
ISecurityGroupRef.Jsii$Default, ISecurityGroupRef.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddEgressRule(IPeer peer, Port connection, String description, Boolean remoteRule) Add an egress rule for the current security group.default voidaddIngressRule(IPeer peer, Port connection, String description, Boolean remoteRule) Add an ingress rule for the current security group.default voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.default BooleanWhether the SecurityGroup has been configured to allow all outbound traffic.default BooleanWhether the rule can be inlined into a SecurityGroup or not.default ConnectionsThe network connections associated with this resource.default ResourceEnvironmentgetEnv()The environment this resource belongs to.default software.constructs.NodegetNode()The tree node.default StringID for the current security group.default SecurityGroupReference(experimental) A reference to a SecurityGroup resource.default StackgetStack()The stack in which this resource is defined.default StringA unique identifier for this connection peer.default ObjectProduce the egress rule JSON for the given connection.default ObjectProduce the ingress rule JSON for the given connection.Methods inherited from interface software.amazon.awscdk.services.ec2.ISecurityGroup
addEgressRule, addEgressRule, addIngressRule, addIngressRuleMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
@Stability(Stable) @NotNull default software.constructs.Node getNode()The tree node.- Specified by:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default- Specified by:
getNodein interfaceISecurityGroup- Specified by:
getNodein interfaceISecurityGroupRef.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.- Specified by:
getEnvin interfaceIEnvironmentAware- Specified by:
getEnvin interfaceIEnvironmentAware.Jsii$Default- Specified by:
getEnvin interfaceIResource.Jsii$Default- Specified by:
getEnvin interfaceISecurityGroup- Specified by:
getEnvin interfaceISecurityGroupRef.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default
-
getConnections
The network connections associated with this resource.- Specified by:
getConnectionsin interfaceIConnectable- Specified by:
getConnectionsin interfaceIConnectable.Jsii$Default- Specified by:
getConnectionsin interfaceIPeer.Jsii$Default
-
getCanInlineRule
Whether the rule can be inlined into a SecurityGroup or not.- Specified by:
getCanInlineRulein interfaceIPeer- Specified by:
getCanInlineRulein interfaceIPeer.Jsii$Default
-
getUniqueId
A unique identifier for this connection peer.- Specified by:
getUniqueIdin interfaceIPeer- Specified by:
getUniqueIdin interfaceIPeer.Jsii$Default
-
getSecurityGroupRef
(experimental) A reference to a SecurityGroup resource.- Specified by:
getSecurityGroupRefin interfaceISecurityGroupRef- Specified by:
getSecurityGroupRefin interfaceISecurityGroupRef.Jsii$Default
-
getAllowAllOutbound
Whether the SecurityGroup has been configured to allow all outbound traffic.- Specified by:
getAllowAllOutboundin interfaceISecurityGroup
-
getSecurityGroupId
ID for the current security group.- Specified by:
getSecurityGroupIdin 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:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
policy- This parameter is required.
-
toEgressRuleConfig
Produce the egress rule JSON for the given connection.- Specified by:
toEgressRuleConfigin interfaceIPeer- Specified by:
toEgressRuleConfigin interfaceIPeer.Jsii$Default
-
toIngressRuleConfig
Produce the ingress rule JSON for the given connection.- Specified by:
toIngressRuleConfigin interfaceIPeer- Specified by:
toIngressRuleConfigin 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.remoteRulecontrols 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:
addEgressRulein 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.remoteRulecontrols 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:
addIngressRulein interfaceISecurityGroup- Parameters:
peer- This parameter is required.connection- This parameter is required.description-remoteRule-
-