Interface LambdaEventSource.Builder

    • Method Detail

      • topic

        LambdaEventSource.Builder topic​(String topic)

        The topic to which to subscribe to receive event messages.

        Parameters:
        topic - The topic to which to subscribe to receive event messages.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • type

        LambdaEventSource.Builder type​(String type)

        The type of event source. Choose from the following options:

        • PUB_SUB – Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+ and #) in the event source topic.

        • IOT_CORE – Subscribe to Amazon Web Services IoT Core MQTT messages. This event source type supports MQTT wildcards (+ and #) in the event source topic.

        Parameters:
        type - The type of event source. Choose from the following options:

        • PUB_SUB – Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+ and #) in the event source topic.

        • IOT_CORE – Subscribe to Amazon Web Services IoT Core MQTT messages. This event source type supports MQTT wildcards (+ and #) in the event source topic.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LambdaEventSourceType, LambdaEventSourceType
      • type

        LambdaEventSource.Builder type​(LambdaEventSourceType type)

        The type of event source. Choose from the following options:

        • PUB_SUB – Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+ and #) in the event source topic.

        • IOT_CORE – Subscribe to Amazon Web Services IoT Core MQTT messages. This event source type supports MQTT wildcards (+ and #) in the event source topic.

        Parameters:
        type - The type of event source. Choose from the following options:

        • PUB_SUB – Subscribe to local publish/subscribe messages. This event source type doesn't support MQTT wildcards (+ and #) in the event source topic.

        • IOT_CORE – Subscribe to Amazon Web Services IoT Core MQTT messages. This event source type supports MQTT wildcards (+ and #) in the event source topic.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        LambdaEventSourceType, LambdaEventSourceType