import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient"; import type { DeleteTableRequest, DeleteTableResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteTableCommand}. */ export interface DeleteTableCommandInput extends DeleteTableRequest { } /** * @public * * The output of {@link DeleteTableCommand}. */ export interface DeleteTableCommandOutput extends DeleteTableResponse, __MetadataBearer { } declare const DeleteTableCommand_base: { new (input: DeleteTableCommandInput): import("@smithy/core/client").CommandImpl; new (input: DeleteTableCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Removes a table definition from the Data Catalog.

* *

After completing this operation, you no longer have access to the table versions and * partitions that belong to the deleted table. Glue deletes these "orphaned" resources * asynchronously in a timely manner, at the discretion of the service.

*

To ensure the immediate deletion of all related resources, before calling * DeleteTable, use DeleteTableVersion or * BatchDeleteTableVersion, and DeletePartition or * BatchDeletePartition, to delete any resources that belong to the * table.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlueClient, DeleteTableCommand } from "@aws-sdk/client-glue"; // ES Modules import * // const { GlueClient, DeleteTableCommand } = require("@aws-sdk/client-glue"); // CommonJS import * // import type { GlueClientConfig } from "@aws-sdk/client-glue"; * const config = {}; // type is GlueClientConfig * const client = new GlueClient(config); * const input = { // DeleteTableRequest * CatalogId: "STRING_VALUE", * DatabaseName: "STRING_VALUE", // required * Name: "STRING_VALUE", // required * TransactionId: "STRING_VALUE", * }; * const command = new DeleteTableCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteTableCommandInput - {@link DeleteTableCommandInput} * @returns {@link DeleteTableCommandOutput} * @see {@link DeleteTableCommandInput} for command's `input` shape. * @see {@link DeleteTableCommandOutput} for command's `response` shape. * @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape. * * @throws {@link ConcurrentModificationException} (client fault) *

Two processes are trying to modify a resource simultaneously.

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

A specified entity does not exist

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

A federation source failed.

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

A federation source failed, but the operation may be retried.

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

An internal service error occurred.

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

The input provided was not valid.

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

The operation timed out.

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

A resource was not ready for a transaction.

* * @throws {@link GlueServiceException} *

Base exception class for all service exceptions from Glue service.

* * * @public */ export declare class DeleteTableCommand extends DeleteTableCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteTableRequest; output: {}; }; sdk: { input: DeleteTableCommandInput; output: DeleteTableCommandOutput; }; }; }