Skip to content

Deletes a capacity provider

Description

Deletes a capacity provider. Before you delete a capacity provider, disassociate all agent runtimes and runtime versions that reference it. If any references remain, the operation fails.

Usage

bedrockagentcorecontrol_delete_capacity_provider(capacityProviderId,
  clientToken)

Arguments

  • capacityProviderId

    [required] The unique identifier of the capacity provider to delete.

  • clientToken

    A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If you don't specify this field, a value is randomly generated for you. If this token matches a previous request, the service ignores the request, but doesn't return an error. For more information, see Ensuring idempotency.

Value

A list with the following syntax:

list(
  capacityProviderId = "string",
  status = "CREATING"|"CREATE_FAILED"|"UPDATING"|"UPDATE_FAILED"|"READY"|"DELETING"|"DELETE_FAILED"
)

Request syntax

svc$delete_capacity_provider(
  capacityProviderId = "string",
  clientToken = "string"
)