Skip to content

List Enabled Controls

controltower_list_enabled_controls R Documentation

Lists the controls enabled by Amazon Web Services Control Tower on the specified organizational unit and the accounts it contains

Description

Lists the controls enabled by Amazon Web Services Control Tower on the specified organizational unit and the accounts it contains. For usage examples, see the Controls Reference Guide .

Usage

controltower_list_enabled_controls(filter, maxResults, nextToken,
  targetIdentifier)

Arguments

filter

An input filter for the list_enabled_controls API that lets you select the types of control operations to view.

maxResults

How many results to return per API call.

nextToken

The token to continue the list from a previous API call with the same parameters.

targetIdentifier

The ARN of the organizational unit. For information on how to find the targetIdentifier, see the overview page.

Value

A list with the following syntax:

list(
  enabledControls = list(
    list(
      arn = "string",
      controlIdentifier = "string",
      driftStatusSummary = list(
        driftStatus = "DRIFTED"|"IN_SYNC"|"NOT_CHECKING"|"UNKNOWN"
      ),
      statusSummary = list(
        lastOperationIdentifier = "string",
        status = "SUCCEEDED"|"FAILED"|"UNDER_CHANGE"
      ),
      targetIdentifier = "string"
    )
  ),
  nextToken = "string"
)

Request syntax

svc$list_enabled_controls(
  filter = list(
    controlIdentifiers = list(
      "string"
    ),
    driftStatuses = list(
      "DRIFTED"|"IN_SYNC"|"NOT_CHECKING"|"UNKNOWN"
    ),
    statuses = list(
      "SUCCEEDED"|"FAILED"|"UNDER_CHANGE"
    )
  ),
  maxResults = 123,
  nextToken = "string",
  targetIdentifier = "string"
)