PolicyEngineAttributes
- class aws_cdk.aws_bedrockagentcore.PolicyEngineAttributes(*, policy_engine_arn, kms_key_arn=None)
Bases:
objectAttributes for importing an existing PolicyEngine.
- Parameters:
policy_engine_arn (
str) – The ARN of the policy engine.kms_key_arn (
Optional[str]) – The KMS key ARN used for encryption (optional). Default: - No KMS key
- ExampleMetadata:
fixture=default infused
Example:
imported_engine = agentcore.PolicyEngine.from_policy_engine_attributes(self, "ImportedEngine", policy_engine_arn="policy-engine-arn", kms_key_arn="kms-arn" ) # Use the imported engine policy = agentcore.Policy(self, "PolicyForImportedEngine", policy_engine=imported_engine, statement=agentcore.PolicyStatement.from_cedar("permit(principal, action, resource);") )
Attributes
- kms_key_arn
The KMS key ARN used for encryption (optional).
- Default:
No KMS key
- policy_engine_arn
The ARN of the policy engine.