View a markdown version of this page

AWS::Batch::ComputeEnvironment CapacityReservations - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::Batch::ComputeEnvironment CapacityReservations

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

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "ReservationGroupArn" : String, "ReservationPreference" : String }

Properties

ReservationGroupArn

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

Required: No

Type: String

Update requires: No interruption

ReservationPreference

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.

Required: No

Type: String

Update requires: No interruption