Interface SecurityGroupImportOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SecurityGroupImportOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:24:00.758Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forSecurityGroupImportOptions
static final class
An implementation forSecurityGroupImportOptions
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Boolean
Mark the SecurityGroup as having been created allowing all outbound ipv6 traffic.default Boolean
Mark the SecurityGroup as having been created allowing all outbound traffic.default Boolean
If 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.Builder
ofSecurityGroupImportOptions
-