Skip to content

List Policy Generations

bedrockagentcorecontrol_list_policy_generations R Documentation

Retrieves a list of policy generation requests within the AgentCore Policy system

Description

Retrieves a list of policy generation requests within the AgentCore Policy system. This operation supports pagination and filtering to help track and manage AI-powered policy generation operations.

Usage

bedrockagentcorecontrol_list_policy_generations(nextToken, maxResults,
  policyEngineId)

Arguments

nextToken

A pagination token for retrieving additional policy generations when results are paginated.

maxResults

The maximum number of policy generations to return in a single response.

policyEngineId

[required] The identifier of the policy engine whose policy generations to retrieve.

Value

A list with the following syntax:

list(
  policyGenerations = list(
    list(
      policyEngineId = "string",
      policyGenerationId = "string",
      name = "string",
      policyGenerationArn = "string",
      resource = list(
        arn = "string"
      ),
      createdAt = as.POSIXct(
        "2015-01-01"
      ),
      updatedAt = as.POSIXct(
        "2015-01-01"
      ),
      status = "GENERATING"|"GENERATED"|"GENERATE_FAILED"|"DELETE_FAILED",
      findings = "string",
      statusReasons = list(
        "string"
      )
    )
  ),
  nextToken = "string"
)

Request syntax

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