import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ECRClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../ECRClient"; import type { BatchCheckLayerAvailabilityRequest, BatchCheckLayerAvailabilityResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link BatchCheckLayerAvailabilityCommand}. */ export interface BatchCheckLayerAvailabilityCommandInput extends BatchCheckLayerAvailabilityRequest { } /** * @public * * The output of {@link BatchCheckLayerAvailabilityCommand}. */ export interface BatchCheckLayerAvailabilityCommandOutput extends BatchCheckLayerAvailabilityResponse, __MetadataBearer { } declare const BatchCheckLayerAvailabilityCommand_base: { new (input: BatchCheckLayerAvailabilityCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: BatchCheckLayerAvailabilityCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Checks the availability of one or more image layers in a repository.

*

When an image is pushed to a repository, each image layer is checked to verify if it * has been uploaded before. If it has been uploaded, then the image layer is * skipped.

* *

This operation is used by the Amazon ECR proxy and is not generally used by * customers for pulling and pushing images. In most cases, you should use the docker CLI to pull, tag, and push images.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ECRClient, BatchCheckLayerAvailabilityCommand } from "@aws-sdk/client-ecr"; // ES Modules import * // const { ECRClient, BatchCheckLayerAvailabilityCommand } = require("@aws-sdk/client-ecr"); // CommonJS import * // import type { ECRClientConfig } from "@aws-sdk/client-ecr"; * const config = {}; // type is ECRClientConfig * const client = new ECRClient(config); * const input = { // BatchCheckLayerAvailabilityRequest * registryId: "STRING_VALUE", * repositoryName: "STRING_VALUE", // required * layerDigests: [ // BatchedOperationLayerDigestList // required * "STRING_VALUE", * ], * }; * const command = new BatchCheckLayerAvailabilityCommand(input); * const response = await client.send(command); * // { // BatchCheckLayerAvailabilityResponse * // layers: [ // LayerList * // { // Layer * // layerDigest: "STRING_VALUE", * // layerAvailability: "AVAILABLE" || "UNAVAILABLE" || "ARCHIVED", * // layerSize: Number("long"), * // mediaType: "STRING_VALUE", * // }, * // ], * // failures: [ // LayerFailureList * // { // LayerFailure * // layerDigest: "STRING_VALUE", * // failureCode: "InvalidLayerDigest" || "MissingLayerDigest", * // failureReason: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param BatchCheckLayerAvailabilityCommandInput - {@link BatchCheckLayerAvailabilityCommandInput} * @returns {@link BatchCheckLayerAvailabilityCommandOutput} * @see {@link BatchCheckLayerAvailabilityCommandInput} for command's `input` shape. * @see {@link BatchCheckLayerAvailabilityCommandOutput} for command's `response` shape. * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape. * * @throws {@link InvalidParameterException} (client fault) *

The specified parameter is invalid. Review the available parameters for the API * request.

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

The specified repository could not be found. Check the spelling of the specified * repository and ensure that you are performing operations on the correct registry.

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

These errors are usually caused by a server-side issue.

* * @throws {@link ECRServiceException} *

Base exception class for all service exceptions from ECR service.

* * * @public */ export declare class BatchCheckLayerAvailabilityCommand extends BatchCheckLayerAvailabilityCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: BatchCheckLayerAvailabilityRequest; output: BatchCheckLayerAvailabilityResponse; }; sdk: { input: BatchCheckLayerAvailabilityCommandInput; output: BatchCheckLayerAvailabilityCommandOutput; }; }; }