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
Modifier and TypeMethodDescriptionaccessSysfs(Boolean accessSysfs) If true, the Lambda function is allowed to access the host's /sys folder.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().execution(FunctionExecutionConfig execution) Configuration related to executing the Lambda functionresourceAccessPolicies(Collection<ResourceAccessPolicy> resourceAccessPolicies) A list of the resources, with their permissions, to which the Lambda function will be granted access.resourceAccessPolicies(Consumer<ResourceAccessPolicy.Builder>... resourceAccessPolicies) A list of the resources, with their permissions, to which the Lambda function will be granted access.resourceAccessPolicies(ResourceAccessPolicy... resourceAccessPolicies) A list of the resources, with their permissions, to which the Lambda function will be granted access.Environment variables for the Lambda function's configuration.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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:
-
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 toresourceAccessPolicies(List<ResourceAccessPolicy>).- 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:
-
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.
-