{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--mongodb-atlas-project.json",
  "title": "MongoDBAtlasProjectProperties",
  "description": "Retrieves or creates projects in any given Atlas organization.. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/mongodb-atlas-project.json",
    "sourceSha256": "b711198674a171c6b56ca2dc0cd80f86e250a6f19970b5981e29b05c59b5723f"
  },
  "type": "object",
  "properties": {
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "default": ""
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Name of the project to create."
    },
    "OrgId": {
      "oneOf": [
        {
          "type": "string",
          "default": ""
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Unique identifier of the organization within which to create the project."
    },
    "WithDefaultAlertsSettings": {
      "description": "Flag that indicates whether to create the project with default alert settings.",
      "type": "boolean",
      "default": "false"
    },
    "ProjectSettings": {
      "$ref": "#/$defs/projectSettings"
    },
    "Profile": {
      "oneOf": [
        {
          "type": "string",
          "default": "default"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Profile used to provide credentials information, (a secret with the cfn/atlas/profile/{Profile}, is required), if not provided default is used"
    },
    "ProjectTeams": {
      "items": {
        "$ref": "#/$defs/projectTeam"
      },
      "type": "array",
      "uniqueItems": true
    },
    "ProjectApiKeys": {
      "items": {
        "$ref": "#/$defs/projectApiKey"
      },
      "type": "array",
      "uniqueItems": true
    }
  },
  "typeName": "MongoDB::Atlas::Project",
  "primaryIdentifier": [
    "/properties/Id",
    "/properties/Profile"
  ],
  "additionalProperties": false,
  "readOnlyProperties": [
    "/properties/Id",
    "/properties/Created",
    "/properties/ProjectOwnerId",
    "/properties/ClusterCount"
  ],
  "$defs": {
    "projectSettings": {
      "type": "object",
      "properties": {
        "IsCollectDatabaseSpecificsStatisticsEnabled": {
          "type": "boolean"
        },
        "IsDataExplorerEnabled": {
          "type": "boolean"
        },
        "IsPerformanceAdvisorEnabled": {
          "type": "boolean"
        },
        "IsRealtimePerformancePanelEnabled": {
          "type": "boolean"
        },
        "IsSchemaAdvisorEnabled": {
          "type": "boolean"
        }
      },
      "title": "MongoDBAtlasProjectprojectSettingsDefinition",
      "additionalProperties": false
    },
    "projectTeam": {
      "type": "object",
      "properties": {
        "TeamId": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RoleNames": {
          "items": {
            "$ref": "#/$defs/Roles"
          },
          "type": "array",
          "uniqueItems": true
        }
      },
      "title": "MongoDBAtlasProjectprojectTeamDefinition",
      "additionalProperties": false
    },
    "projectApiKey": {
      "type": "object",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ]
        },
        "RoleNames": {
          "items": {
            "$ref": "#/$defs/Roles"
          },
          "type": "array",
          "uniqueItems": true
        }
      },
      "title": "MongoDBAtlasProjectprojectApiKeyDefinition",
      "additionalProperties": false
    },
    "Roles": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "title": "MongoDBAtlasProjectRolesDefinition"
    }
  },
  "required": [
    "Name",
    "OrgId"
  ],
  "createOnlyProperties": [
    "/properties/Name",
    "/properties/Profile"
  ],
  "writeOnlyProperties": [
    "/properties/ProjectApiKeys"
  ]
}
