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 the specified resource.
The WorkloadArn parameter can be either a workload ARN or a custom lens ARN.
Use a bare-bones client and the command you need to make an API call.
import { WellArchitectedClient, TagResourceCommand } from "@aws-sdk/client-wellarchitected"; // ES Modules import// const { WellArchitectedClient, TagResourceCommand } = require("@aws-sdk/client-wellarchitected"); // CommonJS importconst client = new WellArchitectedClient(config);const input = { // TagResourceInput WorkloadArn: "STRING_VALUE", // required Tags: { // TagMap // required "<keys>": "STRING_VALUE", },};const command = new TagResourceCommand(input);const response = await client.send(command);// {};
TagResourceCommandInput
TagResourceCommandOutput
input
response
config
InternalServerException (server fault)
There is a problem with the Well-Architected Tool API service.
ResourceNotFoundException (client fault)
The requested resource was not found.
WellArchitectedServiceException
Base exception class for all service exceptions from WellArchitected service.
Readonly
Static
Adds one or more tags to the specified resource.
The WorkloadArn parameter can be either a workload ARN or a custom lens ARN.
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)
There is a problem with the Well-Architected Tool API service.
Throws
ResourceNotFoundException (client fault)
The requested resource was not found.
Throws
WellArchitectedServiceException
Base exception class for all service exceptions from WellArchitected service.