UntagResourceCommand

Removes key-value tag pairs associated to your Amazon Managed Workflows for Apache Airflow (MWAA) environment. For example, "Environment": "Staging".

Example Syntax

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

import { MWAAClient, UntagResourceCommand } from "@aws-sdk/client-mwaa"; // ES Modules import
// const { MWAAClient, UntagResourceCommand } = require("@aws-sdk/client-mwaa"); // CommonJS import
const client = new MWAAClient(config);
const input = { // UntagResourceInput
  ResourceArn: "STRING_VALUE", // required
  tagKeys: [ // TagKeyList // required
    "STRING_VALUE",
  ],
};
const command = new UntagResourceCommand(input);
const response = await client.send(command);
// {};

UntagResourceCommand Input

See UntagResourceCommandInput for more details

Parameter
Type
Description
ResourceArn
Required
string | undefined

The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment.

tagKeys
Required
string[] | undefined

The key-value tag pair you want to remove. For example, "Environment": "Staging".

UntagResourceCommand Output

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

Throws

Name
Fault
Details
InternalServerException
server

InternalServerException: An internal error has occurred.

ResourceNotFoundException
client

ResourceNotFoundException: The resource is not available.

ValidationException
client

ValidationException: The provided input is not valid.

MWAAServiceException
Base exception class for all service exceptions from MWAA service.