Interface SecurityGroupImportOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SecurityGroupImportOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-12-01T16:02:19.571Z")
@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());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forSecurityGroupImportOptionsstatic final classAn implementation forSecurityGroupImportOptions -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default BooleanMark the SecurityGroup as having been created allowing all outbound ipv6 traffic.default BooleanMark the SecurityGroup as having been created allowing all outbound traffic.default BooleanIf a SecurityGroup is mutable CDK can add rules to existing groups.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
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
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
- Returns:
- a
SecurityGroupImportOptions.BuilderofSecurityGroupImportOptions
-