public static final class CfnFunctionDefinition.EnvironmentProperty.Builder
extends java.lang.Object
CfnFunctionDefinition.EnvironmentProperty
Constructor and Description |
---|
Builder() |
public CfnFunctionDefinition.EnvironmentProperty.Builder accessSysfs(java.lang.Boolean accessSysfs)
CfnFunctionDefinition.EnvironmentProperty.getAccessSysfs()
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.
this
public CfnFunctionDefinition.EnvironmentProperty.Builder accessSysfs(IResolvable accessSysfs)
CfnFunctionDefinition.EnvironmentProperty.getAccessSysfs()
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.
this
public CfnFunctionDefinition.EnvironmentProperty.Builder execution(IResolvable execution)
CfnFunctionDefinition.EnvironmentProperty.getExecution()
execution
- Settings for the Lambda execution environment in AWS IoT Greengrass .this
public CfnFunctionDefinition.EnvironmentProperty.Builder execution(CfnFunctionDefinition.ExecutionProperty execution)
CfnFunctionDefinition.EnvironmentProperty.getExecution()
execution
- Settings for the Lambda execution environment in AWS IoT Greengrass .this
public CfnFunctionDefinition.EnvironmentProperty.Builder resourceAccessPolicies(IResolvable resourceAccessPolicies)
CfnFunctionDefinition.EnvironmentProperty.getResourceAccessPolicies()
resourceAccessPolicies
- A list of the [resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourceinstance.html) 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.
this
public CfnFunctionDefinition.EnvironmentProperty.Builder resourceAccessPolicies(java.util.List<? extends java.lang.Object> resourceAccessPolicies)
CfnFunctionDefinition.EnvironmentProperty.getResourceAccessPolicies()
resourceAccessPolicies
- A list of the [resources](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-greengrass-resourcedefinitionversion-resourceinstance.html) 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.
this
public CfnFunctionDefinition.EnvironmentProperty.Builder variables(java.lang.Object variables)
CfnFunctionDefinition.EnvironmentProperty.getVariables()
variables
- Environment variables for the Lambda function.this
public CfnFunctionDefinition.EnvironmentProperty build()
CfnFunctionDefinition.EnvironmentProperty
java.lang.NullPointerException
- if any required attribute was not provided