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