Interface FunctionConfigurationEnvironment.Builder

    • 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.
      • 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).

        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:
        #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.