LambdaDestination

class aws_cdk.aws_lambda_destinations.LambdaDestination(fn, *, response_only=None)

Bases: object

Use a Lambda function as a Lambda destination.

__init__(fn, *, response_only=None)
Parameters
  • fn (IFunction) –

  • response_only (Optional[bool]) – Whether the destination function receives only the responsePayload of the source function. When set to true and used as onSuccess destination, the destination function will be invoked with the payload returned by the source function. When set to true and used as onFailure destination, the destination function will be invoked with the error object returned by source function. See the README of this module to see a full explanation of this option. Default: false The destination function receives the full invocation record.

Return type

None

Methods

bind(scope, fn, *, type)

Returns a destination configuration.

Parameters
Return type

DestinationConfig