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.
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 |
| 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
Remarks
This property applies only to Lambda functions that run in a Greengrass container.
Type union: either bool or IResolvable
Execution
Settings for the Lambda execution environment in AWS IoT Greengrass .
object? Execution { get; }
Property Value
Remarks
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
Remarks
This property applies only for Lambda functions that run in a Greengrass container.
Type union: either IResolvable or (either IResolvable or CfnFunctionDefinitionPropsMixin.IResourceAccessPolicyProperty)[]
Variables
Environment variables for the Lambda function.
object? Variables { get; }