[ 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 | --cli-input-yaml]
[--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 | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those 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. This may not be specified along with --cli-input-yaml.

--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. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. 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.