Interface ISecurityGroupImportOptions
Additional options for imported security groups.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public interface ISecurityGroupImportOptions
Syntax (vb)
Public Interface ISecurityGroupImportOptions
Remarks
ExampleMetadata: infused
Examples
var securityGroup = SecurityGroup.FromSecurityGroupId(this, "SG", "sg-12345", new SecurityGroupImportOptions {
Mutable = false
});
Synopsis
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. |
Properties
AllowAllOutbound
Mark the SecurityGroup as having been created allowing all outbound traffic.
virtual Nullable<bool> AllowAllOutbound { get; }
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.
virtual Nullable<bool> Mutable { get; }
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