View a markdown version of this page

AWS::Batch::ComputeEnvironment CapacityReservations - AWS CloudFormation

This is the new CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS 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 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