{ "description": "Tag Description" "tag_key": "TagKey", "version": 1, "tag_aliases": ["List of alias names for the tag_key"], "value_type": "Number/String/Enum", "tag_value_constraint": {"regex":""}/{"range": []}/{"min": 0}/{"max": 100}/{"values": []}, "mandatory": "Always/Never/Conditional", "default_value": "non-prod", "associated_tag_schemas": ["schema_ids"], "conditions": { "providers": ["gcp"], "provider_accounts": ["account2"], "service_type": ["Amazon EC2"], "category": ["Compute"](Note: Future support, not in phase 1) } }
Field | Description/Purpose | Mandatory | Data type | User input or generated |
---|---|---|---|---|
description | An optional description of the tag definition | No | String | User input |
tag_key | Unique key for the tag | Yes | String | User input |
version | Specifies the version of the tag definition | Yes | Integer | User input |
tag_aliases | List of alias names for the tag_key | No | List of Strings | User input |
tag_value_constraint | Constraint on tag value | No, see Tag definition value constraints for the detailed permitted value list. | As specified in Tag definition value constraints | User input |
value_type | The data type of tag_value | Yes | String, the following enums are allowed:
| User input |
default_value | Default value of Tag value | No | Any | User input |
associated_tag_schemas | List of all tag schemas this tag is associated with | No | List of Strings | User input |
mandatory | Specifies whether the tag_key/tag_key-value is mandatory | Yes | String, the following enums are allowed:
| User input |
conditions | Conditions when mandatory = "Conditional" | No, only when mandatory = "Conditional" | See "Tag definition conditions" on Defining Tag Definitions |
value_type | Purpose | Possible values of tag_value_constraint |
---|---|---|
String | Defines that the value of the tag should always be a string | You have these options, which are mutually exclusive:
|
Number | Defines that the value of the tag should always be a number | You have these options, which are mutually exclusive:
|
Enum | Defines that the value of the tag should have any of the values in the list | You have these options, which are mutually exclusive:
Note: Dynamic values are not currently available. |