amazonka-ec2-1.3.7: 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.CancelSpotFleetRequests

Contents

Description

Cancels the specified Spot fleet requests.

After you cancel a Spot fleet request, the Spot fleet launches no new Spot instances. You must specify whether the Spot fleet should also terminate its Spot instances. If you terminate the instances, the Spot fleet request enters the cancelled_terminating state. Otherwise, the Spot fleet request enters the cancelled_running state and the instances continue to run until they are interrupted or you terminate them manually.

See: AWS API Reference for CancelSpotFleetRequests.

Synopsis

Creating a Request

cancelSpotFleetRequests Source

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

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

Request Lenses

csfrDryRun :: Lens' CancelSpotFleetRequests (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.

csfrSpotFleetRequestIds :: Lens' CancelSpotFleetRequests [Text] Source

The IDs of the Spot fleet requests.

csfrTerminateInstances :: Lens' CancelSpotFleetRequests Bool Source

Indicates whether to terminate instances for a Spot fleet request if it is canceled successfully.

Destructuring the Response

cancelSpotFleetRequestsResponse Source

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

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

Response Lenses

csfrrsSuccessfulFleetRequests :: Lens' CancelSpotFleetRequestsResponse [CancelSpotFleetRequestsSuccessItem] Source

Information about the Spot fleet requests that are successfully canceled.

csfrrsUnsuccessfulFleetRequests :: Lens' CancelSpotFleetRequestsResponse [CancelSpotFleetRequestsErrorItem] Source

Information about the Spot fleet requests that are not successfully canceled.