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 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

      Configuration related to executing the Lambda function This is a convenience method that creates an instance of the 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).

      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:
    • 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 the ResourceAccessPolicy.Builder avoiding the need to create one manually via ResourceAccessPolicy.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to resourceAccessPolicies(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:
    • 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.