{
 "additionalIdentifiers": [
  [
   "/properties/PortalArn"
  ]
 ],
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/PortalAuthMode",
  "/properties/PortalType"
 ],
 "definitions": {
  "PortalTools": {
   "items": {
    "type": "string"
   },
   "type": "array"
  },
  "PortalTypeConfiguration": {
   "additionalProperties": false,
   "patternProperties": {
    "^[a-z][a-zA-Z0-9_]*$": {
     "$ref": "#/definitions/PortalTypeEntry"
    }
   },
   "type": "object"
  },
  "PortalTypeEntry": {
   "additionalProperties": false,
   "properties": {
    "PortalTools": {
     "$ref": "#/definitions/PortalTools"
    }
   },
   "required": [
    "PortalTools"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/PortalId"
 ],
 "properties": {
  "Alarms": {
   "additionalProperties": false,
   "properties": {
    "AlarmRoleArn": {
     "maxLength": 1600,
     "minLength": 1,
     "pattern": "^arn:aws(-cn|-us-gov)?:[a-zA-Z0-9-:\\/_\\.\\+=,@]+$",
     "type": "string"
    },
    "NotificationLambdaArn": {
     "maxLength": 1600,
     "minLength": 1,
     "pattern": "^arn:aws(-cn|-us-gov)?:[a-zA-Z0-9-:\\/_\\.]+$",
     "type": "string"
    }
   },
   "type": "object"
  },
  "NotificationSenderEmail": {
   "maxLength": 255,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9_\\-\\.\\+]+@[a-zA-Z0-9_\\-\\.\\+]+\\.[a-zA-Z]{2,}$",
   "type": "string"
  },
  "PortalArn": {
   "type": "string"
  },
  "PortalAuthMode": {
   "enum": [
    "IAM",
    "SSO"
   ],
   "type": "string"
  },
  "PortalClientId": {
   "type": "string"
  },
  "PortalContactEmail": {
   "maxLength": 255,
   "minLength": 1,
   "pattern": "^[a-zA-Z0-9_\\-\\.\\+]+@[a-zA-Z0-9_\\-\\.\\+]+\\.[a-zA-Z]{2,}$",
   "type": "string"
  },
  "PortalDescription": {
   "maxLength": 2048,
   "minLength": 1,
   "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
   "type": "string"
  },
  "PortalId": {
   "type": "string"
  },
  "PortalName": {
   "maxLength": 256,
   "minLength": 1,
   "pattern": "^[^\\u0000-\\u001F\\u007F]+$",
   "type": "string"
  },
  "PortalStartUrl": {
   "type": "string"
  },
  "PortalType": {
   "enum": [
    "SITEWISE_PORTAL_V1",
    "SITEWISE_PORTAL_V2"
   ],
   "type": "string"
  },
  "PortalTypeConfiguration": {
   "$ref": "#/definitions/PortalTypeConfiguration"
  },
  "RoleArn": {
   "format": "AWS::IAM::Role.Arn",
   "maxLength": 1600,
   "minLength": 1,
   "pattern": "^arn:aws(-cn|-us-gov)?:[a-zA-Z0-9-:\\/_\\.\\+=,@]+$",
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": false
  }
 },
 "readOnlyProperties": [
  "/properties/PortalArn",
  "/properties/PortalClientId",
  "/properties/PortalId",
  "/properties/PortalStartUrl"
 ],
 "required": [
  "PortalContactEmail",
  "PortalName",
  "RoleArn"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-iotsitewise.git",
 "tagging": {
  "cloudFormationSystemTags": true,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::IoTSiteWise::Portal"
}
