public static interface CfnComponentVersion.LambdaEventSourceProperty
The event source defines the topics on which this Lambda function subscribes to receive messages that run the function.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.greengrassv2.*; LambdaEventSourceProperty lambdaEventSourceProperty = LambdaEventSourceProperty.builder() .topic("topic") .type("type") .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnComponentVersion.LambdaEventSourceProperty.Builder
A builder for
CfnComponentVersion.LambdaEventSourceProperty |
static class |
CfnComponentVersion.LambdaEventSourceProperty.Jsii$Proxy
An implementation for
CfnComponentVersion.LambdaEventSourceProperty |
Modifier and Type | Method and Description |
---|---|
static CfnComponentVersion.LambdaEventSourceProperty.Builder |
builder() |
default java.lang.String |
getTopic()
The topic to which to subscribe to receive event messages.
|
default java.lang.String |
getType()
The type of event source.
|
default java.lang.String getTopic()
default java.lang.String getType()
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.static CfnComponentVersion.LambdaEventSourceProperty.Builder builder()