DeleteEnvironmentCommand

Deletes an Amazon Managed Workflows for Apache Airflow (Amazon MWAA) environment.

Example Syntax

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

import { MWAAClient, DeleteEnvironmentCommand } from "@aws-sdk/client-mwaa"; // ES Modules import
// const { MWAAClient, DeleteEnvironmentCommand } = require("@aws-sdk/client-mwaa"); // CommonJS import
const client = new MWAAClient(config);
const input = { // DeleteEnvironmentInput
  Name: "STRING_VALUE", // required
};
const command = new DeleteEnvironmentCommand(input);
const response = await client.send(command);
// {};

DeleteEnvironmentCommand Input

See DeleteEnvironmentCommandInput for more details

Parameter
Type
Description
Name
Required
string | undefined

The name of the Amazon MWAA environment. For example, MyMWAAEnvironment.

DeleteEnvironmentCommand 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.