interface LambdaEventSourceProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.GreengrassV2.CfnComponentVersion.LambdaEventSourceProperty |
Java | software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.LambdaEventSourceProperty |
Python | aws_cdk.aws_greengrassv2.CfnComponentVersion.LambdaEventSourceProperty |
TypeScript | @aws-cdk/aws-greengrassv2 » CfnComponentVersion » LambdaEventSourceProperty |
Contains information about an event source for an AWS Lambda function.
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 * as greengrassv2 from '@aws-cdk/aws-greengrassv2';
const lambdaEventSourceProperty: greengrassv2.CfnComponentVersion.LambdaEventSourceProperty = {
topic: 'topic',
type: 'type',
};
Properties
Name | Type | Description |
---|---|---|
topic? | string | The topic to which to subscribe to receive event messages. |
type? | string | The type of event source. Choose from the following options:. |
topic?
Type:
string
(optional)
The topic to which to subscribe to receive event messages.
type?
Type:
string
(optional)
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.