Interface JobFlowInstancesConfig.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<JobFlowInstancesConfig.Builder,
,JobFlowInstancesConfig> SdkBuilder<JobFlowInstancesConfig.Builder,
,JobFlowInstancesConfig> SdkPojo
- Enclosing class:
JobFlowInstancesConfig
-
Method Summary
Modifier and TypeMethodDescriptionadditionalMasterSecurityGroups
(String... additionalMasterSecurityGroups) A list of additional Amazon EC2 security group IDs for the master node.additionalMasterSecurityGroups
(Collection<String> additionalMasterSecurityGroups) A list of additional Amazon EC2 security group IDs for the master node.additionalSlaveSecurityGroups
(String... additionalSlaveSecurityGroups) A list of additional Amazon EC2 security group IDs for the core and task nodes.additionalSlaveSecurityGroups
(Collection<String> additionalSlaveSecurityGroups) A list of additional Amazon EC2 security group IDs for the core and task nodes.ec2KeyName
(String ec2KeyName) The name of the Amazon EC2 key pair that can be used to connect to the master node using SSH as the user called "hadoop."ec2SubnetId
(String ec2SubnetId) Applies to clusters that use the uniform instance group configuration.ec2SubnetIds
(String... ec2SubnetIds) Applies to clusters that use the instance fleet configuration.ec2SubnetIds
(Collection<String> ec2SubnetIds) Applies to clusters that use the instance fleet configuration.emrManagedMasterSecurityGroup
(String emrManagedMasterSecurityGroup) The identifier of the Amazon EC2 security group for the master node.emrManagedSlaveSecurityGroup
(String emrManagedSlaveSecurityGroup) The identifier of the Amazon EC2 security group for the core and task nodes.hadoopVersion
(String hadoopVersion) Applies only to Amazon EMR release versions earlier than 4.0.instanceCount
(Integer instanceCount) The number of Amazon EC2 instances in the cluster.instanceFleets
(Collection<InstanceFleetConfig> instanceFleets) instanceFleets
(Consumer<InstanceFleetConfig.Builder>... instanceFleets) instanceFleets
(InstanceFleetConfig... instanceFleets) instanceGroups
(Collection<InstanceGroupConfig> instanceGroups) Configuration for the instance groups in a cluster.instanceGroups
(Consumer<InstanceGroupConfig.Builder>... instanceGroups) Configuration for the instance groups in a cluster.instanceGroups
(InstanceGroupConfig... instanceGroups) Configuration for the instance groups in a cluster.keepJobFlowAliveWhenNoSteps
(Boolean keepJobFlowAliveWhenNoSteps) Specifies whether the cluster should remain available after completing all steps.masterInstanceType
(String masterInstanceType) The Amazon EC2 instance type of the master node.default JobFlowInstancesConfig.Builder
placement
(Consumer<PlacementType.Builder> placement) The Availability Zone in which the cluster runs.placement
(PlacementType placement) The Availability Zone in which the cluster runs.serviceAccessSecurityGroup
(String serviceAccessSecurityGroup) The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.slaveInstanceType
(String slaveInstanceType) The Amazon EC2 instance type of the core and task nodes.terminationProtected
(Boolean terminationProtected) Specifies whether to lock the cluster to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job-flow error.unhealthyNodeReplacement
(Boolean unhealthyNodeReplacement) Indicates whether Amazon EMR should gracefully replace core nodes that have degraded within the cluster.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, sdkFieldNameToField, sdkFields
-
Method Details
-
masterInstanceType
The Amazon EC2 instance type of the master node.
- Parameters:
masterInstanceType
- The Amazon EC2 instance type of the master node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slaveInstanceType
The Amazon EC2 instance type of the core and task nodes.
- Parameters:
slaveInstanceType
- The Amazon EC2 instance type of the core and task nodes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceCount
The number of Amazon EC2 instances in the cluster.
- Parameters:
instanceCount
- The number of Amazon EC2 instances in the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGroups
Configuration for the instance groups in a cluster.
- Parameters:
instanceGroups
- Configuration for the instance groups in a cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGroups
Configuration for the instance groups in a cluster.
- Parameters:
instanceGroups
- Configuration for the instance groups in a cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceGroups
JobFlowInstancesConfig.Builder instanceGroups(Consumer<InstanceGroupConfig.Builder>... instanceGroups) Configuration for the instance groups in a cluster.
This is a convenience method that creates an instance of theInstanceGroupConfig.Builder
avoiding the need to create one manually viaInstanceGroupConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceGroups(List<InstanceGroupConfig>)
.- Parameters:
instanceGroups
- a consumer that will call methods onInstanceGroupConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
instanceFleets
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
Describes the Amazon EC2 instances and instance configurations for clusters that use the instance fleet configuration.
- Parameters:
instanceFleets
-The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
Describes the Amazon EC2 instances and instance configurations for clusters that use the instance fleet configuration.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceFleets
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
Describes the Amazon EC2 instances and instance configurations for clusters that use the instance fleet configuration.
- Parameters:
instanceFleets
-The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
Describes the Amazon EC2 instances and instance configurations for clusters that use the instance fleet configuration.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceFleets
JobFlowInstancesConfig.Builder instanceFleets(Consumer<InstanceFleetConfig.Builder>... instanceFleets) The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
Describes the Amazon EC2 instances and instance configurations for clusters that use the instance fleet configuration.
This is a convenience method that creates an instance of theInstanceFleetConfig.Builder
avoiding the need to create one manually viaInstanceFleetConfig.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstanceFleets(List<InstanceFleetConfig>)
.- Parameters:
instanceFleets
- a consumer that will call methods onInstanceFleetConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ec2KeyName
The name of the Amazon EC2 key pair that can be used to connect to the master node using SSH as the user called "hadoop."
- Parameters:
ec2KeyName
- The name of the Amazon EC2 key pair that can be used to connect to the master node using SSH as the user called "hadoop."- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placement
The Availability Zone in which the cluster runs.
- Parameters:
placement
- The Availability Zone in which the cluster runs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
placement
The Availability Zone in which the cluster runs.
This is a convenience method that creates an instance of thePlacementType.Builder
avoiding the need to create one manually viaPlacementType.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toplacement(PlacementType)
.- Parameters:
placement
- a consumer that will call methods onPlacementType.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
keepJobFlowAliveWhenNoSteps
Specifies whether the cluster should remain available after completing all steps. Defaults to
false
. For more information about configuring cluster termination, see Control Cluster Termination in the EMR Management Guide.- Parameters:
keepJobFlowAliveWhenNoSteps
- Specifies whether the cluster should remain available after completing all steps. Defaults tofalse
. For more information about configuring cluster termination, see Control Cluster Termination in the EMR Management Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
terminationProtected
Specifies whether to lock the cluster to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job-flow error.
- Parameters:
terminationProtected
- Specifies whether to lock the cluster to prevent the Amazon EC2 instances from being terminated by API call, user intervention, or in the event of a job-flow error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
unhealthyNodeReplacement
Indicates whether Amazon EMR should gracefully replace core nodes that have degraded within the cluster.
- Parameters:
unhealthyNodeReplacement
- Indicates whether Amazon EMR should gracefully replace core nodes that have degraded within the cluster.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
hadoopVersion
Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop version for the cluster. Valid inputs are "0.18" (no longer maintained), "0.20" (no longer maintained), "0.20.205" (no longer maintained), "1.0.3", "2.2.0", or "2.4.0". If you do not set this value, the default of 0.18 is used, unless the
AmiVersion
parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.- Parameters:
hadoopVersion
- Applies only to Amazon EMR release versions earlier than 4.0. The Hadoop version for the cluster. Valid inputs are "0.18" (no longer maintained), "0.20" (no longer maintained), "0.20.205" (no longer maintained), "1.0.3", "2.2.0", or "2.4.0". If you do not set this value, the default of 0.18 is used, unless theAmiVersion
parameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2SubnetId
Applies to clusters that use the uniform instance group configuration. To launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the cluster to launch. If you do not specify this value and your account supports EC2-Classic, the cluster launches in EC2-Classic.
- Parameters:
ec2SubnetId
- Applies to clusters that use the uniform instance group configuration. To launch the cluster in Amazon Virtual Private Cloud (Amazon VPC), set this parameter to the identifier of the Amazon VPC subnet where you want the cluster to launch. If you do not specify this value and your account supports EC2-Classic, the cluster launches in EC2-Classic.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2SubnetIds
Applies to clusters that use the instance fleet configuration. When multiple Amazon EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances in the optimal subnet.
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
- Parameters:
ec2SubnetIds
- Applies to clusters that use the instance fleet configuration. When multiple Amazon EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances in the optimal subnet.The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ec2SubnetIds
Applies to clusters that use the instance fleet configuration. When multiple Amazon EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances in the optimal subnet.
The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
- Parameters:
ec2SubnetIds
- Applies to clusters that use the instance fleet configuration. When multiple Amazon EC2 subnet IDs are specified, Amazon EMR evaluates them and launches instances in the optimal subnet.The instance fleet configuration is available only in Amazon EMR releases 4.8.0 and later, excluding 5.0.x versions.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emrManagedMasterSecurityGroup
The identifier of the Amazon EC2 security group for the master node. If you specify
EmrManagedMasterSecurityGroup
, you must also specifyEmrManagedSlaveSecurityGroup
.- Parameters:
emrManagedMasterSecurityGroup
- The identifier of the Amazon EC2 security group for the master node. If you specifyEmrManagedMasterSecurityGroup
, you must also specifyEmrManagedSlaveSecurityGroup
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
emrManagedSlaveSecurityGroup
The identifier of the Amazon EC2 security group for the core and task nodes. If you specify
EmrManagedSlaveSecurityGroup
, you must also specifyEmrManagedMasterSecurityGroup
.- Parameters:
emrManagedSlaveSecurityGroup
- The identifier of the Amazon EC2 security group for the core and task nodes. If you specifyEmrManagedSlaveSecurityGroup
, you must also specifyEmrManagedMasterSecurityGroup
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAccessSecurityGroup
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
- Parameters:
serviceAccessSecurityGroup
- The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalMasterSecurityGroups
JobFlowInstancesConfig.Builder additionalMasterSecurityGroups(Collection<String> additionalMasterSecurityGroups) A list of additional Amazon EC2 security group IDs for the master node.
- Parameters:
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalMasterSecurityGroups
JobFlowInstancesConfig.Builder additionalMasterSecurityGroups(String... additionalMasterSecurityGroups) A list of additional Amazon EC2 security group IDs for the master node.
- Parameters:
additionalMasterSecurityGroups
- A list of additional Amazon EC2 security group IDs for the master node.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalSlaveSecurityGroups
JobFlowInstancesConfig.Builder additionalSlaveSecurityGroups(Collection<String> additionalSlaveSecurityGroups) A list of additional Amazon EC2 security group IDs for the core and task nodes.
- Parameters:
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the core and task nodes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
additionalSlaveSecurityGroups
JobFlowInstancesConfig.Builder additionalSlaveSecurityGroups(String... additionalSlaveSecurityGroups) A list of additional Amazon EC2 security group IDs for the core and task nodes.
- Parameters:
additionalSlaveSecurityGroups
- A list of additional Amazon EC2 security group IDs for the core and task nodes.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-