We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.
Protected
Adds one or more tags to a specified resource.
Use a bare-bones client and the command you need to make an API call.
import { Route53ResolverClient, TagResourceCommand } from "@aws-sdk/client-route53resolver"; // ES Modules import// const { Route53ResolverClient, TagResourceCommand } = require("@aws-sdk/client-route53resolver"); // CommonJS importconst client = new Route53ResolverClient(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
InternalServiceErrorException (client fault)
We encountered an unknown error. Try again in a few minutes.
InvalidParameterException (client fault)
One or more parameters in this request are not valid.
InvalidRequestException (client fault)
The request is invalid.
InvalidTagException (client fault)
The specified tag is invalid.
LimitExceededException (client fault)
The request caused one or more limits to be exceeded.
ResourceNotFoundException (client fault)
The specified resource doesn't exist.
ThrottlingException (client fault)
The request was throttled. Try again in a few minutes.
Route53ResolverServiceException
Base exception class for all service exceptions from Route53Resolver service.
Readonly
Static
Adds one or more tags to a 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
InternalServiceErrorException (client fault)
We encountered an unknown error. Try again in a few minutes.
Throws
InvalidParameterException (client fault)
One or more parameters in this request are not valid.
Throws
InvalidRequestException (client fault)
The request is invalid.
Throws
InvalidTagException (client fault)
The specified tag is invalid.
Throws
LimitExceededException (client fault)
The request caused one or more limits to be exceeded.
Throws
ResourceNotFoundException (client fault)
The specified resource doesn't exist.
Throws
ThrottlingException (client fault)
The request was throttled. Try again in a few minutes.
Throws
Route53ResolverServiceException
Base exception class for all service exceptions from Route53Resolver service.