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 { RunScheduledInstancesRequest, RunScheduledInstancesResult } from "../models/models_7"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link RunScheduledInstancesCommand}. */ export interface RunScheduledInstancesCommandInput extends RunScheduledInstancesRequest { } /** * @public * * The output of {@link RunScheduledInstancesCommand}. */ export interface RunScheduledInstancesCommandOutput extends RunScheduledInstancesResult, __MetadataBearer { } declare const RunScheduledInstancesCommand_base: { new (input: RunScheduledInstancesCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: RunScheduledInstancesCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Launches the specified Scheduled Instances.

*

Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.

*

You must launch a Scheduled Instance during its scheduled time period. You can't stop or * reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a * Scheduled Instance before the current scheduled time period ends, you can launch it again * after a few minutes.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EC2Client, RunScheduledInstancesCommand } from "@aws-sdk/client-ec2"; // ES Modules import * // const { EC2Client, RunScheduledInstancesCommand } = 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 = { // RunScheduledInstancesRequest * ClientToken: "STRING_VALUE", * DryRun: true || false, * InstanceCount: Number("int"), * LaunchSpecification: { // ScheduledInstancesLaunchSpecification * BlockDeviceMappings: [ // ScheduledInstancesBlockDeviceMappingSet * { // ScheduledInstancesBlockDeviceMapping * DeviceName: "STRING_VALUE", * Ebs: { // ScheduledInstancesEbs * DeleteOnTermination: true || false, * Encrypted: true || false, * Iops: Number("int"), * SnapshotId: "STRING_VALUE", * VolumeSize: Number("int"), * VolumeType: "STRING_VALUE", * }, * NoDevice: "STRING_VALUE", * VirtualName: "STRING_VALUE", * }, * ], * EbsOptimized: true || false, * IamInstanceProfile: { // ScheduledInstancesIamInstanceProfile * Arn: "STRING_VALUE", * Name: "STRING_VALUE", * }, * ImageId: "STRING_VALUE", // required * InstanceType: "STRING_VALUE", * KernelId: "STRING_VALUE", * KeyName: "STRING_VALUE", * Monitoring: { // ScheduledInstancesMonitoring * Enabled: true || false, * }, * NetworkInterfaces: [ // ScheduledInstancesNetworkInterfaceSet * { // ScheduledInstancesNetworkInterface * AssociatePublicIpAddress: true || false, * DeleteOnTermination: true || false, * Description: "STRING_VALUE", * DeviceIndex: Number("int"), * Groups: [ // ScheduledInstancesSecurityGroupIdSet * "STRING_VALUE", * ], * Ipv6AddressCount: Number("int"), * Ipv6Addresses: [ // ScheduledInstancesIpv6AddressList * { // ScheduledInstancesIpv6Address * Ipv6Address: "STRING_VALUE", * }, * ], * NetworkInterfaceId: "STRING_VALUE", * PrivateIpAddress: "STRING_VALUE", * PrivateIpAddressConfigs: [ // PrivateIpAddressConfigSet * { // ScheduledInstancesPrivateIpAddressConfig * Primary: true || false, * PrivateIpAddress: "STRING_VALUE", * }, * ], * SecondaryPrivateIpAddressCount: Number("int"), * SubnetId: "STRING_VALUE", * }, * ], * Placement: { // ScheduledInstancesPlacement * AvailabilityZone: "STRING_VALUE", * GroupName: "STRING_VALUE", * }, * RamdiskId: "STRING_VALUE", * SecurityGroupIds: [ * "STRING_VALUE", * ], * SubnetId: "STRING_VALUE", * UserData: "STRING_VALUE", * }, * ScheduledInstanceId: "STRING_VALUE", // required * }; * const command = new RunScheduledInstancesCommand(input); * const response = await client.send(command); * // { // RunScheduledInstancesResult * // InstanceIdSet: [ // InstanceIdSet * // "STRING_VALUE", * // ], * // }; * * ``` * * @param RunScheduledInstancesCommandInput - {@link RunScheduledInstancesCommandInput} * @returns {@link RunScheduledInstancesCommandOutput} * @see {@link RunScheduledInstancesCommandInput} for command's `input` shape. * @see {@link RunScheduledInstancesCommandOutput} 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 RunScheduledInstancesCommand extends RunScheduledInstancesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: RunScheduledInstancesRequest; output: RunScheduledInstancesResult; }; sdk: { input: RunScheduledInstancesCommandInput; output: RunScheduledInstancesCommandOutput; }; }; }