@Stability(value=Stable)
public static interface CfnComponentVersion.LambdaEventSourceProperty
extends software.amazon.jsii.JsiiSerializable
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 String |
getTopic()
The topic to which to subscribe to receive event messages.
|
default String |
getType()
The type of event source.
|
@Stability(value=Stable) @Nullable default String getTopic()
@Stability(value=Stable) @Nullable default 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.@Stability(value=Stable) static CfnComponentVersion.LambdaEventSourceProperty.Builder builder()
Copyright © 2022. All rights reserved.