TagResourceCommand

Adds one or more tags to a signing profile. Tags are labels that you can use to identify and organize your AWS resources. Each tag consists of a key and an optional value. To specify the signing profile, use its Amazon Resource Name (ARN). To specify the tag, use a key-value pair.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { SignerClient, TagResourceCommand } from "@aws-sdk/client-signer"; // ES Modules import
// const { SignerClient, TagResourceCommand } = require("@aws-sdk/client-signer"); // CommonJS import
const client = new SignerClient(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
resourceArn
Required
string | undefined

The Amazon Resource Name (ARN) for the signing profile.

tags
Required
Record<string, string> | undefined

One or more tags to be associated with the signing profile.

TagResourceCommand Output

See TagResourceCommandOutput for details

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
BadRequestException
client

The request contains invalid parameters for the ARN or tags. This exception also occurs when you call a tagging API on a cancelled signing profile.

InternalServiceErrorException
server

An internal error occurred.

NotFoundException
client

The signing profile was not found.

TooManyRequestsException
client

The allowed number of job-signing requests has been exceeded.

This error supersedes the error ThrottlingException.

SignerServiceException
Base exception class for all service exceptions from Signer service.