TagResource
Adds the specified tags to the specified resource. If a tag key already exists, the existing value is replaced with the new value.
Request Syntax
POST /tags/resourceARN
HTTP/1.1
Content-type: application/json
{
"tags": {
"string
" : "string
"
}
}
URI Request Parameters
The request uses the following URI parameters.
- resourceARN
-
The Amazon Resource Name (ARN) of the bot, bot alias, or bot channel to tag.
Length Constraints: Minimum length of 1. Maximum length of 1011.
Required: Yes
Request Body
The request accepts the following data in JSON format.
-
A list of tag keys to add to the resource. If a tag key already exists, the existing value is replaced with the new value.
Type: String to string map
Map Entries: Minimum number of 0 items. Maximum number of 200 items.
Key Length Constraints: Minimum length of 1. Maximum length of 128.
Value Length Constraints: Minimum length of 0. Maximum length of 256.
Required: Yes
Response Syntax
HTTP/1.1 200
Response Elements
If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body.
Errors
For information about the errors that are common to all actions, see Common Errors.
- InternalServerException
-
The service encountered an unexpected condition. Try your request again.
HTTP Status Code: 500
- ResourceNotFoundException
-
You asked to describe a resource that doesn't exist. Check the resource that you are requesting and try again.
HTTP Status Code: 404
- ThrottlingException
-
Your request rate is too high. Reduce the frequency of requests.
HTTP Status Code: 429
- ValidationException
-
One of the input parameters in your request isn't valid. Check the parameters and try your request again.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: