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.

GetTemplateInput

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

type GetTemplateInput struct { ChangeSetName *string `min:"1" type:"string"` StackName *string `type:"string"` TemplateStage *string `type:"string" enum:"TemplateStage"` }

The input for a GetTemplate action.

ChangeSetName

Type: *string

The name or Amazon Resource Name (ARN) of a change set for which AWS CloudFormation returns the associated template. If you specify a name, you must also specify the StackName.

StackName

Type: *string

The name or the unique stack ID that is associated with the stack, which are not always interchangeable:

  • Running stacks: You can specify either the stack's name or its unique stack ID.

  • Deleted stacks: You must specify the unique stack ID.

Default: There is no default value.

TemplateStage

Type: *string

For templates that include transforms, the stage of the template that AWS CloudFormation returns. To get the user-submitted template, specify Original. To get the template after AWS CloudFormation has processed all transforms, specify Processed.

If the template doesn't include transforms, Original and Processed return the same template. By default, AWS CloudFormation specifies Original.

Method

GoString

func (s GetTemplateInput) GoString() string

GoString returns the string representation

SetChangeSetName

func (s *GetTemplateInput) SetChangeSetName(v string) *GetTemplateInput

SetChangeSetName sets the ChangeSetName field's value.

SetStackName

func (s *GetTemplateInput) SetStackName(v string) *GetTemplateInput

SetStackName sets the StackName field's value.

SetTemplateStage

func (s *GetTemplateInput) SetTemplateStage(v string) *GetTemplateInput

SetTemplateStage sets the TemplateStage field's value.

String

func (s GetTemplateInput) String() string

String returns the string representation

Validate

func (s *GetTemplateInput) Validate() error

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

On this page: