Jump to Content

Class TagResourceCommandProtected

Add a tag to the specified resource.

Example

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

import { BraketClient, TagResourceCommand } from "@aws-sdk/client-braket"; // ES Modules import
// const { BraketClient, TagResourceCommand } = require("@aws-sdk/client-braket"); // CommonJS import
const client = new BraketClient(config);
const command = new TagResourceCommand(input);
const response = await client.send(command);

Param

TagResourceCommandInput

Returns

TagResourceCommandOutput

See

Throws

InternalServiceException (server fault)

The request processing has failed because of an unknown error, exception, or failure.

Throws

ResourceNotFoundException (client fault)

The specified resource was not found.

Throws

ValidationException (client fault)

The input fails to satisfy the constraints specified by an AWS service.

Hierarchy

Constructors

Properties

middlewareStack: MiddlewareStack<TagResourceCommandInput, TagResourceCommandOutput>

Methods