Show / Hide Table of Contents

Interface ISecurityGroupImportOptions

Additional options for imported security groups.

Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.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

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.

Properties

AllowAllIpv6Outbound

Mark the SecurityGroup as having been created allowing all outbound ipv6 traffic.

bool? AllowAllIpv6Outbound { get; }
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.

bool? AllowAllOutbound { get; }
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.

bool? Mutable { get; }
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

Back to top Generated by DocFX