ListTagsForResource - Amazon Elastic VMware Service

ListTagsForResource

Lists the tags for an Amazon EVS resource.

Request Syntax

{ "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.

Note

In the following list, the required parameters are described first.

resourceArn

The Amazon Resource Name (ARN) that identifies the resource to list tags for.

Type: String

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

Pattern: arn:aws:evs:[a-z]{2}-[a-z]+-[0-9]:[0-9]{12}:(?:environment|subscription)/[a-zA-Z0-9_-]+

Required: Yes

Response Syntax

{ "tags": { "string" : "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.

tags

The tags for the resource.

Type: String to string map

Key Length Constraints: Minimum length of 1. Maximum length of 128.

Key Pattern: [\w.:/=+-@]+

Value Length Constraints: Minimum length of 0. Maximum length of 256.

Value Pattern: [\w.:/=+-@]+|

Errors

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

ResourceNotFoundException

A service resource associated with the request could not be found. The resource might not be specified correctly, or it may have a state of DELETED.

message

Describes the error encountered.

resourceId

The ID of the resource that could not be found.

resourceType

The type of the resource that is associated with the error.

HTTP Status Code: 400

See Also

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