@Generated(value="software.amazon.awssdk:codegen") public final class PlacementGroupConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PlacementGroupConfig.Builder,PlacementGroupConfig>
Placement group configuration for an Amazon EMR cluster. The configuration specifies the placement strategy that can be applied to instance roles during cluster creation.
To use this configuration, consider attaching managed policy AmazonElasticMapReducePlacementGroupPolicy to the EMR role.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PlacementGroupConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PlacementGroupConfig.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
InstanceRoleType |
instanceRole()
Role of the instance in the cluster.
|
String |
instanceRoleAsString()
Role of the instance in the cluster.
|
PlacementGroupStrategy |
placementStrategy()
EC2 Placement Group strategy associated with instance role.
|
String |
placementStrategyAsString()
EC2 Placement Group strategy associated with instance role.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PlacementGroupConfig.Builder> |
serializableBuilderClass() |
PlacementGroupConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final InstanceRoleType instanceRole()
Role of the instance in the cluster.
Starting with Amazon EMR version 5.23.0, the only supported instance role is MASTER.
If the service returns an enum value that is not available in the current SDK version, instanceRole will
return InstanceRoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
instanceRoleAsString().
Starting with Amazon EMR version 5.23.0, the only supported instance role is MASTER.
InstanceRoleTypepublic final String instanceRoleAsString()
Role of the instance in the cluster.
Starting with Amazon EMR version 5.23.0, the only supported instance role is MASTER.
If the service returns an enum value that is not available in the current SDK version, instanceRole will
return InstanceRoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
instanceRoleAsString().
Starting with Amazon EMR version 5.23.0, the only supported instance role is MASTER.
InstanceRoleTypepublic final PlacementGroupStrategy placementStrategy()
EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR version 5.23.0, the only supported placement strategy is SPREAD for the
MASTER instance role.
If the service returns an enum value that is not available in the current SDK version, placementStrategy
will return PlacementGroupStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from placementStrategyAsString().
Starting with Amazon EMR version 5.23.0, the only supported placement strategy is SPREAD for
the MASTER instance role.
PlacementGroupStrategypublic final String placementStrategyAsString()
EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR version 5.23.0, the only supported placement strategy is SPREAD for the
MASTER instance role.
If the service returns an enum value that is not available in the current SDK version, placementStrategy
will return PlacementGroupStrategy.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from placementStrategyAsString().
Starting with Amazon EMR version 5.23.0, the only supported placement strategy is SPREAD for
the MASTER instance role.
PlacementGroupStrategypublic PlacementGroupConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PlacementGroupConfig.Builder,PlacementGroupConfig>public static PlacementGroupConfig.Builder builder()
public static Class<? extends PlacementGroupConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.