EC2 / Client / disable_capacity_manager

disable_capacity_manager

EC2.Client.disable_capacity_manager(**kwargs)

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.

See also: AWS API Documentation

Request Syntax

response = client.disable_capacity_manager(
    DryRun=True|False,
    ClientToken='string'
)
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.

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

    • OrganizationsAccess (boolean) –

      Indicates whether Organizations access is enabled. This will be false after disabling Capacity Manager.