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

Synopsis

Creating a Request

getTemplate :: 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:

  • gtChangeSetName - The name or Amazon Resource Name (ARN) of a change set for which AWS CloudFormation returns the associated template. If you specify a name, you must also specify the StackName .
  • gtTemplateStage - For templates that include transforms, the stage of the template that AWS CloudFormation returns. To get the user-submitted template, specify Original . To get the template after AWS CloudFormation has processed all transforms, specify Processed . If the template doesn't include transforms, Original and Processed return the same template. By default, AWS CloudFormation specifies Original .
  • gtStackName - 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.

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.5.0-KJ8fU86x75V4EoPee9jClQ" False) (C1 (MetaCons "GetTemplate'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gtChangeSetName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gtTemplateStage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TemplateStage))) (S1 (MetaSel (Just Symbol "_gtStackName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Rs GetTemplate Source # 

Request Lenses

gtChangeSetName :: Lens' GetTemplate (Maybe Text) Source #

The name or Amazon Resource Name (ARN) of a change set for which AWS CloudFormation returns the associated template. If you specify a name, you must also specify the StackName .

gtTemplateStage :: Lens' GetTemplate (Maybe TemplateStage) Source #

For templates that include transforms, the stage of the template that AWS CloudFormation returns. To get the user-submitted template, specify Original . To get the template after AWS CloudFormation has processed all transforms, specify Processed . If the template doesn't include transforms, Original and Processed return the same template. By default, AWS CloudFormation specifies Original .

gtStackName :: Lens' GetTemplate (Maybe 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:

  • gtrsStagesAvailable - The stage of the template that you can retrieve. For stacks, the Original and Processed templates are always available. For change sets, the Original template is always available. After AWS CloudFormation finishes creating the change set, the Processed template becomes available.
  • gtrsTemplateBody - Structure containing the template body. (For more information, go to Template Anatomy in the AWS CloudFormation User Guide.) AWS CloudFormation returns the same template that was used when the stack was created.
  • gtrsResponseStatus - -- | The response status code.

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.5.0-KJ8fU86x75V4EoPee9jClQ" False) (C1 (MetaCons "GetTemplateResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gtrsStagesAvailable") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [TemplateStage]))) ((:*:) (S1 (MetaSel (Just Symbol "_gtrsTemplateBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

gtrsStagesAvailable :: Lens' GetTemplateResponse [TemplateStage] Source #

The stage of the template that you can retrieve. For stacks, the Original and Processed templates are always available. For change sets, the Original template is always available. After AWS CloudFormation finishes creating the change set, the Processed template becomes available.

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

Structure containing the template body. (For more information, go to Template Anatomy in the AWS CloudFormation User Guide.) AWS CloudFormation returns the same template that was used when the stack was created.

gtrsResponseStatus :: Lens' GetTemplateResponse Int Source #

  • - | The response status code.