CreateTags
Creates the specified tags for the specified WorkSpaces resource.
Request Syntax
{
"ResourceId": "string",
"Tags": [
{
"Key": "string",
"Value": "string"
}
]
}
Request Parameters
The request accepts the following data in JSON format.
- ResourceId
-
The identifier of the WorkSpaces resource. The supported resource types are WorkSpaces, registered directories, images, custom bundles, IP access control groups, connection aliases, agentic persona configurations, agentic contexts (Markdown content files for agents), WorkSpace-enforced policies, and agent-enforced policies.
Type: String
Length Constraints: Minimum length of 1.
Required: Yes
- Tags
-
The tags. Each WorkSpaces resource can have a maximum of 50 tags.
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 Error Types.
- InvalidParameterValuesException
-
One or more parameter values are not valid.
- message
-
The exception error message.
HTTP Status Code: 400
- ResourceLimitExceededException
-
Your resource limits have been exceeded.
- message
-
The exception error message.
HTTP Status Code: 400
- ResourceNotFoundException
-
The resource could not be found.
- message
-
The resource could not be found.
- ResourceId
-
The ID of the resource that could not be found.
- ResourceType
-
The type of the resource that wasn't found. This field is present only when known.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: