Skip to content

Lambda  >  Operations  >  delete_capacity_provider

delete_capacity_provider

Operation

delete_capacity_provider async

delete_capacity_provider(input: DeleteCapacityProviderInput, plugins: list[Plugin] | None = None) -> DeleteCapacityProviderOutput

Deletes a capacity provider. You cannot delete a capacity provider that is currently being used by Lambda functions.

Parameters:

Name Type Description Default
input DeleteCapacityProviderInput

An instance of DeleteCapacityProviderInput.

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
DeleteCapacityProviderOutput

An instance of DeleteCapacityProviderOutput.

Input

DeleteCapacityProviderInput dataclass

Dataclass for DeleteCapacityProviderInput structure.

Attributes

capacity_provider_name class-attribute instance-attribute
capacity_provider_name: str | None = None

The name of the capacity provider to delete.

Output

DeleteCapacityProviderOutput dataclass

Dataclass for DeleteCapacityProviderOutput structure.

Attributes

capacity_provider instance-attribute
capacity_provider: CapacityProvider

Information about the deleted capacity provider.