Skip to content

List Policy Generations

accessanalyzer_list_policy_generations R Documentation

Lists all of the policy generations requested in the last seven days

Description

Lists all of the policy generations requested in the last seven days.

Usage

accessanalyzer_list_policy_generations(principalArn, maxResults,
  nextToken)

Arguments

principalArn

The ARN of the IAM entity (user or role) for which you are generating a policy. Use this with ListGeneratedPolicies to filter the results to only include results for a specific principal.

maxResults

The maximum number of results to return in the response.

nextToken

A token used for pagination of results returned.

Value

A list with the following syntax:

list(
  policyGenerations = list(
    list(
      jobId = "string",
      principalArn = "string",
      status = "IN_PROGRESS"|"SUCCEEDED"|"FAILED"|"CANCELED",
      startedOn = as.POSIXct(
        "2015-01-01"
      ),
      completedOn = as.POSIXct(
        "2015-01-01"
      )
    )
  ),
  nextToken = "string"
)

Request syntax

svc$list_policy_generations(
  principalArn = "string",
  maxResults = 123,
  nextToken = "string"
)