Class SecurityGroupImportOptions
Additional options for imported security groups.
Inheritance
System.Object
SecurityGroupImportOptions
Implements
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.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
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
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