public static interface FunctionConfigurationEnvironment.Builder extends SdkPojo, CopyableBuilder<FunctionConfigurationEnvironment.Builder,FunctionConfigurationEnvironment>
Modifier and Type | Method and Description |
---|---|
FunctionConfigurationEnvironment.Builder |
accessSysfs(Boolean accessSysfs)
If true, the Lambda function is allowed to access the host's /sys folder.
|
default FunctionConfigurationEnvironment.Builder |
execution(Consumer<FunctionExecutionConfig.Builder> execution)
Configuration related to executing the Lambda function This is a convenience that creates an instance of the
FunctionExecutionConfig.Builder avoiding the need to create one manually via
FunctionExecutionConfig.builder() . |
FunctionConfigurationEnvironment.Builder |
execution(FunctionExecutionConfig execution)
Configuration related to executing the Lambda function
|
FunctionConfigurationEnvironment.Builder |
resourceAccessPolicies(Collection<ResourceAccessPolicy> resourceAccessPolicies)
A list of the resources, with their permissions, to which the Lambda function will be granted access.
|
FunctionConfigurationEnvironment.Builder |
resourceAccessPolicies(Consumer<ResourceAccessPolicy.Builder>... resourceAccessPolicies)
A list of the resources, with their permissions, to which the Lambda function will be granted access.
|
FunctionConfigurationEnvironment.Builder |
resourceAccessPolicies(ResourceAccessPolicy... resourceAccessPolicies)
A list of the resources, with their permissions, to which the Lambda function will be granted access.
|
FunctionConfigurationEnvironment.Builder |
variables(Map<String,String> variables)
Environment variables for the Lambda function's configuration.
|
copy
applyMutation, build
FunctionConfigurationEnvironment.Builder accessSysfs(Boolean accessSysfs)
accessSysfs
- If true, the Lambda function is allowed to access the host's /sys folder. Use this when the Lambda
function needs to read device information from /sys. This setting applies only when you run the Lambda
function in a Greengrass container.FunctionConfigurationEnvironment.Builder execution(FunctionExecutionConfig execution)
execution
- Configuration related to executing the Lambda functiondefault FunctionConfigurationEnvironment.Builder execution(Consumer<FunctionExecutionConfig.Builder> execution)
FunctionExecutionConfig.Builder
avoiding the need to create one manually via
FunctionExecutionConfig.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately
and its result is passed to execution(FunctionExecutionConfig)
.execution
- a consumer that will call methods on FunctionExecutionConfig.Builder
execution(FunctionExecutionConfig)
FunctionConfigurationEnvironment.Builder resourceAccessPolicies(Collection<ResourceAccessPolicy> resourceAccessPolicies)
resourceAccessPolicies
- A list of the resources, with their permissions, to which the Lambda function will be granted access.
A Lambda function can have at most 10 resources. ResourceAccessPolicies apply only when you run the
Lambda function in a Greengrass container.FunctionConfigurationEnvironment.Builder resourceAccessPolicies(ResourceAccessPolicy... resourceAccessPolicies)
resourceAccessPolicies
- A list of the resources, with their permissions, to which the Lambda function will be granted access.
A Lambda function can have at most 10 resources. ResourceAccessPolicies apply only when you run the
Lambda function in a Greengrass container.FunctionConfigurationEnvironment.Builder resourceAccessPolicies(Consumer<ResourceAccessPolicy.Builder>... resourceAccessPolicies)
.Builder
avoiding the need to create one manually via #builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately
and its result is passed to #resourceAccessPolicies(List)
.resourceAccessPolicies
- a consumer that will call methods on List.Builder
#resourceAccessPolicies(List)
FunctionConfigurationEnvironment.Builder variables(Map<String,String> variables)
variables
- Environment variables for the Lambda function's configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.