def detach_instances(options = {})
      batch = []
      options = options.merge(auto_scaling_group_name: @name)
      resp = @client.detach_instances(options)
      resp.data.activities.each do |a|
        batch << Activity.new(
          id: a.activity_id,
          data: a,
          client: @client
        )
      end
      Activity::Collection.new([batch], size: batch.size)
    end
def detach_instances(options = {})
      batch = []
      options = options.merge(auto_scaling_group_name: @name)
      resp = @client.detach_instances(options)
      resp.data.activities.each do |a|
        batch << Activity.new(
          id: a.activity_id,
          data: a,
          client: @client
        )
      end
      Activity::Collection.new([batch], size: batch.size)
    end
@example Request syntax with placeholder values

   activity = auto_scaling_group.detach_instances({
     instance_ids: ["XmlStringMaxLen19"],
     should_decrement_desired_capacity: false, # required
   })
 @param [Hash] options ({})
 @option options [Array<String>] :instance_ids
   The IDs of the instances. You can specify up to 20 instances.
 @option options [required, Boolean] :should_decrement_desired_capacity
   Indicates whether the Auto Scaling group decrements the desired
   capacity value by the number of instances detached.
 @return [Activity::Collection]