{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-xray-resourcepolicy.json",
  "title": "AWSXRayResourcePolicyProperties",
  "description": "This schema provides construct and validation rules for AWS-XRay Resource Policy resource parameters.. Source:- <https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git>",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-xray-resourcepolicy.json",
    "sourceSha256": "5af04c1773503487a24e34f7e9c6af933435161fe2438e9e0701dcf8bcba0e11"
  },
  "type": "object",
  "properties": {
    "PolicyName": {
      "oneOf": [
        {
          "type": "string",
          "pattern": "[\\w+=,.@-]+",
          "minLength": 1,
          "maxLength": 128
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The name of the resource policy. Must be unique within a specific AWS account."
    },
    "PolicyDocument": {
      "oneOf": [
        {
          "type": "string",
          "minLength": 1,
          "maxLength": 5120
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "The resource policy document, which can be up to 5kb in size."
    },
    "BypassPolicyLockoutCheck": {
      "description": "A flag to indicate whether to bypass the resource policy lockout safety check",
      "type": "boolean"
    }
  },
  "typeName": "AWS::XRay::ResourcePolicy",
  "tagging": {
    "taggable": false,
    "tagOnCreate": false,
    "tagUpdatable": false,
    "cloudFormationSystemTags": false
  },
  "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
  "required": [
    "PolicyName",
    "PolicyDocument"
  ],
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/PolicyName"
  ],
  "createOnlyProperties": [
    "/properties/PolicyName"
  ],
  "writeOnlyProperties": [
    "/properties/BypassPolicyLockoutCheck"
  ]
}
