@Generated(value="software.amazon.awssdk:codegen") public final class JobFlowInstancesConfig extends Object implements SdkPojo, Serializable, 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. 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 core and task nodes.
|
static JobFlowInstancesConfig.Builder |
builder() |
String |
ec2KeyName()
The name of the EC2 key pair that can be used to connect to the master node using SSH 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 core and task nodes.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
String |
hadoopVersion()
Applies only to Amazon EMR release versions earlier than 4.0.
|
boolean |
hasAdditionalMasterSecurityGroups()
Returns true if the AdditionalMasterSecurityGroups property was specified by the sender (it may be empty), or
false if the sender did not specify the value (it will be empty).
|
boolean |
hasAdditionalSlaveSecurityGroups()
Returns true if the AdditionalSlaveSecurityGroups property was specified by the sender (it may be empty), or
false if the sender did not specify the value (it will be empty).
|
boolean |
hasEc2SubnetIds()
Returns true if the Ec2SubnetIds property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasInstanceFleets()
Returns true if the InstanceFleets property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasInstanceGroups()
Returns true if the InstanceGroups property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
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.
|
String |
masterInstanceType()
The EC2 instance type of the master node.
|
PlacementType |
placement()
The Availability Zone in which the cluster runs.
|
List<SdkField<?>> |
sdkFields() |
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 core and task 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() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String masterInstanceType()
The EC2 instance type of the master node.
public final String slaveInstanceType()
The EC2 instance type of the core and task nodes.
public final Integer instanceCount()
The number of EC2 instances in the cluster.
public final boolean hasInstanceGroups()
public final 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.
You can use hasInstanceGroups() to see if a value was sent in this field.
public final boolean hasInstanceFleets()
public final 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.
You can use hasInstanceFleets() to see if a value was sent in this field.
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 final String ec2KeyName()
The name of the EC2 key pair that can be used to connect to the master node using SSH as the user called "hadoop."
public final PlacementType placement()
The Availability Zone in which the cluster runs.
public final Boolean keepJobFlowAliveWhenNoSteps()
Specifies whether the cluster should remain available after completing all steps.
public final 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 final String 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.
AmiVersion parameter is set in the RunJobFlow call, in which case the default
version of Hadoop for that AMI version is used.public final 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 and your account supports EC2-Classic, the cluster launches in EC2-Classic.
public final boolean hasEc2SubnetIds()
public final 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.
You can use hasEc2SubnetIds() to see if a value was sent in this field.
The instance fleet configuration is available only in Amazon EMR versions 4.8.0 and later, excluding 5.0.x versions.
public final String emrManagedMasterSecurityGroup()
The identifier of the Amazon EC2 security group for the master node.
public final String emrManagedSlaveSecurityGroup()
The identifier of the Amazon EC2 security group for the core and task nodes.
public final String serviceAccessSecurityGroup()
The identifier of the Amazon EC2 security group for the Amazon EMR service to access clusters in VPC private subnets.
public final boolean hasAdditionalMasterSecurityGroups()
public final 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.
You can use hasAdditionalMasterSecurityGroups() to see if a value was sent in this field.
public final boolean hasAdditionalSlaveSecurityGroups()
public final List<String> additionalSlaveSecurityGroups()
A list of additional Amazon EC2 security group IDs for the core and task nodes.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAdditionalSlaveSecurityGroups() to see if a value was sent in this field.
public JobFlowInstancesConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<JobFlowInstancesConfig.Builder,JobFlowInstancesConfig>public static JobFlowInstancesConfig.Builder builder()
public static Class<? extends JobFlowInstancesConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.