public FunctionConfigurationEnvironment withResourceAccessPolicies(ResourceAccessPolicy... resourceAccessPolicies) {
        if (this.resourceAccessPolicies == null) {
            setResourceAccessPolicies(new java.util.ArrayList<ResourceAccessPolicy>(resourceAccessPolicies.length));
        }
        for (ResourceAccessPolicy ele : resourceAccessPolicies) {
            this.resourceAccessPolicies.add(ele);
        }
        return this;
    }
public FunctionConfigurationEnvironment withResourceAccessPolicies ( ResourceAccessPolicy ... resourceAccessPolicies ) { if ( this . resourceAccessPolicies == null ) { setResourceAccessPolicies ( new java . util . ArrayList < ResourceAccessPolicy > ( resourceAccessPolicies . length ) ) ; } for ( ResourceAccessPolicy ele : resourceAccessPolicies ) { this . resourceAccessPolicies . add ( ele ) ; } return this ; }
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.
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResourceAccessPolicies(java.util.Collection)} or
{@link #withResourceAccessPolicies(java.util.Collection)} if you want to override the existing values.
</p>

@param 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.
@return Returns a reference to this object so that method calls can be chained together.