Skip to content

DescribeStackDriftDetectionStatus

Source: src/AWS/CloudFormation/DescribeStackDriftDetectionStatus.ts

Runtime binding for the DescribeStackDriftDetectionStatus operation (IAM action cloudformation:DescribeStackDriftDetectionStatus on * — the detection id is not resource-scoped).

Polls a drift-detection run started with DetectStackDrift until it reaches DETECTION_COMPLETE / DETECTION_FAILED and reports the stack’s overall drift status. Provide the implementation with Effect.provide(AWS.CloudFormation.DescribeStackDriftDetectionStatusHttp).

const describeStackDriftDetectionStatus =
yield* AWS.CloudFormation.DescribeStackDriftDetectionStatus();
const status = yield* describeStackDriftDetectionStatus({
StackDriftDetectionId: detectionId,
});
// status.DetectionStatus, status.StackDriftStatus