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.SetStackPolicy

Contents

Description

Sets a stack policy for a specified stack.

Synopsis

Creating a Request

setStackPolicy Source #

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

The input for the SetStackPolicy action.

See: setStackPolicy smart constructor.

Instances

Eq SetStackPolicy Source # 
Data SetStackPolicy Source # 

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 Source # 
Show SetStackPolicy Source # 
Generic SetStackPolicy Source # 

Associated Types

type Rep SetStackPolicy :: * -> * #

Hashable SetStackPolicy Source # 
NFData SetStackPolicy Source # 

Methods

rnf :: SetStackPolicy -> () #

AWSRequest SetStackPolicy Source # 
ToQuery SetStackPolicy Source # 
ToPath SetStackPolicy Source # 
ToHeaders SetStackPolicy Source # 
type Rep SetStackPolicy Source # 
type Rep SetStackPolicy = D1 (MetaData "SetStackPolicy" "Network.AWS.CloudFormation.SetStackPolicy" "amazonka-cloudformation-1.5.0-KJ8fU86x75V4EoPee9jClQ" 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 Source # 

Request Lenses

sspStackPolicyBody :: Lens' SetStackPolicy (Maybe Text) Source #

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

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

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

Destructuring the Response

setStackPolicyResponse :: SetStackPolicyResponse Source #

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

data SetStackPolicyResponse Source #

See: setStackPolicyResponse smart constructor.

Instances

Eq SetStackPolicyResponse Source # 
Data SetStackPolicyResponse Source # 

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

Methods

rnf :: SetStackPolicyResponse -> () #

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