Class SecurityGroupProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ec2.SecurityGroupProps.Jsii$Proxy
All Implemented Interfaces:
SecurityGroupProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
SecurityGroupProps

@Stability(Stable) @Internal public static final class SecurityGroupProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements SecurityGroupProps
An implementation for SecurityGroupProps
  • Constructor Details

    • Jsii$Proxy

      protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
      Parameters:
      objRef - Reference to the JSII managed object.
    • Jsii$Proxy

      protected Jsii$Proxy(SecurityGroupProps.Builder builder)
      Constructor that initializes the object based on literal property values passed by the SecurityGroupProps.Builder.
  • Method Details

    • getVpc

      public final IVpc getVpc()
      Description copied from interface: SecurityGroupProps
      The VPC in which to create the security group.
      Specified by:
      getVpc in interface SecurityGroupProps
    • getAllowAllIpv6Outbound

      public final Boolean getAllowAllIpv6Outbound()
      Description copied from interface: SecurityGroupProps
      Whether to allow all outbound ipv6 traffic by default.

      If this is set to true, there will only be a single egress rule which allows all outbound ipv6 traffic. If this is set to false, no outbound traffic will be allowed by default and all egress ipv6 traffic must be explicitly authorized.

      To allow all ipv4 traffic use allowAllOutbound

      Default: false

      Specified by:
      getAllowAllIpv6Outbound in interface SecurityGroupProps
    • getAllowAllOutbound

      public final Boolean getAllowAllOutbound()
      Description copied from interface: SecurityGroupProps
      Whether to allow all outbound traffic by default.

      If this is set to true, there will only be a single egress rule which allows all outbound traffic. If this is set to false, no outbound traffic will be allowed by default and all egress traffic must be explicitly authorized.

      To allow all ipv6 traffic use allowAllIpv6Outbound

      Default: true

      Specified by:
      getAllowAllOutbound in interface SecurityGroupProps
    • getDescription

      public final String getDescription()
      Description copied from interface: SecurityGroupProps
      A description of the security group.

      Default: The default name will be the construct's CDK path.

      Specified by:
      getDescription in interface SecurityGroupProps
    • getDisableInlineRules

      public final Boolean getDisableInlineRules()
      Description copied from interface: SecurityGroupProps
      Whether to disable inline ingress and egress rule optimization.

      If this is set to true, ingress and egress rules will not be declared under the SecurityGroup in cloudformation, but will be separate elements.

      Inlining rules is an optimization for producing smaller stack templates. Sometimes this is not desirable, for example when security group access is managed via tags.

      The default value can be overriden globally by setting the context variable '@aws-cdk/aws-ec2.securityGroupDisableInlineRules'.

      Default: false

      Specified by:
      getDisableInlineRules in interface SecurityGroupProps
    • getSecurityGroupName

      public final String getSecurityGroupName()
      Description copied from interface: SecurityGroupProps
      The name of the security group.

      For valid values, see the GroupName parameter of the CreateSecurityGroup action in the Amazon EC2 API Reference.

      It is not recommended to use an explicit group name.

      Default: If you don't specify a GroupName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.

      Specified by:
      getSecurityGroupName in interface SecurityGroupProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object