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.

StackResource

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

type StackResource struct { Description *string `min:"1" type:"string"` DriftInformation *StackResourceDriftInformation `type:"structure"` LogicalResourceId *string `type:"string" required:"true"` PhysicalResourceId *string `type:"string"` ResourceStatus *string `type:"string" required:"true" enum:"ResourceStatus"` ResourceStatusReason *string `type:"string"` ResourceType *string `min:"1" type:"string" required:"true"` StackId *string `type:"string"` StackName *string `type:"string"` Timestamp *time.Time `type:"timestamp" required:"true"` }

The StackResource data type.

Description

Type: *string

User defined description associated with the resource.

DriftInformation

Contains information about whether the resource's actual configuration differs, or has drifted, from its expected configuration.

LogicalResourceId

Type: *string

The logical name of the resource specified in the template.

LogicalResourceId is a required field

PhysicalResourceId

Type: *string

The name or unique identifier that corresponds to a physical instance ID of a resource supported by AWS CloudFormation.

ResourceStatus

Type: *string

Current status of the resource.

ResourceStatus is a required field

ResourceStatusReason

Type: *string

Success/failure message associated with the resource.

ResourceType

Type: *string

Type of resource. (For more information, go to AWS Resource Types Reference (https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html) in the AWS CloudFormation User Guide.)

ResourceType is a required field

StackId

Type: *string

Unique identifier of the stack.

StackName

Type: *string

The name associated with the stack.

Timestamp

Type: *time.Time

Time the status was updated.

Timestamp is a required field

Method

GoString

func (s StackResource) GoString() string

GoString returns the string representation

SetDescription

func (s *StackResource) SetDescription(v string) *StackResource

SetDescription sets the Description field's value.

SetDriftInformation

func (s *StackResource) SetDriftInformation(v *StackResourceDriftInformation) *StackResource

SetDriftInformation sets the DriftInformation field's value.

SetLogicalResourceId

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

SetLogicalResourceId sets the LogicalResourceId field's value.

SetPhysicalResourceId

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

SetPhysicalResourceId sets the PhysicalResourceId field's value.

SetResourceStatus

func (s *StackResource) SetResourceStatus(v string) *StackResource

SetResourceStatus sets the ResourceStatus field's value.

SetResourceStatusReason

func (s *StackResource) SetResourceStatusReason(v string) *StackResource

SetResourceStatusReason sets the ResourceStatusReason field's value.

SetResourceType

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

SetResourceType sets the ResourceType field's value.

SetStackId

func (s *StackResource) SetStackId(v string) *StackResource

SetStackId sets the StackId field's value.

SetStackName

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

SetStackName sets the StackName field's value.

SetTimestamp

func (s *StackResource) SetTimestamp(v time.Time) *StackResource

SetTimestamp sets the Timestamp field's value.

String

func (s StackResource) String() string

String returns the string representation

On this page: