interface PolicyEngineAttributes
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.BedrockAgentCore.PolicyEngineAttributes |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsbedrockagentcore#PolicyEngineAttributes |
Java | software.amazon.awscdk.services.bedrockagentcore.PolicyEngineAttributes |
Python | aws_cdk.aws_bedrockagentcore.PolicyEngineAttributes |
TypeScript (source) | aws-cdk-lib » aws_bedrockagentcore » PolicyEngineAttributes |
Attributes for importing an existing PolicyEngine.
Example
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
| Name | Type | Description |
|---|---|---|
| policy | string | The ARN of the policy engine. |
| kms | string | The KMS key ARN used for encryption (optional). |
policyEngineArn
Type:
string
The ARN of the policy engine.
kmsKeyArn?
Type:
string
(optional, default: No KMS key)
The KMS key ARN used for encryption (optional).

.NET
Go
Java
Python
TypeScript (