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 #

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 #

See: modifyFleet smart constructor.

Instances

Eq ModifyFleet # 
Data ModifyFleet # 

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 # 
Show ModifyFleet # 
Generic ModifyFleet # 

Associated Types

type Rep ModifyFleet :: * -> * #

Hashable ModifyFleet # 
NFData ModifyFleet # 

Methods

rnf :: ModifyFleet -> () #

AWSRequest ModifyFleet # 
ToHeaders ModifyFleet # 

Methods

toHeaders :: ModifyFleet -> [Header] #

ToPath ModifyFleet # 
ToQuery ModifyFleet # 
type Rep ModifyFleet # 
type Rep ModifyFleet = D1 * (MetaData "ModifyFleet" "Network.AWS.EC2.ModifyFleet" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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 # 

Request Lenses

mfExcessCapacityTerminationPolicy :: Lens' ModifyFleet (Maybe FleetExcessCapacityTerminationPolicy) #

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) #

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 #

The ID of the EC2 Fleet.

Destructuring the Response

modifyFleetResponse #

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 #

See: modifyFleetResponse smart constructor.

Instances

Eq ModifyFleetResponse # 
Data ModifyFleetResponse # 

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 # 
Show ModifyFleetResponse # 
Generic ModifyFleetResponse # 
NFData ModifyFleetResponse # 

Methods

rnf :: ModifyFleetResponse -> () #

type Rep ModifyFleetResponse # 
type Rep ModifyFleetResponse = D1 * (MetaData "ModifyFleetResponse" "Network.AWS.EC2.ModifyFleet" "amazonka-ec2-1.6.0-Dm9BQRbqSOK72xbfLZMG4m" 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) #

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

mfrsResponseStatus :: Lens' ModifyFleetResponse Int #

  • - | The response status code.