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 information about a new or existing template. The
GetTemplateSummary
action is useful for viewing parameter information,
such as default parameter values and parameter types, before you create
or update a stack.
You can use the GetTemplateSummary
action when you submit a template,
or you can get template information for a running or deleted stack.
For deleted stacks, GetTemplateSummary
returns the template
information for up to 90 days after the stack has been deleted. If the
template does not exist, a ValidationError
is returned.
- getTemplateSummary :: GetTemplateSummary
- data GetTemplateSummary
- gtsTemplateBody :: Lens' GetTemplateSummary (Maybe Text)
- gtsTemplateURL :: Lens' GetTemplateSummary (Maybe Text)
- gtsStackName :: Lens' GetTemplateSummary (Maybe Text)
- getTemplateSummaryResponse :: Int -> GetTemplateSummaryResponse
- data GetTemplateSummaryResponse
- gtsrsVersion :: Lens' GetTemplateSummaryResponse (Maybe Text)
- gtsrsCapabilitiesReason :: Lens' GetTemplateSummaryResponse (Maybe Text)
- gtsrsParameters :: Lens' GetTemplateSummaryResponse [ParameterDeclaration]
- gtsrsMetadata :: Lens' GetTemplateSummaryResponse (Maybe Text)
- gtsrsDescription :: Lens' GetTemplateSummaryResponse (Maybe Text)
- gtsrsCapabilities :: Lens' GetTemplateSummaryResponse [Capability]
- gtsrsResourceTypes :: Lens' GetTemplateSummaryResponse [Text]
- gtsrsResponseStatus :: Lens' GetTemplateSummaryResponse Int
Creating a Request
getTemplateSummary :: GetTemplateSummary Source #
Creates a value of GetTemplateSummary
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetTemplateSummary Source #
The input for the GetTemplateSummary action.
See: getTemplateSummary
smart constructor.
Request Lenses
gtsTemplateBody :: Lens' GetTemplateSummary (Maybe Text) Source #
Structure containing the template body with a minimum length of 1 byte and a maximum length of 51,200 bytes. For more information about templates, see Template Anatomy in the AWS CloudFormation User Guide.
Conditional: You must specify only one of the following parameters:
StackName
, TemplateBody
, or TemplateURL
.
gtsTemplateURL :: Lens' GetTemplateSummary (Maybe Text) Source #
Location of file containing the template body. The URL must point to a template (max size: 460,800 bytes) that is located in an Amazon S3 bucket. For more information about templates, see Template Anatomy in the AWS CloudFormation User Guide.
Conditional: You must specify only one of the following parameters:
StackName
, TemplateBody
, or TemplateURL
.
gtsStackName :: Lens' GetTemplateSummary (Maybe Text) Source #
The name or the stack ID that is associated with the stack, which are not always interchangeable. For running stacks, you can specify either the stack's name or its unique stack ID. For deleted stack, you must specify the unique stack ID.
Conditional: You must specify only one of the following parameters:
StackName
, TemplateBody
, or TemplateURL
.
Destructuring the Response
getTemplateSummaryResponse Source #
Creates a value of GetTemplateSummaryResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GetTemplateSummaryResponse Source #
The output for the GetTemplateSummary action.
See: getTemplateSummaryResponse
smart constructor.
Response Lenses
gtsrsVersion :: Lens' GetTemplateSummaryResponse (Maybe Text) Source #
The AWS template format version, which identifies the capabilities of the template.
gtsrsCapabilitiesReason :: Lens' GetTemplateSummaryResponse (Maybe Text) Source #
The list of resources that generated the values in the Capabilities
response element.
gtsrsParameters :: Lens' GetTemplateSummaryResponse [ParameterDeclaration] Source #
A list of parameter declarations that describe various properties for each parameter.
gtsrsMetadata :: Lens' GetTemplateSummaryResponse (Maybe Text) Source #
The value that is defined for the Metadata
property of the template.
gtsrsDescription :: Lens' GetTemplateSummaryResponse (Maybe Text) Source #
The value that is defined in the Description
property of the template.
gtsrsCapabilities :: Lens' GetTemplateSummaryResponse [Capability] Source #
The capabilities found within the template. Currently, AWS CloudFormation supports only the CAPABILITY_IAM capability. If your template contains IAM resources, you must specify the CAPABILITY_IAM value for this parameter when you use the CreateStack or UpdateStack actions with your template; otherwise, those actions return an InsufficientCapabilities error.
gtsrsResourceTypes :: Lens' GetTemplateSummaryResponse [Text] Source #
A list of all the template resource types that are defined in the template, such as 'AWS::EC2::Instance', 'AWS::Dynamo::Table', and 'Custom::MyCustomInstance'.
gtsrsResponseStatus :: Lens' GetTemplateSummaryResponse Int Source #
The response status code.