capacity_manager_attributes
Creates, updates, deletes, gets or lists a capacity_manager_attributes resource.
Overview
| Name | capacity_manager_attributes |
| Type | Resource |
| Id | aws.ec2.capacity_manager_attributes |
Fields
The following fields are returned by SELECT queries:
- get_capacity_manager_attributes
| Name | Datatype | Description |
|---|---|---|
capacity_manager_status | string | The current status of Capacity Manager. |
data_export_count | integer | The number of active data export configurations for this account. This count includes all data exports regardless of their current delivery status. |
earliest_datapoint_timestamp | string | The timestamp of the earliest data point available in Capacity Manager, in milliseconds since epoch. This indicates how far back historical data is available for queries. |
ingestion_status | string | The current data ingestion status. Initial ingestion may take several hours after enabling Capacity Manager. |
ingestion_status_message | string | A descriptive message providing additional details about the current ingestion status. This may include error information if ingestion has failed or progress details during initial setup. |
latest_datapoint_timestamp | string | The timestamp of the most recent data point ingested by Capacity Manager, in milliseconds since epoch. This indicates how current your capacity data is. |
organizations_access | boolean | Indicates whether Organizations access is enabled for cross-account data aggregation. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_capacity_manager_attributes | select | region | DryRun | Retrieves the current configuration and status of EC2 Capacity Manager for your account, including enablement status, Organizations access settings, and data ingestion status. |
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) |
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. |
SELECT examples
- get_capacity_manager_attributes
Retrieves the current configuration and status of EC2 Capacity Manager for your account, including enablement status, Organizations access settings, and data ingestion status.
SELECT
capacity_manager_status,
data_export_count,
earliest_datapoint_timestamp,
ingestion_status,
ingestion_status_message,
latest_datapoint_timestamp,
organizations_access
FROM aws.ec2.capacity_manager_attributes
WHERE region = '{{ region }}' -- required
AND DryRun = '{{ DryRun }}'
;