// GetCloudFormationResources returns a slice of all found cloudformation resources.
GetCloudFormationResources returns a slice of all found cloudformation resources.
// GetCloudFormationResources returns a slice of all found cloudformation resources .
func GetCloudFormationResources() (resources []string) {
	cloudformationServices, err := getCloudformationServices()
	if err != nil {
		fmt.Println("Error fetching cloudformation services: ", err)
		os.Exit(1)
	}
	for _, service := range cloudformationServices {
		url := fmt.Sprintf("https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/toc-%v.json", service)
		r, err := getResourceTypes(url)
		if err != nil {
			fmt.Println("Error getting resource tpyes for url: ", url)
			fmt.Println("Error: ", err)
			os.Exit(1)
		}
		resources = append(resources, r...)
	}
	return
}
func GetCloudFormationResources ( ) ( resources [ ] string ) { cloudformationServices , err := getCloudformationServices ( ) if err != nil { fmt . Println ( " " , err ) os . Exit ( 1 ) } for _ , service := range cloudformationServices { url := fmt . Sprintf ( " " , service ) r , err := getResourceTypes ( url ) if err != nil { fmt . Println ( " " , url ) fmt . Println ( " " , err ) os . Exit ( 1 ) } resources = append ( resources , r ... ) } return }
GetCloudFormationResources returns a slice of all found cloudformation resources.
GetCloudFormationResources returns a slice of all found cloudformation resources .