Class SecurityGroupImportOptions
Additional options for imported security groups.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SecurityGroupImportOptions : ISecurityGroupImportOptions
Syntax (vb)
Public Class SecurityGroupImportOptions Implements ISecurityGroupImportOptions
Remarks
ExampleMetadata: infused
Examples
var securityGroup = SecurityGroup.FromSecurityGroupId(this, "SG", "sg-12345", new SecurityGroupImportOptions {
Mutable = false
});
Synopsis
Constructors
| SecurityGroupImportOptions() | Additional options for imported security groups. |
Properties
| AllowAllIpv6Outbound | Mark the SecurityGroup as having been created allowing all outbound ipv6 traffic. |
| AllowAllOutbound | Mark the SecurityGroup as having been created allowing all outbound traffic. |
| Mutable | If a SecurityGroup is mutable CDK can add rules to existing groups. |
Constructors
SecurityGroupImportOptions()
Additional options for imported security groups.
public SecurityGroupImportOptions()
Remarks
ExampleMetadata: infused
Examples
var securityGroup = SecurityGroup.FromSecurityGroupId(this, "SG", "sg-12345", new SecurityGroupImportOptions {
Mutable = false
});
Properties
AllowAllIpv6Outbound
Mark the SecurityGroup as having been created allowing all outbound ipv6 traffic.
public bool? AllowAllIpv6Outbound { get; set; }
Property Value
bool?
Remarks
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
AllowAllOutbound
Mark the SecurityGroup as having been created allowing all outbound traffic.
public bool? AllowAllOutbound { get; set; }
Property Value
bool?
Remarks
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
Mutable
If a SecurityGroup is mutable CDK can add rules to existing groups.
public bool? Mutable { get; set; }
Property Value
bool?
Remarks
Beware that making a SecurityGroup immutable might lead to issue due to missing ingress/egress rules for new resources.
Default: true