Interface BlockPublicAccessConfiguration.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<BlockPublicAccessConfiguration.Builder,,- BlockPublicAccessConfiguration> - SdkBuilder<BlockPublicAccessConfiguration.Builder,,- BlockPublicAccessConfiguration> - SdkPojo
- Enclosing class:
- BlockPublicAccessConfiguration
- 
Method SummaryModifier 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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
blockPublicSecurityGroupRulesBlockPublicAccessConfiguration.Builder blockPublicSecurityGroupRules(Boolean blockPublicSecurityGroupRules) Indicates whether Amazon EMR block public access is enabled ( true) or disabled (false). By default, the value isfalsefor 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 is- falsefor accounts that have created Amazon EMR clusters before July 2019. For accounts created after this, the default is- true.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
permittedPublicSecurityGroupRuleRangesBlockPublicAccessConfiguration.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 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
permittedPublicSecurityGroupRuleRangesBlockPublicAccessConfiguration.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 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
permittedPublicSecurityGroupRuleRangesBlockPublicAccessConfiguration.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.Builderavoiding the need to create one manually viaPortRange.builder().When the Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topermittedPublicSecurityGroupRuleRanges(List<PortRange>).- Parameters:
- permittedPublicSecurityGroupRuleRanges- a consumer that will call methods on- PortRange.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
 
-