{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-cleanrooms-collaboration.json",
  "title": "AWSCleanRoomsCollaborationProperties",
  "description": "Represents a collaboration between AWS accounts that allows for secure data collaboration. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-cleanrooms-collaboration.json",
    "sourceSha256": "d2f8e4a53e6a5d6db6e72190f862291f394b07cc7de072ec26328ae57115a0e1"
  },
  "type": "object",
  "properties": {
    "Tags": {
      "description": "An arbitrary set of tags (key-value pairs) for this cleanrooms collaboration.",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/Tag"
      },
      "uniqueItems": true,
      "type": "array"
    },
    "CreatorDisplayName": {
      "$ref": "#/$defs/Name"
    },
    "CreatorMemberAbilities": {
      "$ref": "#/$defs/MemberAbilities"
    },
    "DataEncryptionMetadata": {
      "$ref": "#/$defs/DataEncryptionMetadata"
    },
    "Description": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 255,
          "minLength": 1,
          "pattern": "^(?!\\s*$)[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDBFF-\\uDC00\\uDFFF\\t\\r\\n]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "Members": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/MemberSpecification"
      },
      "maxItems": 9,
      "minItems": 0
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 100,
          "minLength": 1,
          "pattern": "^(?!\\s*$)[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDBFF-\\uDC00\\uDFFF\\t]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ]
    },
    "QueryLogStatus": {
      "$ref": "#/$defs/CollaborationQueryLogStatus"
    }
  },
  "typeName": "AWS::CleanRooms::Collaboration",
  "$defs": {
    "CollaborationQueryLogStatus": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "ENABLED",
            "DISABLED"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSCleanRoomsCollaborationCollaborationQueryLogStatusDefinition"
    },
    "DataEncryptionMetadata": {
      "type": "object",
      "properties": {
        "AllowCleartext": {
          "type": "boolean"
        },
        "AllowDuplicates": {
          "type": "boolean"
        },
        "AllowJoinsOnColumnsWithDifferentNames": {
          "type": "boolean"
        },
        "PreserveNulls": {
          "type": "boolean"
        }
      },
      "required": [
        "AllowCleartext",
        "AllowDuplicates",
        "AllowJoinsOnColumnsWithDifferentNames",
        "PreserveNulls"
      ],
      "title": "AWSCleanRoomsCollaborationDataEncryptionMetadataDefinition",
      "additionalProperties": false
    },
    "MemberAbility": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "CAN_QUERY",
            "CAN_RECEIVE_RESULTS"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSCleanRoomsCollaborationMemberAbilityDefinition"
    },
    "MemberAbilities": {
      "type": "array",
      "insertionOrder": false,
      "items": {
        "$ref": "#/$defs/MemberAbility"
      },
      "uniqueItems": true,
      "title": "AWSCleanRoomsCollaborationMemberAbilitiesDefinition"
    },
    "MemberSpecification": {
      "type": "object",
      "properties": {
        "AccountId": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 12,
              "minLength": 12,
              "pattern": "^\\d+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "MemberAbilities": {
          "$ref": "#/$defs/MemberAbilities"
        },
        "DisplayName": {
          "$ref": "#/$defs/Name"
        }
      },
      "required": [
        "AccountId",
        "DisplayName",
        "MemberAbilities"
      ],
      "title": "AWSCleanRoomsCollaborationMemberSpecificationDefinition",
      "additionalProperties": false
    },
    "MemberStatus": {
      "oneOf": [
        {
          "type": "string",
          "enum": [
            "INVITED",
            "ACTIVE",
            "LEFT",
            "REMOVED"
          ]
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSCleanRoomsCollaborationMemberStatusDefinition"
    },
    "Tag": {
      "type": "object",
      "title": "AWSCleanRoomsCollaborationTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        }
      },
      "required": [
        "Value",
        "Key"
      ],
      "additionalProperties": false
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 100,
          "minLength": 1,
          "pattern": "^(?!\\s*$)[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDBFF-\\uDC00\\uDFFF\\t]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "AWSCleanRoomsCollaborationNameDefinition"
    }
  },
  "documentationUrl": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-collaboration.html",
  "additionalProperties": false,
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": true,
    "tagProperty": "/properties/Tags"
  },
  "required": [
    "CreatorDisplayName",
    "CreatorMemberAbilities",
    "Members",
    "Name",
    "Description",
    "QueryLogStatus"
  ],
  "readOnlyProperties": [
    "/properties/Arn",
    "/properties/CollaborationIdentifier"
  ],
  "createOnlyProperties": [
    "/properties/CreatorDisplayName",
    "/properties/CreatorMemberAbilities",
    "/properties/DataEncryptionMetadata",
    "/properties/QueryLogStatus",
    "/properties/Members"
  ],
  "primaryIdentifier": [
    "/properties/CollaborationIdentifier"
  ]
}
