CostExplorer / Client / update_cost_allocation_tags_status

update_cost_allocation_tags_status#

CostExplorer.Client.update_cost_allocation_tags_status(**kwargs)#

Updates status for cost allocation tags in bulk, with maximum batch size of 20. If the tag status that’s updated is the same as the existing tag status, the request doesn’t fail. Instead, it doesn’t have any effect on the tag status (for example, activating the active tag).

See also: AWS API Documentation

Request Syntax

response = client.update_cost_allocation_tags_status(
    CostAllocationTagsStatus=[
        {
            'TagKey': 'string',
            'Status': 'Active'|'Inactive'
        },
    ]
)
Parameters:

CostAllocationTagsStatus (list) –

[REQUIRED]

The list of CostAllocationTagStatusEntry objects that are used to update cost allocation tags status for this request.

  • (dict) –

    The cost allocation tag status. The status of a key can either be active or inactive.

    • TagKey (string) – [REQUIRED]

      The key for the cost allocation tag.

    • Status (string) – [REQUIRED]

      The status of a cost allocation tag.

Return type:

dict

Returns:

Response Syntax

{
    'Errors': [
        {
            'TagKey': 'string',
            'Code': 'string',
            'Message': 'string'
        },
    ]
}

Response Structure

  • (dict) –

    • Errors (list) –

      A list of UpdateCostAllocationTagsStatusError objects with error details about each cost allocation tag that can’t be updated. If there’s no failure, an empty array returns.

      • (dict) –

        Gives a detailed description of the result of an action. It’s on each cost allocation tag entry in the request.

        • TagKey (string) –

          The key for the cost allocation tag.

        • Code (string) –

          An error code representing why the action failed on this entry.

        • Message (string) –

          A message explaining why the action failed on this entry.

Exceptions