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

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

Network.AWS.EC2.DeleteFleets

Contents

Description

Deletes the specified EC2 Fleet.

After you delete an EC2 Fleet, the EC2 Fleet launches no new instances. You must specify whether the EC2 Fleet should also terminate its instances. If you terminate the instances, the EC2 Fleet enters the deleted_terminating state. Otherwise, the EC2 Fleet enters the deleted_running state, and the instances continue to run until they are interrupted or you terminate them manually.

Synopsis

Creating a Request

deleteFleets #

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

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

  • dfDryRun - 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 .
  • dfFleetIds - The IDs of the EC2 Fleets.
  • dfTerminateInstances - Indicates whether to terminate instances for an EC2 Fleet if it is deleted successfully.

data DeleteFleets #

See: deleteFleets smart constructor.

Instances

Eq DeleteFleets # 
Data DeleteFleets # 

Methods

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

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

toConstr :: DeleteFleets -> Constr #

dataTypeOf :: DeleteFleets -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteFleets # 
Show DeleteFleets # 
Generic DeleteFleets # 

Associated Types

type Rep DeleteFleets :: * -> * #

Hashable DeleteFleets # 
NFData DeleteFleets # 

Methods

rnf :: DeleteFleets -> () #

AWSRequest DeleteFleets # 
ToHeaders DeleteFleets # 
ToPath DeleteFleets # 
ToQuery DeleteFleets # 
type Rep DeleteFleets # 
type Rep DeleteFleets = D1 * (MetaData "DeleteFleets" "Network.AWS.EC2.DeleteFleets" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "DeleteFleets'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dfDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dfFleetIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [Text])) (S1 * (MetaSel (Just Symbol "_dfTerminateInstances") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Bool)))))
type Rs DeleteFleets # 

Request Lenses

dfDryRun :: Lens' DeleteFleets (Maybe Bool) #

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 .

dfFleetIds :: Lens' DeleteFleets [Text] #

The IDs of the EC2 Fleets.

dfTerminateInstances :: Lens' DeleteFleets Bool #

Indicates whether to terminate instances for an EC2 Fleet if it is deleted successfully.

Destructuring the Response

deleteFleetsResponse #

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

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

data DeleteFleetsResponse #

See: deleteFleetsResponse smart constructor.

Instances

Eq DeleteFleetsResponse # 
Data DeleteFleetsResponse # 

Methods

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

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

toConstr :: DeleteFleetsResponse -> Constr #

dataTypeOf :: DeleteFleetsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DeleteFleetsResponse # 
Show DeleteFleetsResponse # 
Generic DeleteFleetsResponse # 
NFData DeleteFleetsResponse # 

Methods

rnf :: DeleteFleetsResponse -> () #

type Rep DeleteFleetsResponse # 
type Rep DeleteFleetsResponse = D1 * (MetaData "DeleteFleetsResponse" "Network.AWS.EC2.DeleteFleets" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "DeleteFleetsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_dfrsSuccessfulFleetDeletions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [DeleteFleetSuccessItem]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_dfrsUnsuccessfulFleetDeletions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [DeleteFleetErrorItem]))) (S1 * (MetaSel (Just Symbol "_dfrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

dfrsSuccessfulFleetDeletions :: Lens' DeleteFleetsResponse [DeleteFleetSuccessItem] #

Information about the EC2 Fleets that are successfully deleted.

dfrsUnsuccessfulFleetDeletions :: Lens' DeleteFleetsResponse [DeleteFleetErrorItem] #

Information about the EC2 Fleets that are not successfully deleted.

dfrsResponseStatus :: Lens' DeleteFleetsResponse Int #

  • - | The response status code.