class Lambda
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SES.Actions.Lambda |
Java | software.amazon.awscdk.services.ses.actions.Lambda |
Python | aws_cdk.aws_ses_actions.Lambda |
TypeScript (source) | @aws-cdk/aws-ses-actions » Lambda |
Implements
IReceipt
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as lambda from '@aws-cdk/aws-lambda';
import * as ses_actions from '@aws-cdk/aws-ses-actions';
import * as sns from '@aws-cdk/aws-sns';
declare const function_: lambda.Function;
declare const topic: sns.Topic;
const lambda = new ses_actions.Lambda({
function: function_,
// the properties below are optional
invocationType: ses_actions.LambdaInvocationType.EVENT,
topic: topic,
});
Initializer
new Lambda(props: LambdaProps)
Parameters
- props
Lambda
Props
Methods
Name | Description |
---|---|
bind(rule) | Returns the receipt rule action specification. |
bind(rule)
public bind(rule: IReceiptRule): ReceiptRuleActionConfig
Parameters
- rule
IReceipt
Rule
Returns
Returns the receipt rule action specification.