Interface SecurityGroupImportOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
SecurityGroupImportOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-04-10T22:22:27.054Z") @Stability(Stable) public interface SecurityGroupImportOptions extends software.amazon.jsii.JsiiSerializable
Additional options for imported security groups.

Example:

 ISecurityGroup securityGroup = SecurityGroup.fromSecurityGroupId(this, "SG", "sg-12345", SecurityGroupImportOptions.builder()
         .mutable(false)
         .build());
 
  • Method Details

    • getAllowAllIpv6Outbound

      @Stability(Stable) @Nullable default Boolean getAllowAllIpv6Outbound()
      Mark the SecurityGroup as having been created allowing all outbound ipv6 traffic.

      Only if this is set to false will egress rules for ipv6 be added to this security group. Be aware, this would undo any potential "all outbound traffic" default.

      Default: false

    • getAllowAllOutbound

      @Stability(Stable) @Nullable default Boolean getAllowAllOutbound()
      Mark the SecurityGroup as having been created allowing all outbound traffic.

      Only if this is set to false will egress rules be added to this security group. Be aware, this would undo any potential "all outbound traffic" default.

      Default: true

    • getMutable

      @Stability(Stable) @Nullable default Boolean getMutable()
      If a SecurityGroup is mutable CDK can add rules to existing groups.

      Beware that making a SecurityGroup immutable might lead to issue due to missing ingress/egress rules for new resources.

      Default: true

    • builder

      @Stability(Stable) static SecurityGroupImportOptions.Builder builder()
      Returns:
      a SecurityGroupImportOptions.Builder of SecurityGroupImportOptions