public static interface BlockPublicAccessConfiguration.Builder extends SdkPojo, CopyableBuilder<BlockPublicAccessConfiguration.Builder,BlockPublicAccessConfiguration>
Modifier and Type | Method and Description |
---|---|
BlockPublicAccessConfiguration.Builder |
blockPublicSecurityGroupRules(Boolean blockPublicSecurityGroupRules)
Indicates whether Amazon EMR block public access is enabled (
true ) or disabled (
false ). |
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.
|
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.
|
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.
|
equalsBySdkFields, sdkFields
copy
applyMutation, build
BlockPublicAccessConfiguration.Builder blockPublicSecurityGroupRules(Boolean blockPublicSecurityGroupRules)
Indicates whether Amazon EMR block public access is enabled (true
) or disabled (
false
). By default, the value is false
for accounts that have created EMR clusters
before July 2019. For accounts created after this, the default is true
.
blockPublicSecurityGroupRules
- Indicates whether Amazon EMR block public access is enabled (true
) or disabled (
false
). By default, the value is false
for accounts that have created EMR
clusters before July 2019. For accounts created after this, the default is true
.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 EC2 instances, is in the list of
PermittedPublicSecurityGroupRuleRanges
.
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 EC2 instances, is in the list of
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 EC2 instances, is in the list of
PermittedPublicSecurityGroupRuleRanges
.
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 EC2 instances, is in the list of
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 EC2 instances, is in the list of
PermittedPublicSecurityGroupRuleRanges
.
List.Builder
avoiding the
need to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #permittedPublicSecurityGroupRuleRanges(List)
.permittedPublicSecurityGroupRuleRanges
- a consumer that will call methods on List.Builder
#permittedPublicSecurityGroupRuleRanges(List)
Copyright © 2022. All rights reserved.