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

Get the information about an invalidation.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudFrontClient, GetInvalidationCommand } from "@aws-sdk/client-cloudfront"; // ES Modules import * // const { CloudFrontClient, GetInvalidationCommand } = require("@aws-sdk/client-cloudfront"); // CommonJS import * const client = new CloudFrontClient(config); * const input = { // GetInvalidationRequest * DistributionId: "STRING_VALUE", // required * Id: "STRING_VALUE", // required * }; * const command = new GetInvalidationCommand(input); * const response = await client.send(command); * // { // GetInvalidationResult * // 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 GetInvalidationCommandInput - {@link GetInvalidationCommandInput} * @returns {@link GetInvalidationCommandOutput} * @see {@link GetInvalidationCommandInput} for command's `input` shape. * @see {@link GetInvalidationCommandOutput} for command's `response` shape. * @see {@link CloudFrontClientResolvedConfig | config} for CloudFrontClient's `config` shape. * * @throws {@link AccessDenied} (client fault) *

Access denied.

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

The specified distribution does not exist.

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

The specified invalidation does not exist.

* * @throws {@link CloudFrontServiceException} *

Base exception class for all service exceptions from CloudFront service.

* * * @public */ export declare class GetInvalidationCommand extends GetInvalidationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetInvalidationRequest; output: GetInvalidationResult; }; sdk: { input: GetInvalidationCommandInput; output: GetInvalidationCommandOutput; }; }; }