AWS IoT Analytics
AWS IoT Analytics Documentation (API Version 2017-11-27)

TagResource

Adds to or modifies the tags of the given resource. Tags are metadata which can be used to manage a resource.

Request Syntax

POST /tags?resourceArn=resourceArn HTTP/1.1 Content-type: application/json { "tags": [ { "key": "string", "value": "string" } ] }

URI Request Parameters

The request requires the following URI parameters.

resourceArn

The ARN of the resource whose tags will be modified.

Length Constraints: Minimum length of 20. Maximum length of 2048.

Request Body

The request accepts the following data in JSON format.

tags

The new or modified tags for the resource.

Type: Array of Tag objects

Array Members: Minimum number of 1 item. Maximum number of 50 items.

Required: Yes

Response Syntax

HTTP/1.1 204

Response Elements

If the action is successful, the service sends back an HTTP 204 response with an empty HTTP body.

Errors

For information about the errors that are common to all actions, see Common Errors.

InternalFailureException

There was an internal failure.

HTTP Status Code: 500

InvalidRequestException

The request was not valid.

HTTP Status Code: 400

LimitExceededException

The command caused an internal limit to be exceeded.

HTTP Status Code: 410

ResourceNotFoundException

A resource with the specified name could not be found.

HTTP Status Code: 404

ServiceUnavailableException

The service is temporarily unavailable.

HTTP Status Code: 503

ThrottlingException

The request was denied due to request throttling.

HTTP Status Code: 429

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: