Interface BlockPublicAccessConfiguration.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<BlockPublicAccessConfiguration.Builder,
,BlockPublicAccessConfiguration> SdkBuilder<BlockPublicAccessConfiguration.Builder,
,BlockPublicAccessConfiguration> SdkPojo
- Enclosing class:
BlockPublicAccessConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionblockPublicSecurityGroupRules
(Boolean blockPublicSecurityGroupRules) Indicates whether Amazon EMR block public access is enabled (true
) or disabled (false
).permittedPublicSecurityGroupRuleRanges
(Collection<PortRange> permittedPublicSecurityGroupRuleRanges) Specifies ports and port ranges that are permitted to have security group rules that allow inbound traffic from all public sources.permittedPublicSecurityGroupRuleRanges
(Consumer<PortRange.Builder>... permittedPublicSecurityGroupRuleRanges) Specifies ports and port ranges that are permitted to have security group rules that allow inbound traffic from all public sources.permittedPublicSecurityGroupRuleRanges
(PortRange... permittedPublicSecurityGroupRuleRanges) Specifies ports and port ranges that are permitted to have security group rules that allow inbound traffic from all public sources.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
blockPublicSecurityGroupRules
BlockPublicAccessConfiguration.Builder blockPublicSecurityGroupRules(Boolean blockPublicSecurityGroupRules) Indicates whether Amazon EMR block public access is enabled (
true
) or disabled (false
). By default, the value isfalse
for accounts that have created Amazon EMR clusters before July 2019. For accounts created after this, the default istrue
.- Parameters:
blockPublicSecurityGroupRules
- Indicates whether Amazon EMR block public access is enabled (true
) or disabled (false
). By default, the value isfalse
for accounts that have created Amazon EMR clusters before July 2019. For accounts created after this, the default istrue
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permittedPublicSecurityGroupRuleRanges
BlockPublicAccessConfiguration.Builder permittedPublicSecurityGroupRuleRanges(Collection<PortRange> permittedPublicSecurityGroupRuleRanges) Specifies ports and port ranges that are permitted to have security group rules that allow inbound traffic from all public sources. For example, if Port 23 (Telnet) is specified for
PermittedPublicSecurityGroupRuleRanges
, Amazon EMR allows cluster creation if a security group associated with the cluster has a rule that allows inbound traffic on Port 23 from IPv4 0.0.0.0/0 or IPv6 port ::/0 as the source.By default, Port 22, which is used for SSH access to the cluster Amazon EC2 instances, is in the list of
PermittedPublicSecurityGroupRuleRanges
.- Parameters:
permittedPublicSecurityGroupRuleRanges
- Specifies ports and port ranges that are permitted to have security group rules that allow inbound traffic from all public sources. For example, if Port 23 (Telnet) is specified forPermittedPublicSecurityGroupRuleRanges
, Amazon EMR allows cluster creation if a security group associated with the cluster has a rule that allows inbound traffic on Port 23 from IPv4 0.0.0.0/0 or IPv6 port ::/0 as the source.By default, Port 22, which is used for SSH access to the cluster Amazon EC2 instances, is in the list of
PermittedPublicSecurityGroupRuleRanges
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permittedPublicSecurityGroupRuleRanges
BlockPublicAccessConfiguration.Builder permittedPublicSecurityGroupRuleRanges(PortRange... permittedPublicSecurityGroupRuleRanges) Specifies ports and port ranges that are permitted to have security group rules that allow inbound traffic from all public sources. For example, if Port 23 (Telnet) is specified for
PermittedPublicSecurityGroupRuleRanges
, Amazon EMR allows cluster creation if a security group associated with the cluster has a rule that allows inbound traffic on Port 23 from IPv4 0.0.0.0/0 or IPv6 port ::/0 as the source.By default, Port 22, which is used for SSH access to the cluster Amazon EC2 instances, is in the list of
PermittedPublicSecurityGroupRuleRanges
.- Parameters:
permittedPublicSecurityGroupRuleRanges
- Specifies ports and port ranges that are permitted to have security group rules that allow inbound traffic from all public sources. For example, if Port 23 (Telnet) is specified forPermittedPublicSecurityGroupRuleRanges
, Amazon EMR allows cluster creation if a security group associated with the cluster has a rule that allows inbound traffic on Port 23 from IPv4 0.0.0.0/0 or IPv6 port ::/0 as the source.By default, Port 22, which is used for SSH access to the cluster Amazon EC2 instances, is in the list of
PermittedPublicSecurityGroupRuleRanges
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permittedPublicSecurityGroupRuleRanges
BlockPublicAccessConfiguration.Builder permittedPublicSecurityGroupRuleRanges(Consumer<PortRange.Builder>... permittedPublicSecurityGroupRuleRanges) Specifies ports and port ranges that are permitted to have security group rules that allow inbound traffic from all public sources. For example, if Port 23 (Telnet) is specified for
PermittedPublicSecurityGroupRuleRanges
, Amazon EMR allows cluster creation if a security group associated with the cluster has a rule that allows inbound traffic on Port 23 from IPv4 0.0.0.0/0 or IPv6 port ::/0 as the source.By default, Port 22, which is used for SSH access to the cluster Amazon EC2 instances, is in the list of
This is a convenience method that creates an instance of thePermittedPublicSecurityGroupRuleRanges
.PortRange.Builder
avoiding the need to create one manually viaPortRange.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topermittedPublicSecurityGroupRuleRanges(List<PortRange>)
.- Parameters:
permittedPublicSecurityGroupRuleRanges
- a consumer that will call methods onPortRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-