Class CfnFunctionDefinitionVersion.EnvironmentProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrass.CfnFunctionDefinitionVersion.EnvironmentProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionDefinitionVersion.EnvironmentProperty>
- Enclosing interface:
CfnFunctionDefinitionVersion.EnvironmentProperty
@Stability(Stable)
public static final class CfnFunctionDefinitionVersion.EnvironmentProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionDefinitionVersion.EnvironmentProperty>
A builder for
CfnFunctionDefinitionVersion.EnvironmentProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessSysfs
(Boolean accessSysfs) Sets the value ofCfnFunctionDefinitionVersion.EnvironmentProperty.getAccessSysfs()
accessSysfs
(IResolvable accessSysfs) Sets the value ofCfnFunctionDefinitionVersion.EnvironmentProperty.getAccessSysfs()
build()
Builds the configured instance.execution
(IResolvable execution) Sets the value ofCfnFunctionDefinitionVersion.EnvironmentProperty.getExecution()
Sets the value ofCfnFunctionDefinitionVersion.EnvironmentProperty.getExecution()
resourceAccessPolicies
(List<? extends Object> resourceAccessPolicies) resourceAccessPolicies
(IResolvable resourceAccessPolicies) Sets the value ofCfnFunctionDefinitionVersion.EnvironmentProperty.getVariables()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessSysfs
@Stability(Stable) public CfnFunctionDefinitionVersion.EnvironmentProperty.Builder accessSysfs(Boolean accessSysfs) Sets the value ofCfnFunctionDefinitionVersion.EnvironmentProperty.getAccessSysfs()
- Parameters:
accessSysfs
- 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.
- Returns:
this
-
accessSysfs
@Stability(Stable) public CfnFunctionDefinitionVersion.EnvironmentProperty.Builder accessSysfs(IResolvable accessSysfs) Sets the value ofCfnFunctionDefinitionVersion.EnvironmentProperty.getAccessSysfs()
- Parameters:
accessSysfs
- 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.
- Returns:
this
-
execution
@Stability(Stable) public CfnFunctionDefinitionVersion.EnvironmentProperty.Builder execution(IResolvable execution) Sets the value ofCfnFunctionDefinitionVersion.EnvironmentProperty.getExecution()
- Parameters:
execution
- Settings for the Lambda execution environment in AWS IoT Greengrass .- Returns:
this
-
execution
@Stability(Stable) public CfnFunctionDefinitionVersion.EnvironmentProperty.Builder execution(CfnFunctionDefinitionVersion.ExecutionProperty execution) Sets the value ofCfnFunctionDefinitionVersion.EnvironmentProperty.getExecution()
- Parameters:
execution
- Settings for the Lambda execution environment in AWS IoT Greengrass .- Returns:
this
-
resourceAccessPolicies
@Stability(Stable) public CfnFunctionDefinitionVersion.EnvironmentProperty.Builder resourceAccessPolicies(IResolvable resourceAccessPolicies) - Parameters:
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.This property applies only to Lambda functions that run in a Greengrass container.
- Returns:
this
-
resourceAccessPolicies
@Stability(Stable) public CfnFunctionDefinitionVersion.EnvironmentProperty.Builder resourceAccessPolicies(List<? extends Object> resourceAccessPolicies) - Parameters:
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.This property applies only to Lambda functions that run in a Greengrass container.
- Returns:
this
-
variables
@Stability(Stable) public CfnFunctionDefinitionVersion.EnvironmentProperty.Builder variables(Object variables) Sets the value ofCfnFunctionDefinitionVersion.EnvironmentProperty.getVariables()
- Parameters:
variables
- Environment variables for the Lambda function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnFunctionDefinitionVersion.EnvironmentProperty>
- Returns:
- a new instance of
CfnFunctionDefinitionVersion.EnvironmentProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-