SecurityGroupImportOptions Struct
Additional options for imported security groups.
Example
ts
const securityGroup = ec2.SecurityGroup.fromSecurityGroupId(this, 'SG', 'sg-12345', {
mutable: false
});
Properties
allowAllIpv6Outboundoptionalbooleanallow_all_ipv6_outboundoptionalboolallowAllIpv6OutboundoptionalBooleanAllowAllIpv6OutboundoptionalboolAllowAllIpv6Outboundoptional*bool= false#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.
allowAllOutboundoptionalbooleanallow_all_outboundoptionalboolallowAllOutboundoptionalBooleanAllowAllOutboundoptionalboolAllowAllOutboundoptional*bool= true#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.
mutableoptionalbooleanmutableoptionalboolmutableoptionalBooleanMutableoptionalboolMutableoptional*bool= true#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.