Skip to content

Subscription

Source code in docs_src/capo_greengrass/types/subscription.py
class Subscription(TypedDict, closed=True):
    id: NotRequired["capo_greengrass.types.__string.__string"]
    """A descriptive or arbitrary ID for the subscription. This value must be unique within the subscription definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''."""
    source: NotRequired["capo_greengrass.types.__string.__string"]
    """The source of the subscription. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'."""
    subject: NotRequired["capo_greengrass.types.__string.__string"]
    """The MQTT topic used to route the message."""
    target: NotRequired["capo_greengrass.types.__string.__string"]
    """Where the message is sent to. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'."""

id instance-attribute

id: NotRequired[__string]

A descriptive or arbitrary ID for the subscription. This value must be unique within the subscription definition version. Max length is 128 characters with pattern ''[a-zA-Z0-9:_-]+''.

source instance-attribute

source: NotRequired[__string]

The source of the subscription. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.

subject instance-attribute

subject: NotRequired[__string]

The MQTT topic used to route the message.

target instance-attribute

target: NotRequired[__string]

Where the message is sent to. Can be a thing ARN, a Lambda function ARN, a connector ARN, 'cloud' (which represents the AWS IoT cloud), or 'GGShadowService'.