{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-msk/json-schema/amazon-msk-create-connector-request-schema.json",
  "title": "CreateConnectorRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-msk-connectors-api-openapi.yml#/components/schemas/CreateConnectorRequest",
  "type": "object",
  "properties": {
    "capacity": {
      "$ref": "#/$defs/Capacity"
    },
    "connectorConfiguration": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A map of keys to values that represent the configuration for the connector."
    },
    "connectorDescription": {
      "type": "string",
      "description": "A summary description of the connector."
    },
    "connectorName": {
      "type": "string",
      "description": "The name of the connector."
    },
    "kafkaCluster": {
      "$ref": "#/$defs/KafkaconnectKafkaCluster"
    },
    "kafkaClusterClientAuthentication": {
      "$ref": "#/$defs/KafkaconnectKafkaClusterClientAuthentication"
    },
    "kafkaClusterEncryptionInTransit": {
      "$ref": "#/$defs/KafkaconnectKafkaClusterEncryptionInTransit"
    },
    "kafkaConnectVersion": {
      "type": "string",
      "description": "The version of Kafka Connect. It has to be compatible with both the Apache Kafka cluster's version and the plugins."
    },
    "logDelivery": {
      "$ref": "#/$defs/KafkaconnectLogDelivery"
    },
    "networkType": {
      "type": "string",
      "description": "The network type of the connector. It gives connectors connectivity to either IPv4 (IPV4) or IPv4 and IPv6 (DUAL) destinations. Defaults to IPV4."
    },
    "plugins": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Plugin"
      },
      "description": "Amazon MSK Connect does not currently support specifying multiple plugins as a list. To use more than one plugin for your connector, you can create a single custom plugin using a ZIP file that bundles multiple plugins together. Specifies which plugin to use for the connector. You must specify a single-element list containing one customPlugin object."
    },
    "serviceExecutionRoleArn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the IAM role used by the connector to access the Amazon Web Services resources that it needs. The types of resources depends on the logic of the connector. For example, a connector that has Amazon S3 as a destination must have permissions that allow it to write to the S3 destination bucket."
    },
    "workerConfiguration": {
      "$ref": "#/$defs/WorkerConfiguration"
    },
    "tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags you want to attach to the connector."
    }
  },
  "required": [
    "capacity",
    "connectorConfiguration",
    "connectorName",
    "kafkaCluster",
    "kafkaClusterClientAuthentication",
    "kafkaClusterEncryptionInTransit",
    "kafkaConnectVersion",
    "plugins",
    "serviceExecutionRoleArn"
  ],
  "$defs": {
    "AutoScaling": {
      "type": "object",
      "properties": {
        "maxWorkerCount": {
          "type": "integer",
          "description": "The maximum number of workers allocated to the connector."
        },
        "mcuCount": {
          "type": "integer",
          "description": "The number of microcontroller units (MCUs) allocated to each connector worker. The valid values are 1,2,4,8."
        },
        "minWorkerCount": {
          "type": "integer",
          "description": "The minimum number of workers allocated to the connector."
        },
        "scaleInPolicy": {
          "$ref": "#/$defs/ScaleInPolicy"
        },
        "scaleOutPolicy": {
          "$ref": "#/$defs/ScaleOutPolicy"
        },
        "maxAutoscalingTaskCount": {
          "type": "integer",
          "description": "The maximum number of tasks allocated to the connector during autoscaling operations. Must be at least equal to maxWorkerCount."
        }
      },
      "required": [
        "maxWorkerCount",
        "mcuCount",
        "minWorkerCount"
      ]
    },
    "Capacity": {
      "type": "object",
      "properties": {
        "autoScaling": {
          "$ref": "#/$defs/AutoScaling"
        },
        "provisionedCapacity": {
          "$ref": "#/$defs/ProvisionedCapacity"
        }
      }
    },
    "CloudWatchLogsLogDelivery": {
      "type": "object",
      "properties": {
        "enabled": {
          "type": "boolean",
          "description": "Whether log delivery to Amazon CloudWatch Logs is enabled."
        },
        "logGroup": {
          "type": "string",
          "description": "The name of the CloudWatch log group that is the destination for log delivery."
        }
      },
      "required": [
        "enabled"
      ]
    },
    "CustomPlugin": {
      "type": "object",
      "properties": {
        "customPluginArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the custom plugin."
        },
        "revision": {
          "type": "integer",
          "description": "The revision of the custom plugin."
        }
      },
      "required": [
        "customPluginArn",
        "revision"
      ]
    },
    "FirehoseLogDelivery": {
      "type": "object",
      "properties": {
        "deliveryStream": {
          "type": "string",
          "description": "The name of the Kinesis Data Firehose delivery stream that is the destination for log delivery."
        },
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether connector logs get delivered to Amazon Kinesis Data Firehose."
        }
      },
      "required": [
        "enabled"
      ]
    },
    "KafkaconnectApacheKafkaCluster": {
      "type": "object",
      "properties": {
        "bootstrapServers": {
          "type": "string",
          "description": "The bootstrap servers of the cluster."
        },
        "vpc": {
          "$ref": "#/$defs/Vpc"
        }
      },
      "required": [
        "bootstrapServers",
        "vpc"
      ]
    },
    "KafkaconnectKafkaCluster": {
      "type": "object",
      "properties": {
        "apacheKafkaCluster": {
          "$ref": "#/$defs/KafkaconnectApacheKafkaCluster"
        }
      },
      "required": [
        "apacheKafkaCluster"
      ]
    },
    "KafkaconnectKafkaClusterClientAuthentication": {
      "type": "object",
      "properties": {
        "authenticationType": {
          "type": "string",
          "description": "The type of client authentication used to connect to the Apache Kafka cluster. Value NONE means that no client authentication is used."
        }
      },
      "required": [
        "authenticationType"
      ]
    },
    "KafkaconnectKafkaClusterEncryptionInTransit": {
      "type": "object",
      "properties": {
        "encryptionType": {
          "type": "string",
          "description": "The type of encryption in transit to the Apache Kafka cluster."
        }
      },
      "required": [
        "encryptionType"
      ]
    },
    "KafkaconnectLogDelivery": {
      "type": "object",
      "properties": {
        "workerLogDelivery": {
          "$ref": "#/$defs/WorkerLogDelivery"
        }
      },
      "required": [
        "workerLogDelivery"
      ]
    },
    "Plugin": {
      "type": "object",
      "properties": {
        "customPlugin": {
          "$ref": "#/$defs/CustomPlugin"
        }
      },
      "required": [
        "customPlugin"
      ]
    },
    "ProvisionedCapacity": {
      "type": "object",
      "properties": {
        "mcuCount": {
          "type": "integer",
          "description": "The number of microcontroller units (MCUs) allocated to each connector worker. The valid values are 1,2,4,8."
        },
        "workerCount": {
          "type": "integer",
          "description": "The number of workers that are allocated to the connector."
        }
      },
      "required": [
        "mcuCount",
        "workerCount"
      ]
    },
    "S3LogDelivery": {
      "type": "object",
      "properties": {
        "bucket": {
          "type": "string",
          "description": "The name of the S3 bucket that is the destination for log delivery."
        },
        "enabled": {
          "type": "boolean",
          "description": "Specifies whether connector logs get sent to the specified Amazon S3 destination."
        },
        "prefix": {
          "type": "string",
          "description": "The S3 prefix that is the destination for log delivery."
        }
      },
      "required": [
        "enabled"
      ]
    },
    "ScaleInPolicy": {
      "type": "object",
      "properties": {
        "cpuUtilizationPercentage": {
          "type": "integer",
          "description": "Specifies the CPU utilization percentage threshold at which you want connector scale in to be triggered."
        }
      },
      "required": [
        "cpuUtilizationPercentage"
      ]
    },
    "ScaleOutPolicy": {
      "type": "object",
      "properties": {
        "cpuUtilizationPercentage": {
          "type": "integer",
          "description": "The CPU utilization percentage threshold at which you want connector scale out to be triggered."
        }
      },
      "required": [
        "cpuUtilizationPercentage"
      ]
    },
    "Vpc": {
      "type": "object",
      "properties": {
        "securityGroups": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The security groups for the connector."
        },
        "subnets": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The subnets for the connector."
        }
      },
      "required": [
        "subnets"
      ]
    },
    "WorkerConfiguration": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "description": "The revision of the worker configuration."
        },
        "workerConfigurationArn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) of the worker configuration."
        }
      },
      "required": [
        "revision",
        "workerConfigurationArn"
      ]
    },
    "WorkerLogDelivery": {
      "type": "object",
      "properties": {
        "cloudWatchLogs": {
          "$ref": "#/$defs/CloudWatchLogsLogDelivery"
        },
        "firehose": {
          "$ref": "#/$defs/FirehoseLogDelivery"
        },
        "s3": {
          "$ref": "#/$defs/S3LogDelivery"
        }
      }
    }
  }
}