Security Group Rules

This table represents the Security Group Rules resource from Amazon Web Services.

aws.security_group_rule

Fields

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
cidr_ipv4corestringThe IPv4 CIDR range.
cidr_ipv6corestringThe IPv6 CIDR range.
descriptioncorestringThe security group rule description.
from_portcoreint64If the protocol is TCP or UDP, this is the start of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP type or -1 (all ICMP types).
group_idcorestringThe ID of the security group.
group_owner_idcorestringThe ID of the Amazon Web Services account that owns the security group.
ip_protocolcorestringThe IP protocol name (<code>tcp</code>, <code>udp</code>, <code>icmp</code>, <code>icmpv6</code>) or number (see <a href="http://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml">Protocol Numbers</a>). Use <code>-1</code> to specify all protocols.
is_egresscoreboolIndicates whether the security group rule is an outbound rule.
prefix_list_idcorestringThe ID of the prefix list.
referenced_group_infocorejsonDescribes the security group that is referenced in the rule.
security_group_rule_arncorestring
security_group_rule_idcorestringThe ID of the security group rule.
tagscorehstore
to_portcoreint64If the protocol is TCP or UDP, this is the end of the port range. If the protocol is ICMP or ICMPv6, this is the ICMP code or -1 (all ICMP codes). If the start port is -1 (all ICMP types), then the end port must be -1 (all ICMP codes).