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

Copyright(c) 2013-2015 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.CancelSpotInstanceRequests

Contents

Description

Cancels one or more Spot instance requests. Spot instances are instances that Amazon EC2 starts on your behalf when the bid price that you specify exceeds the current Spot price. Amazon EC2 periodically sets the Spot price based on available Spot instance capacity and current Spot instance requests. For more information, see Spot Instance Requests in the Amazon Elastic Compute Cloud User Guide.

Canceling a Spot instance request does not terminate running Spot instances associated with the request.

See: AWS API Reference for CancelSpotInstanceRequests.

Synopsis

Creating a Request

cancelSpotInstanceRequests :: CancelSpotInstanceRequests Source

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

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

Request Lenses

csirDryRun :: Lens' CancelSpotInstanceRequests (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.

csirSpotInstanceRequestIds :: Lens' CancelSpotInstanceRequests [Text] Source

One or more Spot instance request IDs.

Destructuring the Response

cancelSpotInstanceRequestsResponse Source

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

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

Response Lenses