Slide 49
Slide 49 text
Policy Engine の作成と Gateway への紐付け
Cedar で定義した Policy を Policy Engine に登録し、AgentCore Gateway 作成時、
policyEngineConfiguration で mode: ENFORCE を指定して Policy Engine を紐付ける。
Policy Engine とポリシーの登録 (CDK)
Gateway への紐付け
const policyEngine = new agentcore.CfnPolicyEngine(
this, "PolicyEngine", {
name: "managed_kb_policy_engine",
});
new agentcore.CfnPolicy(this, "MainRetrievePolicy", {
name: "managed_kb_policy_main_retrieve",
policyEngineId: policyEngine.attrPolicyEngineId,
definition: { cedar: { statement: "" } },
validationMode: "FAIL_ON_ANY_FINDINGS",
});
const gateway = new agentcore.CfnGateway(
this, "Gateway", {
/* authorizer / interceptor は前掲 */
+ policyEngineConfiguration: {
+
arn: policyEngine.attrPolicyEngineArn,
+
mode: "ENFORCE",
+ },
});
© 2026, Amazon Web Services, Inc. or its affiliates. All rights reserved.
49