Protected
Adds or overwrites one or more tags for the specified resource.
Use a bare-bones client and the command you need to make an API call.
import { WorkSpacesWebClient, TagResourceCommand } from "@aws-sdk/client-workspaces-web"; // ES Modules import// const { WorkSpacesWebClient, TagResourceCommand } = require("@aws-sdk/client-workspaces-web"); // CommonJS importconst client = new WorkSpacesWebClient(config);const command = new TagResourceCommand(input);const response = await client.send(command);
TagResourceCommandInput
TagResourceCommandOutput
input
response
config
AccessDeniedException (client fault)
Access is denied.
InternalServerException (server fault)
There is an internal server error.
ResourceNotFoundException (client fault)
The resource cannot be found.
ThrottlingException (client fault)
There is a throttling error.
TooManyTagsException (client fault)
There are too many tags.
ValidationException (client fault)
There is a validation error.
Readonly
Static
Adds or overwrites one or more tags for the specified resource.
Example
Use a bare-bones client and the command you need to make an API call.
Param
TagResourceCommandInput
Returns
TagResourceCommandOutput
See
input
shape.response
shape.config
shape.Throws
AccessDeniedException (client fault)
Access is denied.
Throws
InternalServerException (server fault)
There is an internal server error.
Throws
ResourceNotFoundException (client fault)
The resource cannot be found.
Throws
ThrottlingException (client fault)
There is a throttling error.
Throws
TooManyTagsException (client fault)
There are too many tags.
Throws
ValidationException (client fault)
There is a validation error.