Interface BlockPublicAccessConfiguration.Builder

All Superinterfaces:
Buildable, CopyableBuilder<BlockPublicAccessConfiguration.Builder,BlockPublicAccessConfiguration>, SdkBuilder<BlockPublicAccessConfiguration.Builder,BlockPublicAccessConfiguration>, SdkPojo
Enclosing class:
BlockPublicAccessConfiguration

public static interface BlockPublicAccessConfiguration.Builder extends SdkPojo, CopyableBuilder<BlockPublicAccessConfiguration.Builder,BlockPublicAccessConfiguration>
  • 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 is false for accounts that have created Amazon EMR clusters before July 2019. For accounts created after this, the default is true.

      Parameters:
      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 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.
    • 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 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.
    • 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 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.
    • 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 PermittedPublicSecurityGroupRuleRanges.

      This is a convenience method that creates an instance of the PortRange.Builder avoiding the need to create one manually via PortRange.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to permittedPublicSecurityGroupRuleRanges(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: