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.RequestSpotFleet

Contents

Description

Creates a Spot Fleet request.

The Spot Fleet request specifies the total target capacity and the On-Demand target capacity. Amazon EC2 calculates the difference between the total capacity and On-Demand capacity, and launches the difference as Spot capacity.

You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

By default, the Spot Fleet requests Spot Instances in the Spot pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.

Alternatively, you can specify that the Spot Fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot Instances in your Spot Fleet are in different Spot pools, you can improve the availability of your fleet.

You can specify tags for the Spot Instances. You cannot tag other resource types in a Spot Fleet request because only the instance resource type is supported.

For more information, see Spot Fleet Requests in the Amazon EC2 User Guide for Linux Instances .

Synopsis

Creating a Request

requestSpotFleet #

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

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

  • rsfDryRun - 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 .
  • rsfSpotFleetRequestConfig - The configuration for the Spot Fleet request.

data RequestSpotFleet #

Contains the parameters for RequestSpotFleet.

See: requestSpotFleet smart constructor.

Instances

Eq RequestSpotFleet # 
Data RequestSpotFleet # 

Methods

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

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

toConstr :: RequestSpotFleet -> Constr #

dataTypeOf :: RequestSpotFleet -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RequestSpotFleet # 
Show RequestSpotFleet # 
Generic RequestSpotFleet # 
Hashable RequestSpotFleet # 
NFData RequestSpotFleet # 

Methods

rnf :: RequestSpotFleet -> () #

AWSRequest RequestSpotFleet # 
ToHeaders RequestSpotFleet # 
ToPath RequestSpotFleet # 
ToQuery RequestSpotFleet # 
type Rep RequestSpotFleet # 
type Rep RequestSpotFleet = D1 * (MetaData "RequestSpotFleet" "Network.AWS.EC2.RequestSpotFleet" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "RequestSpotFleet'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rsfDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_rsfSpotFleetRequestConfig") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * SpotFleetRequestConfigData))))
type Rs RequestSpotFleet # 

Request Lenses

rsfDryRun :: Lens' RequestSpotFleet (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 .

rsfSpotFleetRequestConfig :: Lens' RequestSpotFleet SpotFleetRequestConfigData #

The configuration for the Spot Fleet request.

Destructuring the Response

requestSpotFleetResponse #

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

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

data RequestSpotFleetResponse #

Contains the output of RequestSpotFleet.

See: requestSpotFleetResponse smart constructor.

Instances

Eq RequestSpotFleetResponse # 
Data RequestSpotFleetResponse # 

Methods

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

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

toConstr :: RequestSpotFleetResponse -> Constr #

dataTypeOf :: RequestSpotFleetResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read RequestSpotFleetResponse # 
Show RequestSpotFleetResponse # 
Generic RequestSpotFleetResponse # 
NFData RequestSpotFleetResponse # 
type Rep RequestSpotFleetResponse # 
type Rep RequestSpotFleetResponse = D1 * (MetaData "RequestSpotFleetResponse" "Network.AWS.EC2.RequestSpotFleet" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" False) (C1 * (MetaCons "RequestSpotFleetResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_rsfrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_rsfrsSpotFleetRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text))))

Response Lenses

rsfrsResponseStatus :: Lens' RequestSpotFleetResponse Int #

  • - | The response status code.

rsfrsSpotFleetRequestId :: Lens' RequestSpotFleetResponse Text #

The ID of the Spot Fleet request.