{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/AppInstanceArn"
 ],
 "definitions": {
  "Configuration": {
   "additionalProperties": false,
   "properties": {
    "Lex": {
     "$ref": "#/definitions/LexConfiguration"
    }
   },
   "required": [
    "Lex"
   ],
   "type": "object"
  },
  "InvokedBy": {
   "additionalProperties": false,
   "properties": {
    "StandardMessages": {
     "enum": [
      "AUTO",
      "ALL",
      "MENTIONS",
      "NONE"
     ],
     "type": "string"
    },
    "TargetedMessages": {
     "enum": [
      "ALL",
      "NONE"
     ],
     "type": "string"
    }
   },
   "required": [
    "StandardMessages",
    "TargetedMessages"
   ],
   "type": "object"
  },
  "LexConfiguration": {
   "additionalProperties": false,
   "properties": {
    "InvokedBy": {
     "$ref": "#/definitions/InvokedBy"
    },
    "LexBotAliasArn": {
     "maxLength": 2048,
     "minLength": 15,
     "pattern": "^arn:aws:lex:[a-z]{2}-[a-z]+-\\d{1}:\\d{12}:bot-alias/[A-Z0-9]{10}/[A-Z0-9]{10}$",
     "type": "string"
    },
    "LocaleId": {
     "type": "string"
    },
    "RespondsTo": {
     "enum": [
      "STANDARD_MESSAGES"
     ],
     "type": "string"
    },
    "WelcomeIntent": {
     "maxLength": 100,
     "minLength": 1,
     "pattern": "^([A-Za-z]_?)+$",
     "type": "string"
    }
   },
   "required": [
    "LexBotAliasArn",
    "LocaleId"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/AppInstanceBotArn"
 ],
 "properties": {
  "AppInstanceArn": {
   "maxLength": 1600,
   "minLength": 5,
   "pattern": "^arn:[a-z0-9-\\.]{1,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[^/].{0,1023}$",
   "type": "string"
  },
  "AppInstanceBotArn": {
   "maxLength": 1600,
   "minLength": 5,
   "pattern": "^arn:[a-z0-9-\\.]{1,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[a-z0-9-\\.]{0,63}:[^/].{0,1023}$",
   "type": "string"
  },
  "Configuration": {
   "$ref": "#/definitions/Configuration"
  },
  "CreatedTimestamp": {
   "type": "number"
  },
  "LastUpdatedTimestamp": {
   "type": "number"
  },
  "Metadata": {
   "maxLength": 1024,
   "minLength": 0,
   "pattern": ".*",
   "type": "string"
  },
  "Name": {
   "maxLength": 256,
   "minLength": 0,
   "pattern": "^[\\u0009\\u000A\\u000D\\u0020-\\u007E\\u0085\\u00A0-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]*$",
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array"
  }
 },
 "readOnlyProperties": [
  "/properties/AppInstanceBotArn",
  "/properties/CreatedTimestamp",
  "/properties/LastUpdatedTimestamp"
 ],
 "required": [
  "AppInstanceArn",
  "Configuration"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-rpdk.git",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::Chime::AppInstanceBot"
}
