Skip to content

List Assessments

auditmanager_list_assessments R Documentation

Returns a list of current and past assessments from Audit Manager

Description

Returns a list of current and past assessments from Audit Manager.

Usage

auditmanager_list_assessments(status, nextToken, maxResults)

Arguments

status

The current status of the assessment.

nextToken

The pagination token that's used to fetch the next set of results.

maxResults

Represents the maximum number of results on a page or for an API request call.

Value

A list with the following syntax:

list(
  assessmentMetadata = list(
    list(
      name = "string",
      id = "string",
      complianceType = "string",
      status = "ACTIVE"|"INACTIVE",
      roles = list(
        list(
          roleType = "PROCESS_OWNER"|"RESOURCE_OWNER",
          roleArn = "string"
        )
      ),
      delegations = list(
        list(
          id = "string",
          assessmentName = "string",
          assessmentId = "string",
          status = "IN_PROGRESS"|"UNDER_REVIEW"|"COMPLETE",
          roleArn = "string",
          roleType = "PROCESS_OWNER"|"RESOURCE_OWNER",
          creationTime = as.POSIXct(
            "2015-01-01"
          ),
          lastUpdated = as.POSIXct(
            "2015-01-01"
          ),
          controlSetId = "string",
          comment = "string",
          createdBy = "string"
        )
      ),
      creationTime = as.POSIXct(
        "2015-01-01"
      ),
      lastUpdated = as.POSIXct(
        "2015-01-01"
      )
    )
  ),
  nextToken = "string"
)

Request syntax

svc$list_assessments(
  status = "ACTIVE"|"INACTIVE",
  nextToken = "string",
  maxResults = 123
)