TagResource
Adds tags to an account access manager resource.
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
-
Specifies the ARN of the resource to add tags to.
Length Constraints: Minimum length of 49. Maximum length of 2048.
Pattern:
arn:[a-z0-9-]+:account-access:[a-z0-9]+(-[a-z0-9]+)*:[0-9]{12}:application/[a-zA-Z0-9-]+Required: Yes
Request Body
The request accepts the following data in JSON format.
-
Specifies the tags to add to the resource.
Type: String to string map
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.
- InternalServerException
-
An internal service error occurred. Try your request again later.
HTTP Status Code: 500
- ResourceNotFoundException
-
The specified resource does not exist. Verify that the resource identifier is correct and that the resource exists in the current Region.
HTTP Status Code: 404
- ThrottlingException
-
The request was denied due to request throttling. Try your request again later.
HTTP Status Code: 429
- ValidationException
-
The input does not satisfy the constraints specified by the service. Check your request parameters and retry the request.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: