AWS::IAM::Role Tag
A structure that represents user-provided metadata that can be associated with an IAM resource. For more information about tagging, see Tagging IAM resources in the IAM User Guide.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
Properties
Key
-
The key name that can be used to look up or retrieve the associated value. For example,
Department
orCost Center
are common choices.Required: Yes
Type: String
Pattern:
[\p{L}\p{Z}\p{N}_.:/=+\-@]+
Minimum:
1
Maximum:
128
Update requires: No interruption
Value
-
The value associated with this tag. For example, tags with a key name of
Department
could have values such asHuman Resources
,Accounting
, andSupport
. Tags with a key name ofCost Center
might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values.Note
Amazon always interprets the tag
Value
as a single string. If you need to store an array, you can store comma-separated values in the string. However, you must interpret the value in your code.Required: Yes
Type: String
Pattern:
[\p{L}\p{Z}\p{N}_.:/=+\-@]*
Minimum:
0
Maximum:
256
Update requires: No interruption