amazonka-cloudformation-1.4.5: Amazon CloudFormation 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.CloudFormation.SetStackPolicy

Contents

Description

Sets a stack policy for a specified stack.

Synopsis

Creating a Request

setStackPolicy #

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

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

  • sspStackPolicyBody - Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.
  • sspStackPolicyURL - Location of a file containing the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an S3 bucket in the same region as the stack. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.
  • sspStackName - The name or unique stack ID that you want to associate a policy with.

data SetStackPolicy #

The input for the SetStackPolicy action.

See: setStackPolicy smart constructor.

Instances

Eq SetStackPolicy # 
Data SetStackPolicy # 

Methods

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

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

toConstr :: SetStackPolicy -> Constr #

dataTypeOf :: SetStackPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetStackPolicy # 
Show SetStackPolicy # 
Generic SetStackPolicy # 

Associated Types

type Rep SetStackPolicy :: * -> * #

Hashable SetStackPolicy # 
NFData SetStackPolicy # 

Methods

rnf :: SetStackPolicy -> () #

AWSRequest SetStackPolicy # 
ToQuery SetStackPolicy # 
ToPath SetStackPolicy # 
ToHeaders SetStackPolicy # 
type Rep SetStackPolicy # 
type Rep SetStackPolicy = D1 (MetaData "SetStackPolicy" "Network.AWS.CloudFormation.SetStackPolicy" "amazonka-cloudformation-1.4.5-GkPqDOYcHIlLStUFA5eeUs" False) (C1 (MetaCons "SetStackPolicy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_sspStackPolicyBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_sspStackPolicyURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_sspStackName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs SetStackPolicy # 

Request Lenses

sspStackPolicyBody :: Lens' SetStackPolicy (Maybe Text) #

Structure containing the stack policy body. For more information, go to Prevent Updates to Stack Resources in the AWS CloudFormation User Guide. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

sspStackPolicyURL :: Lens' SetStackPolicy (Maybe Text) #

Location of a file containing the stack policy. The URL must point to a policy (maximum size: 16 KB) located in an S3 bucket in the same region as the stack. You can specify either the StackPolicyBody or the StackPolicyURL parameter, but not both.

sspStackName :: Lens' SetStackPolicy Text #

The name or unique stack ID that you want to associate a policy with.

Destructuring the Response

setStackPolicyResponse :: SetStackPolicyResponse #

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

data SetStackPolicyResponse #

See: setStackPolicyResponse smart constructor.

Instances

Eq SetStackPolicyResponse # 
Data SetStackPolicyResponse # 

Methods

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

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

toConstr :: SetStackPolicyResponse -> Constr #

dataTypeOf :: SetStackPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SetStackPolicyResponse # 
Show SetStackPolicyResponse # 
Generic SetStackPolicyResponse # 
NFData SetStackPolicyResponse # 

Methods

rnf :: SetStackPolicyResponse -> () #

type Rep SetStackPolicyResponse # 
type Rep SetStackPolicyResponse = D1 (MetaData "SetStackPolicyResponse" "Network.AWS.CloudFormation.SetStackPolicy" "amazonka-cloudformation-1.4.5-GkPqDOYcHIlLStUFA5eeUs" False) (C1 (MetaCons "SetStackPolicyResponse'" PrefixI False) U1)