birme-lambda
- Description:
Effortlessly deploy JavaScript/TypeScript code as HTTP-based lambda functions with our simple solution. Just zip, upload, and watch your code run on any HTTP request. Get started quickly with minimal setup!
- Copyright:
- 2025 Eyevinn Technology AB
- See:
-
- Online docs for further information
Methods
(async, static) createBirmeLambdaInstance(context, body) → {BirmeLambda}
- Description:
Create a new lambda instance
Example
import { Context } from '@osaas/client-core';
import { createBirmeLambdaInstance } from '@osaas/client-services';
const ctx = new Context();
const body: BirmeLambdaConfig = { name: 'myinstance', ... };
const instance = await createBirmeLambdaInstance(ctx, body);
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
body |
BirmeLambdaConfig | Service instance configuration |
Returns:
- Service instance
- Type
- BirmeLambda
(async, static) getBirmeLambdaInstance(context, name) → {BirmeLambda}
- Description:
Get a lambda instance
Example
import { Context } from '@osaas/client-core';
import { getBirmeLambdaInstance } from '@osaas/client-services';
const ctx = new Context();
const instance = await getBirmeLambdaInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the lambda to be retrieved |
Returns:
- Service instance
- Type
- BirmeLambda
(async, static) removeBirmeLambdaInstance(context, name)
- Description:
Remove a lambda instance
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the lambda to be removed |