cloudformation_describe_stack_resource_drifts: Returns drift information for the resources that have been...

Description Usage Arguments Value Request syntax

View source: R/cloudformation_operations.R

Description

Returns drift information for the resources that have been checked for drift in the specified stack. This includes actual and expected configuration values for resources where AWS CloudFormation detects configuration drift.

For a given stack, there will be one StackResourceDrift for each stack resource that has been checked for drift. Resources that have not yet been checked for drift are not included. Resources that do not currently support drift detection are not checked, and so not included. For a list of resources that support drift detection, see Resources that Support Drift Detection.

Use detect_stack_resource_drift to detect drift on individual resources, or detect_stack_drift to detect drift on all supported resources for a given stack.

Usage

1
2
cloudformation_describe_stack_resource_drifts(StackName,
  StackResourceDriftStatusFilters, NextToken, MaxResults)

Arguments

StackName

[required] The name of the stack for which you want drift information.

StackResourceDriftStatusFilters

The resource drift status values to use as filters for the resource drift results returned.

  • DELETED: The resource differs from its expected template configuration in that the resource has been deleted.

  • MODIFIED: One or more resource properties differ from their expected template values.

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

  • NOT_CHECKED: AWS CloudFormation does not currently return this value.

NextToken

A string that identifies the next page of stack resource drift results.

MaxResults

The maximum number of results to be returned with a single call. If the number of available results exceeds this maximum, the response includes a NextToken value that you can assign to the NextToken request parameter to get the next set of results.

Value

A list with the following syntax:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
list(
  StackResourceDrifts = list(
    list(
      StackId = "string",
      LogicalResourceId = "string",
      PhysicalResourceId = "string",
      PhysicalResourceIdContext = list(
        list(
          Key = "string",
          Value = "string"
        )
      ),
      ResourceType = "string",
      ExpectedProperties = "string",
      ActualProperties = "string",
      PropertyDifferences = list(
        list(
          PropertyPath = "string",
          ExpectedValue = "string",
          ActualValue = "string",
          DifferenceType = "ADD"|"REMOVE"|"NOT_EQUAL"
        )
      ),
      StackResourceDriftStatus = "IN_SYNC"|"MODIFIED"|"DELETED"|"NOT_CHECKED",
      Timestamp = as.POSIXct(
        "2015-01-01"
      ),
      ModuleInfo = list(
        TypeHierarchy = "string",
        LogicalIdHierarchy = "string"
      )
    )
  ),
  NextToken = "string"
)

Request syntax

1
2
3
4
5
6
7
8
svc$describe_stack_resource_drifts(
  StackName = "string",
  StackResourceDriftStatusFilters = list(
    "IN_SYNC"|"MODIFIED"|"DELETED"|"NOT_CHECKED"
  ),
  NextToken = "string",
  MaxResults = 123
)

paws.management documentation built on Aug. 23, 2021, 9:11 a.m.