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 { CompleteLayerUploadRequest, CompleteLayerUploadResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CompleteLayerUploadCommand}. */ export interface CompleteLayerUploadCommandInput extends CompleteLayerUploadRequest { } /** * @public * * The output of {@link CompleteLayerUploadCommand}. */ export interface CompleteLayerUploadCommandOutput extends CompleteLayerUploadResponse, __MetadataBearer { } declare const CompleteLayerUploadCommand_base: { new (input: CompleteLayerUploadCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CompleteLayerUploadCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Informs Amazon ECR that the image layer upload has completed for a specified registry, * repository name, and upload ID. You can optionally provide a sha256 digest * of the image layer for data validation purposes.

*

When an image is pushed, the CompleteLayerUpload API is called once per each new image * layer to verify that the upload has completed.

* *

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, CompleteLayerUploadCommand } from "@aws-sdk/client-ecr"; // ES Modules import * // const { ECRClient, CompleteLayerUploadCommand } = 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 = { // CompleteLayerUploadRequest * registryId: "STRING_VALUE", * repositoryName: "STRING_VALUE", // required * uploadId: "STRING_VALUE", // required * layerDigests: [ // LayerDigestList // required * "STRING_VALUE", * ], * }; * const command = new CompleteLayerUploadCommand(input); * const response = await client.send(command); * // { // CompleteLayerUploadResponse * // registryId: "STRING_VALUE", * // repositoryName: "STRING_VALUE", * // uploadId: "STRING_VALUE", * // layerDigest: "STRING_VALUE", * // }; * * ``` * * @param CompleteLayerUploadCommandInput - {@link CompleteLayerUploadCommandInput} * @returns {@link CompleteLayerUploadCommandOutput} * @see {@link CompleteLayerUploadCommandInput} for command's `input` shape. * @see {@link CompleteLayerUploadCommandOutput} for command's `response` shape. * @see {@link ECRClientResolvedConfig | config} for ECRClient's `config` shape. * * @throws {@link EmptyUploadException} (client fault) *

The specified layer upload does not contain any layer parts.

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

The layer digest calculation performed by Amazon ECR upon receipt of the image layer does * not match the digest specified.

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

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

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

The operation failed due to a KMS exception.

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

The image layer already exists in the associated repository.

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

Layer parts must be at least 5 MiB in size.

* * @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 UploadNotFoundException} (client fault) *

The upload could not be found, or the specified upload ID is not valid for this * repository.

* * @throws {@link ECRServiceException} *

Base exception class for all service exceptions from ECR service.

* * * @public */ export declare class CompleteLayerUploadCommand extends CompleteLayerUploadCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CompleteLayerUploadRequest; output: CompleteLayerUploadResponse; }; sdk: { input: CompleteLayerUploadCommandInput; output: CompleteLayerUploadCommandOutput; }; }; }