awslambdadestinations

package
v2.0.0-rc.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventBridgeDestination_Override

func NewEventBridgeDestination_Override(e EventBridgeDestination, eventBus awsevents.IEventBus)

Experimental.

func NewLambdaDestination_Override

func NewLambdaDestination_Override(l LambdaDestination, fn awslambda.IFunction, options *LambdaDestinationOptions)

Experimental.

func NewSnsDestination_Override

func NewSnsDestination_Override(s SnsDestination, topic awssns.ITopic)

Experimental.

func NewSqsDestination_Override

func NewSqsDestination_Override(s SqsDestination, queue awssqs.IQueue)

Experimental.

Types

type EventBridgeDestination

type EventBridgeDestination interface {
	awslambda.IDestination
	Bind(_scope constructs.Construct, fn awslambda.IFunction, _options *awslambda.DestinationOptions) *awslambda.DestinationConfig
}

Use an Event Bridge event bus as a Lambda destination.

If no event bus is specified, the default event bus is used. Experimental.

func NewEventBridgeDestination

func NewEventBridgeDestination(eventBus awsevents.IEventBus) EventBridgeDestination

Experimental.

type LambdaDestination

type LambdaDestination interface {
	awslambda.IDestination
	Bind(scope constructs.Construct, fn awslambda.IFunction, options *awslambda.DestinationOptions) *awslambda.DestinationConfig
}

Use a Lambda function as a Lambda destination. Experimental.

func NewLambdaDestination

func NewLambdaDestination(fn awslambda.IFunction, options *LambdaDestinationOptions) LambdaDestination

Experimental.

type LambdaDestinationOptions

type LambdaDestinationOptions struct {
	// 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.
	// Experimental.
	ResponseOnly *bool `json:"responseOnly"`
}

Options for a Lambda destination. Experimental.

type SnsDestination

type SnsDestination interface {
	awslambda.IDestination
	Bind(_scope constructs.Construct, fn awslambda.IFunction, _options *awslambda.DestinationOptions) *awslambda.DestinationConfig
}

Use a SNS topic as a Lambda destination. Experimental.

func NewSnsDestination

func NewSnsDestination(topic awssns.ITopic) SnsDestination

Experimental.

type SqsDestination

type SqsDestination interface {
	awslambda.IDestination
	Bind(_scope constructs.Construct, fn awslambda.IFunction, _options *awslambda.DestinationOptions) *awslambda.DestinationConfig
}

Use a SQS queue as a Lambda destination. Experimental.

func NewSqsDestination

func NewSqsDestination(queue awssqs.IQueue) SqsDestination

Experimental.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL