public static final class CfnComponentVersion.LambdaEventSourceProperty.Builder
extends java.lang.Object
CfnComponentVersion.LambdaEventSourceProperty
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnComponentVersion.LambdaEventSourceProperty |
build()
Builds the configured instance.
|
CfnComponentVersion.LambdaEventSourceProperty.Builder |
topic(java.lang.String topic)
Sets the value of
CfnComponentVersion.LambdaEventSourceProperty.getTopic() |
CfnComponentVersion.LambdaEventSourceProperty.Builder |
type(java.lang.String type)
Sets the value of
CfnComponentVersion.LambdaEventSourceProperty.getType() |
public CfnComponentVersion.LambdaEventSourceProperty.Builder topic(java.lang.String topic)
CfnComponentVersion.LambdaEventSourceProperty.getTopic()
topic
- The topic to which to subscribe to receive event messages.this
public CfnComponentVersion.LambdaEventSourceProperty.Builder type(java.lang.String type)
CfnComponentVersion.LambdaEventSourceProperty.getType()
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 AWS IoT Core MQTT messages. This event source type supports MQTT wildcards ( +
and #
) in the event source topic.this
public CfnComponentVersion.LambdaEventSourceProperty build()
CfnComponentVersion.LambdaEventSourceProperty
java.lang.NullPointerException
- if any required attribute was not provided