Interface ISecurityGroup

Interface for security group-like objects.

Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ISecurityGroup : IResource, IPeer, IConnectable, ISecurityGroupRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Interface ISecurityGroup Inherits IResource, IPeer, IConnectable, ISecurityGroupRef, IConstruct, IDependable, IEnvironmentAware

Synopsis

Properties

Methods

Properties

AllowAllOutbound

Whether the SecurityGroup has been configured to allow all outbound traffic.

bool AllowAllOutbound { get; }
Property Value

bool

SecurityGroupId

ID for the current security group.

string SecurityGroupId { get; }
Property Value

string

Methods

AddEgressRule(IPeer, Port, string?, bool?)

Add an egress rule for the current security group.

void AddEgressRule(IPeer peer, Port connection, string? description = null, bool? remoteRule = null)
Parameters
peer IPeer
connection Port
description string
remoteRule bool?

AddIngressRule(IPeer, Port, string?, bool?)

Add an ingress rule for the current security group.

void AddIngressRule(IPeer peer, Port connection, string? description = null, bool? remoteRule = null)
Parameters
peer IPeer
connection Port
description string
remoteRule bool?