v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1453313285.5 KB

Creates or updates an automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates EC2 instances in response to the value of a CloudWatch metric.

post/#X-Amz-Target=ElasticMapReduce.PutAutoScalingPolicy

Headers

X-Amz-Target'ElasticMapReduce.PutAutoScalingPolicy' required

Request body

ClusterIdstring required

Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.

InstanceGroupIdstring required

Specifies the ID of the instance group to which the automatic scaling policy is applied.

Response

Success

ClusterIdstring

Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.

InstanceGroupIdstring

Specifies the ID of the instance group to which the scaling policy is applied.

ClusterArnstring

The Amazon Resource Name (ARN) of the cluster.