code: func (t *Template) GetAllAWSServiceCatalogPortfolioShareResources() map[string]*resources.AWSServiceCatalogPortfolioShare {
  	results := map[string]*resources.AWSServiceCatalogPortfolioShare{}
  	for name, untyped := range t.Resources {
  		switch resource := untyped.(type) {
  		case *resources.AWSServiceCatalogPortfolioShare:
  			results[name] = resource
  		}
  	}
  	return results
  }
docs: // GetAllAWSServiceCatalogPortfolioShareResources retrieves all AWSServiceCatalogPortfolioShare items from an AWS CloudFormation template