Skip to main content

AwsSecurityGroupAnchorRuleSchema

Defines the schema for a security group rule. These values are mapped from the official EC2 authorize security group egress/ingress document. Please refer to the AWS documentation for more information.

@group

Anchors/AwsSecurityGroup

Index

Properties

CidrBlock

CidrBlock: string

The IpV4 network range to allow or deny, in CIDR notation.

Egress

Egress: boolean

Indicates whether this is an egress rule (rule is applied to traffic leaving the security group).

FromPort

FromPort: number

The start of the port range.

IpProtocol

IpProtocol: tcp | udp | -1

The IP protocol name. -1 is every protocol on every port, and the port range is ignored for it, which is how the resource already renders one.

ToPort

ToPort: number

The end of the port range.