lambda

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilteredLogStreamUrl

func FilteredLogStreamUrl(region string, group string, stream string, filter string) string

func ForceLambdaReset

func ForceLambdaReset(ctx context.Context, arn string) stackerr.Error

func Invoke

func Invoke(ctx context.Context, arn string, payload []byte) (responsePayload []byte, err stackerr.Error)

func LogGroupUrl

func LogGroupUrl(region string, group string) string

func LogStreamUrl

func LogStreamUrl(region string, group string, stream string) string

func RequestIdLogStreamUrl

func RequestIdLogStreamUrl(region string, group string, stream string, request_id string) string

func RequestIdLogStreamUrlFromContext

func RequestIdLogStreamUrlFromContext(ctx context.Context) (string, stackerr.Error)

func RequestIdLogStreamUrlFromMeta

func RequestIdLogStreamUrlFromMeta(meta LambdaMeta) string

func UpdateLambdaConfig

func UpdateLambdaConfig(ctx context.Context, arn string, config lambda.UpdateFunctionConfigurationInput) stackerr.Error

Types

type LambdaMeta

type LambdaMeta struct {
	LambdaArn       string `json:"lambda_arn"`
	AccountId       string `json:"account_id"`
	Region          string `json:"region"`
	FunctionName    string `json:"function_name"`
	FunctionVersion string `json:"function_version"`
	LogGroupName    string `json:"log_group_name"`
	LogStreamName   string `json:"log_stream_name"`
	RequestId       string `json:"request_id"`
}

func MetaFromContext

func MetaFromContext(ctx context.Context) (LambdaMeta, stackerr.Error)

Jump to

Keyboard shortcuts

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