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