Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AWS::Events::Rule CapacityProviderStrategyItem

Focus mode
AWS::Events::Rule CapacityProviderStrategyItem - AWS CloudFormation
Filter View

The details of a capacity provider strategy. To learn more, see CapacityProviderStrategyItem in the Amazon ECS API Reference.

Syntax

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

JSON

{ "Base" : Integer, "CapacityProvider" : String, "Weight" : Integer }

YAML

Base: Integer CapacityProvider: String Weight: Integer

Properties

Base

The base value designates how many tasks, at a minimum, to run on the specified capacity provider. Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.

Required: No

Type: Integer

Minimum: 0

Maximum: 100000

Update requires: No interruption

CapacityProvider

The short name of the capacity provider.

Required: Yes

Type: String

Minimum: 1

Maximum: 255

Update requires: No interruption

Weight

The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider. The weight value is taken into consideration after the base value, if defined, is satisfied.

Required: No

Type: Integer

Minimum: 0

Maximum: 1000

Update requires: No interruption

Examples

Set the CapacityProviderStrategyItem property

The following example sets the CapacityProviderStrategyItem property to run a minimum of 10 tasks on CapacityProvider1.

JSON

"CapacityProviderStrategy": { "Base": 10, "CapacityProvider": "CapacityProvider1", "Weight": 0 }

YAML

CapacityProviderStrategy Base: 10 CapacityProvider: CapacityProvider1 Weight: 0

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.