interface PolicyEngineAttributes
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Bedrock.Agentcore.Alpha.PolicyEngineAttributes |
Go | github.com/aws/aws-cdk-go/awsbedrockagentcorealpha/v2#PolicyEngineAttributes |
Java | software.amazon.awscdk.services.bedrock.agentcore.alpha.PolicyEngineAttributes |
Python | aws_cdk.aws_bedrock_agentcore_alpha.PolicyEngineAttributes |
TypeScript (source) | @aws-cdk/aws-bedrock-agentcore-alpha ยป 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,
definition: "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 (