import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DeleteMountTargetRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link DeleteMountTargetCommand}. */ export interface DeleteMountTargetCommandInput extends DeleteMountTargetRequest { } /** * @public * * The output of {@link DeleteMountTargetCommand}. */ export interface DeleteMountTargetCommandOutput extends __MetadataBearer { } declare const DeleteMountTargetCommand_base: { new (input: DeleteMountTargetCommandInput): import("@smithy/core/client").CommandImpl; new (input: DeleteMountTargetCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

Deletes the specified mount target.

*

This operation forcibly breaks any mounts of the file system by using the mount target * that is being deleted, which might disrupt instances or applications using those mounts. To * avoid applications getting cut off abruptly, you might consider unmounting any mounts of the * mount target, if feasible. The operation also deletes the associated network interface. * Uncommitted writes might be lost, but breaking a mount target using this operation does not * corrupt the file system itself. The file system you created remains. You can mount an * EC2 instance in your VPC by using another mount target.

*

This operation requires permissions for the following action on the file * system:

* * *

The DeleteMountTarget call returns while the mount target state is still * deleting. You can check the mount target deletion by calling the DescribeMountTargets operation, which returns a list of mount target * descriptions for the given file system.

*
*

The operation also requires permissions for the following Amazon EC2 action on the * mount target's network interface:

* * @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EFSClient, DeleteMountTargetCommand } from "@aws-sdk/client-efs"; // ES Modules import * // const { EFSClient, DeleteMountTargetCommand } = require("@aws-sdk/client-efs"); // CommonJS import * // import type { EFSClientConfig } from "@aws-sdk/client-efs"; * const config = {}; // type is EFSClientConfig * const client = new EFSClient(config); * const input = { // DeleteMountTargetRequest * MountTargetId: "STRING_VALUE", // required * }; * const command = new DeleteMountTargetCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteMountTargetCommandInput - {@link DeleteMountTargetCommandInput} * @returns {@link DeleteMountTargetCommandOutput} * @see {@link DeleteMountTargetCommandInput} for command's `input` shape. * @see {@link DeleteMountTargetCommandOutput} for command's `response` shape. * @see {@link EFSClientResolvedConfig | config} for EFSClient's `config` shape. * * @throws {@link BadRequest} (client fault) *

Returned if the request is malformed or contains an error such as an invalid * parameter value or a missing required parameter.

* * @throws {@link DependencyTimeout} (server fault) *

The service timed out trying to fulfill the request, and the client should try the * call again.

* * @throws {@link InternalServerError} (server fault) *

Returned if an error occurred on the server side.

* * @throws {@link MountTargetNotFound} (client fault) *

Returned if there is no mount target with the specified ID found in the * caller's Amazon Web Services account.

* * @throws {@link EFSServiceException} *

Base exception class for all service exceptions from EFS service.

* * * @example To delete a mount target * ```javascript * // This operation deletes a mount target. * const input = { * MountTargetId: "fsmt-12340abc" * }; * const command = new DeleteMountTargetCommand(input); * const response = await client.send(command); * /* response is * { /* metadata only *\/ } * *\/ * ``` * * @public */ export declare class DeleteMountTargetCommand extends DeleteMountTargetCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteMountTargetRequest; output: {}; }; sdk: { input: DeleteMountTargetCommandInput; output: DeleteMountTargetCommandOutput; }; }; }