Skip to content

Message

Source code in docs_src/capo_iot_events_data/types/message.py
class Message(TypedDict, closed=True):
    message_id: "capo_iot_events_data.types.message_id.MessageId"
    """<p>The ID to assign to the message. Within each batch sent, each <code>"messageId"</code> must be unique.</p>"""
    input_name: "capo_iot_events_data.types.ephemeral_input_name.EphemeralInputName"
    """<p>The name of the input into which the message payload is transformed.</p>"""
    payload: "capo_iot_events_data.types.payload.Payload"
    """<p>The payload of the message. This can be a JSON string or a Base-64-encoded string representing binary data (in which case you must decode it).</p>"""
    timestamp: NotRequired["capo_iot_events_data.types.timestamp_value.TimestampValue"]
    """<p>The timestamp associated with the message.</p>"""

input_name instance-attribute

input_name: EphemeralInputName

The name of the input into which the message payload is transformed.

message_id instance-attribute

message_id: MessageId

The ID to assign to the message. Within each batch sent, each "messageId" must be unique.

payload instance-attribute

payload: Payload

The payload of the message. This can be a JSON string or a Base-64-encoded string representing binary data (in which case you must decode it).

timestamp instance-attribute

timestamp: NotRequired[TimestampValue]

The timestamp associated with the message.