Interface FunctionConfigurationEnvironment.Builder
- All Superinterfaces:
- Buildable,- CopyableBuilder<FunctionConfigurationEnvironment.Builder,,- FunctionConfigurationEnvironment> - SdkBuilder<FunctionConfigurationEnvironment.Builder,,- FunctionConfigurationEnvironment> - SdkPojo
- Enclosing class:
- FunctionConfigurationEnvironment
@Mutable
@NotThreadSafe
public static interface FunctionConfigurationEnvironment.Builder
extends SdkPojo, CopyableBuilder<FunctionConfigurationEnvironment.Builder,FunctionConfigurationEnvironment> 
- 
Method SummaryModifier 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.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
accessSysfsIf 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.
 
- 
executionConfiguration 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.
 
- 
executiondefault 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 on- FunctionExecutionConfig.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
resourceAccessPoliciesFunctionConfigurationEnvironment.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.
 
- 
resourceAccessPoliciesFunctionConfigurationEnvironment.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.
 
- 
resourceAccessPoliciesFunctionConfigurationEnvironment.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 on- ResourceAccessPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
variablesEnvironment 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.
 
 
-