# PolicyEngineAttributes

Attributes for importing an existing PolicyEngine.

- Source: [`aws-bedrockagentcore/lib/policy/policy-engine-base.ts`](https://github.com/aws/aws-cdk/blob/v2.276.0/packages/aws-cdk-lib/aws-bedrockagentcore/lib/policy/policy-engine-base.ts#L146)
- Type last changed: v2.269.0 · 10 Sep 2026

## Example

```ts
const importedEngine = agentcore.PolicyEngine.fromPolicyEngineAttributes(
  this,
  "ImportedEngine",
  {
    policyEngineArn: "policy-engine-arn",
    kmsKeyArn: "kms-arn",
  }
);

// Use the imported engine
const policy = new agentcore.Policy(this, "PolicyForImportedEngine", {
  policyEngine: importedEngine,
  statement: agentcore.PolicyStatement.fromCedar("permit(principal, action, resource);"),
});
```

## Properties

- `kmsKeyArn`: string — The KMS key ARN used for encryption (optional).

  **Default:** No KMS key

- `policyEngineArn`: string (required) — The ARN of the policy engine.
