Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@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.
If the template does not exist, a ValidationError
is returned.
Creating a Request
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.
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
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.
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.)
gtrsResponseStatus :: Lens' GetTemplateResponse Int Source #
The response status code.