Static
Readonly
captureStatic
captureStatic
defaultStatic
Readonly
errorThis symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
"Activates" a build by taking a specified build SID or a "source environment"
and activating the same build in the specified environment
.
Can optionally create the new environment when called with activateConfig.createEnvironment
Promise
Config to specify which build to activate in which environment
Rest
...args: any[]Deploys a local project by reading existing functions and assets
from deployConfig.cwd
and calling this.deployProject
with it.
Functions have to be placed in a functions
or src
directory to be found.
Assets have to be placed into an assets
or static
directory.
Nested folder structures will result in nested routes.
Promise
Deploys a set of functions, assets, variables and dependencies specified
in deployConfig
. Functions & assets can either be paths to the local
filesystem or Buffer
instances allowing you to dynamically upload
even without a file system.
Unless a deployConfig. serviceSid
is specified, it will try to create one. If a service
with the name deployConfig.serviceName
already exists, it will throw
an error. You can make it use the existing service by setting overrideExistingService
to
true.
Updates to the deployment will be emitted as events to status-update
. Example:
client.on('status-update', ({ status, message }) => {
console.log('[%s]: %s', status, message);
})
Promise
Config containing all details for deployment
Retrieves a list of environment variables for a given Twilio Serverless environment. If config.getValues is false (default) the values will be all set to undefined.
TwilioServerlessApiClient
Returns an object containing lists of services, environments, variables
functions or assets, depending on which have beeen requested in listConfig
Promise
Specifies info around which things should be listed
Rest
...args: any[]Rest
...args: any[]Rest
...args: any[]Rest
...args: any[]Rest
...args: any[]Optional
event: string | symbolDeletes a list of environment variables (by key) for a given Twilio Serverless environment.
TwilioServerlessApiClient
Rest
...args: any[]Sets a set of environment variables for a given Twilio Serverless environment If append is false it will remove all existing environment variables.
TwilioServerlessApiClient
Static
listenerStatic
onStatic
onceGenerated using TypeDoc
Sets or gets the default captureRejection value for all emitters.