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

Lists all the image IDs for the specified repository.

*

You can filter images based on whether or not they are tagged by using the * tagStatus filter and specifying either TAGGED, * UNTAGGED or ANY. For example, you can filter your results * to return only UNTAGGED images and then pipe that result to a BatchDeleteImage operation to delete them. Or, you can filter your * results to return only TAGGED images to list all of the tags in your * repository.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { ECRClient, ListImagesCommand } from "@aws-sdk/client-ecr"; // ES Modules import * // const { ECRClient, ListImagesCommand } = 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 = { // ListImagesRequest * registryId: "STRING_VALUE", * repositoryName: "STRING_VALUE", // required * nextToken: "STRING_VALUE", * maxResults: Number("int"), * filter: { // ListImagesFilter * tagStatus: "TAGGED" || "UNTAGGED" || "ANY", * imageStatus: "ACTIVE" || "ARCHIVED" || "ACTIVATING" || "ANY", * }, * }; * const command = new ListImagesCommand(input); * const response = await client.send(command); * // { // ListImagesResponse * // imageIds: [ // ImageIdentifierList * // { // ImageIdentifier * // imageDigest: "STRING_VALUE", * // imageTag: "STRING_VALUE", * // }, * // ], * // nextToken: "STRING_VALUE", * // }; * * ``` * * @param ListImagesCommandInput - {@link ListImagesCommandInput} * @returns {@link ListImagesCommandOutput} * @see {@link ListImagesCommandInput} for command's `input` shape. * @see {@link ListImagesCommandOutput} 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.

* * * @example To list all images in a repository * ```javascript * // This example lists all of the images in the repository named ubuntu in the default registry in the current account. * const input = { * repositoryName: "ubuntu" * }; * const command = new ListImagesCommand(input); * const response = await client.send(command); * /* response is * { * imageIds: [ * { * imageDigest: "sha256:764f63476bdff6d83a09ba2a818f0d35757063724a9ac3ba5019c56f74ebf42a", * imageTag: "precise" * } * ] * } * *\/ * ``` * * @public */ export declare class ListImagesCommand extends ListImagesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListImagesRequest; output: ListImagesResponse; }; sdk: { input: ListImagesCommandInput; output: ListImagesCommandOutput; }; }; }