Skip to content

EC2  >  Operations  >  disable_capacity_manager

disable_capacity_manager

Operation

disable_capacity_manager async

disable_capacity_manager(input: DisableCapacityManagerInput, plugins: list[Plugin] | None = None) -> DisableCapacityManagerOutput

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.

Parameters:

Name Type Description Default
input DisableCapacityManagerInput

An instance of DisableCapacityManagerInput.

required
plugins list[Plugin] | None

A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations.

None

Returns:

Type Description
DisableCapacityManagerOutput

An instance of DisableCapacityManagerOutput.

Input

DisableCapacityManagerInput dataclass

Bases: _SerdeShape

Dataclass for DisableCapacityManagerInput structure.

Attributes

client_token class-attribute instance-attribute
client_token: str | None = ...

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

This field is autopopulated if not provided.

dry_run class-attribute instance-attribute
dry_run: bool | None = ...

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.

Output

DisableCapacityManagerOutput dataclass

Bases: _SerdeShape

Dataclass for DisableCapacityManagerOutput structure.

Attributes

capacity_manager_status class-attribute instance-attribute
capacity_manager_status: str | None = ...

The current status of Capacity Manager after the disable operation.

organizations_access class-attribute instance-attribute
organizations_access: bool | None = ...

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

response_metadata class-attribute instance-attribute
response_metadata: ResponseMetadata = ...

Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.