{
 "additionalIdentifiers": [
  [
   "/properties/DomainIdentifier"
  ]
 ],
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/ProjectProfileId",
  "/properties/DomainIdentifier",
  "/properties/MembershipAssignments",
  "/properties/ProjectCategory",
  "/properties/ProjectExecutionRole"
 ],
 "definitions": {
  "EnvironmentConfigurationUserParameter": {
   "additionalProperties": false,
   "properties": {
    "EnvironmentConfigurationName": {
     "maxLength": 64,
     "minLength": 1,
     "pattern": "^[\\w -]+$",
     "type": "string"
    },
    "EnvironmentId": {
     "pattern": "^[a-zA-Z0-9_-]{1,36}$",
     "type": "string"
    },
    "EnvironmentParameters": {
     "items": {
      "$ref": "#/definitions/EnvironmentParameter"
     },
     "type": "array"
    }
   },
   "type": "object"
  },
  "EnvironmentDeploymentDetails": {
   "additionalProperties": false,
   "properties": {
    "EnvironmentFailureReasons": {
     "$ref": "#/definitions/EnvironmentFailureReasons"
    },
    "OverallDeploymentStatus": {
     "$ref": "#/definitions/OverallDeploymentStatus"
    }
   },
   "type": "object"
  },
  "EnvironmentError": {
   "additionalProperties": false,
   "properties": {
    "Code": {
     "type": "string"
    },
    "Message": {
     "type": "string"
    }
   },
   "required": [
    "Message"
   ],
   "type": "object"
  },
  "EnvironmentFailureReasons": {
   "additionalProperties": false,
   "patternProperties": {
    ".+": {
     "items": {
      "$ref": "#/definitions/EnvironmentError"
     },
     "type": "array"
    }
   },
   "type": "object"
  },
  "EnvironmentParameter": {
   "additionalProperties": false,
   "properties": {
    "Name": {
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "EnvironmentResolvedAccount": {
   "additionalProperties": false,
   "properties": {
    "AwsAccountId": {
     "pattern": "^\\d{12}$",
     "type": "string"
    },
    "RegionName": {
     "pattern": "^[a-z]{2}-[a-z]{4,10}-\\d$",
     "type": "string"
    },
    "SourceAccountPoolId": {
     "pattern": "^[a-zA-Z0-9_-]{1,36}$",
     "type": "string"
    }
   },
   "required": [
    "AwsAccountId",
    "RegionName",
    "SourceAccountPoolId"
   ],
   "type": "object"
  },
  "Member": {
   "additionalProperties": false,
   "properties": {
    "GroupIdentifier": {
     "type": "string"
    },
    "UserIdentifier": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "OverallDeploymentStatus": {
   "enum": [
    "PENDING_DEPLOYMENT",
    "IN_PROGRESS",
    "SUCCESSFUL",
    "FAILED_VALIDATION",
    "FAILED_DEPLOYMENT"
   ],
   "type": "string"
  },
  "ProjectDeletionError": {
   "additionalProperties": false,
   "properties": {
    "Code": {
     "type": "string"
    },
    "Message": {
     "type": "string"
    }
   },
   "type": "object"
  },
  "ProjectMembershipAssignment": {
   "additionalProperties": false,
   "properties": {
    "Designation": {
     "$ref": "#/definitions/UserDesignation"
    },
    "Member": {
     "$ref": "#/definitions/Member"
    }
   },
   "required": [
    "Member",
    "Designation"
   ],
   "type": "object"
  },
  "ProjectStatus": {
   "enum": [
    "ACTIVE",
    "MOVING",
    "DELETING",
    "DELETE_FAILED",
    "UPDATING",
    "UPDATE_FAILED"
   ],
   "type": "string"
  },
  "ResourceTag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^[\\w \\.:/=+@-]+$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 0,
     "pattern": "^[\\w \\.:/=+@-]*$",
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  },
  "Tags": {
   "additionalProperties": false,
   "patternProperties": {
    "^[\\w \\.:/=+@-]+$": {
     "maxLength": 256,
     "pattern": "^[\\w \\.:/=+@-]*$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "UserDesignation": {
   "enum": [
    "PROJECT_OWNER",
    "PROJECT_CONTRIBUTOR"
   ],
   "type": "string"
  }
 },
 "primaryIdentifier": [
  "/properties/DomainId",
  "/properties/Id"
 ],
 "properties": {
  "CreatedAt": {
   "format": "date-time",
   "type": "string"
  },
  "CreatedBy": {
   "type": "string"
  },
  "Description": {
   "maxLength": 2048,
   "type": "string"
  },
  "DomainId": {
   "pattern": "^dzd[-_][a-zA-Z0-9_-]{1,36}$",
   "type": "string"
  },
  "DomainIdentifier": {
   "pattern": "^dzd[-_][a-zA-Z0-9_-]{1,36}$",
   "type": "string"
  },
  "DomainUnitId": {
   "maxLength": 256,
   "minLength": 1,
   "pattern": "^[a-z0-9_\\-]+$",
   "type": "string"
  },
  "GlossaryTerms": {
   "insertionOrder": false,
   "items": {
    "pattern": "^[a-zA-Z0-9_-]{1,36}$",
    "type": "string"
   },
   "maxItems": 20,
   "minItems": 0,
   "type": "array"
  },
  "Id": {
   "pattern": "^[a-zA-Z0-9_-]{1,36}$",
   "type": "string"
  },
  "LastUpdatedAt": {
   "format": "date-time",
   "type": "string"
  },
  "MembershipAssignments": {
   "items": {
    "$ref": "#/definitions/ProjectMembershipAssignment"
   },
   "type": "array"
  },
  "Name": {
   "maxLength": 64,
   "minLength": 1,
   "pattern": "^[\\w -]+$",
   "type": "string"
  },
  "ProjectCategory": {
   "type": "string"
  },
  "ProjectExecutionRole": {
   "pattern": "^arn:aws[^:]*:iam::\\d{12}:role/[\\w+=,.@/-]+$",
   "type": "string"
  },
  "ProjectProfileId": {
   "pattern": "^[a-zA-Z0-9_-]{1,36}$",
   "type": "string"
  },
  "ProjectProfileVersion": {
   "type": "string"
  },
  "ProjectStatus": {
   "$ref": "#/definitions/ProjectStatus"
  },
  "ResourceTags": {
   "items": {
    "$ref": "#/definitions/ResourceTag"
   },
   "type": "array"
  },
  "UserParameters": {
   "items": {
    "$ref": "#/definitions/EnvironmentConfigurationUserParameter"
   },
   "type": "array"
  }
 },
 "readOnlyProperties": [
  "/properties/Id",
  "/properties/CreatedAt",
  "/properties/CreatedBy",
  "/properties/DomainId",
  "/properties/LastUpdatedAt",
  "/properties/ProjectStatus"
 ],
 "required": [
  "DomainIdentifier",
  "Name"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-datazone",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": false,
  "tagUpdatable": false,
  "taggable": false
 },
 "typeName": "AWS::DataZone::Project",
 "writeOnlyProperties": [
  "/properties/DomainIdentifier",
  "/properties/ProjectProfileVersion",
  "/properties/ProjectProfileId",
  "/properties/UserParameters",
  "/properties/MembershipAssignments",
  "/properties/ProjectExecutionRole"
 ]
}
