UpdatePolicyRequest

UpdatePolicyRequest

정책을 부분 업데이트하는 데 쓰는 요청 스키마예요.요청 바디에 포함된 필드만 업데이트되고, 빠진 필드는 그대로 유지돼요. 최소한 한 개의 필드는 꼭 있어야 해요.

출처: 문서

본문

정책을 부분 업데이트할 때 쓰는 요청 바디 스키마예요. 요청 바디에 포함된 필드만 업데이트되고, 빠진 필드는 그대로 유지돼요. 최소한 한 개의 필드는 반드시 포함되어야 해요. cedar_v1 정책이라면 cedar_v1 필드로 정책 텍스트를 교체할 수 있고, namescope는 자유롭게 조합해서 쓸 수 있어요.

아래 JSON 스키마를 그대로 확인할게요.

{
  "description": "Partial update of a policy. Only fields present in the body are updated; absent fields are left unchanged. At least one field must be present. For `cedar_v1` policies, supply `cedar_v1` to replace the policy text; `name` and `scope` may be combined freely.\n",
  "properties": {
    "cedar_v1": {
      "$ref": "#/components/schemas/CedarV1Policy"
    },
    "name": {
      "description": "Policy name, unique within the organization.",
      "examples": [
        "Security Research"
      ],
      "minLength": 1,
      "type": "string"
    },
    "scope": {
      "$ref": "#/components/schemas/ScopePatch"
    }
  },
  "type": "object"
}

더 알아보기