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

Retrieves the pre-signed Amazon S3 download URL corresponding to an image layer. You can * only get URLs for image layers that are referenced in an image.

*

When an image is pulled, the GetDownloadUrlForLayer API is called once per image layer * that is not already cached.

* *

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, GetDownloadUrlForLayerCommand } from "@aws-sdk/client-ecr"; // ES Modules import * // const { ECRClient, GetDownloadUrlForLayerCommand } = 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 = { // GetDownloadUrlForLayerRequest * registryId: "STRING_VALUE", * repositoryName: "STRING_VALUE", // required * layerDigest: "STRING_VALUE", // required * }; * const command = new GetDownloadUrlForLayerCommand(input); * const response = await client.send(command); * // { // GetDownloadUrlForLayerResponse * // downloadUrl: "STRING_VALUE", * // layerDigest: "STRING_VALUE", * // }; * * ``` * * @param GetDownloadUrlForLayerCommandInput - {@link GetDownloadUrlForLayerCommandInput} * @returns {@link GetDownloadUrlForLayerCommandOutput} * @see {@link GetDownloadUrlForLayerCommandInput} for command's `input` shape. * @see {@link GetDownloadUrlForLayerCommandOutput} 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 LayerInaccessibleException} (client fault) *

The specified layer is not available because it is not associated with an image. * Unassociated image layers may be cleaned up at any time.

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

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

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

There was an issue getting the upstream layer matching the pull through cache * rule.

* * @throws {@link ECRServiceException} *

Base exception class for all service exceptions from ECR service.

* * * @public */ export declare class GetDownloadUrlForLayerCommand extends GetDownloadUrlForLayerCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetDownloadUrlForLayerRequest; output: GetDownloadUrlForLayerResponse; }; sdk: { input: GetDownloadUrlForLayerCommandInput; output: GetDownloadUrlForLayerCommandOutput; }; }; }