AgentCore GatewayとPolicy Engineで命名規則が異なる
AgentCore PolicyのGatewayとPolicy Engineを同じ命名プレフィックスで作ろうとしたら、どちらか片方で必ずValidationExceptionになった。
Gateway名はハイフンのみ許可で、アンダースコアを入れると弾かれる。
Value 'my_gateway' at 'name' failed to satisfy constraint:
Member must satisfy regular expression pattern: ([0-9a-zA-Z][-]?){1,48}一方、Policy Engine名はアンダースコアのみ許可で、ハイフンを入れると弾かれる。
Value at '/name' failed to satisfy constraint:
Member must satisfy regular expression pattern: ^[A-Za-z][A-Za-z0-9_]*$同じサービス内なのに命名規則が真逆なので、my-gateway + my_policy_engine のように使い分ける必要がある。Gateway Targetの名前はGatewayと同じくハイフン許可だった。
