EC2 / Client / get_capacity_manager_attributes

get_capacity_manager_attributes

EC2.Client.get_capacity_manager_attributes(**kwargs)

Retrieves the current configuration and status of EC2 Capacity Manager for your account, including enablement status, Organizations access settings, and data ingestion status.

See also: AWS API Documentation

Request Syntax

response = client.get_capacity_manager_attributes(
    DryRun=True|False
)
Parameters:

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.

Return type:

dict

Returns:

Response Syntax

{
    'CapacityManagerStatus': 'enabled'|'disabled',
    'OrganizationsAccess': True|False,
    'DataExportCount': 123,
    'IngestionStatus': 'initial-ingestion-in-progress'|'ingestion-complete'|'ingestion-failed',
    'IngestionStatusMessage': 'string',
    'EarliestDatapointTimestamp': datetime(2015, 1, 1),
    'LatestDatapointTimestamp': datetime(2015, 1, 1)
}

Response Structure

  • (dict) –

    • CapacityManagerStatus (string) –

      The current status of Capacity Manager.

    • OrganizationsAccess (boolean) –

      Indicates whether Organizations access is enabled for cross-account data aggregation.

    • DataExportCount (integer) –

      The number of active data export configurations for this account. This count includes all data exports regardless of their current delivery status.

    • IngestionStatus (string) –

      The current data ingestion status. Initial ingestion may take several hours after enabling Capacity Manager.

    • IngestionStatusMessage (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.

    • EarliestDatapointTimestamp (datetime) –

      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.

    • LatestDatapointTimestamp (datetime) –

      The timestamp of the most recent data point ingested by Capacity Manager, in milliseconds since epoch. This indicates how current your capacity data is.