{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-management/json-schema/amazon-iot-device-management-create-policy-version-response-schema.json",
  "title": "CreatePolicyVersionResponse",
  "description": "The output of the CreatePolicyVersion operation.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-management-policies-api-openapi.yml#/components/schemas/CreatePolicyVersionResponse",
  "type": "object",
  "properties": {
    "policyArn": {
      "allOf": [
        {
          "$ref": "#/$defs/PolicyArn"
        },
        {
          "description": "The policy ARN."
        }
      ]
    },
    "policyDocument": {
      "allOf": [
        {
          "$ref": "#/$defs/PolicyDocument"
        },
        {
          "description": "The JSON document that describes the policy."
        }
      ]
    },
    "policyVersionId": {
      "allOf": [
        {
          "$ref": "#/$defs/PolicyVersionId"
        },
        {
          "description": "The policy version ID."
        }
      ]
    },
    "isDefaultVersion": {
      "allOf": [
        {
          "$ref": "#/$defs/IsDefaultVersion"
        },
        {
          "description": "Specifies whether the policy version is the default."
        }
      ]
    }
  },
  "$defs": {
    "IsDefaultVersion": {
      "type": "boolean"
    },
    "PolicyArn": {
      "type": "string"
    },
    "PolicyDocument": {
      "type": "string",
      "pattern": "[\\s\\S]*",
      "minLength": 0,
      "maxLength": 404600
    },
    "PolicyVersionId": {
      "type": "string",
      "pattern": "[0-9]+"
    }
  }
}