Create Policy Engine
| bedrockagentcorecontrol_create_policy_engine | R Documentation |
Creates a new policy engine within the AgentCore Policy system¶
Description¶
Creates a new policy engine within the AgentCore Policy system. A policy
engine is a collection of policies that evaluates and authorizes agent
tool calls. When associated with Gateways (each Gateway can be
associated with at most one policy engine, but multiple Gateways can be
associated with the same engine), the policy engine intercepts all agent
requests and determines whether to allow or deny each action based on
the defined policies. This is an asynchronous operation. Use the
get_policy_engine operation to poll the status field to track
completion.
Usage¶
bedrockagentcorecontrol_create_policy_engine(name, description,
clientToken, encryptionKeyArn, tags)
Arguments¶
name |
[required] The customer-assigned immutable name for the policy engine. This name identifies the policy engine and cannot be changed after creation. |
description |
A human-readable description of the policy engine's purpose and scope (1-4,096 characters). This helps administrators understand the policy engine's role in the overall governance strategy. Document which Gateway this engine will be associated with, what types of tools or workflows it governs, and the team or service responsible for maintaining it. Clear descriptions are essential when managing multiple policy engines across different services or environments. |
clientToken |
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request with the same client token, the service returns the same response without creating a duplicate policy engine. |
encryptionKeyArn |
The Amazon Resource Name (ARN) of the KMS key used to encrypt the policy engine data. |
tags |
A map of tag keys and values to assign to an AgentCore Policy. Tags enable you to categorize your resources in different ways, for example, by purpose, owner, or environment. |
Value¶
A list with the following syntax:
list(
policyEngineId = "string",
name = "string",
createdAt = as.POSIXct(
"2015-01-01"
),
updatedAt = as.POSIXct(
"2015-01-01"
),
policyEngineArn = "string",
status = "CREATING"|"ACTIVE"|"UPDATING"|"DELETING"|"CREATE_FAILED"|"UPDATE_FAILED"|"DELETE_FAILED",
encryptionKeyArn = "string",
description = "string",
statusReasons = list(
"string"
)
)
Request syntax¶
svc$create_policy_engine(
name = "string",
description = "string",
clientToken = "string",
encryptionKeyArn = "string",
tags = list(
"string"
)
)