func (t *Template) GetAllAWSSSMAssociationResources() map[string]AWSSSMAssociation {
	results := map[string]AWSSSMAssociation{}
	for name, untyped := range t.Resources {
		switch resource := untyped.(type) {
		case AWSSSMAssociation:
			results[name] = resource
		case map[string]interface{}:
			if resType, ok := resource["Type"]; ok {
				if resType == "AWS::SSM::Association" {
					if b, err := json.Marshal(resource); err == nil {
						var result AWSSSMAssociation
						if err := json.Unmarshal(b, &result); err == nil {
							results[name] = result
						}
					}
				}
			}
		}
	}
	return results
}
GetAllAWSSSMAssociationResources retrieves all AWSSSMAssociation items from an AWS CloudFormation template
package cloudformation
import (
	"encoding/json"
	"errors"
	"fmt"
)
type AWSSSMAssociation struct {
	DocumentVersion string `json:"DocumentVersion,omitempty"`
	InstanceId string `json:"InstanceId,omitempty"`
	Name string `json:"Name,omitempty"`
	Parameters map[string]AWSSSMAssociation_ParameterValues `json:"Parameters,omitempty"`
	ScheduleExpression string `json:"ScheduleExpression,omitempty"`
	Targets []AWSSSMAssociation_Target `json:"Targets,omitempty"`
}
func (r *AWSSSMAssociation) AWSCloudFormationType() string {
	return "AWS::SSM::Association"
}
func (r *AWSSSMAssociation) MarshalJSON() ([]byte, error) {
	type Properties AWSSSMAssociation
	return json.Marshal(&struct {
		Type       string
		Properties Properties
	}{
		Type:       r.AWSCloudFormationType(),
		Properties: (Properties)(*r),
	})
}
func (r *AWSSSMAssociation) UnmarshalJSON(b []byte) error {
	type Properties AWSSSMAssociation
	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 = AWSSSMAssociation(*res.Properties)
	}
	return nil
}