Lambda
Bases: DuploTenantResourceV2
Manage Duplo Lambdas
Duplo Lambdas are serverless functions that run in response to events.
apply
Apply a service.
create
delete
Delete a lambda.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
NAME
|
The name of the lambda to delete. |
required |
Returns:
Name | Type | Description |
---|---|---|
message |
dict
|
A success message. |
find
list
List Lambdas.
List all of the tenants in the current tenant.
Returns:
Name | Type | Description |
---|---|---|
list |
list
|
A list of all lambdas in the current subscription. |
update_env
Update the environment variables of a lambda. If lambda has no environment variables set, use -strat replace to set new values.
Basic CLI Use
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name
|
str
|
The name of the lambda to update. |
required |
setvar/-V
|
list
|
A list of key-value pairs to set as environment variables. |
required |
strategy/strat
|
str
|
The merge strategy to use for env vars. Valid options are "merge" or "replace". Default is merge. |
required |
deletevar/-D
|
list
|
A list of keys to delete from the environment variables. |
required |