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¶
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",
enforcementMode = "ACTIVE"|"LOG_ONLY",
definition = list(
cedar = list(
statement = "string"
),
policyGeneration = list(
policyGenerationId = "string",
policyGenerationAssetId = "string"
),
policy = list(
statement = "string"
)
),
description = "string",
statusReasons = list(
"string"
)
)