{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/ConnectInstanceArn"
 ],
 "definitions": {
  "AgentlessDialerConfig": {
   "additionalProperties": false,
   "properties": {
    "DialingCapacity": {
     "maximum": 1,
     "minimum": 0.01,
     "type": "number"
    }
   },
   "required": [],
   "type": "object"
  },
  "AnswerMachineDetectionConfig": {
   "additionalProperties": false,
   "properties": {
    "AwaitAnswerMachinePrompt": {
     "type": "boolean"
    },
    "EnableAnswerMachineDetection": {
     "type": "boolean"
    }
   },
   "required": [
    "EnableAnswerMachineDetection"
   ],
   "type": "object"
  },
  "DialerConfig": {
   "additionalProperties": false,
   "oneOf": [
    {
     "required": [
      "ProgressiveDialerConfig"
     ]
    },
    {
     "required": [
      "PredictiveDialerConfig"
     ]
    },
    {
     "required": [
      "AgentlessDialerConfig"
     ]
    }
   ],
   "properties": {
    "AgentlessDialerConfig": {
     "$ref": "#/definitions/AgentlessDialerConfig"
    },
    "PredictiveDialerConfig": {
     "$ref": "#/definitions/PredictiveDialerConfig"
    },
    "ProgressiveDialerConfig": {
     "$ref": "#/definitions/ProgressiveDialerConfig"
    }
   },
   "type": "object"
  },
  "OutboundCallConfig": {
   "additionalProperties": false,
   "properties": {
    "AnswerMachineDetectionConfig": {
     "$ref": "#/definitions/AnswerMachineDetectionConfig"
    },
    "ConnectContactFlowArn": {
     "maxLength": 500,
     "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/contact-flow/[-a-zA-Z0-9]*$",
     "type": "string"
    },
    "ConnectQueueArn": {
     "maxLength": 500,
     "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*/queue/[-a-zA-Z0-9]*$",
     "type": "string"
    },
    "ConnectSourcePhoneNumber": {
     "maxLength": 100,
     "type": "string"
    }
   },
   "required": [
    "ConnectContactFlowArn"
   ],
   "type": "object"
  },
  "PredictiveDialerConfig": {
   "additionalProperties": false,
   "properties": {
    "BandwidthAllocation": {
     "maximum": 1,
     "minimum": 0,
     "type": "number"
    },
    "DialingCapacity": {
     "maximum": 1,
     "minimum": 0.01,
     "type": "number"
    }
   },
   "required": [
    "BandwidthAllocation"
   ],
   "type": "object"
  },
  "ProgressiveDialerConfig": {
   "additionalProperties": false,
   "properties": {
    "BandwidthAllocation": {
     "maximum": 1,
     "minimum": 0,
     "type": "number"
    },
    "DialingCapacity": {
     "maximum": 1,
     "minimum": 0.01,
     "type": "number"
    }
   },
   "required": [
    "BandwidthAllocation"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "maxLength": 128,
     "minLength": 1,
     "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$",
     "type": "string"
    },
    "Value": {
     "maxLength": 256,
     "minLength": 1,
     "type": "string"
    }
   },
   "required": [
    "Key",
    "Value"
   ],
   "type": "object"
  }
 },
 "primaryIdentifier": [
  "/properties/Arn"
 ],
 "properties": {
  "Arn": {
   "maxLength": 256,
   "minLength": 0,
   "pattern": "^arn:aws[-a-z0-9]*:connect-campaigns:[-a-z0-9]*:[0-9]{12}:campaign/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "ConnectInstanceArn": {
   "maxLength": 256,
   "minLength": 0,
   "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*$",
   "type": "string"
  },
  "DialerConfig": {
   "$ref": "#/definitions/DialerConfig"
  },
  "Name": {
   "maxLength": 127,
   "minLength": 1,
   "type": "string"
  },
  "OutboundCallConfig": {
   "$ref": "#/definitions/OutboundCallConfig"
  },
  "Tags": {
   "insertionOrder": false,
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "maxItems": 50,
   "type": "array",
   "uniqueItems": true
  }
 },
 "readOnlyProperties": [
  "/properties/Arn"
 ],
 "required": [
  "ConnectInstanceArn",
  "DialerConfig",
  "Name",
  "OutboundCallConfig"
 ],
 "tagging": {
  "cloudFormationSystemTags": false,
  "tagOnCreate": true,
  "tagProperty": "/properties/Tags",
  "tagUpdatable": true,
  "taggable": true
 },
 "typeName": "AWS::ConnectCampaigns::Campaign"
}
