func (t *Template) GetAllAWSSQSQueueResources() map[string]AWSSQSQueue {
	results := map[string]AWSSQSQueue{}
	for name, untyped := range t.Resources {
		switch resource := untyped.(type) {
		case AWSSQSQueue:
			results[name] = resource
		case map[string]interface{}:
			if resType, ok := resource["Type"]; ok {
				if resType == "AWS::SQS::Queue" {
					if b, err := json.Marshal(resource); err == nil {
						var result AWSSQSQueue
						if err := json.Unmarshal(b, &result); err == nil {
							results[name] = result
						}
					}
				}
			}
		}
	}
	return results
}
GetAllAWSSQSQueueResources retrieves all AWSSQSQueue items from an AWS CloudFormation template
package cloudformation
import (
	"encoding/json"
	"errors"
	"fmt"
)
type AWSSQSQueue struct {
	ContentBasedDeduplication bool `json:"ContentBasedDeduplication,omitempty"`
	DelaySeconds int `json:"DelaySeconds,omitempty"`
	FifoQueue bool `json:"FifoQueue,omitempty"`
	KmsDataKeyReusePeriodSeconds int `json:"KmsDataKeyReusePeriodSeconds,omitempty"`
	KmsMasterKeyId string `json:"KmsMasterKeyId,omitempty"`
	MaximumMessageSize int `json:"MaximumMessageSize,omitempty"`
	MessageRetentionPeriod int `json:"MessageRetentionPeriod,omitempty"`
	QueueName string `json:"QueueName,omitempty"`
	ReceiveMessageWaitTimeSeconds int `json:"ReceiveMessageWaitTimeSeconds,omitempty"`
	RedrivePolicy interface{} `json:"RedrivePolicy,omitempty"`
	VisibilityTimeout int `json:"VisibilityTimeout,omitempty"`
}
func (r *AWSSQSQueue) AWSCloudFormationType() string {
	return "AWS::SQS::Queue"
}
func (r *AWSSQSQueue) MarshalJSON() ([]byte, error) {
	type Properties AWSSQSQueue
	return json.Marshal(&struct {
		Type       string
		Properties Properties
	}{
		Type:       r.AWSCloudFormationType(),
		Properties: (Properties)(*r),
	})
}
func (r *AWSSQSQueue) UnmarshalJSON(b []byte) error {
	type Properties AWSSQSQueue
	res := &struct {
		Type       string
		Properties *Properties
	}{}
	if err := json.Unmarshal(b, &res); err != nil {
		fmt.Printf("ERROR: %s\n", err)
		return err
	}
	if res.Properties != nil {
		*r = AWSSQSQueue(*res.Properties)
	}
	return nil
}