@Generated(value="software.amazon.awssdk:codegen") public final class LambdaEventSource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LambdaEventSource.Builder,LambdaEventSource>
Contains information about an event source for an Lambda function. The event source defines the topics on which this Lambda function subscribes to receive messages that run the function.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LambdaEventSource.Builder |
| Modifier and Type | Method and Description |
|---|---|
static LambdaEventSource.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends LambdaEventSource.Builder> |
serializableBuilderClass() |
LambdaEventSource.Builder |
toBuilder() |
String |
topic()
The topic to which to subscribe to receive event messages.
|
String |
toString()
Returns a string representation of this object.
|
LambdaEventSourceType |
type()
The type of event source.
|
String |
typeAsString()
The type of event source.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String topic()
The topic to which to subscribe to receive event messages.
public final 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.
If the service returns an enum value that is not available in the current SDK version, type will return
LambdaEventSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
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.
LambdaEventSourceTypepublic final String typeAsString()
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.
If the service returns an enum value that is not available in the current SDK version, type will return
LambdaEventSourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
typeAsString().
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.
LambdaEventSourceTypepublic LambdaEventSource.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<LambdaEventSource.Builder,LambdaEventSource>public static LambdaEventSource.Builder builder()
public static Class<? extends LambdaEventSource.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.