Interface CfnFunctionDefinitionVersion.EnvironmentProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnFunctionDefinitionVersion.EnvironmentProperty.Jsii$Proxy
Enclosing class:
CfnFunctionDefinitionVersion

@Stability(Stable) public static interface CfnFunctionDefinitionVersion.EnvironmentProperty extends software.amazon.jsii.JsiiSerializable
The environment configuration for a Lambda function on the AWS IoT Greengrass core.

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

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.greengrass.*;
 Object variables;
 EnvironmentProperty environmentProperty = EnvironmentProperty.builder()
         .accessSysfs(false)
         .execution(ExecutionProperty.builder()
                 .isolationMode("isolationMode")
                 .runAs(RunAsProperty.builder()
                         .gid(123)
                         .uid(123)
                         .build())
                 .build())
         .resourceAccessPolicies(List.of(ResourceAccessPolicyProperty.builder()
                 .resourceId("resourceId")
                 // the properties below are optional
                 .permission("permission")
                 .build()))
         .variables(variables)
         .build();
 

See Also: