Lambda
- class aws_cdk.aws_ses_actions.Lambda(*, function, invocation_type=None, topic=None)
Bases:
object
Calls an AWS Lambda function, and optionally, publishes a notification to Amazon SNS.
- 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_ = ses_actions.Lambda( function=function_, # the properties below are optional invocation_type=ses_actions.LambdaInvocationType.EVENT, topic=topic )
- Parameters:
function (
IFunction
) – The Lambda function to invoke.invocation_type (
Optional
[LambdaInvocationType
]) – The invocation type of the Lambda function. Default: Eventtopic (
Optional
[ITopic
]) – The SNS topic to notify when the Lambda action is taken. Default: no notification
Methods
- bind(rule)
Returns the receipt rule action specification.
- Parameters:
rule (
IReceiptRule
) –- Return type: