code: public void setResourceAccessPolicies(java.util.Collection<ResourceAccessPolicy> resourceAccessPolicies) {
          if (resourceAccessPolicies == null) {
              this.resourceAccessPolicies = null;
              return;
          }
  
          this.resourceAccessPolicies = new java.util.ArrayList<ResourceAccessPolicy>(resourceAccessPolicies);
      }
docs: 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.
  
  @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.