Skip to content

MskParameters

Source code in docs_src/capo_eventbridgev2/types/msk_parameters.py
class MskParameters(TypedDict, closed=True):
    topic_name: "capo_eventbridgev2.types.msk_topic_name.MskTopicName"
    """<p>Name of the Kafka topic events are produced to. Accepts a literal or a JSONata expression resolved once per delivered event.</p>"""
    compression: NotRequired["capo_eventbridgev2.types.msk_compression.MskCompression"]
    """<p>Producer compression codec applied to the record batch. Defaults to NONE.</p>"""
    acks: NotRequired["capo_eventbridgev2.types.msk_acks.MskAcks"]
    """<p>Producer acknowledgement mode. Defaults to ALL.</p>"""
    partition_key: NotRequired["capo_eventbridgev2.types.string.String"]
    """<p>Kafka record key. Accepts a literal or a JSONata expression (e.g. "{% $events.data.customerId %}") resolved once per delivered event; the resolved value selects the destination partition. If you omit it, the producer selects the partition; on an ordered (FIFO) subscriber, EventBridge instead uses the event group ID as the record key to preserve ordering.</p>"""
    headers: NotRequired["capo_eventbridgev2.types.msk_header_list.MskHeaderList"]
    """<p>Kafka record headers attached to each produced record.</p>"""
    client_id: NotRequired["capo_eventbridgev2.types.msk_client_id.MskClientId"]
    """<p>Producer client.id passed to the Kafka broker. Identifies the producer in broker-side logs, metrics, and quota enforcement. A literal, not a JSONata expression: it is a connection-level setting resolved once when the producer is created, not per event. If you do not set it, EventBridge uses the subscriber ARN.</p>"""
    connectivity: "capo_eventbridgev2.types.msk_connectivity.MskConnectivity"
    """<p>How the service connects to the cluster. A cluster can have public access and multi-VPC private connectivity turned on at the same time, so the subscriber names the one to use. That path must be turned on, with IAM access control, on the cluster.</p>"""

acks instance-attribute

acks: NotRequired[MskAcks]

Producer acknowledgement mode. Defaults to ALL.

client_id instance-attribute

client_id: NotRequired[MskClientId]

Producer client.id passed to the Kafka broker. Identifies the producer in broker-side logs, metrics, and quota enforcement. A literal, not a JSONata expression: it is a connection-level setting resolved once when the producer is created, not per event. If you do not set it, EventBridge uses the subscriber ARN.

compression instance-attribute

compression: NotRequired[MskCompression]

Producer compression codec applied to the record batch. Defaults to NONE.

connectivity instance-attribute

connectivity: MskConnectivity

How the service connects to the cluster. A cluster can have public access and multi-VPC private connectivity turned on at the same time, so the subscriber names the one to use. That path must be turned on, with IAM access control, on the cluster.

headers instance-attribute

headers: NotRequired[MskHeaderList]

Kafka record headers attached to each produced record.

partition_key instance-attribute

partition_key: NotRequired[String]

Kafka record key. Accepts a literal or a JSONata expression (e.g. "{% $events.data.customerId %}") resolved once per delivered event; the resolved value selects the destination partition. If you omit it, the producer selects the partition; on an ordered (FIFO) subscriber, EventBridge instead uses the event group ID as the record key to preserve ordering.

topic_name instance-attribute

topic_name: MskTopicName

Name of the Kafka topic events are produced to. Accepts a literal or a JSONata expression resolved once per delivered event.