@Internal public static final class ISecurityGroup.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements ISecurityGroup.Jsii$Default
software.amazon.jsii.JsiiObject.InitializationModeISecurityGroup.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,
String description)
Add an egress rule for the current security group.
|
void |
addEgressRule(IPeer peer,
Port connection,
String description,
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,
String description)
Add an ingress rule for the current security group.
|
void |
addIngressRule(IPeer peer,
Port connection,
String description,
Boolean remoteRule)
Add an ingress rule for the current security group.
|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
Boolean |
getAllowAllOutbound()
Whether the SecurityGroup has been configured to allow all outbound traffic.
|
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.
|
software.constructs.Node |
getNode()
The tree node.
|
String |
getSecurityGroupId()
ID for the current security group.
|
Stack |
getStack()
The stack in which this resource is defined.
|
String |
getUniqueId()
A unique identifier for this connection peer.
|
Object |
toEgressRuleConfig()
Produce the egress rule JSON for the given connection.
|
Object |
toIngressRuleConfig()
Produce the ingress rule JSON for the given connection.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) @NotNull public final software.constructs.Node getNode()
getNode in interface IResource.Jsii$DefaultgetNode in interface ISecurityGroup.Jsii$DefaultgetNode in interface software.constructs.IConstructgetNode in interface software.constructs.IConstruct.Jsii$Default@Stability(value=Stable) @NotNull 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 IResourcegetEnv in interface IResource.Jsii$DefaultgetEnv in interface ISecurityGroup.Jsii$Default@Stability(value=Stable) @NotNull public final Stack getStack()
getStack in interface IResourcegetStack in interface IResource.Jsii$DefaultgetStack in interface ISecurityGroup.Jsii$Default@Stability(value=Stable) @NotNull public final Connections getConnections()
getConnections in interface IConnectablegetConnections in interface IConnectable.Jsii$DefaultgetConnections in interface IPeer.Jsii$DefaultgetConnections in interface ISecurityGroup.Jsii$Default@Stability(value=Stable) @NotNull public final Boolean getCanInlineRule()
getCanInlineRule in interface IPeergetCanInlineRule in interface IPeer.Jsii$DefaultgetCanInlineRule in interface ISecurityGroup.Jsii$Default@Stability(value=Stable) @NotNull public final String getUniqueId()
getUniqueId in interface IPeergetUniqueId in interface IPeer.Jsii$DefaultgetUniqueId in interface ISecurityGroup.Jsii$Default@Stability(value=Stable) @NotNull public final Boolean getAllowAllOutbound()
getAllowAllOutbound in interface ISecurityGroupgetAllowAllOutbound in interface ISecurityGroup.Jsii$Default@Stability(value=Stable) @NotNull public final String getSecurityGroupId()
getSecurityGroupId in interface ISecurityGroupgetSecurityGroupId in interface ISecurityGroup.Jsii$Default@Stability(value=Stable)
public final void applyRemovalPolicy(@NotNull
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 IResourceapplyRemovalPolicy in interface IResource.Jsii$DefaultapplyRemovalPolicy in interface ISecurityGroup.Jsii$Defaultpolicy - This parameter is required.@Stability(value=Stable) @NotNull public final Object toEgressRuleConfig()
toEgressRuleConfig in interface IPeertoEgressRuleConfig in interface IPeer.Jsii$DefaulttoEgressRuleConfig in interface ISecurityGroup.Jsii$Default@Stability(value=Stable) @NotNull public final Object toIngressRuleConfig()
toIngressRuleConfig in interface IPeertoIngressRuleConfig in interface IPeer.Jsii$DefaulttoIngressRuleConfig in interface ISecurityGroup.Jsii$Default@Stability(value=Stable)
public final void addEgressRule(@NotNull
IPeer peer,
@NotNull
Port connection,
@Nullable
String description,
@Nullable
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 ISecurityGroupaddEgressRule in interface ISecurityGroup.Jsii$Defaultpeer - This parameter is required.connection - This parameter is required.description - remoteRule - @Stability(value=Stable)
public final void addEgressRule(@NotNull
IPeer peer,
@NotNull
Port connection,
@Nullable
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 ISecurityGrouppeer - This parameter is required.connection - This parameter is required.description - @Stability(value=Stable)
public final void addEgressRule(@NotNull
IPeer peer,
@NotNull
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 ISecurityGrouppeer - This parameter is required.connection - This parameter is required.@Stability(value=Stable)
public final void addIngressRule(@NotNull
IPeer peer,
@NotNull
Port connection,
@Nullable
String description,
@Nullable
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 ISecurityGroupaddIngressRule in interface ISecurityGroup.Jsii$Defaultpeer - This parameter is required.connection - This parameter is required.description - remoteRule - @Stability(value=Stable)
public final void addIngressRule(@NotNull
IPeer peer,
@NotNull
Port connection,
@Nullable
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 ISecurityGrouppeer - This parameter is required.connection - This parameter is required.description - @Stability(value=Stable)
public final void addIngressRule(@NotNull
IPeer peer,
@NotNull
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 ISecurityGrouppeer - This parameter is required.connection - This parameter is required.Copyright © 2022. All rights reserved.