amazonka-cloudformation-1.6.1: Amazon CloudFormation 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.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 # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

Data SetStackPolicy Source # 
Instance details

Defined in Network.AWS.CloudFormation.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 Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

Show SetStackPolicy Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

Generic SetStackPolicy Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

Associated Types

type Rep SetStackPolicy :: Type -> Type #

Hashable SetStackPolicy Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

AWSRequest SetStackPolicy Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

Associated Types

type Rs SetStackPolicy :: Type #

ToHeaders SetStackPolicy Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

ToPath SetStackPolicy Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

ToQuery SetStackPolicy Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

NFData SetStackPolicy Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

Methods

rnf :: SetStackPolicy -> () #

type Rep SetStackPolicy Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

type Rep SetStackPolicy = D1 (MetaData "SetStackPolicy" "Network.AWS.CloudFormation.SetStackPolicy" "amazonka-cloudformation-1.6.1-9C1vgCDBA4sIHFUFfPs2gm" False) (C1 (MetaCons "SetStackPolicy'" PrefixI True) (S1 (MetaSel (Just "_sspStackPolicyBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_sspStackPolicyURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sspStackName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs SetStackPolicy Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

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

Defined in Network.AWS.CloudFormation.SetStackPolicy

Data SetStackPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

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

Defined in Network.AWS.CloudFormation.SetStackPolicy

Show SetStackPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

Generic SetStackPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

Associated Types

type Rep SetStackPolicyResponse :: Type -> Type #

NFData SetStackPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

Methods

rnf :: SetStackPolicyResponse -> () #

type Rep SetStackPolicyResponse Source # 
Instance details

Defined in Network.AWS.CloudFormation.SetStackPolicy

type Rep SetStackPolicyResponse = D1 (MetaData "SetStackPolicyResponse" "Network.AWS.CloudFormation.SetStackPolicy" "amazonka-cloudformation-1.6.1-9C1vgCDBA4sIHFUFfPs2gm" False) (C1 (MetaCons "SetStackPolicyResponse'" PrefixI False) (U1 :: Type -> Type))