Class CfnFunction.EnvironmentProperty
A function's environment variable settings.
Inheritance
System.Object
CfnFunction.EnvironmentProperty
Implements
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class EnvironmentProperty : Object, CfnFunction.IEnvironmentProperty
Syntax (vb)
Public Class EnvironmentProperty
Inherits Object
Implements CfnFunction.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
Constructors
EnvironmentProperty() |
Properties
Variables | Environment variable key-value pairs. |
Constructors
EnvironmentProperty()
public EnvironmentProperty()
Properties
Variables
Environment variable key-value pairs.
public object Variables { get; set; }
Property Value
System.Object