Skip to content

Batch Create Delegation By Assessment

auditmanager_batch_create_delegation_by_assessment R Documentation

Creates a batch of delegations for an assessment in Audit Manager

Description

Creates a batch of delegations for an assessment in Audit Manager.

Usage

auditmanager_batch_create_delegation_by_assessment(
  createDelegationRequests, assessmentId)

Arguments

createDelegationRequests

[required] The API request to batch create delegations in Audit Manager.

assessmentId

[required] The identifier for the assessment.

Value

A list with the following syntax:

list(
  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"
    )
  ),
  errors = list(
    list(
      createDelegationRequest = list(
        comment = "string",
        controlSetId = "string",
        roleArn = "string",
        roleType = "PROCESS_OWNER"|"RESOURCE_OWNER"
      ),
      errorCode = "string",
      errorMessage = "string"
    )
  )
)

Request syntax

svc$batch_create_delegation_by_assessment(
  createDelegationRequests = list(
    list(
      comment = "string",
      controlSetId = "string",
      roleArn = "string",
      roleType = "PROCESS_OWNER"|"RESOURCE_OWNER"
    )
  ),
  assessmentId = "string"
)