Get a list of cost allocation tags. All inputs in the API are optional and serve as filters. By default, all cost allocation tags are returned.
See also: AWS API Documentation
See ‘aws help’ for descriptions of global parameters.
list-cost-allocation-tags
[--status <value>]
[--tag-keys <value>]
[--type <value>]
[--next-token <value>]
[--max-results <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
--status
(string)
The status of cost allocation tag keys that are returned for this request.
Possible values:
Active
Inactive
--tag-keys
(list)
The list of cost allocation tag keys that are returned for this request.
(string)
Syntax:
"string" "string" ...
--type
(string)
The type of
CostAllocationTag
object that are returned for this request. TheAWSGenerated
type tags are tags that Amazon Web Services defines and applies to support Amazon Web Services resources for cost allocation purposes. TheUserDefined
type tags are tags that you define, create, and apply to resources.Possible values:
AWSGenerated
UserDefined
--next-token
(string)
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.
--max-results
(integer)
The maximum number of objects that are returned for this request. By default, the request returns 100 results.
--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.
CostAllocationTags -> (list)
A list of cost allocation tags that includes the detailed metadata for each one.
(structure)
The cost allocation tag structure. This includes detailed metadata for the
CostAllocationTag
object.TagKey -> (string)
The key for the cost allocation tag.
Type -> (string)
The type of cost allocation tag. You can use
AWSGenerated
orUserDefined
type tags.AWSGenerated
type tags are tags that Amazon Web Services defines and applies to support Amazon Web Services resources for cost allocation purposes.UserDefined
type tags are tags that you define, create, and apply to resources.Status -> (string)
The status of a cost allocation tag.
NextToken -> (string)
The token to retrieve the next set of results. Amazon Web Services provides the token when the response from a previous call has more results than the maximum page size.