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, IPeer, IPeer.Jsii$Default, IResource, IResource.Jsii$Default, ISecurityGroup, software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
ISecurityGroup.Jsii$Proxy
Enclosing interface:
ISecurityGroup

@Internal public static interface ISecurityGroup.Jsii$Default extends ISecurityGroup, IResource.Jsii$Default, IPeer.Jsii$Default
Internal default implementation for ISecurityGroup.
  • Method Details

    • getNode

      @Stability(Stable) @NotNull default software.constructs.Node getNode()
      The tree node.
      Specified by:
      getNode in interface software.constructs.IConstruct
      Specified by:
      getNode in interface software.constructs.IConstruct.Jsii$Default
      Specified by:
      getNode in interface IResource.Jsii$Default
    • getEnv

      @Stability(Stable) @NotNull default ResourceEnvironment 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 interface IResource
      Specified by:
      getEnv in interface IResource.Jsii$Default
    • getStack

      @Stability(Stable) @NotNull default Stack getStack()
      The stack in which this resource is defined.
      Specified by:
      getStack in interface IResource
      Specified by:
      getStack in interface IResource.Jsii$Default
    • getConnections

      @Stability(Stable) @NotNull default Connections getConnections()
      The network connections associated with this resource.
      Specified by:
      getConnections in interface IConnectable
      Specified by:
      getConnections in interface IConnectable.Jsii$Default
      Specified by:
      getConnections in interface IPeer.Jsii$Default
    • getCanInlineRule

      @Stability(Stable) @NotNull default Boolean getCanInlineRule()
      Whether the rule can be inlined into a SecurityGroup or not.
      Specified by:
      getCanInlineRule in interface IPeer
      Specified by:
      getCanInlineRule in interface IPeer.Jsii$Default
    • getUniqueId

      @Stability(Stable) @NotNull default String getUniqueId()
      A unique identifier for this connection peer.
      Specified by:
      getUniqueId in interface IPeer
      Specified by:
      getUniqueId in interface IPeer.Jsii$Default
    • getAllowAllOutbound

      @Stability(Stable) @NotNull default Boolean getAllowAllOutbound()
      Whether the SecurityGroup has been configured to allow all outbound traffic.
      Specified by:
      getAllowAllOutbound in interface ISecurityGroup
    • getSecurityGroupId

      @Stability(Stable) @NotNull default String getSecurityGroupId()
      ID for the current security group.
      Specified by:
      getSecurityGroupId in interface ISecurityGroup
    • applyRemovalPolicy

      @Stability(Stable) default void applyRemovalPolicy(@NotNull RemovalPolicy policy)
      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 interface IResource
      Specified by:
      applyRemovalPolicy in interface IResource.Jsii$Default
      Parameters:
      policy - This parameter is required.
    • toEgressRuleConfig

      @Stability(Stable) @NotNull default Object toEgressRuleConfig()
      Produce the egress rule JSON for the given connection.
      Specified by:
      toEgressRuleConfig in interface IPeer
      Specified by:
      toEgressRuleConfig in interface IPeer.Jsii$Default
    • toIngressRuleConfig

      @Stability(Stable) @NotNull default Object toIngressRuleConfig()
      Produce the ingress rule JSON for the given connection.
      Specified by:
      toIngressRuleConfig in interface IPeer
      Specified by:
      toIngressRuleConfig in interface IPeer.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 interface ISecurityGroup
      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 interface ISecurityGroup
      Parameters:
      peer - This parameter is required.
      connection - This parameter is required.
      description -
      remoteRule -