Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- runScheduledInstances :: Text -> ScheduledInstancesLaunchSpecification -> RunScheduledInstances
- data RunScheduledInstances
- rsiClientToken :: Lens' RunScheduledInstances (Maybe Text)
- rsiInstanceCount :: Lens' RunScheduledInstances (Maybe Int)
- rsiDryRun :: Lens' RunScheduledInstances (Maybe Bool)
- rsiScheduledInstanceId :: Lens' RunScheduledInstances Text
- rsiLaunchSpecification :: Lens' RunScheduledInstances ScheduledInstancesLaunchSpecification
- runScheduledInstancesResponse :: Int -> RunScheduledInstancesResponse
- data RunScheduledInstancesResponse
- rrsInstanceIdSet :: Lens' RunScheduledInstancesResponse [Text]
- rrsResponseStatus :: Lens' RunScheduledInstancesResponse Int
Creating a Request
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:
data RunScheduledInstances Source
Contains the parameters for RunScheduledInstances.
See: runScheduledInstances
smart constructor.
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
.
rsiScheduledInstanceId :: Lens' RunScheduledInstances Text Source
The Scheduled Instance ID.
rsiLaunchSpecification :: Lens' RunScheduledInstances ScheduledInstancesLaunchSpecification Source
The launch specification.
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:
data RunScheduledInstancesResponse Source
Contains the output of RunScheduledInstances.
See: runScheduledInstancesResponse
smart constructor.
Response Lenses
rrsInstanceIdSet :: Lens' RunScheduledInstancesResponse [Text] Source
The IDs of the newly launched instances.
rrsResponseStatus :: Lens' RunScheduledInstancesResponse Int Source
The response status code.