{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-create-campaign-request-schema.json",
  "title": "CreateCampaignRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-connect-campaigns-api-openapi.yml#/components/schemas/CreateCampaignRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "connectInstanceId": {
      "type": "string"
    },
    "dialerConfig": {
      "$ref": "#/$defs/DialerConfig"
    },
    "outboundCallConfig": {
      "$ref": "#/$defs/OutboundCallConfig"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }
  },
  "required": [
    "name",
    "connectInstanceId",
    "dialerConfig",
    "outboundCallConfig"
  ],
  "$defs": {
    "AgentlessDialerConfig": {
      "type": "object",
      "properties": {
        "dialingCapacity": {
          "type": "number"
        }
      }
    },
    "ConnectCampaignsAnswerMachineDetectionConfig": {
      "type": "object",
      "properties": {
        "enableAnswerMachineDetection": {
          "type": "boolean",
          "description": "Enable or disable answering machine detection"
        },
        "awaitAnswerMachinePrompt": {
          "type": "boolean",
          "description": "Enable or disable await answer machine prompt"
        }
      },
      "required": [
        "enableAnswerMachineDetection"
      ]
    },
    "DialerConfig": {
      "type": "object",
      "properties": {
        "progressiveDialerConfig": {
          "$ref": "#/$defs/ProgressiveDialerConfig"
        },
        "predictiveDialerConfig": {
          "$ref": "#/$defs/PredictiveDialerConfig"
        },
        "agentlessDialerConfig": {
          "$ref": "#/$defs/AgentlessDialerConfig"
        }
      },
      "description": "Exactly one member is set."
    },
    "OutboundCallConfig": {
      "type": "object",
      "properties": {
        "connectContactFlowId": {
          "type": "string"
        },
        "connectSourcePhoneNumber": {
          "type": "string"
        },
        "connectQueueId": {
          "type": "string"
        },
        "answerMachineDetectionConfig": {
          "$ref": "#/$defs/ConnectCampaignsAnswerMachineDetectionConfig"
        }
      },
      "required": [
        "connectContactFlowId"
      ]
    },
    "PredictiveDialerConfig": {
      "type": "object",
      "properties": {
        "bandwidthAllocation": {
          "type": "number"
        },
        "dialingCapacity": {
          "type": "number"
        }
      },
      "required": [
        "bandwidthAllocation"
      ]
    },
    "ProgressiveDialerConfig": {
      "type": "object",
      "properties": {
        "bandwidthAllocation": {
          "type": "number"
        },
        "dialingCapacity": {
          "type": "number"
        }
      },
      "required": [
        "bandwidthAllocation"
      ]
    }
  }
}