import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client"; import type { DescribeStoreImageTasksRequest, DescribeStoreImageTasksResult } from "../models/models_4"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeStoreImageTasksCommand}. */ export interface DescribeStoreImageTasksCommandInput extends DescribeStoreImageTasksRequest { } /** * @public * * The output of {@link DescribeStoreImageTasksCommand}. */ export interface DescribeStoreImageTasksCommandOutput extends DescribeStoreImageTasksResult, __MetadataBearer { } declare const DescribeStoreImageTasksCommand_base: { new (input: DescribeStoreImageTasksCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [DescribeStoreImageTasksCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Describes the progress of the AMI store tasks. You can describe the store tasks for * specified AMIs. If you don't specify the AMIs, you get a paginated list of store tasks from * the last 31 days.

*

For each AMI task, the response indicates if the task is InProgress, * Completed, or Failed. For tasks InProgress, the * response shows the estimated progress as a percentage.

*

Tasks are listed in reverse chronological order. Currently, only tasks from the past 31 * days can be viewed.

*

To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using S3 in the * Amazon EC2 User Guide.

*

For more information, see Store and restore an AMI using * S3 in the Amazon EC2 User Guide.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, DescribeStoreImageTasksCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, DescribeStoreImageTasksCommand } = require("@aws-sdk/client-ec2"); // CommonJS import * // import type { EC2ClientConfig } from "@aws-sdk/client-ec2"; * const config = {}; // type is EC2ClientConfig * const client = new EC2Client(config); * const input = { // DescribeStoreImageTasksRequest * ImageIds: [ // ImageIdList * "STRING_VALUE", * ], * DryRun: true || false, * Filters: [ // FilterList * { // Filter * Name: "STRING_VALUE", * Values: [ // ValueStringList * "STRING_VALUE", * ], * }, * ], * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * }; * const command = new DescribeStoreImageTasksCommand(input); * const response = await client.send(command); * // { // DescribeStoreImageTasksResult * // StoreImageTaskResults: [ // StoreImageTaskResultSet * // { // StoreImageTaskResult * // AmiId: "STRING_VALUE", * // TaskStartTime: new Date("TIMESTAMP"), * // Bucket: "STRING_VALUE", * // S3objectKey: "STRING_VALUE", * // ProgressPercentage: Number("int"), * // StoreTaskState: "STRING_VALUE", * // StoreTaskFailureReason: "STRING_VALUE", * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param DescribeStoreImageTasksCommandInput - {@link DescribeStoreImageTasksCommandInput} * @returns {@link DescribeStoreImageTasksCommandOutput} * @see {@link DescribeStoreImageTasksCommandInput} for command's `input` shape. * @see {@link DescribeStoreImageTasksCommandOutput} for command's `response` shape. * @see {@link EC2ClientResolvedConfig | config} for EC2Client's `config` shape. * * @throws {@link EC2ServiceException} *

Base exception class for all service exceptions from EC2 service.

* * * @public */ export declare class DescribeStoreImageTasksCommand extends DescribeStoreImageTasksCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeStoreImageTasksRequest; output: DescribeStoreImageTasksResult; }; sdk: { input: DescribeStoreImageTasksCommandInput; output: DescribeStoreImageTasksCommandOutput; }; }; }