Menu
Amazon CloudSearch
Developer Guide (API Version 2013-01-01)

AddTags

Description

Attaches resource tags to an Amazon CloudSearch domain. For more information, see Tagging Amazon CloudSearch Domains in the Amazon CloudSearch Developer Guide. Use the GET HTTP method with this action.

Request Parameters

ARN

Amazon Resource Name (ARN) for the Amazon CloudSearch domain to which you want to attach resource tags. For more information, see IAM ARNs in the AWS Identity and Access Management documentation.

Type: String

Required: Yes

TagList

List of resource tags for the specified Amazon CloudSearch domain.

Type: TagList, a list of strings specifying the resource tags for the domain.

Required: Yes

Response Elements

Not applicable. The AddTags action does not return a data structure.

Errors

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

Base

An error occurred while processing the request.

LimitExceededException

The request contains more than the allowed number and type of Amazon CloudSearch domain resources. Returns HTTP status code 409.

ValidationException

The request contains invalid input or is missing required input. Returns HTTP status code 400.

InternalException

The processing of the request failed because of an internal service error. Returns HTTP status code 500.

Example

The following example attaches a single resource tag with a tag key of project to the logs Amazon CloudSearch domain in the us-west-2 region:

Request

Copy
GET https://cloudsearch.us-west-2.amazonaws.com?Action=AddTags&ARN=arn:aws:cloudsearch:us-west-2:408853051459:domain/logs&TagList.Tag.1.Key='environment' &TagList.Tag.1.Value='production'&Version=2013-01-01

Response

Copy
<AddTagsResponse xmlns="http://cloudsearch.amazonaws.com/doc/2013-01-01/"> <ResponseMetadata> <RequestId>5646a576-d1ee-11e5-bc4d-27ea242580ce</RequestId> </ResponseMetadata> </AddTagsResponse>