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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnFunctionDefinitionVersion.EnvironmentProperty
static final class
An implementation forCfnFunctionDefinitionVersion.EnvironmentProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Object
Indicates whether the function is allowed to access the/sys
directory on the core device, which allows the read device information from/sys
.default Object
Settings for the Lambda execution environment in AWS IoT Greengrass .default Object
A list of the resources in the group that the function can access, with the corresponding read-only or read-write permissions.default Object
Environment variables for the Lambda function.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAccessSysfs
Indicates whether the function is allowed to access the/sys
directory on the core device, which allows the read device information from/sys
.This property applies only to Lambda functions that run in a Greengrass container.
- See Also:
-
getExecution
Settings for the Lambda execution environment in AWS IoT Greengrass .- See Also:
-
getResourceAccessPolicies
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.This property applies only to Lambda functions that run in a Greengrass container.
- See Also:
-
getVariables
Environment variables for the Lambda function.- See Also:
-
builder
-