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.

GetTemplateOutput

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

type GetTemplateOutput struct { StagesAvailable []*string `type:"list"` TemplateBody *string `min:"1" type:"string"` }

The output for GetTemplate action.

StagesAvailable

Type: []*string

The stage of the template that you can retrieve. For stacks, the Original and Processed templates are always available. For change sets, the Original template is always available. After AWS CloudFormation finishes creating the change set, the Processed template becomes available.

TemplateBody

Type: *string

Structure containing the template body. (For more information, go to Template Anatomy (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-anatomy.html) in the AWS CloudFormation User Guide.)

AWS CloudFormation returns the same template that was used when the stack was created.

Method

GoString

func (s GetTemplateOutput) GoString() string

GoString returns the string representation

SetStagesAvailable

func (s *GetTemplateOutput) SetStagesAvailable(v []*string) *GetTemplateOutput

SetStagesAvailable sets the StagesAvailable field's value.

SetTemplateBody

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

SetTemplateBody sets the TemplateBody field's value.

String

func (s GetTemplateOutput) String() string

String returns the string representation

On this page: