sdk

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssumeClients

type AssumeClients[C Client] interface {
	// Get returns the Lambda for the provided role.
	// If the role is nil, will return the default Lambda without assuming any identity.
	Get(assumeRole *arn.ARN) C
}

AssumeClients provides the clients by a role.

func NewAssumeClients

func NewAssumeClients[C Client](props ClientProps[C]) AssumeClients[C]

NewAssumeClients returns a AssumeClients for a default aws.Config.

type Client

type Client = any

type ClientProps

type ClientProps[C Client] struct {
	// Config to be used.
	Config aws.Config
	// NewClient factory func.
	NewClient func(aws.Config, aws.CredentialsProvider) C
}

ClientProps for creating a new Client.

func LambdaClientProps

func LambdaClientProps(config aws.Config) ClientProps[Lambda]

LambdaClientProps for the provided aws.Config.

type Lambda

type Lambda interface {
	Invoke(ctx context.Context, params *lambda.InvokeInput, opts ...func(*lambda.Options)) (*lambda.InvokeOutput, error)
}

Lambda sdk interface.

Jump to

Keyboard shortcuts

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