aws-cdk-lib.aws_ses_actions.LambdaProps

interface LambdaProps

LanguageType name
.NETAmazon.CDK.AWS.SES.Actions.LambdaProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awssesactions#LambdaProps
Javasoftware.amazon.awscdk.services.ses.actions.LambdaProps
Pythonaws_cdk.aws_ses_actions.LambdaProps
TypeScript (source)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

NameTypeDescription
functionIFunctionThe Lambda function to invoke.
invocationType?LambdaInvocationTypeThe invocation type of the Lambda function.
topic?ITopicThe SNS topic to notify when the Lambda action is taken.

function

Type: IFunction

The Lambda function to invoke.


invocationType?

Type: LambdaInvocationType (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.