EC2 / Client / enable_capacity_manager

enable_capacity_manager

EC2.Client.enable_capacity_manager(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.enable_capacity_manager(
    OrganizationsAccess=True|False,
    DryRun=True|False,
    ClientToken='string'
)
Parameters:
  • 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.

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

  • ClientToken (string) –

    Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

    This field is autopopulated if not provided.

Return type:

dict

Returns:

Response Syntax

{
    'CapacityManagerStatus': 'enabled'|'disabled',
    'OrganizationsAccess': True|False
}

Response Structure

  • (dict) –

    • CapacityManagerStatus (string) –

      The current status of Capacity Manager after the enable operation.

    • OrganizationsAccess (boolean) –

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