{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-verified-permissions/json-schema/amazon-verified-permissions-create-policy-store-input-schema.json",
  "title": "CreatePolicyStoreInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-verified-permissions-createpolicystore-api-openapi.yml#/components/schemas/CreatePolicyStoreInput",
  "type": "object",
  "properties": {
    "clientToken": {
      "type": "string",
      "description": "Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value.. If you don't provide this value, then Amazon Web Services generates a random one for you. If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error. V"
    },
    "validationSettings": {
      "$ref": "#/$defs/ValidationSettings"
    },
    "description": {
      "type": "string",
      "description": "Descriptive text that you can provide to help with identification of the current policy store."
    },
    "deletionProtection": {
      "type": "string",
      "enum": [
        "ENABLED",
        "DISABLED"
      ],
      "description": "Specifies whether the policy store can be deleted. If enabled, the policy store can't be deleted. The default state is DISABLED."
    },
    "encryptionSettings": {
      "$ref": "#/$defs/EncryptionSettings"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The list of key-value pairs to associate with the policy store."
    }
  },
  "required": [
    "validationSettings"
  ],
  "$defs": {
    "EncryptionSettings": {
      "type": "object",
      "properties": {
        "kmsEncryptionSettings": {
          "$ref": "#/$defs/KmsEncryptionSettings"
        },
        "default": {
          "type": "string",
          "description": "This is the default encryption setting. The policy store uses an Amazon Web Services owned key for encrypting data."
        }
      },
      "description": "Exactly one member is set."
    },
    "KmsEncryptionSettings": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string",
          "description": "The customer-managed KMS key Amazon Resource Name (ARN), alias or ID to be used for encryption processes. Users can provide the full KMS key ARN, a KMS key alias, or a KMS key ID, but it will be mapped to the full KMS key ARN after policy store creation, and referenced when encrypting child resources."
        },
        "encryptionContext": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "User-defined, additional context to be added to encryption processes."
        }
      },
      "required": [
        "key"
      ]
    },
    "ValidationSettings": {
      "type": "object",
      "properties": {
        "mode": {
          "type": "string",
          "enum": [
            "OFF",
            "STRICT"
          ],
          "description": "The validation mode currently configured for this policy store. The valid values are: OFF – Neither Verified Permissions nor Cedar perform any validation on policies. No validation errors are reported by either service. STRICT – Requires a schema to be present in the policy store. Cedar performs validation on all submitted new or updated static policies and policy templates. Any that fail validation are rejected and Cedar doesn't store them in the policy store. If Mode=STRICT and the policy store doesn't contain a schema, Verified Permissions rejects all static policies and policy templates be"
        }
      },
      "required": [
        "mode"
      ]
    }
  }
}