amazonka-autoscaling-1.6.1: Amazon Auto Scaling 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.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 #

See: setInstanceProtection smart constructor.

Instances
Eq SetInstanceProtection Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

Data SetInstanceProtection Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

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 # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

Show SetInstanceProtection Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

Generic SetInstanceProtection Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

Associated Types

type Rep SetInstanceProtection :: Type -> Type #

Hashable SetInstanceProtection Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

AWSRequest SetInstanceProtection Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

Associated Types

type Rs SetInstanceProtection :: Type #

ToHeaders SetInstanceProtection Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

ToPath SetInstanceProtection Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

ToQuery SetInstanceProtection Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

NFData SetInstanceProtection Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

Methods

rnf :: SetInstanceProtection -> () #

type Rep SetInstanceProtection Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

type Rep SetInstanceProtection = D1 (MetaData "SetInstanceProtection" "Network.AWS.AutoScaling.SetInstanceProtection" "amazonka-autoscaling-1.6.1-AbdWdH026wCXAk2CK79vG" False) (C1 (MetaCons "SetInstanceProtection'" PrefixI True) (S1 (MetaSel (Just "_sipInstanceIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]) :*: (S1 (MetaSel (Just "_sipAutoScalingGroupName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_sipProtectedFromScaleIn") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool))))
type Rs SetInstanceProtection Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

Request Lenses

sipInstanceIds :: Lens' SetInstanceProtection [Text] Source #

One or more instance IDs.

sipAutoScalingGroupName :: Lens' SetInstanceProtection Text Source #

The name of the Auto Scaling group.

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 #

See: setInstanceProtectionResponse smart constructor.

Instances
Eq SetInstanceProtectionResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

Data SetInstanceProtectionResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

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 # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

Show SetInstanceProtectionResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

Generic SetInstanceProtectionResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

Associated Types

type Rep SetInstanceProtectionResponse :: Type -> Type #

NFData SetInstanceProtectionResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

type Rep SetInstanceProtectionResponse Source # 
Instance details

Defined in Network.AWS.AutoScaling.SetInstanceProtection

type Rep SetInstanceProtectionResponse = D1 (MetaData "SetInstanceProtectionResponse" "Network.AWS.AutoScaling.SetInstanceProtection" "amazonka-autoscaling-1.6.1-AbdWdH026wCXAk2CK79vG" True) (C1 (MetaCons "SetInstanceProtectionResponse'" PrefixI True) (S1 (MetaSel (Just "_siprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses