Dagger
Search

lambda-mod

No long description provided.

Installation

dagger install github.com/mjb141/daggerverse/lambda@7b19a1983f041297b44b50f5a50fda9400707fd8

Entrypoint

Return Type
LambdaMod !
Arguments
NameTypeDescription
sdkString No description provided
sourceDirDirectory No description provided
awsAccessKeyIdSecret No description provided
awsSecretAccessKeySecret No description provided
awsSessionTokenSecret No description provided
accountString No description provided
regionString No description provided
Example
dagger -m github.com/mjb141/daggerverse/lambda@7b19a1983f041297b44b50f5a50fda9400707fd8 call \
func (m *myModule) example() *LambdaMod  {
	return dag.
			LambdaMod()
}
@function
def example() -> dag.LambdaMod:
	return (
		dag.lambda_mod()
	)
@func()
example(): LambdaMod {
	return dag
		.lambdaMod()
}

Types

LambdaMod 🔗

Lambda module

withCredentials() 🔗

Return Type
LambdaMod !
Arguments
NameTypeDefault ValueDescription
accessKeySecret !-No description provided
secretKeySecret !-No description provided
sesTokenSecret nullNo description provided
regionString !"eu-west-1"No description provided
Example
dagger -m github.com/mjb141/daggerverse/lambda@7b19a1983f041297b44b50f5a50fda9400707fd8 call \
 with-credentials --access-key env:MYSECRET --secret-key env:MYSECRET --region string
func (m *myModule) example(accessKey *Secret, secretKey *Secret, region string) *LambdaMod  {
	return dag.
			LambdaMod().
			WithCredentials(accessKey, secretKey, region)
}
@function
def example(access_key: dagger.Secret, secret_key: dagger.Secret, region: str) -> dag.LambdaMod:
	return (
		dag.lambda_mod()
		.with_credentials(access_key, secret_key, region)
	)
@func()
example(accessKey: Secret, secretKey: Secret, region: string): LambdaMod {
	return dag
		.lambdaMod()
		.withCredentials(accessKey, secretKey, region)
}

withSdk() 🔗

Return Type
LambdaMod !
Arguments
NameTypeDefault ValueDescription
sdkString !-No description provided
Example
dagger -m github.com/mjb141/daggerverse/lambda@7b19a1983f041297b44b50f5a50fda9400707fd8 call \
 with-sdk --sdk string
func (m *myModule) example(sdk string) *LambdaMod  {
	return dag.
			LambdaMod().
			WithSdk(sdk)
}
@function
def example(sdk: str) -> dag.LambdaMod:
	return (
		dag.lambda_mod()
		.with_sdk(sdk)
	)
@func()
example(sdk: string): LambdaMod {
	return dag
		.lambdaMod()
		.withSdk(sdk)
}

withSource() 🔗

Provide a source directory relative to current directory

Return Type
LambdaMod !
Arguments
NameTypeDefault ValueDescription
sourceDirectory !-No description provided
Example
dagger -m github.com/mjb141/daggerverse/lambda@7b19a1983f041297b44b50f5a50fda9400707fd8 call \
 with-source --source DIR_PATH
func (m *myModule) example(source *Directory) *LambdaMod  {
	return dag.
			LambdaMod().
			WithSource(source)
}
@function
def example(source: dagger.Directory) -> dag.LambdaMod:
	return (
		dag.lambda_mod()
		.with_source(source)
	)
@func()
example(source: Directory): LambdaMod {
	return dag
		.lambdaMod()
		.withSource(source)
}

build() 🔗

Return Type
Container !
Example
dagger -m github.com/mjb141/daggerverse/lambda@7b19a1983f041297b44b50f5a50fda9400707fd8 call \
 build
func (m *myModule) example() *Container  {
	return dag.
			LambdaMod().
			Build()
}
@function
def example() -> dagger.Container:
	return (
		dag.lambda_mod()
		.build()
	)
@func()
example(): Container {
	return dag
		.lambdaMod()
		.build()
}

export() 🔗

Return Type
File !
Example
dagger -m github.com/mjb141/daggerverse/lambda@7b19a1983f041297b44b50f5a50fda9400707fd8 call \
 export
func (m *myModule) example() *File  {
	return dag.
			LambdaMod().
			Export()
}
@function
def example() -> dagger.File:
	return (
		dag.lambda_mod()
		.export()
	)
@func()
example(): File {
	return dag
		.lambdaMod()
		.export()
}

publish() 🔗

Return Type
Container !
Arguments
NameTypeDefault ValueDescription
bucketNameString !-No description provided
objectKeyString !-No description provided
Example
dagger -m github.com/mjb141/daggerverse/lambda@7b19a1983f041297b44b50f5a50fda9400707fd8 call \
 publish --bucket-name string --object-key string
func (m *myModule) example(bucketName string, objectKey string) *Container  {
	return dag.
			LambdaMod().
			Publish(bucketName, objectKey)
}
@function
def example(bucket_name: str, object_key: str) -> dagger.Container:
	return (
		dag.lambda_mod()
		.publish(bucket_name, object_key)
	)
@func()
example(bucketName: string, objectKey: string): Container {
	return dag
		.lambdaMod()
		.publish(bucketName, objectKey)
}