{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/Type",
  "/properties/CountryCode",
  "/properties/Prefix",
  "/properties/SourcePhoneNumberArn"
 ],
 "definitions": {
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/PhoneNumberArn"
 ],
 "properties": {
  "Address": {
   "pattern": "^\\+[0-9]{2,15}",
   "type": "string"
  },
  "CountryCode": {
   "pattern": "^[A-Z]{2}",
   "type": "string"
  },
  "Description": {
   "maxLength": 500,
   "minLength": 1,
   "type": "string"
  },
  "PhoneNumberArn": {
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:phone-number/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "Prefix": {
   "pattern": "^\\+[0-9]{1,15}",
   "type": "string"
  },
  "SourcePhoneNumberArn": {
   "type": "string"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "type": "array",
   "uniqueItems": true
  },
  "TargetArn": {
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:(instance|traffic-distribution-group)/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "Type": {
   "pattern": "TOLL_FREE|DID|UIFN|SHARED|THIRD_PARTY_DID|THIRD_PARTY_TF|SHORT_CODE",
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/PhoneNumberArn",
  "/properties/Address"
 ],
 "required": [
  "TargetArn"
 ],
 "sourceUrl": "https://github.com/aws-cloudformation/aws-cloudformation-resource-providers-connect",
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::Connect::PhoneNumber",
 "writeOnlyProperties": [
  "/properties/Prefix"
 ]
}
