Module Values.PutAutoScalingPolicyOutputSource

Creates or updates an automatic scaling policy for a core instance group or task instance group in an Amazon EMR cluster. The automatic scaling policy defines how an instance group dynamically adds and terminates Amazon EC2 instances in response to the value of a CloudWatch metric.

Sourcetype nonrec t = {
  1. clusterId : ClusterId.t option;
    (*

    Specifies the ID of a cluster. The instance group to which the automatic scaling policy is applied is within this cluster.

    *)
  2. instanceGroupId : InstanceGroupId.t option;
    (*

    Specifies the ID of the instance group to which the scaling policy is applied.

    *)
  3. autoScalingPolicy : AutoScalingPolicyDescription.t option;
    (*

    The automatic scaling policy definition.

    *)
  4. clusterArn : ArnType.t option;
    (*

    The Amazon Resource Name (ARN) of the cluster.

    *)
}
Sourcetype nonrec error = [
  1. | `Unknown_operation_error of string * string option
]
Sourceval make : ?clusterId:??? -> ?instanceGroupId:??? -> ?autoScalingPolicy:??? -> ?clusterArn:??? -> unit -> t
Sourceval error_of_json : 'a -> Yojson.Safe.t -> [> `Unknown_operation_error of 'a * string option ]
Sourceval error_of_xml : 'a -> Awso.Xml.t -> [> `Unknown_operation_error of 'a * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ClusterId.t | `Structure of (string * [> `List of [> `Structure of (string * [> `String of String_.t | `Structure of (string * [> `Enum of string | `Structure of (string * [> `Double of NonNegativeDouble.t | `Enum of string | `Integer of Integer.t | `List of [> `Structure of (string * [> `String of String_.t ]) list ] list | `String of String_.t ]) list ]) list ]) list ] list | `Structure of (string * [> `Enum of string | `Integer of Integer.t | `Structure of (string * [> `Enum of string | `String of String_.t ]) list ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t