Interface CfnFunction.IEnvironmentProperty
A function's environment variable settings.
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IEnvironmentProperty
Syntax (vb)
Public Interface 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.AWS.Lambda;
var environmentProperty = new EnvironmentProperty {
Variables = new Dictionary<string, string> {
{ "variablesKey", "variables" }
}
};
Synopsis
Properties
Variables | Environment variable key-value pairs. |
Properties
Variables
Environment variable key-value pairs.
virtual object Variables { get; }
Property Value
System.Object