TagResourceCommand

Add tags to a MediaConvert queue, preset, or job template. For information about tagging, see the User Guide at https://docs.aws.amazon.com/mediaconvert/latest/ug/tagging-resources.html

Example Syntax

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

import { MediaConvertClient, TagResourceCommand } from "@aws-sdk/client-mediaconvert"; // ES Modules import
// const { MediaConvertClient, TagResourceCommand } = require("@aws-sdk/client-mediaconvert"); // CommonJS import
const client = new MediaConvertClient(config);
const input = { // TagResourceRequest
  Arn: "STRING_VALUE", // required
  Tags: { // __mapOf__string // 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
Arn
Required
string | undefined
The Amazon Resource Name (ARN) of the resource that you want to tag. To get the ARN, send a GET request with the resource name.
Tags
Required
Record<string, string> | undefined
The tags that you want to add to the resource. You can tag resources with a key-value pair or with only a key.

TagResourceCommand Output

See TagResourceCommandOutput for details

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

Throws

Name
Fault
Details
BadRequestException
client
The service can't process your request because of a problem in the request. Please check your request form and syntax.
ConflictException
client
The service couldn't complete your request because there is a conflict with the current state of the resource.
ForbiddenException
client
You don't have permissions for this action with the credentials you sent.
InternalServerErrorException
server
The service encountered an unexpected condition and can't fulfill your request.
NotFoundException
client
The resource you requested doesn't exist.
TooManyRequestsException
client
Too many requests have been sent in too short of a time. The service limits the rate at which it will accept requests.
MediaConvertServiceException
Base exception class for all service exceptions from MediaConvert service.