Tags resource-arn - AWS IoT 1-Click

Tags resource-arn

Adds, modifies or deletes one or more resource tags (metadata key/value pairs associated with a resource) given the ARN of a resource. For more information, see AWS Tagging Strategies

URI

/tags/resource-arn

HTTP methods

GET

Operation ID: ListTagsForResource

Lists the tags associated with the specified resource ARN.

Path parameters
NameTypeRequiredDescription
resource-arnStringTrue

The ARN of the resource.

Responses
Status codeResponse modelDescription
200tagsModel

200 response

POST

Operation ID: TagResource

Adds or updates the tags associated with the resource ARN. See AWS IoT 1-Click Service Limits for the maximum number of tags allowed per resource.

Path parameters
NameTypeRequiredDescription
resource-arnStringTrue

The ARN of the resource.

Responses
Status codeResponse modelDescription
204None

204 response

DELETE

Operation ID: UntagResource

Using tag keys, deletes the tags (key/value pairs) associated with the specified resource ARN.

Path parameters
NameTypeRequiredDescription
resource-arnStringTrue

The ARN of the resource.

Query parameters
NameTypeRequiredDescription
tagKeysStringTrue

A collections of tag keys. For example, {"key1","key2"}

Responses
Status codeResponse modelDescription
204None

204 response

Schemas

Request bodies

{ "tags": { } }

Response bodies

{ "tags": { } }

Properties

tagsModel

Contains tag information (resource metadata key/value pairs).

PropertyTypeRequiredDescription
tags

object

True

A collection of key/value pairs defining the resource tags. For example, { "tags": {"key1": "value1", "key2": "value2"} }. For more information, see AWS Tagging Strategies.

See also

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

ListTagsForResource

TagResource

UntagResource