Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class ModifyInstanceGroupsCommandProtected

ModifyInstanceGroups modifies the number of nodes and configuration settings of an instance group. The input parameters include the new target instance count for the group and the instance group ID. The call will either succeed or fail atomically.

Example

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

import { EMRClient, ModifyInstanceGroupsCommand } from "@aws-sdk/client-emr"; // ES Modules import
// const { EMRClient, ModifyInstanceGroupsCommand } = require("@aws-sdk/client-emr"); // CommonJS import
const client = new EMRClient(config);
const input = { // ModifyInstanceGroupsInput
ClusterId: "STRING_VALUE",
InstanceGroups: [ // InstanceGroupModifyConfigList
{ // InstanceGroupModifyConfig
InstanceGroupId: "STRING_VALUE", // required
InstanceCount: Number("int"),
EC2InstanceIdsToTerminate: [ // EC2InstanceIdsToTerminateList
"STRING_VALUE",
],
ShrinkPolicy: { // ShrinkPolicy
DecommissionTimeout: Number("int"),
InstanceResizePolicy: { // InstanceResizePolicy
InstancesToTerminate: [ // EC2InstanceIdsList
"STRING_VALUE",
],
InstancesToProtect: [
"STRING_VALUE",
],
InstanceTerminationTimeout: Number("int"),
},
},
ReconfigurationType: "OVERWRITE" || "MERGE",
Configurations: [ // ConfigurationList
{ // Configuration
Classification: "STRING_VALUE",
Configurations: [
{
Classification: "STRING_VALUE",
Configurations: "<ConfigurationList>",
Properties: { // StringMap
"<keys>": "STRING_VALUE",
},
},
],
Properties: {
"<keys>": "STRING_VALUE",
},
},
],
},
],
};
const command = new ModifyInstanceGroupsCommand(input);
const response = await client.send(command);
// {};

Param

ModifyInstanceGroupsCommandInput

Returns

ModifyInstanceGroupsCommandOutput

See

Throws

InternalServerError (server fault)

Indicates that an error occurred while processing the request and that the request was not completed.

Throws

EMRServiceException

Base exception class for all service exceptions from EMR service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods