public static interface AwsEc2SecurityGroupIpPermission.Builder extends SdkPojo, CopyableBuilder<AwsEc2SecurityGroupIpPermission.Builder,AwsEc2SecurityGroupIpPermission>
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAwsEc2SecurityGroupIpPermission.Builder ipProtocol(String ipProtocol)
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.
ipProtocol - 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.
AwsEc2SecurityGroupIpPermission.Builder fromPort(Integer fromPort)
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.
fromPort - 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.
AwsEc2SecurityGroupIpPermission.Builder toPort(Integer toPort)
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.
toPort - 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.
AwsEc2SecurityGroupIpPermission.Builder userIdGroupPairs(Collection<AwsEc2SecurityGroupUserIdGroupPair> userIdGroupPairs)
The security group and Amazon Web Services account ID pairs.
userIdGroupPairs - The security group and Amazon Web Services account ID pairs.AwsEc2SecurityGroupIpPermission.Builder userIdGroupPairs(AwsEc2SecurityGroupUserIdGroupPair... userIdGroupPairs)
The security group and Amazon Web Services account ID pairs.
userIdGroupPairs - The security group and Amazon Web Services account ID pairs.AwsEc2SecurityGroupIpPermission.Builder userIdGroupPairs(Consumer<AwsEc2SecurityGroupUserIdGroupPair.Builder>... userIdGroupPairs)
The security group and Amazon Web Services account ID pairs.
This is a convenience method that creates an instance of theAwsEc2SecurityGroupUserIdGroupPair.Builder avoiding
the need to create one manually via
AwsEc2SecurityGroupUserIdGroupPair.builder().
When the Consumer completes,
SdkBuilder.build()
is called immediately and its result is passed to #userIdGroupPairs(List.
userIdGroupPairs - a consumer that will call methods on
AwsEc2SecurityGroupUserIdGroupPair.Builder#userIdGroupPairs(java.util.Collection) AwsEc2SecurityGroupIpPermission.Builder ipRanges(Collection<AwsEc2SecurityGroupIpRange> ipRanges)
The IPv4 ranges.
ipRanges - The IPv4 ranges.AwsEc2SecurityGroupIpPermission.Builder ipRanges(AwsEc2SecurityGroupIpRange... ipRanges)
The IPv4 ranges.
ipRanges - The IPv4 ranges.AwsEc2SecurityGroupIpPermission.Builder ipRanges(Consumer<AwsEc2SecurityGroupIpRange.Builder>... ipRanges)
The IPv4 ranges.
This is a convenience method that creates an instance of theAwsEc2SecurityGroupIpRange.Builder avoiding the
need to create one manually via
AwsEc2SecurityGroupIpRange.builder().
When the Consumer completes,
SdkBuilder.build() is
called immediately and its result is passed to #ipRanges(List.
ipRanges - a consumer that will call methods on
AwsEc2SecurityGroupIpRange.Builder#ipRanges(java.util.Collection) AwsEc2SecurityGroupIpPermission.Builder ipv6Ranges(Collection<AwsEc2SecurityGroupIpv6Range> ipv6Ranges)
The IPv6 ranges.
ipv6Ranges - The IPv6 ranges.AwsEc2SecurityGroupIpPermission.Builder ipv6Ranges(AwsEc2SecurityGroupIpv6Range... ipv6Ranges)
The IPv6 ranges.
ipv6Ranges - The IPv6 ranges.AwsEc2SecurityGroupIpPermission.Builder ipv6Ranges(Consumer<AwsEc2SecurityGroupIpv6Range.Builder>... ipv6Ranges)
The IPv6 ranges.
This is a convenience method that creates an instance of theAwsEc2SecurityGroupIpv6Range.Builder avoiding the
need to create one manually via
AwsEc2SecurityGroupIpv6Range.builder().
When the Consumer completes,
SdkBuilder.build() is
called immediately and its result is passed to #ipv6Ranges(List.
ipv6Ranges - a consumer that will call methods on
AwsEc2SecurityGroupIpv6Range.Builder#ipv6Ranges(java.util.Collection) AwsEc2SecurityGroupIpPermission.Builder prefixListIds(Collection<AwsEc2SecurityGroupPrefixListId> prefixListIds)
[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.
prefixListIds - [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.AwsEc2SecurityGroupIpPermission.Builder prefixListIds(AwsEc2SecurityGroupPrefixListId... prefixListIds)
[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.
prefixListIds - [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.AwsEc2SecurityGroupIpPermission.Builder prefixListIds(Consumer<AwsEc2SecurityGroupPrefixListId.Builder>... prefixListIds)
[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.
This is a convenience method that creates an instance of theAwsEc2SecurityGroupPrefixListId.Builder avoiding
the need to create one manually via
AwsEc2SecurityGroupPrefixListId.builder().
When the Consumer completes,
SdkBuilder.build() is
called immediately and its result is passed to #prefixListIds(List.
prefixListIds - a consumer that will call methods on
AwsEc2SecurityGroupPrefixListId.Builder#prefixListIds(java.util.Collection) Copyright © 2023. All rights reserved.