We are excited to announce our new API Documentation.
Protected
Creates tags for a resource, given its ARN.
Use a bare-bones client and the command you need to make an API call.
import { NimbleClient, TagResourceCommand } from "@aws-sdk/client-nimble"; // ES Modules import// const { NimbleClient, TagResourceCommand } = require("@aws-sdk/client-nimble"); // CommonJS importconst client = new NimbleClient(config);const input = { // TagResourceRequest resourceArn: "STRING_VALUE", // required tags: { // Tags "<keys>": "STRING_VALUE", },};const command = new TagResourceCommand(input);const response = await client.send(command);// {};
TagResourceCommandInput
TagResourceCommandOutput
input
response
config
AccessDeniedException (client fault)
You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys.
ConflictException (client fault)
Another operation is in progress.
InternalServerErrorException (server fault)
An internal error has occurred. Please retry your request.
ResourceNotFoundException (client fault)
The specified resource could not be found.
ServiceQuotaExceededException (client fault)
Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased.
Please use Amazon Web Services Service Quotas to request an increase.
ThrottlingException (client fault)
The request throughput limit was exceeded.
ValidationException (client fault)
One of the parameters in the request is invalid.
NimbleServiceException
Base exception class for all service exceptions from Nimble service.
Readonly
Static
Creates tags for a resource, given its 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
AccessDeniedException (client fault)
You are not authorized to perform this operation. Check your IAM policies, and ensure that you are using the correct access keys.
Throws
ConflictException (client fault)
Another operation is in progress.
Throws
InternalServerErrorException (server fault)
An internal error has occurred. Please retry your request.
Throws
ResourceNotFoundException (client fault)
The specified resource could not be found.
Throws
ServiceQuotaExceededException (client fault)
Your current quota does not allow you to perform the request action. You can request increases for some quotas, and other quotas cannot be increased.
Please use Amazon Web Services Service Quotas to request an increase.
Throws
ThrottlingException (client fault)
The request throughput limit was exceeded.
Throws
ValidationException (client fault)
One of the parameters in the request is invalid.
Throws
NimbleServiceException
Base exception class for all service exceptions from Nimble service.