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.

ResourceTargetDefinition

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

type ResourceTargetDefinition struct { Attribute *string `type:"string" enum:"ResourceAttribute"` Name *string `type:"string"` RequiresRecreation *string `type:"string" enum:"RequiresRecreation"` }

The field that AWS CloudFormation will change, such as the name of a resource's property, and whether the resource will be recreated.

Attribute

Type: *string

Indicates which resource attribute is triggering this update, such as a change in the resource attribute's Metadata, Properties, or Tags.

Name

Type: *string

If the Attribute value is Properties, the name of the property. For all other attributes, the value is null.

RequiresRecreation

Type: *string

If the Attribute value is Properties, indicates whether a change to this property causes the resource to be recreated. The value can be Never, Always, or Conditionally. To determine the conditions for a Conditionally recreation, see the update behavior for that property (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) in the AWS CloudFormation User Guide.

Method

GoString

func (s ResourceTargetDefinition) GoString() string

GoString returns the string representation

SetAttribute

func (s *ResourceTargetDefinition) SetAttribute(v string) *ResourceTargetDefinition

SetAttribute sets the Attribute field's value.

SetName

func (s *ResourceTargetDefinition) SetName(v string) *ResourceTargetDefinition

SetName sets the Name field's value.

SetRequiresRecreation

func (s *ResourceTargetDefinition) SetRequiresRecreation(v string) *ResourceTargetDefinition

SetRequiresRecreation sets the RequiresRecreation field's value.

String

func (s ResourceTargetDefinition) String() string

String returns the string representation

On this page: