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

Contents

Description

Returns the stack policy for a specified stack. If a stack doesn't have a policy, a null value is returned.

Synopsis

Creating a Request

getStackPolicy Source #

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

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

  • gspStackName - The name or unique stack ID that is associated with the stack whose policy you want to get.

data GetStackPolicy Source #

The input for the GetStackPolicy action.

See: getStackPolicy smart constructor.

Instances

Eq GetStackPolicy Source # 
Data GetStackPolicy Source # 

Methods

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

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

toConstr :: GetStackPolicy -> Constr #

dataTypeOf :: GetStackPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetStackPolicy Source # 
Show GetStackPolicy Source # 
Generic GetStackPolicy Source # 

Associated Types

type Rep GetStackPolicy :: * -> * #

Hashable GetStackPolicy Source # 
NFData GetStackPolicy Source # 

Methods

rnf :: GetStackPolicy -> () #

AWSRequest GetStackPolicy Source # 
ToPath GetStackPolicy Source # 
ToHeaders GetStackPolicy Source # 
ToQuery GetStackPolicy Source # 
type Rep GetStackPolicy Source # 
type Rep GetStackPolicy = D1 (MetaData "GetStackPolicy" "Network.AWS.CloudFormation.GetStackPolicy" "amazonka-cloudformation-1.4.5-G0stfcEaDzC4JoYZoVvUrE" True) (C1 (MetaCons "GetStackPolicy'" PrefixI True) (S1 (MetaSel (Just Symbol "_gspStackName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetStackPolicy Source # 

Request Lenses

gspStackName :: Lens' GetStackPolicy Text Source #

The name or unique stack ID that is associated with the stack whose policy you want to get.

Destructuring the Response

getStackPolicyResponse Source #

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

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

data GetStackPolicyResponse Source #

The output for the GetStackPolicy action.

See: getStackPolicyResponse smart constructor.

Instances

Eq GetStackPolicyResponse Source # 
Data GetStackPolicyResponse Source # 

Methods

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

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

toConstr :: GetStackPolicyResponse -> Constr #

dataTypeOf :: GetStackPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetStackPolicyResponse Source # 
Show GetStackPolicyResponse Source # 
Generic GetStackPolicyResponse Source # 
NFData GetStackPolicyResponse Source # 

Methods

rnf :: GetStackPolicyResponse -> () #

type Rep GetStackPolicyResponse Source # 
type Rep GetStackPolicyResponse = D1 (MetaData "GetStackPolicyResponse" "Network.AWS.CloudFormation.GetStackPolicy" "amazonka-cloudformation-1.4.5-G0stfcEaDzC4JoYZoVvUrE" False) (C1 (MetaCons "GetStackPolicyResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gsprsStackPolicyBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gsprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

gsprsStackPolicyBody :: Lens' GetStackPolicyResponse (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.)