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
SecurityGroupId
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)