Skip to content

Get Policy

bedrockagentcorecontrol_get_policy R Documentation

Retrieves detailed information about a specific policy within the AgentCore Policy system

Description

Retrieves detailed information about a specific policy within the AgentCore Policy system. This operation returns the complete policy definition, metadata, and current status, allowing administrators to review and manage policy configurations.

Usage

bedrockagentcorecontrol_get_policy(policyEngineId, policyId)

Arguments

policyEngineId

[required] The identifier of the policy engine that manages the policy to be retrieved.

policyId

[required] The unique identifier of the policy to be retrieved. This must be a valid policy ID that exists within the specified policy engine.

Value

A list with the following syntax:

list(
  policyId = "string",
  name = "string",
  policyEngineId = "string",
  createdAt = as.POSIXct(
    "2015-01-01"
  ),
  updatedAt = as.POSIXct(
    "2015-01-01"
  ),
  policyArn = "string",
  status = "CREATING"|"ACTIVE"|"UPDATING"|"DELETING"|"CREATE_FAILED"|"UPDATE_FAILED"|"DELETE_FAILED",
  definition = list(
    cedar = list(
      statement = "string"
    ),
    policyGeneration = list(
      policyGenerationId = "string",
      policyGenerationAssetId = "string"
    )
  ),
  description = "string",
  statusReasons = list(
    "string"
  )
)

Request syntax

svc$get_policy(
  policyEngineId = "string",
  policyId = "string"
)