libZSservicesZSamazonka-cloudformationZSamazonka-cloudformation
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudFormation.ValidateTemplate

Description

Validates a specified template. CloudFormation first checks if the template is valid JSON. If it isn't, CloudFormation checks if the template is valid YAML. If both these checks fail, CloudFormation returns a template validation error.

Synopsis

Creating a Request

data ValidateTemplate Source #

The input for ValidateTemplate action.

See: newValidateTemplate smart constructor.

Constructors

ValidateTemplate' 

Fields

  • templateBody :: Maybe Text

    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 CloudFormation User Guide.

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

  • templateURL :: Maybe Text

    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 or a Systems Manager document. For more information, go to Template Anatomy in the CloudFormation User Guide.

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

Instances

Instances details
Eq ValidateTemplate Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

Read ValidateTemplate Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

Show ValidateTemplate Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

Generic ValidateTemplate Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

Associated Types

type Rep ValidateTemplate :: Type -> Type #

NFData ValidateTemplate Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

Methods

rnf :: ValidateTemplate -> () #

Hashable ValidateTemplate Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

AWSRequest ValidateTemplate Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

Associated Types

type AWSResponse ValidateTemplate #

ToHeaders ValidateTemplate Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

ToPath ValidateTemplate Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

ToQuery ValidateTemplate Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

type Rep ValidateTemplate Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

type Rep ValidateTemplate = D1 ('MetaData "ValidateTemplate" "Amazonka.CloudFormation.ValidateTemplate" "libZSservicesZSamazonka-cloudformationZSamazonka-cloudformation" 'False) (C1 ('MetaCons "ValidateTemplate'" 'PrefixI 'True) (S1 ('MetaSel ('Just "templateBody") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "templateURL") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))
type AWSResponse ValidateTemplate Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

newValidateTemplate :: ValidateTemplate Source #

Create a value of ValidateTemplate with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:templateBody:ValidateTemplate', validateTemplate_templateBody - 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 CloudFormation User Guide.

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

$sel:templateURL:ValidateTemplate', validateTemplate_templateURL - 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 or a Systems Manager document. For more information, go to Template Anatomy in the CloudFormation User Guide.

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

Request Lenses

validateTemplate_templateBody :: 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 CloudFormation User Guide.

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

validateTemplate_templateURL :: 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 or a Systems Manager document. For more information, go to Template Anatomy in the CloudFormation User Guide.

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

Destructuring the Response

data ValidateTemplateResponse Source #

The output for ValidateTemplate action.

See: newValidateTemplateResponse smart constructor.

Constructors

ValidateTemplateResponse' 

Fields

Instances

Instances details
Eq ValidateTemplateResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

Read ValidateTemplateResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

Show ValidateTemplateResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

Generic ValidateTemplateResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

Associated Types

type Rep ValidateTemplateResponse :: Type -> Type #

NFData ValidateTemplateResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

type Rep ValidateTemplateResponse Source # 
Instance details

Defined in Amazonka.CloudFormation.ValidateTemplate

type Rep ValidateTemplateResponse = D1 ('MetaData "ValidateTemplateResponse" "Amazonka.CloudFormation.ValidateTemplate" "libZSservicesZSamazonka-cloudformationZSamazonka-cloudformation" 'False) (C1 ('MetaCons "ValidateTemplateResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "declaredTransforms") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "capabilitiesReason") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TemplateParameter])))) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "capabilities") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Capability])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newValidateTemplateResponse Source #

Create a value of ValidateTemplateResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:declaredTransforms:ValidateTemplateResponse', validateTemplateResponse_declaredTransforms - A list of the transforms that are declared in the template.

$sel:capabilitiesReason:ValidateTemplateResponse', validateTemplateResponse_capabilitiesReason - The list of resources that generated the values in the Capabilities response element.

$sel:parameters:ValidateTemplateResponse', validateTemplateResponse_parameters - A list of TemplateParameter structures.

$sel:description:ValidateTemplateResponse', validateTemplateResponse_description - The description found within the template.

$sel:capabilities:ValidateTemplateResponse', validateTemplateResponse_capabilities - The capabilities found within the template. If your template contains IAM resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when you use the CreateStack or UpdateStack actions with your template; otherwise, those actions return an InsufficientCapabilities error.

For more information, see Acknowledging IAM Resources in CloudFormation Templates.

$sel:httpStatus:ValidateTemplateResponse', validateTemplateResponse_httpStatus - The response's http status code.

Response Lenses

validateTemplateResponse_declaredTransforms :: Lens' ValidateTemplateResponse (Maybe [Text]) Source #

A list of the transforms that are declared in the template.

validateTemplateResponse_capabilitiesReason :: Lens' ValidateTemplateResponse (Maybe Text) Source #

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

validateTemplateResponse_capabilities :: Lens' ValidateTemplateResponse (Maybe [Capability]) Source #

The capabilities found within the template. If your template contains IAM resources, you must specify the CAPABILITY_IAM or CAPABILITY_NAMED_IAM value for this parameter when you use the CreateStack or UpdateStack actions with your template; otherwise, those actions return an InsufficientCapabilities error.

For more information, see Acknowledging IAM Resources in CloudFormation Templates.