LambdaProps

class aws_cdk.aws_ses_actions.LambdaProps(*, function, invocation_type=None, topic=None)

Bases: object

Construction properties for a Lambda action.

Parameters:
  • function (IFunction) – The Lambda function to invoke.

  • invocation_type (Optional[LambdaInvocationType]) – The invocation type of the Lambda function. Default: Event

  • topic (Optional[ITopic]) – The SNS topic to notify when the Lambda action is taken. Default: no notification

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_lambda as lambda_
import aws_cdk.aws_ses_actions as ses_actions
import aws_cdk.aws_sns as sns

# function_: lambda.Function
# topic: sns.Topic

lambda_props = ses_actions.LambdaProps(
    function=function_,

    # the properties below are optional
    invocation_type=ses_actions.LambdaInvocationType.EVENT,
    topic=topic
)

Attributes

function

The Lambda function to invoke.

invocation_type

The invocation type of the Lambda function.

Default:

Event

topic

The SNS topic to notify when the Lambda action is taken.

Default:

no notification