Sélectionner vos préférences de cookies

Nous utilisons des cookies essentiels et des outils similaires qui sont nécessaires au fonctionnement de notre site et à la fourniture de nos services. Nous utilisons des cookies de performance pour collecter des statistiques anonymes afin de comprendre comment les clients utilisent notre site et d’apporter des améliorations. Les cookies essentiels ne peuvent pas être désactivés, mais vous pouvez cliquer sur « Personnaliser » ou « Refuser » pour refuser les cookies de performance.

Si vous êtes d’accord, AWS et les tiers approuvés utiliseront également des cookies pour fournir des fonctionnalités utiles au site, mémoriser vos préférences et afficher du contenu pertinent, y compris des publicités pertinentes. Pour accepter ou refuser tous les cookies non essentiels, cliquez sur « Accepter » ou « Refuser ». Pour effectuer des choix plus détaillés, cliquez sur « Personnaliser ».

ModifyInstanceGroups

Mode de mise au point
ModifyInstanceGroups - Amazon EMR
Cette page n'a pas été traduite dans votre langue. Demande de traduction

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.

Request Syntax

{ "ClusterId": "string", "InstanceGroups": [ { "Configurations": [ { "Classification": "string", "Configurations": [ "Configuration" ], "Properties": { "string" : "string" } } ], "EC2InstanceIdsToTerminate": [ "string" ], "InstanceCount": number, "InstanceGroupId": "string", "ReconfigurationType": "string", "ShrinkPolicy": { "DecommissionTimeout": number, "InstanceResizePolicy": { "InstancesToProtect": [ "string" ], "InstancesToTerminate": [ "string" ], "InstanceTerminationTimeout": number } } } ] }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

ClusterId

The ID of the cluster to which the instance group belongs.

Type: String

Required: No

InstanceGroups

Instance groups to change.

Type: Array of InstanceGroupModifyConfig objects

Required: No

Response Elements

If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalServerError

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

HTTP Status Code: 400

Examples

Example

This example illustrates one usage of ModifyInstanceGroups.

Sample Request

POST / HTTP/1.1 Content-Type: application/x-amz-json-1.1 X-Amz-Target: ElasticMapReduce.ModifyInstanceGroups Content-Length: 77 User-Agent: aws-sdk-ruby/1.9.2 ruby/1.9.3 i386-mingw32 Host: us-east-1.elasticmapreduce.amazonaws.com X-Amz-Date: 20130716T205843Z X-Amz-Content-Sha256: bb1af3d0c6c6a1a09f21ccd7f04a0e2e6c9ce5b5810b0f6777560fe4f81bda8c Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20130716/us-east-1/elasticmapreduce/aws4_request, SignedHeaders=content-length;content-type;host;user-agent;x-amz-content-sha256;x-amz-date;x-amz-target, Signature=17bbbb4448a1f47a14d5657445e9de5cadf16bed58b850585f80865882133b33 Accept: */* {"InstanceGroups": [{ "InstanceGroupId": "ig-1S8NWT31S2OVG", "InstanceCount": 5 }]}

Sample Response

HTTP/1.1 200 OK x-amzn-RequestId: 80a74808-ee5a-11e2-90db-69a5154aeb8d Content-Type: application/x-amz-json-1.1 Content-Length: 0 Date: Tue, 16 Jul 2013 20:58:44 GMT

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

Rubrique suivante :

PutAutoScalingPolicy

Rubrique précédente :

ModifyInstanceFleet
ConfidentialitéConditions d'utilisation du sitePréférences de cookies
© 2025, Amazon Web Services, Inc. ou ses affiliés. Tous droits réservés.