AWS CodeDeploy
API Reference (API Version 2014-10-06)

ListTagsForResource

Returns a list of tags for the resource identified by a specified ARN. Tags are used to organize and categorize your CodeDeploy resources.

Request Syntax

{ "NextToken": "string", "ResourceArn": "string" }

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

The request accepts the following data in JSON format.

NextToken

An identifier returned from the previous ListTagsForResource call. It can be used to return the next set of applications in the list.

Type: String

Required: No

ResourceArn

The ARN of a CodeDeploy resource. ListTagsForResource returns all the tags associated with the resource that is identified by the ResourceArn.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 1011.

Required: Yes

Response Syntax

{ "NextToken": "string", "Tags": [ { "Key": "string", "Value": "string" } ] }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

NextToken

If a large amount of information is returned, an identifier is also returned. It can be used in a subsequent list application revisions call to return the next set of application revisions in the list.

Type: String

Tags

A list of tags returned by ListTagsForResource. The tags are associated with the resource identified by the input ResourceArn parameter.

Type: Array of Tag objects

Errors

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

ArnNotSupportedException

The specified ARN is not supported. For example, it might be an ARN for a resource that is not expected.

HTTP Status Code: 400

InvalidArnException

The specified ARN is not in a valid format.

HTTP Status Code: 400

ResourceArnRequiredException

The ARN of a resource is required, but was not found.

HTTP Status Code: 400

See Also

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