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.

ResourceChange

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

type ResourceChange struct { Action *string `type:"string" enum:"ChangeAction"` Details []*ResourceChangeDetail `type:"list"` LogicalResourceId *string `type:"string"` PhysicalResourceId *string `type:"string"` Replacement *string `type:"string" enum:"Replacement"` ResourceType *string `min:"1" type:"string"` Scope []*string `type:"list"` }

The ResourceChange structure describes the resource and the action that AWS CloudFormation will perform on it if you execute this change set.

Action

Type: *string

The action that AWS CloudFormation takes on the resource, such as Add (adds a new resource), Modify (changes a resource), or Remove (deletes a resource).

Details

For a resource with Modify as the action, the ResourceChange structure describes the changes AWS CloudFormation will make to that resource.

LogicalResourceId

Type: *string

The resource's logical ID, which is defined in the stack's template.

PhysicalResourceId

Type: *string

The resource's physical ID (resource name). Resources that you are adding don't have physical IDs because they haven't been created.

Replacement

Type: *string

For the Modify action, indicates whether AWS CloudFormation will replace the resource by creating a new one and deleting the old one. This value depends on the value of the RequiresRecreation property in the ResourceTargetDefinition structure. For example, if the RequiresRecreation field is Always and the Evaluation field is Static, Replacement is True. If the RequiresRecreation field is Always and the Evaluation field is Dynamic, Replacement is Conditionally.

If you have multiple changes with different RequiresRecreation values, the Replacement value depends on the change with the most impact. A RequiresRecreation value of Always has the most impact, followed by Conditionally, and then Never.

ResourceType

Type: *string

The type of AWS CloudFormation resource, such as AWS::S3::Bucket.

Scope

Type: []*string

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

Method

GoString

func (s ResourceChange) GoString() string

GoString returns the string representation

SetAction

func (s *ResourceChange) SetAction(v string) *ResourceChange

SetAction sets the Action field's value.

SetDetails

func (s *ResourceChange) SetDetails(v []*ResourceChangeDetail) *ResourceChange

SetDetails sets the Details field's value.

SetLogicalResourceId

func (s *ResourceChange) SetLogicalResourceId(v string) *ResourceChange

SetLogicalResourceId sets the LogicalResourceId field's value.

SetPhysicalResourceId

func (s *ResourceChange) SetPhysicalResourceId(v string) *ResourceChange

SetPhysicalResourceId sets the PhysicalResourceId field's value.

SetReplacement

func (s *ResourceChange) SetReplacement(v string) *ResourceChange

SetReplacement sets the Replacement field's value.

SetResourceType

func (s *ResourceChange) SetResourceType(v string) *ResourceChange

SetResourceType sets the ResourceType field's value.

SetScope

func (s *ResourceChange) SetScope(v []*string) *ResourceChange

SetScope sets the Scope field's value.

String

func (s ResourceChange) String() string

String returns the string representation

On this page: