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

Contents

Description

Modifies the specified EC2 Fleet.

While the EC2 Fleet is being modified, it is in the modifying state.

Synopsis

Creating a Request

modifyFleet Source #

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

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

  • mfExcessCapacityTerminationPolicy - Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.
  • mfDryRun - 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 .
  • mfFleetId - The ID of the EC2 Fleet.
  • mfTargetCapacitySpecification - The size of the EC2 Fleet.

data ModifyFleet Source #

See: modifyFleet smart constructor.

Instances

Eq ModifyFleet Source # 
Data ModifyFleet Source # 

Methods

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

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

toConstr :: ModifyFleet -> Constr #

dataTypeOf :: ModifyFleet -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyFleet Source # 
Show ModifyFleet Source # 
Generic ModifyFleet Source # 

Associated Types

type Rep ModifyFleet :: * -> * #

Hashable ModifyFleet Source # 
NFData ModifyFleet Source # 

Methods

rnf :: ModifyFleet -> () #

AWSRequest ModifyFleet Source # 
ToHeaders ModifyFleet Source # 

Methods

toHeaders :: ModifyFleet -> [Header] #

ToPath ModifyFleet Source # 
ToQuery ModifyFleet Source # 
type Rep ModifyFleet Source # 
type Rep ModifyFleet = D1 * (MetaData "ModifyFleet" "Network.AWS.EC2.ModifyFleet" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "ModifyFleet'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_mfExcessCapacityTerminationPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe FleetExcessCapacityTerminationPolicy))) (S1 * (MetaSel (Just Symbol "_mfDryRun") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mfFleetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_mfTargetCapacitySpecification") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * TargetCapacitySpecificationRequest)))))
type Rs ModifyFleet Source # 

Request Lenses

mfExcessCapacityTerminationPolicy :: Lens' ModifyFleet (Maybe FleetExcessCapacityTerminationPolicy) Source #

Indicates whether running instances should be terminated if the total target capacity of the EC2 Fleet is decreased below the current size of the EC2 Fleet.

mfDryRun :: Lens' ModifyFleet (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 .

mfFleetId :: Lens' ModifyFleet Text Source #

The ID of the EC2 Fleet.

Destructuring the Response

modifyFleetResponse Source #

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

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

data ModifyFleetResponse Source #

See: modifyFleetResponse smart constructor.

Instances

Eq ModifyFleetResponse Source # 
Data ModifyFleetResponse Source # 

Methods

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

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

toConstr :: ModifyFleetResponse -> Constr #

dataTypeOf :: ModifyFleetResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ModifyFleetResponse Source # 
Show ModifyFleetResponse Source # 
Generic ModifyFleetResponse Source # 
NFData ModifyFleetResponse Source # 

Methods

rnf :: ModifyFleetResponse -> () #

type Rep ModifyFleetResponse Source # 
type Rep ModifyFleetResponse = D1 * (MetaData "ModifyFleetResponse" "Network.AWS.EC2.ModifyFleet" "amazonka-ec2-1.6.0-Kkew7Kpgof6EYi20Z0WOzs" False) (C1 * (MetaCons "ModifyFleetResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_mfrsReturn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Bool))) (S1 * (MetaSel (Just Symbol "_mfrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

mfrsReturn :: Lens' ModifyFleetResponse (Maybe Bool) Source #

Is true if the request succeeds, and an error otherwise.

mfrsResponseStatus :: Lens' ModifyFleetResponse Int Source #

  • - | The response status code.