amazonka-cloudformation-1.5.0: Amazon CloudFormation SDK.

Copyright(c) 2013-2017 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.CloudFormation.UpdateTerminationProtection

Contents

Description

Updates termination protection for the specified stack. If a user attempts to delete a stack with termination protection enabled, the operation fails and the stack remains unchanged. For more information, see Protecting a Stack From Being Deleted in the AWS CloudFormation User Guide .

For nested stacks , termination protection is set on the root stack and cannot be changed directly on the nested stack.

Synopsis

Creating a Request

updateTerminationProtection Source #

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

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

data UpdateTerminationProtection Source #

See: updateTerminationProtection smart constructor.

Instances

Eq UpdateTerminationProtection Source # 
Data UpdateTerminationProtection Source # 

Methods

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

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

toConstr :: UpdateTerminationProtection -> Constr #

dataTypeOf :: UpdateTerminationProtection -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateTerminationProtection Source # 
Show UpdateTerminationProtection Source # 
Generic UpdateTerminationProtection Source # 
Hashable UpdateTerminationProtection Source # 
NFData UpdateTerminationProtection Source # 
AWSRequest UpdateTerminationProtection Source # 
ToQuery UpdateTerminationProtection Source # 
ToPath UpdateTerminationProtection Source # 
ToHeaders UpdateTerminationProtection Source # 
type Rep UpdateTerminationProtection Source # 
type Rep UpdateTerminationProtection = D1 (MetaData "UpdateTerminationProtection" "Network.AWS.CloudFormation.UpdateTerminationProtection" "amazonka-cloudformation-1.5.0-KJ8fU86x75V4EoPee9jClQ" False) (C1 (MetaCons "UpdateTerminationProtection'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_utpEnableTerminationProtection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_utpStackName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs UpdateTerminationProtection Source # 

Request Lenses

utpEnableTerminationProtection :: Lens' UpdateTerminationProtection Bool Source #

Whether to enable termination protection on the specified stack.

utpStackName :: Lens' UpdateTerminationProtection Text Source #

The name or unique ID of the stack for which you want to set termination protection.

Destructuring the Response

updateTerminationProtectionResponse Source #

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

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

data UpdateTerminationProtectionResponse Source #

See: updateTerminationProtectionResponse smart constructor.

Instances

Eq UpdateTerminationProtectionResponse Source # 
Data UpdateTerminationProtectionResponse Source # 

Methods

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

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

toConstr :: UpdateTerminationProtectionResponse -> Constr #

dataTypeOf :: UpdateTerminationProtectionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read UpdateTerminationProtectionResponse Source # 
Show UpdateTerminationProtectionResponse Source # 
Generic UpdateTerminationProtectionResponse Source # 
NFData UpdateTerminationProtectionResponse Source # 
type Rep UpdateTerminationProtectionResponse Source # 
type Rep UpdateTerminationProtectionResponse = D1 (MetaData "UpdateTerminationProtectionResponse" "Network.AWS.CloudFormation.UpdateTerminationProtection" "amazonka-cloudformation-1.5.0-KJ8fU86x75V4EoPee9jClQ" False) (C1 (MetaCons "UpdateTerminationProtectionResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_utprsStackId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_utprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses