Lambda
Bases: DuploTenantResourceV2
Manage Duplo Lambdas
Duplo Lambdas are serverless functions that run in response to events.
apply
Apply a service.
create
Create a new tenant.
CLI Usage
Contents of thelambda.yaml
file
Parameters:
Name | Type | Description | Default |
---|---|---|---|
body
|
BODY
|
The lambda body. |
required |
wait
|
WAIT
|
Whether to wait for the tenant to be created |
False
|
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
A success message. |
delete
find
list
update_image
Update the image of a lambda.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the lambda to update. |
required |
image
|
IMAGE
|
The new image to use for the lambda. |
required |
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
The updated lambda object |
update_s3
Update the s3 bucket and key of a lambda.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the lambda to update. |
required |
bucket
|
S3BUCKET
|
The s3 bucket to use for the lambda. |
required |
key
|
S3KEY
|
The s3 key (file path) to use for the lambda. |
required |