{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/CreatorDisplayName",
  "/properties/CreatorMemberAbilities",
  "/properties/CreatorMLMemberAbilities",
  "/properties/DataEncryptionMetadata",
  "/properties/JobLogStatus",
  "/properties/QueryLogStatus",
  "/properties/Members",
  "/properties/CreatorPaymentConfiguration",
  "/properties/AutoApprovedChangeTypes",
  "/properties/AllowedResultRegions"
 ],
 "definitions": {
  "AllowedResultRegions": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/SupportedS3Region"
   },
   "type": "array",
   "uniqueItems": true
  },
  "AnalyticsEngine": {
   "enum": [
    "CLEAN_ROOMS_SQL",
    "SPARK"
   ],
   "type": "string"
  },
  "AutoApprovedChangeType": {
   "enum": [
    "ADD_MEMBER",
    "GRANT_RECEIVE_RESULTS_ABILITY",
    "REVOKE_RECEIVE_RESULTS_ABILITY"
   ],
   "type": "string"
  },
  "AutoApprovedChangeTypeList": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/AutoApprovedChangeType"
   },
   "type": "array",
   "uniqueItems": true
  },
  "CollaborationJobLogStatus": {
   "enum": [
    "ENABLED",
    "DISABLED"
   ],
   "type": "string"
  },
  "CollaborationQueryLogStatus": {
   "enum": [
    "ENABLED",
    "DISABLED"
   ],
   "type": "string"
  },
  "CustomMLMemberAbilities": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/CustomMLMemberAbility"
   },
   "minItems": 1,
   "type": "array",
   "uniqueItems": true
  },
  "CustomMLMemberAbility": {
   "enum": [
    "CAN_RECEIVE_MODEL_OUTPUT",
    "CAN_RECEIVE_INFERENCE_OUTPUT"
   ],
   "type": "string"
  },
  "DataEncryptionMetadata": {
   "additionalProperties": false,
   "properties": {
    "AllowCleartext": {
     "type": "boolean"
    },
    "AllowDuplicates": {
     "type": "boolean"
    },
    "AllowJoinsOnColumnsWithDifferentNames": {
     "type": "boolean"
    },
    "PreserveNulls": {
     "type": "boolean"
    }
   },
   "required": [
    "AllowCleartext",
    "AllowDuplicates",
    "AllowJoinsOnColumnsWithDifferentNames",
    "PreserveNulls"
   ],
   "type": "object"
  },
  "JobComputePaymentConfig": {
   "additionalProperties": false,
   "properties": {
    "IsResponsible": {
     "type": "boolean"
    }
   },
   "required": [
    "IsResponsible"
   ],
   "type": "object"
  },
  "MLMemberAbilities": {
   "additionalProperties": false,
   "properties": {
    "CustomMLMemberAbilities": {
     "$ref": "#/definitions/CustomMLMemberAbilities"
    }
   },
   "required": [
    "CustomMLMemberAbilities"
   ],
   "type": "object"
  },
  "MLPaymentConfig": {
   "additionalProperties": false,
   "properties": {
    "ModelInference": {
     "$ref": "#/definitions/ModelInferencePaymentConfig"
    },
    "ModelTraining": {
     "$ref": "#/definitions/ModelTrainingPaymentConfig"
    },
    "SyntheticDataGeneration": {
     "$ref": "#/definitions/SyntheticDataGenerationPaymentConfig"
    }
   },
   "type": "object"
  },
  "MemberAbilities": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/MemberAbility"
   },
   "type": "array",
   "uniqueItems": true
  },
  "MemberAbility": {
   "enum": [
    "CAN_QUERY",
    "CAN_RUN_JOB",
    "CAN_RECEIVE_RESULTS"
   ],
   "type": "string"
  },
  "MemberSpecification": {
   "additionalProperties": false,
   "properties": {
    "AccountId": {
     "maxLength": 12,
     "minLength": 12,
     "pattern": "^\\d+$",
     "type": "string"
    },
    "DisplayName": {
     "$ref": "#/definitions/Name"
    },
    "MLMemberAbilities": {
     "$ref": "#/definitions/MLMemberAbilities"
    },
    "MemberAbilities": {
     "$ref": "#/definitions/MemberAbilities"
    },
    "PaymentConfiguration": {
     "$ref": "#/definitions/PaymentConfiguration"
    }
   },
   "required": [
    "AccountId",
    "DisplayName"
   ],
   "type": "object"
  },
  "MemberStatus": {
   "enum": [
    "INVITED",
    "ACTIVE",
    "LEFT",
    "REMOVED"
   ],
   "type": "string"
  },
  "ModelInferencePaymentConfig": {
   "additionalProperties": false,
   "properties": {
    "IsResponsible": {
     "type": "boolean"
    }
   },
   "required": [
    "IsResponsible"
   ],
   "type": "object"
  },
  "ModelTrainingPaymentConfig": {
   "additionalProperties": false,
   "properties": {
    "IsResponsible": {
     "type": "boolean"
    }
   },
   "required": [
    "IsResponsible"
   ],
   "type": "object"
  },
  "Name": {
   "maxLength": 100,
   "minLength": 1,
   "pattern": "^(?!\\s*$)[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDBFF-\\uDC00\\uDFFF\\t]*$",
   "type": "string"
  },
  "PaymentConfiguration": {
   "additionalProperties": false,
   "properties": {
    "JobCompute": {
     "$ref": "#/definitions/JobComputePaymentConfig"
    },
    "MachineLearning": {
     "$ref": "#/definitions/MLPaymentConfig"
    },
    "QueryCompute": {
     "$ref": "#/definitions/QueryComputePaymentConfig"
    }
   },
   "required": [
    "QueryCompute"
   ],
   "type": "object"
  },
  "QueryComputePaymentConfig": {
   "additionalProperties": false,
   "properties": {
    "IsResponsible": {
     "type": "boolean"
    }
   },
   "required": [
    "IsResponsible"
   ],
   "type": "object"
  },
  "SupportedS3Region": {
   "enum": [
    "us-west-1",
    "us-west-2",
    "us-east-1",
    "us-east-2",
    "af-south-1",
    "ap-east-1",
    "ap-east-2",
    "ap-south-2",
    "ap-southeast-1",
    "ap-southeast-2",
    "ap-southeast-3",
    "ap-southeast-5",
    "ap-southeast-4",
    "ap-southeast-7",
    "ap-south-1",
    "ap-northeast-3",
    "ap-northeast-1",
    "ap-northeast-2",
    "ca-central-1",
    "ca-west-1",
    "eu-south-1",
    "eu-west-3",
    "eu-south-2",
    "eu-central-2",
    "eu-central-1",
    "eu-north-1",
    "eu-west-1",
    "eu-west-2",
    "me-south-1",
    "me-central-1",
    "il-central-1",
    "sa-east-1",
    "mx-central-1"
   ],
   "type": "string"
  },
  "SyntheticDataGenerationPaymentConfig": {
   "additionalProperties": false,
   "properties": {
    "IsResponsible": {
     "type": "boolean"
    }
   },
   "required": [
    "IsResponsible"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Value",
    "Key"
   ],
   "type": "object"
  }
 },
 "documentationUrl": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cleanrooms-collaboration.html",
 "primaryIdentifier": [
  "/properties/CollaborationIdentifier"
 ],
 "properties": {
  "AllowedResultRegions": {
   "$ref": "#/definitions/AllowedResultRegions"
  },
  "AnalyticsEngine": {
   "$ref": "#/definitions/AnalyticsEngine"
  },
  "Arn": {
   "maxLength": 100,
   "type": "string"
  },
  "AutoApprovedChangeTypes": {
   "$ref": "#/definitions/AutoApprovedChangeTypeList"
  },
  "CollaborationIdentifier": {
   "maxLength": 36,
   "minLength": 36,
   "pattern": "[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
   "type": "string"
  },
  "CreatorDisplayName": {
   "$ref": "#/definitions/Name"
  },
  "CreatorMLMemberAbilities": {
   "$ref": "#/definitions/MLMemberAbilities"
  },
  "CreatorMemberAbilities": {
   "$ref": "#/definitions/MemberAbilities"
  },
  "CreatorPaymentConfiguration": {
   "$ref": "#/definitions/PaymentConfiguration"
  },
  "DataEncryptionMetadata": {
   "$ref": "#/definitions/DataEncryptionMetadata"
  },
  "Description": {
   "maxLength": 255,
   "minLength": 1,
   "pattern": "^(?!\\s*$)[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDBFF-\\uDC00\\uDFFF\\t\\r\\n]*$",
   "type": "string"
  },
  "IsMetricsEnabled": {
   "type": "boolean"
  },
  "JobLogStatus": {
   "$ref": "#/definitions/CollaborationJobLogStatus"
  },
  "Members": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/MemberSpecification"
   },
   "maxItems": 9,
   "minItems": 0,
   "type": "array"
  },
  "Name": {
   "maxLength": 100,
   "minLength": 1,
   "pattern": "^(?!\\s*$)[\\u0020-\\uD7FF\\uE000-\\uFFFD\\uD800\\uDBFF-\\uDC00\\uDFFF\\t]*$",
   "type": "string"
  },
  "QueryLogStatus": {
   "$ref": "#/definitions/CollaborationQueryLogStatus"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": true
  }
 },
 "readOnlyProperties": [
  "/properties/Arn",
  "/properties/CollaborationIdentifier"
 ],
 "required": [
  "CreatorDisplayName",
  "Name",
  "Description",
  "QueryLogStatus"
 ],
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::CleanRooms::Collaboration"
}
