Interface FunctionConfigurationEnvironment.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<FunctionConfigurationEnvironment.Builder,FunctionConfigurationEnvironment>,SdkBuilder<FunctionConfigurationEnvironment.Builder,FunctionConfigurationEnvironment>,SdkPojo
- Enclosing class:
- FunctionConfigurationEnvironment
public static interface FunctionConfigurationEnvironment.Builder extends SdkPojo, CopyableBuilder<FunctionConfigurationEnvironment.Builder,FunctionConfigurationEnvironment>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FunctionConfigurationEnvironment.BuilderaccessSysfs(Boolean accessSysfs)If true, the Lambda function is allowed to access the host's /sys folder.default FunctionConfigurationEnvironment.Builderexecution(Consumer<FunctionExecutionConfig.Builder> execution)Configuration related to executing the Lambda function This is a convenience method that creates an instance of theFunctionExecutionConfig.Builderavoiding the need to create one manually viaFunctionExecutionConfig.builder().FunctionConfigurationEnvironment.Builderexecution(FunctionExecutionConfig execution)Configuration related to executing the Lambda functionFunctionConfigurationEnvironment.BuilderresourceAccessPolicies(Collection<ResourceAccessPolicy> resourceAccessPolicies)A list of the resources, with their permissions, to which the Lambda function will be granted access.FunctionConfigurationEnvironment.BuilderresourceAccessPolicies(Consumer<ResourceAccessPolicy.Builder>... resourceAccessPolicies)A list of the resources, with their permissions, to which the Lambda function will be granted access.FunctionConfigurationEnvironment.BuilderresourceAccessPolicies(ResourceAccessPolicy... resourceAccessPolicies)A list of the resources, with their permissions, to which the Lambda function will be granted access.FunctionConfigurationEnvironment.Buildervariables(Map<String,String> variables)Environment variables for the Lambda function's configuration.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
accessSysfs
FunctionConfigurationEnvironment.Builder accessSysfs(Boolean 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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
execution
FunctionConfigurationEnvironment.Builder execution(FunctionExecutionConfig execution)
Configuration related to executing the Lambda function- Parameters:
execution- Configuration related to executing the Lambda function- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
execution
default FunctionConfigurationEnvironment.Builder execution(Consumer<FunctionExecutionConfig.Builder> execution)
Configuration related to executing the Lambda function This is a convenience method that creates an instance of theFunctionExecutionConfig.Builderavoiding the need to create one manually viaFunctionExecutionConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexecution(FunctionExecutionConfig).- Parameters:
execution- a consumer that will call methods onFunctionExecutionConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
execution(FunctionExecutionConfig)
-
resourceAccessPolicies
FunctionConfigurationEnvironment.Builder resourceAccessPolicies(Collection<ResourceAccessPolicy> 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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceAccessPolicies
FunctionConfigurationEnvironment.Builder resourceAccessPolicies(ResourceAccessPolicy... 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.- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceAccessPolicies
FunctionConfigurationEnvironment.Builder resourceAccessPolicies(Consumer<ResourceAccessPolicy.Builder>... 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. This is a convenience method that creates an instance of theResourceAccessPolicy.Builderavoiding the need to create one manually viaResourceAccessPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resourceAccessPolicies(List.) - Parameters:
resourceAccessPolicies- a consumer that will call methods onResourceAccessPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resourceAccessPolicies(java.util.Collection)
-
variables
FunctionConfigurationEnvironment.Builder variables(Map<String,String> variables)
Environment variables for the Lambda function's configuration.- Parameters:
variables- Environment variables for the Lambda function's configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-