Class: Aws::Batch::Types::CapacityReservationRequest

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-batch/types.rb

Overview

The capacity reservation configuration for Amazon ECS Managed Instances. Use this to target On-Demand Capacity Reservations or Reserved Instances.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#reservation_group_arnString

The Amazon Resource Name (ARN) of the capacity reservation group to target.

Returns:

  • (String)


338
339
340
341
342
343
# File 'lib/aws-sdk-batch/types.rb', line 338

class CapacityReservationRequest < Struct.new(
  :reservation_group_arn,
  :reservation_preference)
  SENSITIVE = []
  include Aws::Structure
end

#reservation_preferenceString

The capacity reservation preference. Valid values:

  • RESERVATIONS_ONLY — Use only capacity reservations.

  • RESERVATIONS_FIRST — Prefer capacity reservations but fall back to On-Demand if unavailable.

  • RESERVATIONS_EXCLUDED — Do not use capacity reservations.

Returns:

  • (String)


338
339
340
341
342
343
# File 'lib/aws-sdk-batch/types.rb', line 338

class CapacityReservationRequest < Struct.new(
  :reservation_group_arn,
  :reservation_preference)
  SENSITIVE = []
  include Aws::Structure
end