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