amazonka-ec2-1.4.0: Amazon Elastic Compute Cloud SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.RunScheduledInstances

Contents

Description

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.

Synopsis

Creating a Request

runScheduledInstances Source

Creates a value of RunScheduledInstances with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

rsiClientToken :: Lens' RunScheduledInstances (Maybe Text) Source

Unique, case-sensitive identifier that ensures the idempotency of the request. For more information, see Ensuring Idempotency.

rsiInstanceCount :: Lens' RunScheduledInstances (Maybe Int) Source

The number of instances.

Default: 1

rsiDryRun :: Lens' RunScheduledInstances (Maybe Bool) Source

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Destructuring the Response

runScheduledInstancesResponse Source

Creates a value of RunScheduledInstancesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

rrsInstanceIdSet :: Lens' RunScheduledInstancesResponse [Text] Source

The IDs of the newly launched instances.