Show / Hide Table of Contents

Interface CfnFunctionDefinitionPropsMixin.IEnvironmentProperty

The environment configuration for a Lambda function on the AWS IoT Greengrass core.

Namespace: Amazon.CDK.CfnPropertyMixins.AWS.Greengrass
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public interface CfnFunctionDefinitionPropsMixin.IEnvironmentProperty
Syntax (vb)
Public Interface CfnFunctionDefinitionPropsMixin.IEnvironmentProperty
Remarks

In an CloudFormation template, Environment is a property of the FunctionConfiguration property type.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-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.Greengrass;

             var variables;

             var environmentProperty = new EnvironmentProperty {
                 AccessSysfs = false,
                 Execution = new ExecutionProperty {
                     IsolationMode = "isolationMode",
                     RunAs = new RunAsProperty {
                         Gid = 123,
                         Uid = 123
                     }
                 },
                 ResourceAccessPolicies = new [] { new ResourceAccessPolicyProperty {
                     Permission = "permission",
                     ResourceId = "resourceId"
                 } },
                 Variables = variables
             };

Synopsis

Properties

AccessSysfs

Indicates whether the function is allowed to access the /sys directory on the core device, which allows the read device information from /sys .

Execution

Settings for the Lambda execution environment in AWS IoT Greengrass .

ResourceAccessPolicies

A list of the resources in the group that the function can access, with the corresponding read-only or read-write permissions. The maximum is 10 resources.

Variables

Environment variables for the Lambda function.

Properties

AccessSysfs

Indicates whether the function is allowed to access the /sys directory on the core device, which allows the read device information from /sys .

object? AccessSysfs { get; }
Property Value

object

Remarks
This property applies only to Lambda functions that run in a Greengrass container.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-environment.html#cfn-greengrass-functiondefinition-environment-accesssysfs

Type union: either bool or IResolvable

Execution

Settings for the Lambda execution environment in AWS IoT Greengrass .

object? Execution { get; }
Property Value

object

Remarks

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-environment.html#cfn-greengrass-functiondefinition-environment-execution

Type union: either IResolvable or CfnFunctionDefinitionPropsMixin.IExecutionProperty

ResourceAccessPolicies

A list of the resources in the group that the function can access, with the corresponding read-only or read-write permissions. The maximum is 10 resources.

object? ResourceAccessPolicies { get; }
Property Value

object

Remarks
This property applies only for Lambda functions that run in a Greengrass container.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-functiondefinition-environment.html#cfn-greengrass-functiondefinition-environment-resourceaccesspolicies

Type union: either IResolvable or (either IResolvable or CfnFunctionDefinitionPropsMixin.IResourceAccessPolicyProperty)[]

Variables

Environment variables for the Lambda function.

object? Variables { get; }
Property Value

object

Remarks

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

Back to top Generated by DocFX