LambdaDestinationOptions¶
-
class
aws_cdk.aws_lambda_destinations.
LambdaDestinationOptions
(*, response_only=None)¶ Bases:
object
Options for a Lambda destination.
- Parameters
response_only (
Optional
[bool
]) – Whether the destination function receives only theresponsePayload
of the source function. When set totrue
and used asonSuccess
destination, the destination function will be invoked with the payload returned by the source function. When set totrue
and used asonFailure
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.
Attributes
-
response_only
¶ Whether the destination function receives only the
responsePayload
of the source function.When set to
true
and used asonSuccess
destination, the destination function will be invoked with the payload returned by the source function.When set to
true
and used asonFailure
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
Optional
[bool
]