Module Values.DetachInstancesQuerySource

Removes one or more instances from the specified Auto Scaling group. After the instances are detached, you can manage them independent of the Auto Scaling group. If you do not specify the option to decrement the desired capacity, Amazon EC2 Auto Scaling launches instances to replace the ones that are detached. If there is a Classic Load Balancer attached to the Auto Scaling group, the instances are deregistered from the load balancer. If there are target groups attached to the Auto Scaling group, the instances are deregistered from the target groups. For more information, see Detach or attach instances in the Amazon EC2 Auto Scaling User Guide.

Sourcetype nonrec t = {
  1. instanceIds : InstanceIds.t option;
    (*

    The IDs of the instances. You can specify up to 20 instances.

    *)
  2. autoScalingGroupName : XmlStringMaxLen255.t;
    (*

    The name of the Auto Scaling group.

    *)
  3. shouldDecrementDesiredCapacity : ShouldDecrementDesiredCapacity.t;
    (*

    Indicates whether the Auto Scaling group decrements the desired capacity value by the number of instances detached.

    *)
}
Sourceval context_ : string
Sourceval make : ?instanceIds:??? -> autoScalingGroupName:XmlStringMaxLen255.t -> shouldDecrementDesiredCapacity:ShouldDecrementDesiredCapacity.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of ShouldDecrementDesiredCapacity.t | `List of [> `String of XmlStringMaxLen19.t ] list | `String of XmlStringMaxLen255.t ]) 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