{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-connect/json-schema/amazon-connect-describe-campaign-response-schema.json",
  "title": "DescribeCampaignResponse",
  "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/DescribeCampaignResponse",
  "type": "object",
  "properties": {
    "campaign": {
      "$ref": "#/$defs/ConnectCampaignsCampaign"
    }
  },
  "$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"
      ]
    },
    "ConnectCampaignsCampaign": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "arn": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "connectInstanceId": {
          "type": "string"
        },
        "dialerConfig": {
          "$ref": "#/$defs/DialerConfig"
        },
        "outboundCallConfig": {
          "$ref": "#/$defs/OutboundCallConfig"
        },
        "tags": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "required": [
        "id",
        "arn",
        "name",
        "connectInstanceId",
        "dialerConfig",
        "outboundCallConfig"
      ]
    },
    "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"
      ]
    }
  }
}