Struct aws_sdk_securityhub::model::aws_ec2_security_group_ip_permission::Builder [−][src]
#[non_exhaustive]pub struct Builder { /* fields omitted */ }
Expand description
A builder for AwsEc2SecurityGroupIpPermission
Implementations
The IP protocol name (tcp
, udp
, icmp
,
icmpv6
) or number.
[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.
[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 start of the 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 the 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 end of the 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 the 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.
pub fn user_id_group_pairs(
self,
input: impl Into<AwsEc2SecurityGroupUserIdGroupPair>
) -> Self
pub fn user_id_group_pairs(
self,
input: impl Into<AwsEc2SecurityGroupUserIdGroupPair>
) -> Self
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.
pub fn set_user_id_group_pairs(
self,
input: Option<Vec<AwsEc2SecurityGroupUserIdGroupPair>>
) -> Self
pub fn set_user_id_group_pairs(
self,
input: Option<Vec<AwsEc2SecurityGroupUserIdGroupPair>>
) -> Self
The security group and Amazon Web Services account ID pairs.
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
.
The IPv6 ranges.
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 for an Amazon Web Services service. With outbound rules, this is the Amazon Web Services service to access through a VPC endpoint from instances associated with the security group.
[VPC only] The prefix list IDs for an Amazon Web Services service. With outbound rules, this is the Amazon Web Services service to access through a VPC endpoint from instances associated with the security group.
Consumes the builder and constructs a AwsEc2SecurityGroupIpPermission
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