@Generated(value="software.amazon.awssdk:codegen") public final class JobFlowInstancesConfig extends Object implements StructuredPojo, ToCopyableBuilder<JobFlowInstancesConfig.Builder,JobFlowInstancesConfig>
A description of the Amazon EC2 instance on which the cluster (job flow) runs. A valid JobFlowInstancesConfig must contain either InstanceGroups or InstanceFleets, which is the recommended configuration. They cannot be used together. You may also have MasterInstanceType, SlaveInstanceType, and InstanceCount (all three must be present), but we don't recommend this configuration.
Modifier and Type | Class and Description |
---|---|
static interface |
JobFlowInstancesConfig.Builder |
Modifier and Type | Method and Description |
---|---|
List<String> |
additionalMasterSecurityGroups()
A list of additional Amazon EC2 security group IDs for the master node.
|
List<String> |
additionalSlaveSecurityGroups()
A list of additional Amazon EC2 security group IDs for the slave nodes.
|
static JobFlowInstancesConfig.Builder |
builder() |
String |
ec2KeyName()
The name of the EC2 key pair that can be used to ssh to the master node as the user called "hadoop."
|
String |
ec2SubnetId()
Applies to clusters that use the uniform instance group configuration.
|
List<String> |
ec2SubnetIds()
Applies to clusters that use the instance fleet configuration.
|
String |
emrManagedMasterSecurityGroup()
The identifier of the Amazon EC2 security group for the master node.
|
String |
emrManagedSlaveSecurityGroup()
The identifier of the Amazon EC2 security group for the slave nodes.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
hadoopVersion()
The Hadoop version for the cluster.
|
int |
hashCode() |
Integer |
instanceCount()
The number of EC2 instances in the cluster.
|
List<InstanceFleetConfig> |
instanceFleets()
|
List<InstanceGroupConfig> |
instanceGroups()
Configuration for the instance groups in a cluster.
|
Boolean |
keepJobFlowAliveWhenNoSteps()
Specifies whether the cluster should remain available after completing all steps.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
masterInstanceType()
The EC2 instance type of the master node.
|
PlacementType |
placement()
The Availability Zone in which the cluster runs.
|
static Class<? extends JobFlowInstancesConfig.Builder> |
serializableBuilderClass() |
String |
serviceAccessSecurityGroup()
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private
subnets.
|
String |
slaveInstanceType()
The EC2 instance type of the slave nodes.
|
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.
|
JobFlowInstancesConfig.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
copy
public String masterInstanceType()
The EC2 instance type of the master node.
public String slaveInstanceType()
The EC2 instance type of the slave nodes.
public Integer instanceCount()
The number of EC2 instances in the cluster.
public List<InstanceGroupConfig> instanceGroups()
Configuration for the instance groups in a cluster.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<InstanceFleetConfig> instanceFleets()
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
Describes the EC2 instances and instance configurations for clusters that use the instance fleet configuration.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
Describes the EC2 instances and instance configurations for clusters that use the instance fleet configuration.
public String ec2KeyName()
The name of the EC2 key pair that can be used to ssh to the master node as the user called "hadoop."
public PlacementType placement()
The Availability Zone in which the cluster runs.
public Boolean keepJobFlowAliveWhenNoSteps()
Specifies whether the cluster should remain available after completing all steps.
public 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.
public String hadoopVersion()
The Hadoop version for the cluster. Valid inputs are "0.18" (deprecated), "0.20" (deprecated), "0.20.205" (deprecated), "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.
public String 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, the cluster launches in the normal Amazon Web Services cloud, outside of an Amazon VPC, if the account launching the cluster supports EC2 Classic networks in the region where the cluster launches.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for clusters launched in an Amazon VPC.
Amazon VPC currently does not support cluster compute quadruple extra large (cc1.4xlarge) instances. Thus you cannot specify the cc1.4xlarge instance type for clusters launched in an Amazon VPC.
public List<String> ec2SubnetIds()
Applies to clusters that use the instance fleet configuration. When multiple 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 versions 4.8.0 and later, excluding 5.0.x versions.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
public String emrManagedMasterSecurityGroup()
The identifier of the Amazon EC2 security group for the master node.
public String emrManagedSlaveSecurityGroup()
The identifier of the Amazon EC2 security group for the slave nodes.
public String serviceAccessSecurityGroup()
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
public List<String> additionalMasterSecurityGroups()
A list of additional Amazon EC2 security group IDs for the master node.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public List<String> additionalSlaveSecurityGroups()
A list of additional Amazon EC2 security group IDs for the slave nodes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public JobFlowInstancesConfig.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<JobFlowInstancesConfig.Builder,JobFlowInstancesConfig>
public static JobFlowInstancesConfig.Builder builder()
public static Class<? extends JobFlowInstancesConfig.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.