amazonka-autoscaling-1.4.5: Amazon Auto Scaling 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.AutoScaling.SetInstanceProtection

Contents

Description

Updates the instance protection settings of the specified instances.

For more information, see Instance Protection in the Auto Scaling User Guide .

Synopsis

Creating a Request

setInstanceProtection Source #

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

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

data SetInstanceProtection Source #

Contains the parameters for SetInstanceProtection.

See: setInstanceProtection smart constructor.

Instances

Eq SetInstanceProtection Source # 
Data SetInstanceProtection Source # 

Methods

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

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

toConstr :: SetInstanceProtection -> Constr #

dataTypeOf :: SetInstanceProtection -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetInstanceProtection Source # 
Show SetInstanceProtection Source # 
Generic SetInstanceProtection Source # 
Hashable SetInstanceProtection Source # 
NFData SetInstanceProtection Source # 

Methods

rnf :: SetInstanceProtection -> () #

AWSRequest SetInstanceProtection Source # 
ToPath SetInstanceProtection Source # 
ToHeaders SetInstanceProtection Source # 
ToQuery SetInstanceProtection Source # 
type Rep SetInstanceProtection Source # 
type Rep SetInstanceProtection = D1 (MetaData "SetInstanceProtection" "Network.AWS.AutoScaling.SetInstanceProtection" "amazonka-autoscaling-1.4.5-8yDHjz7ddEsEeD2f2YA1qk" False) (C1 (MetaCons "SetInstanceProtection'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_sipInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text])) ((:*:) (S1 (MetaSel (Just Symbol "_sipAutoScalingGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_sipProtectedFromScaleIn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)))))
type Rs SetInstanceProtection Source # 

Request Lenses

sipInstanceIds :: Lens' SetInstanceProtection [Text] Source #

One or more instance IDs.

sipProtectedFromScaleIn :: Lens' SetInstanceProtection Bool Source #

Indicates whether the instance is protected from termination by Auto Scaling when scaling in.

Destructuring the Response

setInstanceProtectionResponse Source #

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

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

data SetInstanceProtectionResponse Source #

Contains the output of SetInstanceProtection.

See: setInstanceProtectionResponse smart constructor.

Instances

Eq SetInstanceProtectionResponse Source # 
Data SetInstanceProtectionResponse Source # 

Methods

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

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

toConstr :: SetInstanceProtectionResponse -> Constr #

dataTypeOf :: SetInstanceProtectionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetInstanceProtectionResponse Source # 
Show SetInstanceProtectionResponse Source # 
Generic SetInstanceProtectionResponse Source # 
NFData SetInstanceProtectionResponse Source # 
type Rep SetInstanceProtectionResponse Source # 
type Rep SetInstanceProtectionResponse = D1 (MetaData "SetInstanceProtectionResponse" "Network.AWS.AutoScaling.SetInstanceProtection" "amazonka-autoscaling-1.4.5-8yDHjz7ddEsEeD2f2YA1qk" True) (C1 (MetaCons "SetInstanceProtectionResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_siprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses