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 { CreateStoreImageTaskRequest, CreateStoreImageTaskResult } from "../models/models_2"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link CreateStoreImageTaskCommand}. */ export interface CreateStoreImageTaskCommandInput extends CreateStoreImageTaskRequest { } /** * @public * * The output of {@link CreateStoreImageTaskCommand}. */ export interface CreateStoreImageTaskCommandOutput extends CreateStoreImageTaskResult, __MetadataBearer { } declare const CreateStoreImageTaskCommand_base: { new (input: CreateStoreImageTaskCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: CreateStoreImageTaskCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Stores an AMI as a single object in an Amazon S3 bucket.

*

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, CreateStoreImageTaskCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, CreateStoreImageTaskCommand } = 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 = { // CreateStoreImageTaskRequest * ImageId: "STRING_VALUE", // required * Bucket: "STRING_VALUE", // required * S3ObjectTags: [ // S3ObjectTagList * { // S3ObjectTag * Key: "STRING_VALUE", * Value: "STRING_VALUE", * }, * ], * DryRun: true || false, * }; * const command = new CreateStoreImageTaskCommand(input); * const response = await client.send(command); * // { // CreateStoreImageTaskResult * // ObjectKey: "STRING_VALUE", * // }; * * ``` * * @param CreateStoreImageTaskCommandInput - {@link CreateStoreImageTaskCommandInput} * @returns {@link CreateStoreImageTaskCommandOutput} * @see {@link CreateStoreImageTaskCommandInput} for command's `input` shape. * @see {@link CreateStoreImageTaskCommandOutput} 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 CreateStoreImageTaskCommand extends CreateStoreImageTaskCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateStoreImageTaskRequest; output: CreateStoreImageTaskResult; }; sdk: { input: CreateStoreImageTaskCommandInput; output: CreateStoreImageTaskCommandOutput; }; }; }