- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
TagResourceCommand
Specifies tags of a resource.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { AppTestClient, TagResourceCommand } from "@aws-sdk/client-apptest"; // ES Modules import
// const { AppTestClient, TagResourceCommand } = require("@aws-sdk/client-apptest"); // CommonJS import
const client = new AppTestClient(config);
const input = { // TagResourceRequest
resourceArn: "STRING_VALUE", // required
tags: { // TagMap // required
"<keys>": "STRING_VALUE",
},
};
const command = new TagResourceCommand(input);
const response = await client.send(command);
// {};
TagResourceCommand Input
See TagResourceCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
resourceArn Required | string | undefined | The Amazon Resource Name (ARN) of the tag resource. |
tags Required | Record<string, string> | undefined | The tags of the resource. |
TagResourceCommand Output
See TagResourceCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
AccessDeniedException | client | The account or role doesn't have the right permissions to make the request. |
InternalServerException | server | An unexpected error occurred during the processing of the request. |
ResourceNotFoundException | client | The specified resource was not found. |
ServiceQuotaExceededException | client | One or more quotas for AWS Application Testing exceeds the limit. |
ThrottlingException | client | The number of requests made exceeds the limit. |
ValidationException | client | One or more parameter provided in the request is not valid. |
AppTestServiceException | Base exception class for all service exceptions from AppTest service. |