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

Retrieves the results of the lifecycle policy preview request for the specified * repository.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ECRClient, GetLifecyclePolicyPreviewCommand } from "@aws-sdk/client-ecr"; // ES Modules import * // const { ECRClient, GetLifecyclePolicyPreviewCommand } = 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 = { // GetLifecyclePolicyPreviewRequest * registryId: "STRING_VALUE", * repositoryName: "STRING_VALUE", // required * imageIds: [ // ImageIdentifierList * { // ImageIdentifier * imageDigest: "STRING_VALUE", * imageTag: "STRING_VALUE", * }, * ], * nextToken: "STRING_VALUE", * maxResults: Number("int"), * filter: { // LifecyclePolicyPreviewFilter * tagStatus: "TAGGED" || "UNTAGGED" || "ANY", * }, * }; * const command = new GetLifecyclePolicyPreviewCommand(input); * const response = await client.send(command); * // { // GetLifecyclePolicyPreviewResponse * // registryId: "STRING_VALUE", * // repositoryName: "STRING_VALUE", * // lifecyclePolicyText: "STRING_VALUE", * // status: "IN_PROGRESS" || "COMPLETE" || "EXPIRED" || "FAILED", * // nextToken: "STRING_VALUE", * // previewResults: [ // LifecyclePolicyPreviewResultList * // { // LifecyclePolicyPreviewResult * // imageTags: [ // ImageTagList * // "STRING_VALUE", * // ], * // imageDigest: "STRING_VALUE", * // imagePushedAt: new Date("TIMESTAMP"), * // action: { // LifecyclePolicyRuleAction * // type: "EXPIRE" || "TRANSITION", * // targetStorageClass: "ARCHIVE", * // }, * // appliedRulePriority: Number("int"), * // storageClass: "ARCHIVE" || "STANDARD", * // }, * // ], * // summary: { // LifecyclePolicyPreviewSummary * // expiringImageTotalCount: Number("int"), * // transitioningImageTotalCounts: [ // TransitioningImageTotalCounts * // { // TransitioningImageTotalCount * // targetStorageClass: "ARCHIVE", * // imageTotalCount: Number("int"), * // }, * // ], * // }, * // }; * * ``` * * @param GetLifecyclePolicyPreviewCommandInput - {@link GetLifecyclePolicyPreviewCommandInput} * @returns {@link GetLifecyclePolicyPreviewCommandOutput} * @see {@link GetLifecyclePolicyPreviewCommandInput} for command's `input` shape. * @see {@link GetLifecyclePolicyPreviewCommandOutput} 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 LifecyclePolicyPreviewNotFoundException} (client fault) *

There is no dry run 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 ValidationException} (client fault) *

There was an exception validating this request.

* * @throws {@link ECRServiceException} *

Base exception class for all service exceptions from ECR service.

* * * @public */ export declare class GetLifecyclePolicyPreviewCommand extends GetLifecyclePolicyPreviewCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetLifecyclePolicyPreviewRequest; output: GetLifecyclePolicyPreviewResponse; }; sdk: { input: GetLifecyclePolicyPreviewCommandInput; output: GetLifecyclePolicyPreviewCommandOutput; }; }; }