- 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
Adds metadata tags to a DataBrew resource, such as a dataset, project, recipe, job, or schedule.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { DataBrewClient, TagResourceCommand } from "@aws-sdk/client-databrew"; // ES Modules import
// const { DataBrewClient, TagResourceCommand } = require("@aws-sdk/client-databrew"); // CommonJS import
const client = new DataBrewClient(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 DataBrew resource to which tags should be added. The value for this parameter is an Amazon Resource Name (ARN). For DataBrew, you can tag a dataset, a job, a project, or a recipe. |
Tags Required | Record<string, string> | undefined | One or more tags to be assigned to 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 |
---|---|---|
InternalServerException | server | An internal service failure occurred. |
ResourceNotFoundException | client | One or more resources can't be found. |
ValidationException | client | The input parameters for this request failed validation. |
DataBrewServiceException | Base exception class for all service exceptions from DataBrew service. |