amazonka-cloudformation-1.4.1: 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.GetTemplate

Contents

Description

Returns the template body for a specified stack. You can get the template for running or deleted stacks.

For deleted stacks, GetTemplate returns the template for up to 90 days after the stack has been deleted.

If the template does not exist, a ValidationError is returned.

Synopsis

Creating a Request

getTemplate Source #

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

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

data GetTemplate Source #

The input for a GetTemplate action.

See: getTemplate smart constructor.

Instances

Eq GetTemplate Source # 
Data GetTemplate Source # 

Methods

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

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

toConstr :: GetTemplate -> Constr #

dataTypeOf :: GetTemplate -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetTemplate Source # 
Show GetTemplate Source # 
Generic GetTemplate Source # 

Associated Types

type Rep GetTemplate :: * -> * #

Hashable GetTemplate Source # 
NFData GetTemplate Source # 

Methods

rnf :: GetTemplate -> () #

AWSRequest GetTemplate Source # 
ToQuery GetTemplate Source # 
ToPath GetTemplate Source # 
ToHeaders GetTemplate Source # 

Methods

toHeaders :: GetTemplate -> [Header] #

type Rep GetTemplate Source # 
type Rep GetTemplate = D1 (MetaData "GetTemplate" "Network.AWS.CloudFormation.GetTemplate" "amazonka-cloudformation-1.4.1-AIuz6cQOhMpGCD0CNkdTiP" True) (C1 (MetaCons "GetTemplate'" PrefixI True) (S1 (MetaSel (Just Symbol "_gtStackName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))
type Rs GetTemplate Source # 

Request Lenses

gtStackName :: Lens' GetTemplate Text Source #

The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

  • Running stacks: You can specify either the stack's name or its unique stack ID.
  • Deleted stacks: You must specify the unique stack ID.

Default: There is no default value.

Destructuring the Response

getTemplateResponse Source #

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

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

data GetTemplateResponse Source #

The output for GetTemplate action.

See: getTemplateResponse smart constructor.

Instances

Eq GetTemplateResponse Source # 
Data GetTemplateResponse Source # 

Methods

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

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

toConstr :: GetTemplateResponse -> Constr #

dataTypeOf :: GetTemplateResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetTemplateResponse Source # 
Show GetTemplateResponse Source # 
Generic GetTemplateResponse Source # 
NFData GetTemplateResponse Source # 

Methods

rnf :: GetTemplateResponse -> () #

type Rep GetTemplateResponse Source # 
type Rep GetTemplateResponse = D1 (MetaData "GetTemplateResponse" "Network.AWS.CloudFormation.GetTemplate" "amazonka-cloudformation-1.4.1-AIuz6cQOhMpGCD0CNkdTiP" False) (C1 (MetaCons "GetTemplateResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gtrsTemplateBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

gtrsTemplateBody :: Lens' GetTemplateResponse (Maybe Text) Source #

Structure containing the template body. (For more information, go to Template Anatomy in the AWS CloudFormation User Guide.)