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

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:

data CancelSpotFleetRequests Source #

Contains the parameters for CancelSpotFleetRequests.

See: cancelSpotFleetRequests smart constructor.

Instances

Eq CancelSpotFleetRequests Source # 
Data CancelSpotFleetRequests Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CancelSpotFleetRequests -> c CancelSpotFleetRequests #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CancelSpotFleetRequests #

toConstr :: CancelSpotFleetRequests -> Constr #

dataTypeOf :: CancelSpotFleetRequests -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CancelSpotFleetRequests) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CancelSpotFleetRequests) #

gmapT :: (forall b. Data b => b -> b) -> CancelSpotFleetRequests -> CancelSpotFleetRequests #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CancelSpotFleetRequests -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CancelSpotFleetRequests -> r #

gmapQ :: (forall d. Data d => d -> u) -> CancelSpotFleetRequests -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CancelSpotFleetRequests -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CancelSpotFleetRequests -> m CancelSpotFleetRequests #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CancelSpotFleetRequests -> m CancelSpotFleetRequests #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CancelSpotFleetRequests -> m CancelSpotFleetRequests #

Read CancelSpotFleetRequests Source # 
Show CancelSpotFleetRequests Source # 
Generic CancelSpotFleetRequests Source # 
Hashable CancelSpotFleetRequests Source # 
NFData CancelSpotFleetRequests Source # 

Methods

rnf :: CancelSpotFleetRequests -> () #

AWSRequest CancelSpotFleetRequests Source # 
ToQuery CancelSpotFleetRequests Source # 
ToPath CancelSpotFleetRequests Source # 
ToHeaders CancelSpotFleetRequests Source # 
type Rep CancelSpotFleetRequests Source # 
type Rep CancelSpotFleetRequests = D1 (MetaData "CancelSpotFleetRequests" "Network.AWS.EC2.CancelSpotFleetRequests" "amazonka-ec2-1.4.1-5DlWz6no0BoLQhxZVyzMyd" False) (C1 (MetaCons "CancelSpotFleetRequests'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_csfrDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_csfrSpotFleetRequestIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])) (S1 (MetaSel (Just Symbol "_csfrTerminateInstances") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))))
type Rs CancelSpotFleetRequests Source # 

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:

data CancelSpotFleetRequestsResponse Source #

Contains the output of CancelSpotFleetRequests.

See: cancelSpotFleetRequestsResponse smart constructor.

Instances

Eq CancelSpotFleetRequestsResponse Source # 
Data CancelSpotFleetRequestsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> CancelSpotFleetRequestsResponse -> c CancelSpotFleetRequestsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c CancelSpotFleetRequestsResponse #

toConstr :: CancelSpotFleetRequestsResponse -> Constr #

dataTypeOf :: CancelSpotFleetRequestsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c CancelSpotFleetRequestsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c CancelSpotFleetRequestsResponse) #

gmapT :: (forall b. Data b => b -> b) -> CancelSpotFleetRequestsResponse -> CancelSpotFleetRequestsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> CancelSpotFleetRequestsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> CancelSpotFleetRequestsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> CancelSpotFleetRequestsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> CancelSpotFleetRequestsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> CancelSpotFleetRequestsResponse -> m CancelSpotFleetRequestsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> CancelSpotFleetRequestsResponse -> m CancelSpotFleetRequestsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> CancelSpotFleetRequestsResponse -> m CancelSpotFleetRequestsResponse #

Read CancelSpotFleetRequestsResponse Source # 
Show CancelSpotFleetRequestsResponse Source # 
Generic CancelSpotFleetRequestsResponse Source # 
NFData CancelSpotFleetRequestsResponse Source # 
type Rep CancelSpotFleetRequestsResponse Source # 
type Rep CancelSpotFleetRequestsResponse = D1 (MetaData "CancelSpotFleetRequestsResponse" "Network.AWS.EC2.CancelSpotFleetRequests" "amazonka-ec2-1.4.1-5DlWz6no0BoLQhxZVyzMyd" False) (C1 (MetaCons "CancelSpotFleetRequestsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_csfrrsSuccessfulFleetRequests") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [CancelSpotFleetRequestsSuccessItem]))) ((:*:) (S1 (MetaSel (Just Symbol "_csfrrsUnsuccessfulFleetRequests") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [CancelSpotFleetRequestsErrorItem]))) (S1 (MetaSel (Just Symbol "_csfrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

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.