Menu
Amazon WorkSpaces Service
API Reference (API Version 2015-04-08)

CreateTags

Creates tags for a WorkSpace.

Request Syntax

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

Request Parameters

The request accepts the following data in JSON format.

ResourceId

The resource ID of the request.

Type: String

Length Constraints: Minimum length of 1.

Required: Yes

Tags

The tags of the request.

Type: Array of Tag objects

Required: Yes

Response Elements

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

Errors

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

InvalidParameterValuesException

One or more parameter values are not valid.

HTTP Status Code: 400

ResourceLimitExceededException

Your resource limits have been exceeded.

HTTP Status Code: 400

ResourceNotFoundException

The resource could not be 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: