amazonka-cloudformation-1.3.5: Amazon CloudFormation SDK.

Copyright(c) 2013-2015 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.ValidateTemplate

Contents

Description

Validates a specified template.

See: AWS API Reference for ValidateTemplate.

Synopsis

Creating a Request

validateTemplate :: ValidateTemplate Source

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

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

Request Lenses

vtTemplateBody :: Lens' ValidateTemplate (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, go to Template Anatomy in the AWS CloudFormation User Guide.

Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.

vtTemplateURL :: Lens' ValidateTemplate (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, go to Template Anatomy in the AWS CloudFormation User Guide.

Conditional: You must pass TemplateURL or TemplateBody. If both are passed, only TemplateBody is used.

Destructuring the Response

validateTemplateResponse Source

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

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

Response Lenses

vtrsCapabilitiesReason :: Lens' ValidateTemplateResponse (Maybe Text) Source

The list of resources that generated the values in the Capabilities response element.

vtrsDescription :: Lens' ValidateTemplateResponse (Maybe Text) Source

The description found within the template.

vtrsCapabilities :: Lens' ValidateTemplateResponse [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.