Note: You are viewing the documentation for an older major version of the AWS CLI (version 1).

AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. For more information see the AWS CLI version 2 installation instructions and migration guide.

[ aws . ce ]

update-cost-allocation-tags-status

Description

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

See 'aws help' for descriptions of global parameters.

Synopsis

  update-cost-allocation-tags-status
--cost-allocation-tags-status <value>
[--cli-input-json <value>]
[--generate-cli-skeleton <value>]

Options

--cost-allocation-tags-status (list)

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

(structure)

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

TagKey -> (string)

The key for the cost allocation tag.

Status -> (string)

The status of a cost allocation tag.

Shorthand Syntax:

TagKey=string,Status=string ...

JSON Syntax:

[
  {
    "TagKey": "string",
    "Status": "Active"|"Inactive"
  }
  ...
]

--cli-input-json (string) Performs service operation based on the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, the CLI values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally.

--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command.

See 'aws help' for descriptions of global parameters.

Output

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.

(structure)

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.