Skip to content

Modify Instance Groups

emr_modify_instance_groups R Documentation

ModifyInstanceGroups modifies the number of nodes and configuration settings of an instance group

Description

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.

Usage

emr_modify_instance_groups(ClusterId, InstanceGroups)

Arguments

ClusterId

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

InstanceGroups

Instance groups to change.

Value

An empty list.

Request syntax

svc$modify_instance_groups(
  ClusterId = "string",
  InstanceGroups = list(
    list(
      InstanceGroupId = "string",
      InstanceCount = 123,
      EC2InstanceIdsToTerminate = list(
        "string"
      ),
      ShrinkPolicy = list(
        DecommissionTimeout = 123,
        InstanceResizePolicy = list(
          InstancesToTerminate = list(
            "string"
          ),
          InstancesToProtect = list(
            "string"
          ),
          InstanceTerminationTimeout = 123
        )
      ),
      ReconfigurationType = "OVERWRITE"|"MERGE",
      Configurations = list(
        list(
          Classification = "string",
          Configurations = list(),
          Properties = list(
            "string"
          )
        )
      )
    )
  )
)