capacity_managers
Creates, updates, deletes, gets or lists a capacity_managers resource.
Overview​
| Name | capacity_managers |
| Type | Resource |
| Id | aws.ec2.capacity_managers |
Fields​
The following fields are returned by SELECT queries:
SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
disable_capacity_manager | exec | region | DryRun, ClientToken | Disables EC2 Capacity Manager for your account. This stops data ingestion and removes access to capacity analytics and optimization recommendations. Previously collected data is retained but no new data will be processed. |
enable_capacity_manager | exec | region | OrganizationsAccess, DryRun, ClientToken | Enables EC2 Capacity Manager for your account. This starts data ingestion for your EC2 capacity usage across On-Demand, Spot, and Capacity Reservations. Initial data processing may take several hours to complete. |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
ClientToken | string | Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. |
DryRun | boolean | Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation. |
OrganizationsAccess | boolean | Specifies whether to enable cross-account access for Amazon Web Services Organizations. When enabled, Capacity Manager can aggregate data from all accounts in your organization. Default is false. |
Lifecycle Methods​
- disable_capacity_manager
- enable_capacity_manager
Disables EC2 Capacity Manager for your account. This stops data ingestion and removes access to capacity analytics and optimization recommendations. Previously collected data is retained but no new data will be processed.
EXEC aws.ec2.capacity_managers.disable_capacity_manager
@region='{{ region }}' --required,
@DryRun={{ DryRun }},
@ClientToken='{{ ClientToken }}'
;
Enables EC2 Capacity Manager for your account. This starts data ingestion for your EC2 capacity usage across On-Demand, Spot, and Capacity Reservations. Initial data processing may take several hours to complete.
EXEC aws.ec2.capacity_managers.enable_capacity_manager
@region='{{ region }}' --required,
@OrganizationsAccess={{ OrganizationsAccess }},
@DryRun={{ DryRun }},
@ClientToken='{{ ClientToken }}'
;