Show / Hide Table of Contents

Class CfnFunctionPropsMixin.EnvironmentProperty

A function's environment variable settings.

Inheritance
object
CfnFunctionPropsMixin.EnvironmentProperty
Implements
CfnFunctionPropsMixin.IEnvironmentProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html

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

object

Remarks

If the value of the environment variable is a time or a duration, enclose the value in quotes.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-lambda-function-environment.html#cfn-lambda-function-environment-variables

Type union: either Dictionary<string, string> or IResolvable

Implements

CfnFunctionPropsMixin.IEnvironmentProperty
Back to top Generated by DocFX