Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
- getTemplate :: GetTemplate
- data GetTemplate
- gtChangeSetName :: Lens' GetTemplate (Maybe Text)
- gtTemplateStage :: Lens' GetTemplate (Maybe TemplateStage)
- gtStackName :: Lens' GetTemplate (Maybe Text)
- getTemplateResponse :: Int -> GetTemplateResponse
- data GetTemplateResponse
- gtrsStagesAvailable :: Lens' GetTemplateResponse [TemplateStage]
- gtrsTemplateBody :: Lens' GetTemplateResponse (Maybe Text)
- gtrsResponseStatus :: Lens' GetTemplateResponse Int
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 theStackName
.gtTemplateStage
- For templates that include transforms, the stage of the template that AWS CloudFormation returns. To get the user-submitted template, specifyOriginal
. To get the template after AWS CloudFormation has processed all transforms, specifyProcessed
. If the template doesn't include transforms,Original
andProcessed
return the same template. By default, AWS CloudFormation specifiesOriginal
.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.
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
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, theOriginal
andProcessed
templates are always available. For change sets, theOriginal
template is always available. After AWS CloudFormation finishes creating the change set, theProcessed
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.
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.