AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

ValidateTemplateInput

import "github.com/aws/aws-sdk-go/service/cloudformation"

type ValidateTemplateInput struct { TemplateBody *string `min:"1" type:"string"` TemplateURL *string `min:"1" type:"string"` }

The input for ValidateTemplate action.

TemplateBody

Type: *string

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 (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) in the AWS CloudFormation User Guide.

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

TemplateURL

Type: *string

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 (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) in the AWS CloudFormation User Guide.

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

Method

GoString

func (s ValidateTemplateInput) GoString() string

GoString returns the string representation

SetTemplateBody

func (s *ValidateTemplateInput) SetTemplateBody(v string) *ValidateTemplateInput

SetTemplateBody sets the TemplateBody field's value.

SetTemplateURL

func (s *ValidateTemplateInput) SetTemplateURL(v string) *ValidateTemplateInput

SetTemplateURL sets the TemplateURL field's value.

String

func (s ValidateTemplateInput) String() string

String returns the string representation

Validate

func (s *ValidateTemplateInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: