Struct aws_sdk_ec2::model::ip_permission::Builder [−][src]
#[non_exhaustive]pub struct Builder { /* fields omitted */ }
Expand description
A builder for IpPermission
Implementations
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number.
A value of -1
indicates all ICMP/ICMPv6 types. If you specify all
ICMP/ICMPv6 types, you must specify all codes.
The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type number.
A value of -1
indicates all ICMP/ICMPv6 types. If you specify all
ICMP/ICMPv6 types, you must specify all codes.
The IP protocol name (tcp
, udp
, icmp
, icmpv6
)
or number (see Protocol Numbers).
[VPC only] Use -1
to specify all protocols. When authorizing
security group rules, specifying -1
or a protocol number other than
tcp
, udp
, icmp
, or icmpv6
allows
traffic on all ports, regardless of any port range you specify. For tcp
,
udp
, and icmp
, you must specify a port range. For icmpv6
,
the port range is optional; if you omit the port range, traffic for all types and codes is allowed.
The IP protocol name (tcp
, udp
, icmp
, icmpv6
)
or number (see Protocol Numbers).
[VPC only] Use -1
to specify all protocols. When authorizing
security group rules, specifying -1
or a protocol number other than
tcp
, udp
, icmp
, or icmpv6
allows
traffic on all ports, regardless of any port range you specify. For tcp
,
udp
, and icmp
, you must specify a port range. For icmpv6
,
the port range is optional; if you omit the port range, traffic for all types and codes is allowed.
Appends an item to ip_ranges
.
To override the contents of this collection use set_ip_ranges
.
The IPv4 ranges.
The IPv4 ranges.
Appends an item to ipv6_ranges
.
To override the contents of this collection use set_ipv6_ranges
.
[VPC only] The IPv6 ranges.
[VPC only] The IPv6 ranges.
Appends an item to prefix_list_ids
.
To override the contents of this collection use set_prefix_list_ids
.
[VPC only] The prefix list IDs.
[VPC only] The prefix list IDs.
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value
of -1
indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types,
you must specify all codes.
The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value
of -1
indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types,
you must specify all codes.
Appends an item to user_id_group_pairs
.
To override the contents of this collection use set_user_id_group_pairs
.
The security group and Amazon Web Services account ID pairs.
The security group and Amazon Web Services account ID pairs.
Consumes the builder and constructs a IpPermission
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl UnwindSafe for Builder
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more