code: func (api *API) NewResource(pathPart string, parentLambda *LambdaAWSInfo) (*Resource, error) {
  	// The key is the path+resource, since we want to support POLA scoped
  	// security roles based on HTTP method
  	resourcesKey := fmt.Sprintf("%s%s", parentLambda.lambdaFunctionName(), pathPart)
  	_, exists := api.resources[resourcesKey]
  	if exists {
  		return nil, fmt.Errorf("path %s already defined for lambda function: %s", pathPart, parentLambda.lambdaFunctionName())
  	}
  	resource := &Resource{
  		pathPart:     pathPart,
  		parentLambda: parentLambda,
  		Methods:      make(map[string]*Method),
  	}
  	api.resources[resourcesKey] = resource
  	return resource, nil
  }
docs: // NewResource associates a URL path value with the LambdaAWSInfo golang lambda.  To make
  // the Resource available, associate one or more Methods via NewMethod().