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

We welcome your feedback on this new version of the documentation. Send your comments to


import ""

type DescribeStackDriftDetectionStatusOutput struct { DetectionStatus *string `type:"string" required:"true" enum:"StackDriftDetectionStatus"` DetectionStatusReason *string `type:"string"` DriftedStackResourceCount *int64 `type:"integer"` StackDriftDetectionId *string `min:"1" type:"string" required:"true"` StackDriftStatus *string `type:"string" enum:"StackDriftStatus"` StackId *string `type:"string" required:"true"` Timestamp *time.Time `type:"timestamp" required:"true"` }


Type: *string

The status of the stack drift detection operation.

  • DETECTION_COMPLETE: The stack drift detection operation has successfully completed for all resources in the stack that support drift detection.

(Resources that do not currently support stack detection remain unchecked.)

If you specified logical resource IDs for AWS CloudFormation to use as a

filter for the stack drift detection operation, only the resources with those logical IDs are checked for drift.
  • DETECTION_FAILED: The stack drift detection operation has failed for at least one resource in the stack. Results will be available for resources on which AWS CloudFormation successfully completed drift detection.

  • DETECTION_IN_PROGRESS: The stack drift detection operation is currently in progress.

DetectionStatus is a required field


Type: *string

The reason the stack drift detection operation has its current status.


Type: *int64

Total number of stack resources that have drifted. This is NULL until the drift detection operation reaches a status of DETECTION_COMPLETE. This value will be 0 for stacks whose drift status is IN_SYNC.


Type: *string

The ID of the drift detection results of this operation.

AWS CloudFormation generates new results, with a new drift detection ID, each time this operation is run. However, the number of reports AWS CloudFormation retains for any given stack, and for how long, may vary.

StackDriftDetectionId is a required field


Type: *string

Status of the stack's actual configuration compared to its expected configuration.

  • DRIFTED: The stack differs from its expected template configuration. A stack is considered to have drifted if one or more of its resources have drifted.

  • NOT_CHECKED: AWS CloudFormation has not checked if the stack differs from its expected template configuration.

  • IN_SYNC: The stack's actual configuration matches its expected template configuration.

  • UNKNOWN: This value is reserved for future use.


Type: *string

The ID of the stack.

StackId is a required field


Type: *time.Time

Time at which the stack drift detection operation was initiated.

Timestamp is a required field



func (s DescribeStackDriftDetectionStatusOutput) GoString() string

GoString returns the string representation


func (s *DescribeStackDriftDetectionStatusOutput) SetDetectionStatus(v string) *DescribeStackDriftDetectionStatusOutput

SetDetectionStatus sets the DetectionStatus field's value.


func (s *DescribeStackDriftDetectionStatusOutput) SetDetectionStatusReason(v string) *DescribeStackDriftDetectionStatusOutput

SetDetectionStatusReason sets the DetectionStatusReason field's value.


func (s *DescribeStackDriftDetectionStatusOutput) SetDriftedStackResourceCount(v int64) *DescribeStackDriftDetectionStatusOutput

SetDriftedStackResourceCount sets the DriftedStackResourceCount field's value.


func (s *DescribeStackDriftDetectionStatusOutput) SetStackDriftDetectionId(v string) *DescribeStackDriftDetectionStatusOutput

SetStackDriftDetectionId sets the StackDriftDetectionId field's value.


func (s *DescribeStackDriftDetectionStatusOutput) SetStackDriftStatus(v string) *DescribeStackDriftDetectionStatusOutput

SetStackDriftStatus sets the StackDriftStatus field's value.


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

SetStackId sets the StackId field's value.


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

SetTimestamp sets the Timestamp field's value.


func (s DescribeStackDriftDetectionStatusOutput) String() string

String returns the string representation

On this page: