cloudformation_detect_stack_resource_drift: Returns information about whether a resource's actual...

Description Usage Arguments Value Request syntax

View source: R/cloudformation_operations.R

Description

Returns information about whether a resource'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. This information includes actual and expected property values for resources in which AWS CloudFormation detects drift. Only resource properties explicitly defined in the stack template are checked for drift. For more information about stack and resource drift, see Detecting Unregulated Configuration Changes to Stacks and Resources.

Use detect_stack_resource_drift to detect drift on individual resources, or detect_stack_drift to detect drift on all resources in a given stack that support drift detection.

Resources that do not currently support drift detection cannot be checked. For a list of resources that support drift detection, see Resources that Support Drift Detection.

Usage

1
cloudformation_detect_stack_resource_drift(StackName, LogicalResourceId)

Arguments

StackName

[required] The name of the stack to which the resource belongs.

LogicalResourceId

[required] The logical name of the resource for which to return drift information.

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
list(
  StackResourceDrift = 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"
    )
  )
)

Request syntax

1
2
3
4
svc$detect_stack_resource_drift(
  StackName = "string",
  LogicalResourceId = "string"
)

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