Skip to content
23K
Console

FunctionEnvironmentUpdate

Reference doc for the `sst.providers.FunctionEnvironmentUpdate` component.

The FunctionEnvironmentUpdate component is internally used by the Function component to update the environment variables of a function.

You’ll find this component returned by the addEnvironment method of the Function component.


Constructor

new FunctionEnvironmentUpdate(name, args, opts?)

Parameters

FunctionEnvironmentUpdateInputs

environment

Type Input<Record<string, Input<string>>>

The environment variables to update.

functionName

Type Input<string>

The name of the function to update.

region

Type Input<string>

The region of the function to update.