CostExplorer / Client / delete_cost_category_definition

delete_cost_category_definition#

CostExplorer.Client.delete_cost_category_definition(**kwargs)#

Deletes a Cost Category. Expenses from this month going forward will no longer be categorized with this Cost Category.

See also: AWS API Documentation

Request Syntax

response = client.delete_cost_category_definition(
    CostCategoryArn='string'
)
Parameters:

CostCategoryArn (string) –

[REQUIRED]

The unique identifier for your Cost Category.

Return type:

dict

Returns:

Response Syntax

{
    'CostCategoryArn': 'string',
    'EffectiveEnd': 'string'
}

Response Structure

  • (dict) –

    • CostCategoryArn (string) –

      The unique identifier for your Cost Category.

    • EffectiveEnd (string) –

      The effective end date of the Cost Category as a result of deleting it. No costs after this date is categorized by the deleted Cost Category.

Exceptions

  • CostExplorer.Client.exceptions.ResourceNotFoundException

  • CostExplorer.Client.exceptions.LimitExceededException