We are excited to announce our new API Documentation.
Protected
Assigns one or more tags to a resource.
Use a bare-bones client and the command you need to make an API call.
import { RedshiftServerlessClient, TagResourceCommand } from "@aws-sdk/client-redshift-serverless"; // ES Modules import// const { RedshiftServerlessClient, TagResourceCommand } = require("@aws-sdk/client-redshift-serverless"); // CommonJS importconst client = new RedshiftServerlessClient(config);const input = { // TagResourceRequest resourceArn: "STRING_VALUE", // required tags: [ // TagList // required { // Tag key: "STRING_VALUE", // required value: "STRING_VALUE", // required }, ],};const command = new TagResourceCommand(input);const response = await client.send(command);// {};
TagResourceCommandInput
TagResourceCommandOutput
input
response
config
InternalServerException (server fault)
The request processing has failed because of an unknown error, exception or failure.
ResourceNotFoundException (client fault)
The resource could not be found.
ThrottlingException (client fault)
The request was denied due to request throttling.
TooManyTagsException (client fault)
The request exceeded the number of tags allowed for a resource.
ValidationException (client fault)
The input failed to satisfy the constraints specified by an AWS service.
RedshiftServerlessServiceException
Base exception class for all service exceptions from RedshiftServerless service.
Readonly
Static
Assigns one or more tags to a 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
InternalServerException (server fault)
The request processing has failed because of an unknown error, exception or failure.
Throws
ResourceNotFoundException (client fault)
The resource could not be found.
Throws
ThrottlingException (client fault)
The request was denied due to request throttling.
Throws
TooManyTagsException (client fault)
The request exceeded the number of tags allowed for a resource.
Throws
ValidationException (client fault)
The input failed to satisfy the constraints specified by an AWS service.
Throws
RedshiftServerlessServiceException
Base exception class for all service exceptions from RedshiftServerless service.