TagResource
Adds or updates tags on the specified resource.
Request Syntax
POST /tags/ResourceArn/add 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 resource.
Length Constraints: Minimum length of 0. Maximum length of 256.
Pattern:
arn:aws[a-z0-9-]{0,30}:backup-external:[a-z0-9-]{1,30}:[0-9]{12}:[a-zA-Z0-9-]{1,32}[:/][a-zA-Z0-9_.:/-]{1,128}Required: Yes
Request Body
The request accepts the following data in JSON format.
- Tags
-
The tags to add or update on the resource.
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.
Key Pattern:
[\p{L}\p{Z}\p{N}_.:/=+\-@]*Value Length Constraints: Minimum length of 0. Maximum length of 256.
Value Pattern:
[\p{L}\p{Z}\p{N}_.:/=+\-@]*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 Error Types.
- AccessDeniedException
-
The request was denied because you do not have permission to perform the requested operation.
HTTP Status Code: 403
- ConflictException
-
The request conflicts with the current state of the specified resource.
HTTP Status Code: 409
- InternalServerException
-
The request failed because of an internal server error.
HTTP Status Code: 500
- ResourceNotFoundException
-
The specified resource was not found.
HTTP Status Code: 404
- ServiceQuotaExceededException
-
The request would exceed a service quota.
HTTP Status Code: 402
- ThrottlingException
-
The request was denied because the request rate is too high.
HTTP Status Code: 429
- ValidationException
-
The request contains invalid parameters.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: