describeStackDriftDetectionStatus method

Future<DescribeStackDriftDetectionStatusOutput> describeStackDriftDetectionStatus({
  1. required String stackDriftDetectionId,
})

Returns information about a stack drift detection operation. A stack drift detection operation detects whether a stack's actual configuration differs, or has drifted, from it's expected configuration, as defined in the stack template and any values specified as template parameters. A stack is considered to have drifted if one or more of its resources have drifted. For more information on stack and resource drift, see Detecting Unregulated Configuration Changes to Stacks and Resources.

Use DetectStackDrift to initiate a stack drift detection operation. DetectStackDrift returns a StackDriftDetectionId you can use to monitor the progress of the operation using DescribeStackDriftDetectionStatus. Once the drift detection operation has completed, use DescribeStackResourceDrifts to return drift information about the stack and its resources.

Parameter stackDriftDetectionId : 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 drift results AWS CloudFormation retains for any given stack, and for how long, may vary.

Implementation

Future<DescribeStackDriftDetectionStatusOutput>
    describeStackDriftDetectionStatus({
  required String stackDriftDetectionId,
}) async {
  ArgumentError.checkNotNull(stackDriftDetectionId, 'stackDriftDetectionId');
  _s.validateStringLength(
    'stackDriftDetectionId',
    stackDriftDetectionId,
    1,
    36,
    isRequired: true,
  );
  final $request = <String, dynamic>{};
  $request['StackDriftDetectionId'] = stackDriftDetectionId;
  final $result = await _protocol.send(
    $request,
    action: 'DescribeStackDriftDetectionStatus',
    version: '2010-05-15',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DescribeStackDriftDetectionStatusInput'],
    shapes: shapes,
    resultWrapper: 'DescribeStackDriftDetectionStatusResult',
  );
  return DescribeStackDriftDetectionStatusOutput.fromXml($result);
}