A way to describe an ingress or egress rule for a security group.

See [[transformToSecurityGroupAccessRule]] for a handy helper function.

interface SecurityGroupAccessRule {
    description: string;
    port: number | Port;
    range: IPeer;
}

Properties

description: string

A short explanation for this rule.

port: number | Port

The port to open in a security group. The default protocol is TCP. Use Port.udp(port) for the UDP protocol.

range: IPeer

The CIDR address for this rule. Use Peer.anyIpv4() for global access.

Generated using TypeDoc