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

Bundles an Amazon instance store-backed Windows instance.

*

During bundling, only the root device volume (C:\) is bundled. Data on other instance * store volumes is not preserved.

* *

This action is no longer supported. To create an AMI, use * CreateImage. * For more information, see * Create an Amazon EBS-backed AMI 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, BundleInstanceCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, BundleInstanceCommand } = 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 = { // BundleInstanceRequest * InstanceId: "STRING_VALUE", // required * Storage: { // Storage * S3: { // S3Storage * AWSAccessKeyId: "STRING_VALUE", * Bucket: "STRING_VALUE", * Prefix: "STRING_VALUE", * UploadPolicy: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") * UploadPolicySignature: "STRING_VALUE", * }, * }, * DryRun: true || false, * }; * const command = new BundleInstanceCommand(input); * const response = await client.send(command); * // { // BundleInstanceResult * // BundleTask: { // BundleTask * // InstanceId: "STRING_VALUE", * // BundleId: "STRING_VALUE", * // State: "pending" || "waiting-for-shutdown" || "bundling" || "storing" || "cancelling" || "complete" || "failed", * // StartTime: new Date("TIMESTAMP"), * // UpdateTime: new Date("TIMESTAMP"), * // Storage: { // Storage * // S3: { // S3Storage * // AWSAccessKeyId: "STRING_VALUE", * // Bucket: "STRING_VALUE", * // Prefix: "STRING_VALUE", * // UploadPolicy: new Uint8Array(), * // UploadPolicySignature: "STRING_VALUE", * // }, * // }, * // Progress: "STRING_VALUE", * // BundleTaskError: { // BundleTaskError * // Code: "STRING_VALUE", * // Message: "STRING_VALUE", * // }, * // }, * // }; * * ``` * * @param BundleInstanceCommandInput - {@link BundleInstanceCommandInput} * @returns {@link BundleInstanceCommandOutput} * @see {@link BundleInstanceCommandInput} for command's `input` shape. * @see {@link BundleInstanceCommandOutput} 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 BundleInstanceCommand extends BundleInstanceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: BundleInstanceRequest; output: BundleInstanceResult; }; sdk: { input: BundleInstanceCommandInput; output: BundleInstanceCommandOutput; }; }; }