Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class GetManagedScalingPolicyCommandProtected

Fetches the attached managed scaling policy for an Amazon EMR cluster.

Example

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

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

Param

GetManagedScalingPolicyCommandInput

Returns

GetManagedScalingPolicyCommandOutput

See

Throws

EMRServiceException

Base exception class for all service exceptions from EMR service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods