{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--aws-connectcampaigns-campaign.json",
  "title": "AWSConnectCampaignsCampaignProperties",
  "description": "Definition of AWS::ConnectCampaigns::Campaign Resource Type. Source:- No source definition found, add manually please",
  "x-lintel": {
    "source": "https://raw.githubusercontent.com/lalcebo/json-schema/master/serverless/resources/cloudformation-modified/aws-connectcampaigns-campaign.json",
    "sourceSha256": "3b5db8bbe795c147a39970ef970236f58ac07054560597626135fc6ecb871c60"
  },
  "type": "object",
  "properties": {
    "ConnectInstanceArn": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 256,
          "minLength": 0,
          "pattern": "^arn:aws[-a-z0-9]*:connect:[-a-z0-9]*:[0-9]{12}:instance/[-a-zA-Z0-9]*$"
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Amazon Connect Instance Arn"
    },
    "DialerConfig": {
      "$ref": "#/$defs/DialerConfig"
    },
    "Name": {
      "oneOf": [
        {
          "type": "string",
          "maxLength": 127,
          "minLength": 1
        },
        {
          "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
        }
      ],
      "description": "Amazon Connect Campaign Name"
    },
    "OutboundCallConfig": {
      "$ref": "#/$defs/OutboundCallConfig"
    },
    "Tags": {
      "type": "array",
      "maxItems": 50,
      "uniqueItems": true,
      "insertionOrder": false,
      "description": "One or more tags.",
      "items": {
        "$ref": "#/$defs/Tag"
      }
    }
  },
  "typeName": "AWS::ConnectCampaigns::Campaign",
  "$defs": {
    "DialerConfig": {
      "type": "object",
      "description": "The possible types of dialer config parameters",
      "properties": {
        "ProgressiveDialerConfig": {
          "$ref": "#/$defs/ProgressiveDialerConfig"
        },
        "PredictiveDialerConfig": {
          "$ref": "#/$defs/PredictiveDialerConfig"
        }
      },
      "title": "AWSConnectCampaignsCampaignDialerConfigDefinition",
      "oneOf": [
        {
          "required": [
            "ProgressiveDialerConfig"
          ]
        },
        {
          "required": [
            "PredictiveDialerConfig"
          ]
        }
      ],
      "additionalProperties": false
    },
    "OutboundCallConfig": {
      "type": "object",
      "description": "The configuration used for outbound calls.",
      "properties": {
        "ConnectContactFlowArn": {
          "oneOf": [
            {
              "type": "string",
              "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]*$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The identifier of the contact flow for the outbound call."
        },
        "ConnectSourcePhoneNumber": {
          "oneOf": [
            {
              "type": "string",
              "maxLength": 100
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The phone number associated with the Amazon Connect instance, in E.164 format. If you do not specify a source phone number, you must specify a queue."
        },
        "ConnectQueueArn": {
          "oneOf": [
            {
              "type": "string",
              "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]*$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The queue for the call. If you specify a queue, the phone displayed for caller ID is the phone number specified in the queue. If you do not specify a queue, the queue defined in the contact flow is used. If you do not specify a queue, you must specify a source phone number."
        },
        "AnswerMachineDetectionConfig": {
          "$ref": "#/$defs/AnswerMachineDetectionConfig"
        }
      },
      "required": [
        "ConnectContactFlowArn",
        "ConnectQueueArn"
      ],
      "title": "AWSConnectCampaignsCampaignOutboundCallConfigDefinition",
      "additionalProperties": false
    },
    "PredictiveDialerConfig": {
      "type": "object",
      "description": "Predictive Dialer config",
      "properties": {
        "BandwidthAllocation": {
          "type": "number",
          "maximum": 1,
          "minimum": 0,
          "description": "The bandwidth allocation of a queue resource."
        }
      },
      "required": [
        "BandwidthAllocation"
      ],
      "title": "AWSConnectCampaignsCampaignPredictiveDialerConfigDefinition",
      "additionalProperties": false
    },
    "ProgressiveDialerConfig": {
      "type": "object",
      "description": "Progressive Dialer config",
      "properties": {
        "BandwidthAllocation": {
          "type": "number",
          "maximum": 1,
          "minimum": 0,
          "description": "The bandwidth allocation of a queue resource."
        }
      },
      "required": [
        "BandwidthAllocation"
      ],
      "title": "AWSConnectCampaignsCampaignProgressiveDialerConfigDefinition",
      "additionalProperties": false
    },
    "AnswerMachineDetectionConfig": {
      "type": "object",
      "description": "The configuration used for answering machine detection during outbound calls",
      "properties": {
        "EnableAnswerMachineDetection": {
          "type": "boolean",
          "description": "Flag to decided whether outbound calls should have answering machine detection enabled or not"
        }
      },
      "required": [
        "EnableAnswerMachineDetection"
      ],
      "title": "AWSConnectCampaignsCampaignAnswerMachineDetectionConfigDefinition",
      "additionalProperties": false
    },
    "Tag": {
      "description": "A key-value pair to associate with a resource.",
      "type": "object",
      "title": "AWSConnectCampaignsCampaignTagDefinition",
      "properties": {
        "Key": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128,
              "pattern": "^(?!aws:)[a-zA-Z+-=._:/]+$"
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The key name of the tag. You can specify a value that is 1 to 128 Unicode characters in length and cannot be prefixed with aws:. You can use any of the following characters: the set of Unicode letters, digits, whitespace, _, ., /, =, +, and -. "
        },
        "Value": {
          "oneOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            {
              "$ref": "https://catalog.lintel.tools/schemas/schemastore/serverless-framework-configuration/_shared/latest--cf.functions.json#/Aws_CF_FunctionString"
            }
          ],
          "description": "The value for the tag. You can specify a value that's 1 to 256 characters in length."
        }
      },
      "required": [
        "Key",
        "Value"
      ],
      "additionalProperties": false
    }
  },
  "additionalProperties": false,
  "primaryIdentifier": [
    "/properties/Arn"
  ],
  "tagging": {
    "taggable": true,
    "tagOnCreate": true,
    "tagUpdatable": true,
    "cloudFormationSystemTags": false,
    "tagProperty": "/properties/Tags"
  },
  "required": [
    "ConnectInstanceArn",
    "DialerConfig",
    "Name",
    "OutboundCallConfig"
  ],
  "readOnlyProperties": [
    "/properties/Arn"
  ],
  "createOnlyProperties": [
    "/properties/ConnectInstanceArn"
  ]
}
