Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class PutManagedScalingPolicyCommandProtected

Creates or updates a managed scaling policy for an Amazon EMR cluster. The managed scaling policy defines the limits for resources, such as Amazon EC2 instances that can be added or terminated from a cluster. The policy only applies to the core and task nodes. The master node cannot be scaled after initial configuration.

Example

Use a bare-bones client and the command you need to make an API call.

import { EMRClient, PutManagedScalingPolicyCommand } from "@aws-sdk/client-emr"; // ES Modules import
// const { EMRClient, PutManagedScalingPolicyCommand } = require("@aws-sdk/client-emr"); // CommonJS import
const client = new EMRClient(config);
const input = { // PutManagedScalingPolicyInput
ClusterId: "STRING_VALUE", // required
ManagedScalingPolicy: { // ManagedScalingPolicy
ComputeLimits: { // ComputeLimits
UnitType: "InstanceFleetUnits" || "Instances" || "VCPU", // required
MinimumCapacityUnits: Number("int"), // required
MaximumCapacityUnits: Number("int"), // required
MaximumOnDemandCapacityUnits: Number("int"),
MaximumCoreCapacityUnits: Number("int"),
},
},
};
const command = new PutManagedScalingPolicyCommand(input);
const response = await client.send(command);
// {};

Param

PutManagedScalingPolicyCommandInput

Returns

PutManagedScalingPolicyCommandOutput

See

Throws

EMRServiceException

Base exception class for all service exceptions from EMR service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods