Class CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnClusterPropsMixin.JobFlowInstancesConfigProperty>
- Enclosing interface:
CfnClusterPropsMixin.JobFlowInstancesConfigProperty
CfnClusterPropsMixin.JobFlowInstancesConfigProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadditionalMasterSecurityGroups(List<String> additionalMasterSecurityGroups) additionalSlaveSecurityGroups(List<String> additionalSlaveSecurityGroups) build()Builds the configured instance.coreInstanceFleet(CfnClusterPropsMixin.InstanceFleetConfigProperty coreInstanceFleet) coreInstanceFleet(IResolvable coreInstanceFleet) coreInstanceGroup(CfnClusterPropsMixin.InstanceGroupConfigProperty coreInstanceGroup) coreInstanceGroup(IResolvable coreInstanceGroup) ec2KeyName(String ec2KeyName) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getEc2KeyName()ec2SubnetId(String ec2SubnetId) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getEc2SubnetId()ec2SubnetIds(List<String> ec2SubnetIds) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getEc2SubnetIds()emrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup) emrManagedSlaveSecurityGroup(String emrManagedSlaveSecurityGroup) hadoopVersion(String hadoopVersion) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getHadoopVersion()keepJobFlowAliveWhenNoSteps(Boolean keepJobFlowAliveWhenNoSteps) keepJobFlowAliveWhenNoSteps(IResolvable keepJobFlowAliveWhenNoSteps) masterInstanceFleet(CfnClusterPropsMixin.InstanceFleetConfigProperty masterInstanceFleet) masterInstanceFleet(IResolvable masterInstanceFleet) masterInstanceGroup(CfnClusterPropsMixin.InstanceGroupConfigProperty masterInstanceGroup) masterInstanceGroup(IResolvable masterInstanceGroup) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getPlacement()placement(IResolvable placement) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getPlacement()serviceAccessSecurityGroup(String serviceAccessSecurityGroup) taskInstanceFleets(List<? extends Object> taskInstanceFleets) taskInstanceFleets(IResolvable taskInstanceFleets) taskInstanceGroups(List<? extends Object> taskInstanceGroups) taskInstanceGroups(IResolvable taskInstanceGroups) terminationProtected(Boolean terminationProtected) terminationProtected(IResolvable terminationProtected) unhealthyNodeReplacement(Boolean unhealthyNodeReplacement) unhealthyNodeReplacement(IResolvable unhealthyNodeReplacement)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
additionalMasterSecurityGroups
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder additionalMasterSecurityGroups(List<String> additionalMasterSecurityGroups) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getAdditionalMasterSecurityGroups()- Parameters:
additionalMasterSecurityGroups- A list of additional Amazon EC2 security group IDs for the master node.- Returns:
this
-
additionalSlaveSecurityGroups
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder additionalSlaveSecurityGroups(List<String> additionalSlaveSecurityGroups) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getAdditionalSlaveSecurityGroups()- Parameters:
additionalSlaveSecurityGroups- A list of additional Amazon EC2 security group IDs for the core and task nodes.- Returns:
this
-
coreInstanceFleet
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder coreInstanceFleet(IResolvable coreInstanceFleet) - Parameters:
coreInstanceFleet- Describes the EC2 instances and instance configurations for the core instance fleet when using clusters with the instance fleet configuration.- Returns:
this
-
coreInstanceFleet
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder coreInstanceFleet(CfnClusterPropsMixin.InstanceFleetConfigProperty coreInstanceFleet) - Parameters:
coreInstanceFleet- Describes the EC2 instances and instance configurations for the core instance fleet when using clusters with the instance fleet configuration.- Returns:
this
-
coreInstanceGroup
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder coreInstanceGroup(IResolvable coreInstanceGroup) - Parameters:
coreInstanceGroup- Describes the EC2 instances and instance configurations for core instance groups when using clusters with the uniform instance group configuration.- Returns:
this
-
coreInstanceGroup
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder coreInstanceGroup(CfnClusterPropsMixin.InstanceGroupConfigProperty coreInstanceGroup) - Parameters:
coreInstanceGroup- Describes the EC2 instances and instance configurations for core instance groups when using clusters with the uniform instance group configuration.- Returns:
this
-
ec2KeyName
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder ec2KeyName(String ec2KeyName) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getEc2KeyName()- 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:
this
-
ec2SubnetId
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder ec2SubnetId(String ec2SubnetId) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getEc2SubnetId()- 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:
this
-
ec2SubnetIds
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder ec2SubnetIds(List<String> ec2SubnetIds) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getEc2SubnetIds()- 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:
this
-
emrManagedMasterSecurityGroup
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder emrManagedMasterSecurityGroup(String emrManagedMasterSecurityGroup) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getEmrManagedMasterSecurityGroup()- Parameters:
emrManagedMasterSecurityGroup- The identifier of the Amazon EC2 security group for the master node. If you specifyEmrManagedMasterSecurityGroup, you must also specifyEmrManagedSlaveSecurityGroup.- Returns:
this
-
emrManagedSlaveSecurityGroup
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder emrManagedSlaveSecurityGroup(String emrManagedSlaveSecurityGroup) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getEmrManagedSlaveSecurityGroup()- Parameters:
emrManagedSlaveSecurityGroup- The identifier of the Amazon EC2 security group for the core and task nodes. If you specifyEmrManagedSlaveSecurityGroup, you must also specifyEmrManagedMasterSecurityGroup.- Returns:
this
-
hadoopVersion
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder hadoopVersion(String hadoopVersion) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getHadoopVersion()- 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 theAmiVersionparameter is set in the RunJobFlow call, in which case the default version of Hadoop for that AMI version is used.- Returns:
this
-
keepJobFlowAliveWhenNoSteps
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder keepJobFlowAliveWhenNoSteps(Boolean keepJobFlowAliveWhenNoSteps) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getKeepJobFlowAliveWhenNoSteps()- 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:
this
-
keepJobFlowAliveWhenNoSteps
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder keepJobFlowAliveWhenNoSteps(IResolvable keepJobFlowAliveWhenNoSteps) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getKeepJobFlowAliveWhenNoSteps()- 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:
this
-
masterInstanceFleet
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder masterInstanceFleet(IResolvable masterInstanceFleet) - Parameters:
masterInstanceFleet- Describes the EC2 instances and instance configurations for the master instance fleet when using clusters with the instance fleet configuration.- Returns:
this
-
masterInstanceFleet
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder masterInstanceFleet(CfnClusterPropsMixin.InstanceFleetConfigProperty masterInstanceFleet) - Parameters:
masterInstanceFleet- Describes the EC2 instances and instance configurations for the master instance fleet when using clusters with the instance fleet configuration.- Returns:
this
-
masterInstanceGroup
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder masterInstanceGroup(IResolvable masterInstanceGroup) - Parameters:
masterInstanceGroup- Describes the EC2 instances and instance configurations for the master instance group when using clusters with the uniform instance group configuration.- Returns:
this
-
masterInstanceGroup
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder masterInstanceGroup(CfnClusterPropsMixin.InstanceGroupConfigProperty masterInstanceGroup) - Parameters:
masterInstanceGroup- Describes the EC2 instances and instance configurations for the master instance group when using clusters with the uniform instance group configuration.- Returns:
this
-
placement
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder placement(IResolvable placement) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getPlacement()- Parameters:
placement- The Availability Zone in which the cluster runs.- Returns:
this
-
placement
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder placement(CfnClusterPropsMixin.PlacementTypeProperty placement) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getPlacement()- Parameters:
placement- The Availability Zone in which the cluster runs.- Returns:
this
-
serviceAccessSecurityGroup
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder serviceAccessSecurityGroup(String serviceAccessSecurityGroup) Sets the value ofCfnClusterPropsMixin.JobFlowInstancesConfigProperty.getServiceAccessSecurityGroup()- Parameters:
serviceAccessSecurityGroup- The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.- Returns:
this
-
taskInstanceFleets
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder taskInstanceFleets(IResolvable taskInstanceFleets) - Parameters:
taskInstanceFleets- Describes the EC2 instances and instance configurations for the task instance fleets when using clusters with the instance fleet configuration. These task instance fleets are added to the cluster as part of the cluster launch. Each task instance fleet must have a unique name specified so that CloudFormation can differentiate between the task instance fleets.You can currently specify only one task instance fleet for a cluster. After creating the cluster, you can only modify the mutable properties of
InstanceFleetConfig, which areTargetOnDemandCapacityandTargetSpotCapacity. Modifying any other property results in cluster replacement. > To allow a maximum of 30 Amazon EC2 instance types per fleet, includeTaskInstanceFleetswhen you create your cluster. If you create your cluster withoutTaskInstanceFleets, Amazon EMR uses its default allocation strategy, which allows for a maximum of five Amazon EC2 instance types.- Returns:
this
-
taskInstanceFleets
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder taskInstanceFleets(List<? extends Object> taskInstanceFleets) - Parameters:
taskInstanceFleets- Describes the EC2 instances and instance configurations for the task instance fleets when using clusters with the instance fleet configuration. These task instance fleets are added to the cluster as part of the cluster launch. Each task instance fleet must have a unique name specified so that CloudFormation can differentiate between the task instance fleets.You can currently specify only one task instance fleet for a cluster. After creating the cluster, you can only modify the mutable properties of
InstanceFleetConfig, which areTargetOnDemandCapacityandTargetSpotCapacity. Modifying any other property results in cluster replacement. > To allow a maximum of 30 Amazon EC2 instance types per fleet, includeTaskInstanceFleetswhen you create your cluster. If you create your cluster withoutTaskInstanceFleets, Amazon EMR uses its default allocation strategy, which allows for a maximum of five Amazon EC2 instance types.- Returns:
this
-
taskInstanceGroups
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder taskInstanceGroups(IResolvable taskInstanceGroups) - Parameters:
taskInstanceGroups- Describes the EC2 instances and instance configurations for task instance groups when using clusters with the uniform instance group configuration. These task instance groups are added to the cluster as part of the cluster launch. Each task instance group must have a unique name specified so that CloudFormation can differentiate between the task instance groups.After creating the cluster, you can only modify the mutable properties of
InstanceGroupConfig, which areAutoScalingPolicyandInstanceCount. Modifying any other property results in cluster replacement.- Returns:
this
-
taskInstanceGroups
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder taskInstanceGroups(List<? extends Object> taskInstanceGroups) - Parameters:
taskInstanceGroups- Describes the EC2 instances and instance configurations for task instance groups when using clusters with the uniform instance group configuration. These task instance groups are added to the cluster as part of the cluster launch. Each task instance group must have a unique name specified so that CloudFormation can differentiate between the task instance groups.After creating the cluster, you can only modify the mutable properties of
InstanceGroupConfig, which areAutoScalingPolicyandInstanceCount. Modifying any other property results in cluster replacement.- Returns:
this
-
terminationProtected
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder terminationProtected(Boolean terminationProtected) - 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:
this
-
terminationProtected
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder terminationProtected(IResolvable terminationProtected) - 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:
this
-
unhealthyNodeReplacement
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder unhealthyNodeReplacement(Boolean unhealthyNodeReplacement) - Parameters:
unhealthyNodeReplacement- Indicates whether Amazon EMR should gracefully replace core nodes that have degraded within the cluster.- Returns:
this
-
unhealthyNodeReplacement
@Stability(Stable) public CfnClusterPropsMixin.JobFlowInstancesConfigProperty.Builder unhealthyNodeReplacement(IResolvable unhealthyNodeReplacement) - Parameters:
unhealthyNodeReplacement- Indicates whether Amazon EMR should gracefully replace core nodes that have degraded within the cluster.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnClusterPropsMixin.JobFlowInstancesConfigProperty>- Returns:
- a new instance of
CfnClusterPropsMixin.JobFlowInstancesConfigProperty - Throws:
NullPointerException- if any required attribute was not provided
-