Class ISecurityGroup.Jsii$Proxy
- All Implemented Interfaces:
IConstruct,IConstruct.Jsii$Default,IDependable,IDependable.Jsii$Default,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
- Enclosing interface:
- ISecurityGroup
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default, IConstruct.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.amazon.awscdk.core.IDependable
IDependable.Jsii$Default, IDependable.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.core.IResource
IResource.Jsii$Default, IResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.ISecurityGroup
ISecurityGroup.Jsii$Default, ISecurityGroup.Jsii$Proxy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddEgressRule(IPeer peer, Port connection) Add an egress rule for the current security group.final voidaddEgressRule(IPeer peer, Port connection, String description) Add an egress rule for the current security group.final voidaddEgressRule(IPeer peer, Port connection, String description, Boolean remoteRule) Add an egress rule for the current security group.final voidaddIngressRule(IPeer peer, Port connection) Add an ingress rule for the current security group.final voidaddIngressRule(IPeer peer, Port connection, String description) Add an ingress rule for the current security group.final voidaddIngressRule(IPeer peer, Port connection, String description, Boolean remoteRule) Add an ingress rule for the current security group.final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.final BooleanWhether the SecurityGroup has been configured to allow all outbound traffic.final BooleanWhether the rule can be inlined into a SecurityGroup or not.final ConnectionsThe network connections associated with this resource.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final ConstructNodegetNode()The construct tree node for this construct.final StringID for the current security group.final StackgetStack()The stack in which this resource is defined.final StringA unique identifier for this connection peer.final ObjectProduce the egress rule JSON for the given connection.final ObjectProduce 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, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
The construct tree node for this construct.- Specified by:
getNodein interfaceIConstruct- Specified by:
getNodein interfaceIConstruct.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default- Specified by:
getNodein 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:
getEnvin interfaceIResource- Specified by:
getEnvin interfaceIResource.Jsii$Default- Specified by:
getEnvin interfaceISecurityGroup.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default- Specified by:
getStackin interfaceISecurityGroup.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- Specified by:
getConnectionsin interfaceISecurityGroup.Jsii$Default
-
getCanInlineRule
Whether the rule can be inlined into a SecurityGroup or not.- Specified by:
getCanInlineRulein interfaceIPeer- Specified by:
getCanInlineRulein interfaceIPeer.Jsii$Default- Specified by:
getCanInlineRulein interfaceISecurityGroup.Jsii$Default
-
getUniqueId
A unique identifier for this connection peer.- Specified by:
getUniqueIdin interfaceIPeer- Specified by:
getUniqueIdin interfaceIPeer.Jsii$Default- Specified by:
getUniqueIdin interfaceISecurityGroup.Jsii$Default
-
getAllowAllOutbound
Whether the SecurityGroup has been configured to allow all outbound traffic.- Specified by:
getAllowAllOutboundin interfaceISecurityGroup- Specified by:
getAllowAllOutboundin interfaceISecurityGroup.Jsii$Default
-
getSecurityGroupId
ID for the current security group.- Specified by:
getSecurityGroupIdin interfaceISecurityGroup- Specified by:
getSecurityGroupIdin 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:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Specified by:
applyRemovalPolicyin interfaceISecurityGroup.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- Specified by:
toEgressRuleConfigin interfaceISecurityGroup.Jsii$Default
-
toIngressRuleConfig
Produce the ingress rule JSON for the given connection.- Specified by:
toIngressRuleConfigin interfaceIPeer- Specified by:
toIngressRuleConfigin interfaceIPeer.Jsii$Default- Specified by:
toIngressRuleConfigin 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.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- Specified by:
addEgressRulein 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.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-
-
addEgressRule
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.
-
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.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- Specified by:
addIngressRulein 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.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-
-
addIngressRule
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.
-