Interface SecurityGroupImportOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
SecurityGroupImportOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:39.527Z")
@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
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
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
-