Skip to content

Payload

Source code in docs_src/capo_iot_events/types/payload.py
class Payload(TypedDict, closed=True):
    content_expression: "capo_iot_events.types.content_expression.ContentExpression"
    """<p>The content of the payload. You can use a string expression that includes quoted strings (<code>'<string>'</code>), variables (<code>$variable.<variable-name></code>), input values (<code>$input.<input-name>.<path-to-datum></code>), string concatenations, and quoted strings that contain <code>${}</code> as the content. The recommended maximum size of a content expression is 1 KB.</p>"""
    type: "capo_iot_events.types.payload_type.PayloadType"
    """<p>The value of the payload type can be either <code>STRING</code> or <code>JSON</code>.</p>"""

content_expression instance-attribute

content_expression: ContentExpression

The content of the payload. You can use a string expression that includes quoted strings (''), variables ($variable.), input values ($input..), string concatenations, and quoted strings that contain ${} as the content. The recommended maximum size of a content expression is 1 KB.

type instance-attribute

The value of the payload type can be either STRING or JSON.