AwsEventbridgeEventRuleLambdaTargetArgs

interface AwsEventbridgeEventRuleLambdaTargetArgs extends EventbridgeEventRuleTargetCommon { deadLetterConfig?: NonNullable<Input<EventTargetDeadLetterConfig | undefined>>; eventBus?: undefined; input?: Input<string>; inputPath?: Input<string>; inputTransformer?: NonNullable<Input<EventTargetInputTransformer | undefined>>; lambda: AwsEventbridgeLambdaTargetInput; logGroup?: undefined; retryPolicy?: NonNullable<Input<EventTargetRetryPolicy | undefined>>; sfn?: undefined; sns?: undefined; sqs?: undefined; }

Target configuration for routing events to an AWS Lambda function.

Example

CODE
const rule = new AwsEventbridgeEventRule({
  name: 'notify',
  defaultEventBus,
  eventPattern: JSON.stringify({ source: ['myapp'] }),
  targets: { invokeFunction: { lambda: { function: myFunction } } },
});

Hierarchy

  • EventbridgeEventRuleTargetCommon
  • AwsEventbridgeEventRuleLambdaTargetArgs

Properties

deadLetterConfig: NonNullable<Input<EventTargetDeadLetterConfig | undefined>>

Inherited from deadLetterConfig

Dead-letter queue configuration for undeliverable events.

eventBus: undefined

input: Input<string>

Inherited from input

Verbatim JSON text passed to the target. Conflicts with inputPath and inputTransformer.

inputPath: Input<string>

Inherited from inputPath

JSONPath expression to extract part of the matched event. Conflicts with input and inputTransformer.

inputTransformer: NonNullable<Input<EventTargetInputTransformer | undefined>>

Inherited from inputTransformer

Custom input transformation applied before delivering the event. Conflicts with input and inputPath.

lambda: AwsEventbridgeLambdaTargetInput

Lambda function target.

Remarks

Pass { function: lambdaFunction } to create the required invoke permission automatically. Pass { functionArn, createInvokePermission: false } when permission is managed externally.

logGroup: undefined

retryPolicy: NonNullable<Input<EventTargetRetryPolicy | undefined>>

Inherited from retryPolicy

Retry policy for failed target invocations.

sfn: undefined

sns: undefined

sqs: undefined