CreatePolicyRequest 스키마
CreatePolicyRequest 스키마
새 정책을 만드는 데 필요한 필드예요. cedar_v1을 생략하면 빈 규칙 세트가 있는 allowlist_v0 정책을 만들어요. cedar_v1을 제공하면 Cedar:V1 정책을 만들며, 규칙은 rule 하위 리소스로 관리하는 대신 Cedar 텍스트에 내장돼요.
출처: 문서
본문
스키마 — CreatePolicyRequest · 유형: object
새 정책을 만드는 데 필요한 필드예요. cedar_v1을 생략하면 빈 규칙 세트가 있는 allowlist_v0 정책을 만들어요. cedar_v1을 제공하면 Cedar:V1 정책을 만들며, 규칙은 rule 하위 리소스로 관리하는 대신 Cedar 텍스트에 내장돼요.
cedar_v1 — 스키마: CedarV1Policy
name · 필수 — 유형: string — 조직 내에서 고유한 정책 이름.
{
"description": "Policy name, unique within the organization.",
"examples": [
"Security Research — hardened"
],
"type": "string"
}
scope — 스키마: Scope
전체 스키마:
{
"description": "Fields required to create a new policy. Omitting `cedar_v1` creates an `allowlist_v0` policy with an empty rule set. Supplying `cedar_v1` creates a Cedar:V1 policy; rules are embedded in the Cedar text rather than managed via the rules sub-resource.\n",
"properties": {
"cedar_v1": {
"$ref": "#/components/schemas/CedarV1Policy"
},
"name": {
"description": "Policy name, unique within the organization.",
"examples": [
"Security Research — hardened"
],
"type": "string"
},
"scope": {
"$ref": "#/components/schemas/Scope"
}
},
"required": [
"name"
],
"type": "object"
}