interface LambdaProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.SES.Actions.LambdaProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awssesactions#LambdaProps |
![]() | software.amazon.awscdk.services.ses.actions.LambdaProps |
![]() | aws_cdk.aws_ses_actions.LambdaProps |
![]() | aws-cdk-lib » aws_ses_actions » LambdaProps |
Construction properties for a Lambda action.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
import { aws_ses_actions as ses_actions } from 'aws-cdk-lib';
import { aws_sns as sns } from 'aws-cdk-lib';
declare const function_: lambda.Function;
declare const topic: sns.Topic;
const lambdaProps: ses_actions.LambdaProps = {
function: function_,
// the properties below are optional
invocationType: ses_actions.LambdaInvocationType.EVENT,
topic: topic,
};
Properties
Name | Type | Description |
---|---|---|
function | IFunction | The Lambda function to invoke. |
invocation | Lambda | The invocation type of the Lambda function. |
topic? | ITopic | The SNS topic to notify when the Lambda action is taken. |
function
Type:
IFunction
The Lambda function to invoke.
invocationType?
Type:
Lambda
(optional, default: Event)
The invocation type of the Lambda function.
topic?
Type:
ITopic
(optional, default: no notification)
The SNS topic to notify when the Lambda action is taken.