@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PlacementGroupConfig extends Object implements Serializable, Cloneable, StructuredPojo
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 Amazon EMR role.
Constructor and Description |
---|
PlacementGroupConfig() |
Modifier and Type | Method and Description |
---|---|
PlacementGroupConfig |
clone() |
boolean |
equals(Object obj) |
String |
getInstanceRole()
Role of the instance in the cluster.
|
String |
getPlacementStrategy()
Amazon EC2 Placement Group strategy associated with instance role.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInstanceRole(String instanceRole)
Role of the instance in the cluster.
|
void |
setPlacementStrategy(String placementStrategy)
Amazon EC2 Placement Group strategy associated with instance role.
|
String |
toString()
Returns a string representation of this object.
|
PlacementGroupConfig |
withInstanceRole(InstanceRoleType instanceRole)
Role of the instance in the cluster.
|
PlacementGroupConfig |
withInstanceRole(String instanceRole)
Role of the instance in the cluster.
|
PlacementGroupConfig |
withPlacementStrategy(PlacementGroupStrategy placementStrategy)
Amazon EC2 Placement Group strategy associated with instance role.
|
PlacementGroupConfig |
withPlacementStrategy(String placementStrategy)
Amazon EC2 Placement Group strategy associated with instance role.
|
public void setInstanceRole(String instanceRole)
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER
.
instanceRole
- Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER
.
InstanceRoleType
public String getInstanceRole()
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER
.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER
.
InstanceRoleType
public PlacementGroupConfig withInstanceRole(String instanceRole)
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER
.
instanceRole
- Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER
.
InstanceRoleType
public PlacementGroupConfig withInstanceRole(InstanceRoleType instanceRole)
Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER
.
instanceRole
- Role of the instance in the cluster.
Starting with Amazon EMR release 5.23.0, the only supported instance role is MASTER
.
InstanceRoleType
public void setPlacementStrategy(String placementStrategy)
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD
for the
MASTER
instance role.
placementStrategy
- Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD
for
the MASTER
instance role.
PlacementGroupStrategy
public String getPlacementStrategy()
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD
for the
MASTER
instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD
for
the MASTER
instance role.
PlacementGroupStrategy
public PlacementGroupConfig withPlacementStrategy(String placementStrategy)
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD
for the
MASTER
instance role.
placementStrategy
- Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD
for
the MASTER
instance role.
PlacementGroupStrategy
public PlacementGroupConfig withPlacementStrategy(PlacementGroupStrategy placementStrategy)
Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD
for the
MASTER
instance role.
placementStrategy
- Amazon EC2 Placement Group strategy associated with instance role.
Starting with Amazon EMR release 5.23.0, the only supported placement strategy is SPREAD
for
the MASTER
instance role.
PlacementGroupStrategy
public String toString()
toString
in class Object
Object.toString()
public PlacementGroupConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Privacy | Site terms | Cookie preferences | © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.