Interface SecurityGroupRuleArgs

interface SecurityGroupRuleArgs {
    cidrBlocks?: any;
    description?: any;
    fromPort: Input<number>;
    ipv6CidrBlocks?: any;
    prefixListIds?: any;
    protocol: Input<string>;
    self?: any;
    sourceSecurityGroupId?: any;
    toPort: Input<number>;
    type: Input<"ingress" | "egress">;
}

Properties

cidrBlocks?: any

List of CIDR blocks. Cannot be specified with source_security_group_id.

description?: any

Description of the rule.

fromPort: Input<number>

The start port (or ICMP type number if protocol is "icmp").

ipv6CidrBlocks?: any

List of IPv6 CIDR blocks.

prefixListIds?: any

List of prefix list IDs (for allowing access to VPC endpoints). Only valid with egress.

protocol: Input<string>

The protocol. If not icmp, tcp, udp, or all use the protocol number

self?: any

If true, the security group itself will be added as a source to this ingress rule.

sourceSecurityGroupId?: any

The security group id to allow access to/from, depending on the type. Cannot be specified with cidr_blocks.

toPort: Input<number>

The end port (or ICMP code if protocol is "icmp").

type: Input<"ingress" | "egress">

The type of rule being created. Valid options are ingress (inbound) or egress (outbound).

Generated using TypeDoc