Files
agent-claw/cdk/node_modules/aws-cdk-lib/aws-lambda-destinations/lib/lambda.d.ts
2026-05-06 18:55:16 -05:00

35 lines
1.3 KiB
TypeScript

import type { Construct } from 'constructs';
import type * as lambda from '../../aws-lambda';
/**
* Options for a Lambda destination
*/
export interface LambdaDestinationOptions {
/**
* 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.
*/
readonly responseOnly?: boolean;
}
/**
* Use a Lambda function as a Lambda destination
*/
export declare class LambdaDestination implements lambda.IDestination {
private readonly fn;
private readonly options;
constructor(fn: lambda.IFunction, options?: LambdaDestinationOptions);
/**
* Returns a destination configuration
*/
bind(scope: Construct, fn: lambda.IFunction, options?: lambda.DestinationOptions): lambda.DestinationConfig;
}