Skip to main content

capacity_manager_attributes

Creates, updates, deletes, gets or lists a capacity_manager_attributes resource.

Overview

Namecapacity_manager_attributes
TypeResource
Idaws.ec2.capacity_manager_attributes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
capacity_manager_statusstringThe current status of Capacity Manager.
data_export_countintegerThe number of active data export configurations for this account. This count includes all data exports regardless of their current delivery status.
earliest_datapoint_timestampstringThe 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_statusstringThe current data ingestion status. Initial ingestion may take several hours after enabling Capacity Manager.
ingestion_status_messagestringA 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_timestampstringThe timestamp of the most recent data point ingested by Capacity Manager, in milliseconds since epoch. This indicates how current your capacity data is.
organizations_accessbooleanIndicates whether Organizations access is enabled for cross-account data aggregation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_capacity_manager_attributesselectregionDryRunRetrieves 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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
DryRunbooleanChecks 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

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 }}'
;