v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1456373564.1 KB

Creates a new capacity provider. Capacity providers are associated with an Amazon ECS cluster and are used in capacity provider strategies to facilitate cluster auto scaling.

Only capacity providers that use an Auto Scaling group can be created. Amazon ECS tasks on Fargate use the FARGATE and FARGATE_SPOT capacity providers. These providers are available to all accounts in the Amazon Web Services Regions that Fargate supports.

post/#X-Amz-Target=AmazonEC2ContainerServiceV20141113.CreateCapacityProvider

Headers

X-Amz-Target'AmazonEC2ContainerServiceV20141113.CreateCapacityProvider' required

Request body

namestring required

The name of the capacity provider. Up to 255 characters are allowed. They include letters (both upper and lowercase letters), numbers, underscores (_), and hyphens (-). The name can't be prefixed with "<code>aws</code>", "<code>ecs</code>", or "<code>fargate</code>".

Response

Success

All 56 operations