Skip to content

EC2  >  Operations  >  enable_capacity_manager

enable_capacity_manager

Operation

enable_capacity_manager async

enable_capacity_manager(input: EnableCapacityManagerInput, plugins: list[Plugin] | None = None) -> EnableCapacityManagerOutput

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.

Parameters:

Name Type Description Default
input EnableCapacityManagerInput

An instance of EnableCapacityManagerInput.

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
EnableCapacityManagerOutput

An instance of EnableCapacityManagerOutput.

Input

EnableCapacityManagerInput dataclass

Bases: _SerdeShape

Dataclass for EnableCapacityManagerInput 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.

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

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.

Output

EnableCapacityManagerOutput dataclass

Bases: _SerdeShape

Dataclass for EnableCapacityManagerOutput structure.

Attributes

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

The current status of Capacity Manager after the enable operation.

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

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

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.