import { Command as $Command } from "@smithy/smithy-client"; import { MetadataBearer as __MetadataBearer } from "@smithy/types"; import { CloudFrontClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudFrontClient"; import { CreateInvalidationRequest, CreateInvalidationResult } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateInvalidationCommand}. */ export interface CreateInvalidationCommandInput extends CreateInvalidationRequest { } /** * @public * * The output of {@link CreateInvalidationCommand}. */ export interface CreateInvalidationCommandOutput extends CreateInvalidationResult, __MetadataBearer { } declare const CreateInvalidationCommand_base: { new (input: CreateInvalidationCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateInvalidationCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Create a new invalidation. For more information, see Invalidating files in the Amazon CloudFront Developer Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, CreateInvalidationCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, CreateInvalidationCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import * const client = new CloudFrontClient(config); * const input = { // CreateInvalidationRequest * DistributionId: "STRING_VALUE", // required * InvalidationBatch: { // InvalidationBatch * Paths: { // Paths * Quantity: Number("int"), // required * Items: [ // PathList * "STRING_VALUE", * ], * }, * CallerReference: "STRING_VALUE", // required * }, * }; * const command = new CreateInvalidationCommand(input); * const response = await client.send(command); * // { // CreateInvalidationResult * // Location: "STRING_VALUE", * // Invalidation: { // Invalidation * // Id: "STRING_VALUE", // required * // Status: "STRING_VALUE", // required * // CreateTime: new Date("TIMESTAMP"), // required * // InvalidationBatch: { // InvalidationBatch * // Paths: { // Paths * // Quantity: Number("int"), // required * // Items: [ // PathList * // "STRING_VALUE", * // ], * // }, * // CallerReference: "STRING_VALUE", // required * // }, * // }, * // }; * * ``` * * @param CreateInvalidationCommandInput - {@link CreateInvalidationCommandInput} * @returns {@link CreateInvalidationCommandOutput} * @see {@link CreateInvalidationCommandInput} for command's `input` shape. * @see {@link CreateInvalidationCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @throws {@link AccessDenied} (client fault) *

Access denied.

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

Invalidation batch specified is too large.

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

The value of Quantity and the size of Items don't match.

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

An argument is invalid.

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

This operation requires a body. Ensure that the body is present and the Content-Type header is set.

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

The specified distribution does not exist.

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

You have exceeded the maximum number of allowable InProgress invalidation batch requests, or invalidation objects.

* * @throws {@link CloudFrontServiceException} *

Base exception class for all service exceptions from CloudFront service.

* * * @public */ export declare class CreateInvalidationCommand extends CreateInvalidationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateInvalidationRequest; output: CreateInvalidationResult; }; sdk: { input: CreateInvalidationCommandInput; output: CreateInvalidationCommandOutput; }; }; }