import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient"; import { DeleteDistributionRequest } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeleteDistributionCommand}. */ export interface DeleteDistributionCommandInput extends DeleteDistributionRequest { } /** * @public * * The output of {@link DeleteDistributionCommand}. */ export interface DeleteDistributionCommandOutput extends __MetadataBearer { } declare const DeleteDistributionCommand_base: { new (input: DeleteDistributionCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeleteDistributionCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Delete a distribution.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, DeleteDistributionCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, DeleteDistributionCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import * const client = new CloudFrontClient(config); * const input = { // DeleteDistributionRequest * Id: "STRING_VALUE", // required * IfMatch: "STRING_VALUE", * }; * const command = new DeleteDistributionCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeleteDistributionCommandInput - {@link DeleteDistributionCommandInput} * @returns {@link DeleteDistributionCommandOutput} * @see {@link DeleteDistributionCommandInput} for command's `input` shape. * @see {@link DeleteDistributionCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @throws {@link AccessDenied} (client fault) *

Access denied.

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

The specified CloudFront distribution is not disabled. You must disable the distribution before you can delete it.

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

The If-Match version is missing or not valid.

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

The specified distribution does not exist.

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

The precondition in one or more of the request fields evaluated to false.

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

Cannot delete this resource because it is in use.

* * @throws {@link CloudFrontServiceException} *

Base exception class for all service exceptions from CloudFront service.

* * * @public */ export declare class DeleteDistributionCommand extends DeleteDistributionCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeleteDistributionRequest; output: {}; }; sdk: { input: DeleteDistributionCommandInput; output: DeleteDistributionCommandOutput; }; }; }