Class CfnFunctionPropsMixin.EnvironmentProperty
A function's environment variable settings.
Implements
Inherited Members
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Lambda
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnFunctionPropsMixin.EnvironmentProperty : CfnFunctionPropsMixin.IEnvironmentProperty
Syntax (vb)
Public Class CfnFunctionPropsMixin.EnvironmentProperty Implements CfnFunctionPropsMixin.IEnvironmentProperty
Remarks
You can use environment variables to adjust your function's behavior without updating code. An environment variable is a pair of strings that are stored in a function's version-specific configuration.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.Lambda;
var environmentProperty = new EnvironmentProperty {
Variables = new Dictionary<string, string> {
{ "variablesKey", "variables" }
}
};
Synopsis
Constructors
| EnvironmentProperty() | A function's environment variable settings. |
Properties
| Variables | Environment variable key-value pairs. For more information, see Using Lambda environment variables . |
Constructors
EnvironmentProperty()
A function's environment variable settings.
public EnvironmentProperty()
Remarks
You can use environment variables to adjust your function's behavior without updating code. An environment variable is a pair of strings that are stored in a function's version-specific configuration.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.CfnPropertyMixins.AWS.Lambda;
var environmentProperty = new EnvironmentProperty {
Variables = new Dictionary<string, string> {
{ "variablesKey", "variables" }
}
};
Properties
Variables
Environment variable key-value pairs. For more information, see Using Lambda environment variables .
public object? Variables { get; set; }
Property Value
Remarks
If the value of the environment variable is a time or a duration, enclose the value in quotes.
Type union: either Dictionary<string, string> or IResolvable