repo
stringlengths
5
54
path
stringlengths
4
155
func_name
stringlengths
1
118
original_string
stringlengths
52
85.5k
language
stringclasses
1 value
code
stringlengths
52
85.5k
code_tokens
list
docstring
stringlengths
6
2.61k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
85
252
partition
stringclasses
1 value
awslabs/goformation
cloudformation/all.go
GetAWSDMSCertificateWithName
func (t *Template) GetAWSDMSCertificateWithName(name string) (*resources.AWSDMSCertificate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDMSCertificate: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDMSCertificate not found", name) }
go
func (t *Template) GetAWSDMSCertificateWithName(name string) (*resources.AWSDMSCertificate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDMSCertificate: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDMSCertificate not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDMSCertificateWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDMSCertificate", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDMSCertificate", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDMSCertificateWithName retrieves all AWSDMSCertificate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDMSCertificateWithName", "retrieves", "all", "AWSDMSCertificate", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2792-L2800
train
awslabs/goformation
cloudformation/all.go
GetAllAWSDMSEndpointResources
func (t *Template) GetAllAWSDMSEndpointResources() map[string]*resources.AWSDMSEndpoint { results := map[string]*resources.AWSDMSEndpoint{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDMSEndpoint: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSDMSEndpointResources() map[string]*resources.AWSDMSEndpoint { results := map[string]*resources.AWSDMSEndpoint{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDMSEndpoint: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSDMSEndpointResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSDMSEndpoint", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSDMSEndpoint", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDMSEndpoint", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSDMSEndpointResources retrieves all AWSDMSEndpoint items from an AWS CloudFormation template
[ "GetAllAWSDMSEndpointResources", "retrieves", "all", "AWSDMSEndpoint", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2803-L2812
train
awslabs/goformation
cloudformation/all.go
GetAWSDMSEndpointWithName
func (t *Template) GetAWSDMSEndpointWithName(name string) (*resources.AWSDMSEndpoint, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDMSEndpoint: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDMSEndpoint not found", name) }
go
func (t *Template) GetAWSDMSEndpointWithName(name string) (*resources.AWSDMSEndpoint, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDMSEndpoint: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDMSEndpoint not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDMSEndpointWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDMSEndpoint", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDMSEndpoint", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDMSEndpointWithName retrieves all AWSDMSEndpoint items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDMSEndpointWithName", "retrieves", "all", "AWSDMSEndpoint", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2816-L2824
train
awslabs/goformation
cloudformation/all.go
GetAllAWSDMSEventSubscriptionResources
func (t *Template) GetAllAWSDMSEventSubscriptionResources() map[string]*resources.AWSDMSEventSubscription { results := map[string]*resources.AWSDMSEventSubscription{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDMSEventSubscription: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSDMSEventSubscriptionResources() map[string]*resources.AWSDMSEventSubscription { results := map[string]*resources.AWSDMSEventSubscription{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDMSEventSubscription: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSDMSEventSubscriptionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSDMSEventSubscription", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSDMSEventSubscription", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDMSEventSubscription", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSDMSEventSubscriptionResources retrieves all AWSDMSEventSubscription items from an AWS CloudFormation template
[ "GetAllAWSDMSEventSubscriptionResources", "retrieves", "all", "AWSDMSEventSubscription", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2827-L2836
train
awslabs/goformation
cloudformation/all.go
GetAWSDMSEventSubscriptionWithName
func (t *Template) GetAWSDMSEventSubscriptionWithName(name string) (*resources.AWSDMSEventSubscription, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDMSEventSubscription: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDMSEventSubscription not found", name) }
go
func (t *Template) GetAWSDMSEventSubscriptionWithName(name string) (*resources.AWSDMSEventSubscription, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDMSEventSubscription: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDMSEventSubscription not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDMSEventSubscriptionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDMSEventSubscription", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDMSEventSubscription", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDMSEventSubscriptionWithName retrieves all AWSDMSEventSubscription items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDMSEventSubscriptionWithName", "retrieves", "all", "AWSDMSEventSubscription", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2840-L2848
train
awslabs/goformation
cloudformation/all.go
GetAllAWSDMSReplicationInstanceResources
func (t *Template) GetAllAWSDMSReplicationInstanceResources() map[string]*resources.AWSDMSReplicationInstance { results := map[string]*resources.AWSDMSReplicationInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDMSReplicationInstance: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSDMSReplicationInstanceResources() map[string]*resources.AWSDMSReplicationInstance { results := map[string]*resources.AWSDMSReplicationInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDMSReplicationInstance: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSDMSReplicationInstanceResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSDMSReplicationInstance", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSDMSReplicationInstance", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDMSReplicationInstance", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSDMSReplicationInstanceResources retrieves all AWSDMSReplicationInstance items from an AWS CloudFormation template
[ "GetAllAWSDMSReplicationInstanceResources", "retrieves", "all", "AWSDMSReplicationInstance", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2851-L2860
train
awslabs/goformation
cloudformation/all.go
GetAWSDMSReplicationInstanceWithName
func (t *Template) GetAWSDMSReplicationInstanceWithName(name string) (*resources.AWSDMSReplicationInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDMSReplicationInstance: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDMSReplicationInstance not found", name) }
go
func (t *Template) GetAWSDMSReplicationInstanceWithName(name string) (*resources.AWSDMSReplicationInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDMSReplicationInstance: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDMSReplicationInstance not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDMSReplicationInstanceWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDMSReplicationInstance", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDMSReplicationInstance", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDMSReplicationInstanceWithName retrieves all AWSDMSReplicationInstance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDMSReplicationInstanceWithName", "retrieves", "all", "AWSDMSReplicationInstance", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2864-L2872
train
awslabs/goformation
cloudformation/all.go
GetAllAWSDMSReplicationSubnetGroupResources
func (t *Template) GetAllAWSDMSReplicationSubnetGroupResources() map[string]*resources.AWSDMSReplicationSubnetGroup { results := map[string]*resources.AWSDMSReplicationSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDMSReplicationSubnetGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSDMSReplicationSubnetGroupResources() map[string]*resources.AWSDMSReplicationSubnetGroup { results := map[string]*resources.AWSDMSReplicationSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDMSReplicationSubnetGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSDMSReplicationSubnetGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSDMSReplicationSubnetGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSDMSReplicationSubnetGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDMSReplicationSubnetGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSDMSReplicationSubnetGroupResources retrieves all AWSDMSReplicationSubnetGroup items from an AWS CloudFormation template
[ "GetAllAWSDMSReplicationSubnetGroupResources", "retrieves", "all", "AWSDMSReplicationSubnetGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2875-L2884
train
awslabs/goformation
cloudformation/all.go
GetAWSDMSReplicationSubnetGroupWithName
func (t *Template) GetAWSDMSReplicationSubnetGroupWithName(name string) (*resources.AWSDMSReplicationSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDMSReplicationSubnetGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDMSReplicationSubnetGroup not found", name) }
go
func (t *Template) GetAWSDMSReplicationSubnetGroupWithName(name string) (*resources.AWSDMSReplicationSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDMSReplicationSubnetGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDMSReplicationSubnetGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDMSReplicationSubnetGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDMSReplicationSubnetGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDMSReplicationSubnetGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDMSReplicationSubnetGroupWithName retrieves all AWSDMSReplicationSubnetGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDMSReplicationSubnetGroupWithName", "retrieves", "all", "AWSDMSReplicationSubnetGroup", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2888-L2896
train
awslabs/goformation
cloudformation/all.go
GetAllAWSDMSReplicationTaskResources
func (t *Template) GetAllAWSDMSReplicationTaskResources() map[string]*resources.AWSDMSReplicationTask { results := map[string]*resources.AWSDMSReplicationTask{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDMSReplicationTask: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSDMSReplicationTaskResources() map[string]*resources.AWSDMSReplicationTask { results := map[string]*resources.AWSDMSReplicationTask{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDMSReplicationTask: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSDMSReplicationTaskResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSDMSReplicationTask", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSDMSReplicationTask", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDMSReplicationTask", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSDMSReplicationTaskResources retrieves all AWSDMSReplicationTask items from an AWS CloudFormation template
[ "GetAllAWSDMSReplicationTaskResources", "retrieves", "all", "AWSDMSReplicationTask", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2899-L2908
train
awslabs/goformation
cloudformation/all.go
GetAWSDMSReplicationTaskWithName
func (t *Template) GetAWSDMSReplicationTaskWithName(name string) (*resources.AWSDMSReplicationTask, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDMSReplicationTask: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDMSReplicationTask not found", name) }
go
func (t *Template) GetAWSDMSReplicationTaskWithName(name string) (*resources.AWSDMSReplicationTask, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDMSReplicationTask: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDMSReplicationTask not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDMSReplicationTaskWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDMSReplicationTask", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDMSReplicationTask", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDMSReplicationTaskWithName retrieves all AWSDMSReplicationTask items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDMSReplicationTaskWithName", "retrieves", "all", "AWSDMSReplicationTask", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2912-L2920
train
awslabs/goformation
cloudformation/all.go
GetAllAWSDataPipelinePipelineResources
func (t *Template) GetAllAWSDataPipelinePipelineResources() map[string]*resources.AWSDataPipelinePipeline { results := map[string]*resources.AWSDataPipelinePipeline{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDataPipelinePipeline: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSDataPipelinePipelineResources() map[string]*resources.AWSDataPipelinePipeline { results := map[string]*resources.AWSDataPipelinePipeline{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDataPipelinePipeline: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSDataPipelinePipelineResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSDataPipelinePipeline", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSDataPipelinePipeline", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDataPipelinePipeline", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSDataPipelinePipelineResources retrieves all AWSDataPipelinePipeline items from an AWS CloudFormation template
[ "GetAllAWSDataPipelinePipelineResources", "retrieves", "all", "AWSDataPipelinePipeline", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2923-L2932
train
awslabs/goformation
cloudformation/all.go
GetAWSDataPipelinePipelineWithName
func (t *Template) GetAWSDataPipelinePipelineWithName(name string) (*resources.AWSDataPipelinePipeline, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDataPipelinePipeline: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDataPipelinePipeline not found", name) }
go
func (t *Template) GetAWSDataPipelinePipelineWithName(name string) (*resources.AWSDataPipelinePipeline, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDataPipelinePipeline: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDataPipelinePipeline not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDataPipelinePipelineWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDataPipelinePipeline", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDataPipelinePipeline", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDataPipelinePipelineWithName retrieves all AWSDataPipelinePipeline items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDataPipelinePipelineWithName", "retrieves", "all", "AWSDataPipelinePipeline", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2936-L2944
train
awslabs/goformation
cloudformation/all.go
GetAllAWSDirectoryServiceMicrosoftADResources
func (t *Template) GetAllAWSDirectoryServiceMicrosoftADResources() map[string]*resources.AWSDirectoryServiceMicrosoftAD { results := map[string]*resources.AWSDirectoryServiceMicrosoftAD{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDirectoryServiceMicrosoftAD: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSDirectoryServiceMicrosoftADResources() map[string]*resources.AWSDirectoryServiceMicrosoftAD { results := map[string]*resources.AWSDirectoryServiceMicrosoftAD{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDirectoryServiceMicrosoftAD: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSDirectoryServiceMicrosoftADResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSDirectoryServiceMicrosoftAD", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSDirectoryServiceMicrosoftAD", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDirectoryServiceMicrosoftAD", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSDirectoryServiceMicrosoftADResources retrieves all AWSDirectoryServiceMicrosoftAD items from an AWS CloudFormation template
[ "GetAllAWSDirectoryServiceMicrosoftADResources", "retrieves", "all", "AWSDirectoryServiceMicrosoftAD", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2947-L2956
train
awslabs/goformation
cloudformation/all.go
GetAWSDirectoryServiceMicrosoftADWithName
func (t *Template) GetAWSDirectoryServiceMicrosoftADWithName(name string) (*resources.AWSDirectoryServiceMicrosoftAD, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDirectoryServiceMicrosoftAD: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDirectoryServiceMicrosoftAD not found", name) }
go
func (t *Template) GetAWSDirectoryServiceMicrosoftADWithName(name string) (*resources.AWSDirectoryServiceMicrosoftAD, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDirectoryServiceMicrosoftAD: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDirectoryServiceMicrosoftAD not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDirectoryServiceMicrosoftADWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDirectoryServiceMicrosoftAD", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDirectoryServiceMicrosoftAD", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDirectoryServiceMicrosoftADWithName retrieves all AWSDirectoryServiceMicrosoftAD items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDirectoryServiceMicrosoftADWithName", "retrieves", "all", "AWSDirectoryServiceMicrosoftAD", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2960-L2968
train
awslabs/goformation
cloudformation/all.go
GetAllAWSDirectoryServiceSimpleADResources
func (t *Template) GetAllAWSDirectoryServiceSimpleADResources() map[string]*resources.AWSDirectoryServiceSimpleAD { results := map[string]*resources.AWSDirectoryServiceSimpleAD{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDirectoryServiceSimpleAD: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSDirectoryServiceSimpleADResources() map[string]*resources.AWSDirectoryServiceSimpleAD { results := map[string]*resources.AWSDirectoryServiceSimpleAD{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDirectoryServiceSimpleAD: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSDirectoryServiceSimpleADResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSDirectoryServiceSimpleAD", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSDirectoryServiceSimpleAD", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDirectoryServiceSimpleAD", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSDirectoryServiceSimpleADResources retrieves all AWSDirectoryServiceSimpleAD items from an AWS CloudFormation template
[ "GetAllAWSDirectoryServiceSimpleADResources", "retrieves", "all", "AWSDirectoryServiceSimpleAD", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2971-L2980
train
awslabs/goformation
cloudformation/all.go
GetAWSDirectoryServiceSimpleADWithName
func (t *Template) GetAWSDirectoryServiceSimpleADWithName(name string) (*resources.AWSDirectoryServiceSimpleAD, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDirectoryServiceSimpleAD: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDirectoryServiceSimpleAD not found", name) }
go
func (t *Template) GetAWSDirectoryServiceSimpleADWithName(name string) (*resources.AWSDirectoryServiceSimpleAD, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDirectoryServiceSimpleAD: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDirectoryServiceSimpleAD not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDirectoryServiceSimpleADWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDirectoryServiceSimpleAD", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDirectoryServiceSimpleAD", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDirectoryServiceSimpleADWithName retrieves all AWSDirectoryServiceSimpleAD items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDirectoryServiceSimpleADWithName", "retrieves", "all", "AWSDirectoryServiceSimpleAD", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2984-L2992
train
awslabs/goformation
cloudformation/all.go
GetAllAWSDocDBDBClusterResources
func (t *Template) GetAllAWSDocDBDBClusterResources() map[string]*resources.AWSDocDBDBCluster { results := map[string]*resources.AWSDocDBDBCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDocDBDBCluster: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSDocDBDBClusterResources() map[string]*resources.AWSDocDBDBCluster { results := map[string]*resources.AWSDocDBDBCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDocDBDBCluster: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSDocDBDBClusterResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSDocDBDBCluster", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSDocDBDBCluster", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDocDBDBCluster", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSDocDBDBClusterResources retrieves all AWSDocDBDBCluster items from an AWS CloudFormation template
[ "GetAllAWSDocDBDBClusterResources", "retrieves", "all", "AWSDocDBDBCluster", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2995-L3004
train
awslabs/goformation
cloudformation/all.go
GetAWSDocDBDBClusterWithName
func (t *Template) GetAWSDocDBDBClusterWithName(name string) (*resources.AWSDocDBDBCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDocDBDBCluster: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDocDBDBCluster not found", name) }
go
func (t *Template) GetAWSDocDBDBClusterWithName(name string) (*resources.AWSDocDBDBCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDocDBDBCluster: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDocDBDBCluster not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDocDBDBClusterWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDocDBDBCluster", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDocDBDBCluster", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDocDBDBClusterWithName retrieves all AWSDocDBDBCluster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDocDBDBClusterWithName", "retrieves", "all", "AWSDocDBDBCluster", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3008-L3016
train
awslabs/goformation
cloudformation/all.go
GetAllAWSDocDBDBClusterParameterGroupResources
func (t *Template) GetAllAWSDocDBDBClusterParameterGroupResources() map[string]*resources.AWSDocDBDBClusterParameterGroup { results := map[string]*resources.AWSDocDBDBClusterParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDocDBDBClusterParameterGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSDocDBDBClusterParameterGroupResources() map[string]*resources.AWSDocDBDBClusterParameterGroup { results := map[string]*resources.AWSDocDBDBClusterParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDocDBDBClusterParameterGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSDocDBDBClusterParameterGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSDocDBDBClusterParameterGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSDocDBDBClusterParameterGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDocDBDBClusterParameterGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSDocDBDBClusterParameterGroupResources retrieves all AWSDocDBDBClusterParameterGroup items from an AWS CloudFormation template
[ "GetAllAWSDocDBDBClusterParameterGroupResources", "retrieves", "all", "AWSDocDBDBClusterParameterGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3019-L3028
train
awslabs/goformation
cloudformation/all.go
GetAWSDocDBDBClusterParameterGroupWithName
func (t *Template) GetAWSDocDBDBClusterParameterGroupWithName(name string) (*resources.AWSDocDBDBClusterParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDocDBDBClusterParameterGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDocDBDBClusterParameterGroup not found", name) }
go
func (t *Template) GetAWSDocDBDBClusterParameterGroupWithName(name string) (*resources.AWSDocDBDBClusterParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDocDBDBClusterParameterGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDocDBDBClusterParameterGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDocDBDBClusterParameterGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDocDBDBClusterParameterGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDocDBDBClusterParameterGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDocDBDBClusterParameterGroupWithName retrieves all AWSDocDBDBClusterParameterGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDocDBDBClusterParameterGroupWithName", "retrieves", "all", "AWSDocDBDBClusterParameterGroup", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3032-L3040
train
awslabs/goformation
cloudformation/all.go
GetAllAWSDocDBDBInstanceResources
func (t *Template) GetAllAWSDocDBDBInstanceResources() map[string]*resources.AWSDocDBDBInstance { results := map[string]*resources.AWSDocDBDBInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDocDBDBInstance: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSDocDBDBInstanceResources() map[string]*resources.AWSDocDBDBInstance { results := map[string]*resources.AWSDocDBDBInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDocDBDBInstance: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSDocDBDBInstanceResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSDocDBDBInstance", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSDocDBDBInstance", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDocDBDBInstance", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSDocDBDBInstanceResources retrieves all AWSDocDBDBInstance items from an AWS CloudFormation template
[ "GetAllAWSDocDBDBInstanceResources", "retrieves", "all", "AWSDocDBDBInstance", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3043-L3052
train
awslabs/goformation
cloudformation/all.go
GetAWSDocDBDBInstanceWithName
func (t *Template) GetAWSDocDBDBInstanceWithName(name string) (*resources.AWSDocDBDBInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDocDBDBInstance: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDocDBDBInstance not found", name) }
go
func (t *Template) GetAWSDocDBDBInstanceWithName(name string) (*resources.AWSDocDBDBInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDocDBDBInstance: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDocDBDBInstance not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDocDBDBInstanceWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDocDBDBInstance", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDocDBDBInstance", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDocDBDBInstanceWithName retrieves all AWSDocDBDBInstance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDocDBDBInstanceWithName", "retrieves", "all", "AWSDocDBDBInstance", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3056-L3064
train
awslabs/goformation
cloudformation/all.go
GetAllAWSDocDBDBSubnetGroupResources
func (t *Template) GetAllAWSDocDBDBSubnetGroupResources() map[string]*resources.AWSDocDBDBSubnetGroup { results := map[string]*resources.AWSDocDBDBSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDocDBDBSubnetGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSDocDBDBSubnetGroupResources() map[string]*resources.AWSDocDBDBSubnetGroup { results := map[string]*resources.AWSDocDBDBSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDocDBDBSubnetGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSDocDBDBSubnetGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSDocDBDBSubnetGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSDocDBDBSubnetGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDocDBDBSubnetGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSDocDBDBSubnetGroupResources retrieves all AWSDocDBDBSubnetGroup items from an AWS CloudFormation template
[ "GetAllAWSDocDBDBSubnetGroupResources", "retrieves", "all", "AWSDocDBDBSubnetGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3067-L3076
train
awslabs/goformation
cloudformation/all.go
GetAWSDocDBDBSubnetGroupWithName
func (t *Template) GetAWSDocDBDBSubnetGroupWithName(name string) (*resources.AWSDocDBDBSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDocDBDBSubnetGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDocDBDBSubnetGroup not found", name) }
go
func (t *Template) GetAWSDocDBDBSubnetGroupWithName(name string) (*resources.AWSDocDBDBSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDocDBDBSubnetGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDocDBDBSubnetGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDocDBDBSubnetGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDocDBDBSubnetGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDocDBDBSubnetGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDocDBDBSubnetGroupWithName retrieves all AWSDocDBDBSubnetGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDocDBDBSubnetGroupWithName", "retrieves", "all", "AWSDocDBDBSubnetGroup", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3080-L3088
train
awslabs/goformation
cloudformation/all.go
GetAllAWSDynamoDBTableResources
func (t *Template) GetAllAWSDynamoDBTableResources() map[string]*resources.AWSDynamoDBTable { results := map[string]*resources.AWSDynamoDBTable{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDynamoDBTable: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSDynamoDBTableResources() map[string]*resources.AWSDynamoDBTable { results := map[string]*resources.AWSDynamoDBTable{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSDynamoDBTable: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSDynamoDBTableResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSDynamoDBTable", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSDynamoDBTable", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDynamoDBTable", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSDynamoDBTableResources retrieves all AWSDynamoDBTable items from an AWS CloudFormation template
[ "GetAllAWSDynamoDBTableResources", "retrieves", "all", "AWSDynamoDBTable", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3091-L3100
train
awslabs/goformation
cloudformation/all.go
GetAWSDynamoDBTableWithName
func (t *Template) GetAWSDynamoDBTableWithName(name string) (*resources.AWSDynamoDBTable, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDynamoDBTable: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDynamoDBTable not found", name) }
go
func (t *Template) GetAWSDynamoDBTableWithName(name string) (*resources.AWSDynamoDBTable, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSDynamoDBTable: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSDynamoDBTable not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSDynamoDBTableWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSDynamoDBTable", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSDynamoDBTable", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSDynamoDBTableWithName retrieves all AWSDynamoDBTable items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSDynamoDBTableWithName", "retrieves", "all", "AWSDynamoDBTable", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3104-L3112
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2CustomerGatewayResources
func (t *Template) GetAllAWSEC2CustomerGatewayResources() map[string]*resources.AWSEC2CustomerGateway { results := map[string]*resources.AWSEC2CustomerGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2CustomerGateway: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2CustomerGatewayResources() map[string]*resources.AWSEC2CustomerGateway { results := map[string]*resources.AWSEC2CustomerGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2CustomerGateway: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2CustomerGatewayResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2CustomerGateway", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2CustomerGateway", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2CustomerGateway", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2CustomerGatewayResources retrieves all AWSEC2CustomerGateway items from an AWS CloudFormation template
[ "GetAllAWSEC2CustomerGatewayResources", "retrieves", "all", "AWSEC2CustomerGateway", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3115-L3124
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2CustomerGatewayWithName
func (t *Template) GetAWSEC2CustomerGatewayWithName(name string) (*resources.AWSEC2CustomerGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2CustomerGateway: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2CustomerGateway not found", name) }
go
func (t *Template) GetAWSEC2CustomerGatewayWithName(name string) (*resources.AWSEC2CustomerGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2CustomerGateway: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2CustomerGateway not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2CustomerGatewayWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2CustomerGateway", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2CustomerGateway", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2CustomerGatewayWithName retrieves all AWSEC2CustomerGateway items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2CustomerGatewayWithName", "retrieves", "all", "AWSEC2CustomerGateway", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3128-L3136
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2DHCPOptionsResources
func (t *Template) GetAllAWSEC2DHCPOptionsResources() map[string]*resources.AWSEC2DHCPOptions { results := map[string]*resources.AWSEC2DHCPOptions{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2DHCPOptions: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2DHCPOptionsResources() map[string]*resources.AWSEC2DHCPOptions { results := map[string]*resources.AWSEC2DHCPOptions{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2DHCPOptions: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2DHCPOptionsResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2DHCPOptions", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2DHCPOptions", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2DHCPOptions", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2DHCPOptionsResources retrieves all AWSEC2DHCPOptions items from an AWS CloudFormation template
[ "GetAllAWSEC2DHCPOptionsResources", "retrieves", "all", "AWSEC2DHCPOptions", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3139-L3148
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2DHCPOptionsWithName
func (t *Template) GetAWSEC2DHCPOptionsWithName(name string) (*resources.AWSEC2DHCPOptions, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2DHCPOptions: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2DHCPOptions not found", name) }
go
func (t *Template) GetAWSEC2DHCPOptionsWithName(name string) (*resources.AWSEC2DHCPOptions, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2DHCPOptions: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2DHCPOptions not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2DHCPOptionsWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2DHCPOptions", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2DHCPOptions", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2DHCPOptionsWithName retrieves all AWSEC2DHCPOptions items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2DHCPOptionsWithName", "retrieves", "all", "AWSEC2DHCPOptions", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3152-L3160
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2EC2FleetResources
func (t *Template) GetAllAWSEC2EC2FleetResources() map[string]*resources.AWSEC2EC2Fleet { results := map[string]*resources.AWSEC2EC2Fleet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2EC2Fleet: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2EC2FleetResources() map[string]*resources.AWSEC2EC2Fleet { results := map[string]*resources.AWSEC2EC2Fleet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2EC2Fleet: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2EC2FleetResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2EC2Fleet", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2EC2Fleet", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2EC2Fleet", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2EC2FleetResources retrieves all AWSEC2EC2Fleet items from an AWS CloudFormation template
[ "GetAllAWSEC2EC2FleetResources", "retrieves", "all", "AWSEC2EC2Fleet", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3163-L3172
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2EC2FleetWithName
func (t *Template) GetAWSEC2EC2FleetWithName(name string) (*resources.AWSEC2EC2Fleet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2EC2Fleet: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2EC2Fleet not found", name) }
go
func (t *Template) GetAWSEC2EC2FleetWithName(name string) (*resources.AWSEC2EC2Fleet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2EC2Fleet: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2EC2Fleet not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2EC2FleetWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2EC2Fleet", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2EC2Fleet", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2EC2FleetWithName retrieves all AWSEC2EC2Fleet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2EC2FleetWithName", "retrieves", "all", "AWSEC2EC2Fleet", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3176-L3184
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2EIPResources
func (t *Template) GetAllAWSEC2EIPResources() map[string]*resources.AWSEC2EIP { results := map[string]*resources.AWSEC2EIP{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2EIP: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2EIPResources() map[string]*resources.AWSEC2EIP { results := map[string]*resources.AWSEC2EIP{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2EIP: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2EIPResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2EIP", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2EIP", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2EIP", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2EIPResources retrieves all AWSEC2EIP items from an AWS CloudFormation template
[ "GetAllAWSEC2EIPResources", "retrieves", "all", "AWSEC2EIP", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3187-L3196
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2EIPWithName
func (t *Template) GetAWSEC2EIPWithName(name string) (*resources.AWSEC2EIP, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2EIP: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2EIP not found", name) }
go
func (t *Template) GetAWSEC2EIPWithName(name string) (*resources.AWSEC2EIP, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2EIP: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2EIP not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2EIPWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2EIP", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2EIP", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2EIPWithName retrieves all AWSEC2EIP items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2EIPWithName", "retrieves", "all", "AWSEC2EIP", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3200-L3208
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2EIPAssociationResources
func (t *Template) GetAllAWSEC2EIPAssociationResources() map[string]*resources.AWSEC2EIPAssociation { results := map[string]*resources.AWSEC2EIPAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2EIPAssociation: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2EIPAssociationResources() map[string]*resources.AWSEC2EIPAssociation { results := map[string]*resources.AWSEC2EIPAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2EIPAssociation: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2EIPAssociationResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2EIPAssociation", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2EIPAssociation", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2EIPAssociation", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2EIPAssociationResources retrieves all AWSEC2EIPAssociation items from an AWS CloudFormation template
[ "GetAllAWSEC2EIPAssociationResources", "retrieves", "all", "AWSEC2EIPAssociation", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3211-L3220
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2EIPAssociationWithName
func (t *Template) GetAWSEC2EIPAssociationWithName(name string) (*resources.AWSEC2EIPAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2EIPAssociation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2EIPAssociation not found", name) }
go
func (t *Template) GetAWSEC2EIPAssociationWithName(name string) (*resources.AWSEC2EIPAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2EIPAssociation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2EIPAssociation not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2EIPAssociationWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2EIPAssociation", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2EIPAssociation", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2EIPAssociationWithName retrieves all AWSEC2EIPAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2EIPAssociationWithName", "retrieves", "all", "AWSEC2EIPAssociation", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3224-L3232
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2EgressOnlyInternetGatewayResources
func (t *Template) GetAllAWSEC2EgressOnlyInternetGatewayResources() map[string]*resources.AWSEC2EgressOnlyInternetGateway { results := map[string]*resources.AWSEC2EgressOnlyInternetGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2EgressOnlyInternetGateway: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2EgressOnlyInternetGatewayResources() map[string]*resources.AWSEC2EgressOnlyInternetGateway { results := map[string]*resources.AWSEC2EgressOnlyInternetGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2EgressOnlyInternetGateway: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2EgressOnlyInternetGatewayResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2EgressOnlyInternetGateway", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2EgressOnlyInternetGateway", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2EgressOnlyInternetGateway", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2EgressOnlyInternetGatewayResources retrieves all AWSEC2EgressOnlyInternetGateway items from an AWS CloudFormation template
[ "GetAllAWSEC2EgressOnlyInternetGatewayResources", "retrieves", "all", "AWSEC2EgressOnlyInternetGateway", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3235-L3244
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2EgressOnlyInternetGatewayWithName
func (t *Template) GetAWSEC2EgressOnlyInternetGatewayWithName(name string) (*resources.AWSEC2EgressOnlyInternetGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2EgressOnlyInternetGateway: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2EgressOnlyInternetGateway not found", name) }
go
func (t *Template) GetAWSEC2EgressOnlyInternetGatewayWithName(name string) (*resources.AWSEC2EgressOnlyInternetGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2EgressOnlyInternetGateway: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2EgressOnlyInternetGateway not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2EgressOnlyInternetGatewayWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2EgressOnlyInternetGateway", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2EgressOnlyInternetGateway", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2EgressOnlyInternetGatewayWithName retrieves all AWSEC2EgressOnlyInternetGateway items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2EgressOnlyInternetGatewayWithName", "retrieves", "all", "AWSEC2EgressOnlyInternetGateway", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3248-L3256
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2FlowLogResources
func (t *Template) GetAllAWSEC2FlowLogResources() map[string]*resources.AWSEC2FlowLog { results := map[string]*resources.AWSEC2FlowLog{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2FlowLog: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2FlowLogResources() map[string]*resources.AWSEC2FlowLog { results := map[string]*resources.AWSEC2FlowLog{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2FlowLog: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2FlowLogResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2FlowLog", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2FlowLog", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2FlowLog", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2FlowLogResources retrieves all AWSEC2FlowLog items from an AWS CloudFormation template
[ "GetAllAWSEC2FlowLogResources", "retrieves", "all", "AWSEC2FlowLog", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3259-L3268
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2FlowLogWithName
func (t *Template) GetAWSEC2FlowLogWithName(name string) (*resources.AWSEC2FlowLog, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2FlowLog: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2FlowLog not found", name) }
go
func (t *Template) GetAWSEC2FlowLogWithName(name string) (*resources.AWSEC2FlowLog, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2FlowLog: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2FlowLog not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2FlowLogWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2FlowLog", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2FlowLog", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2FlowLogWithName retrieves all AWSEC2FlowLog items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2FlowLogWithName", "retrieves", "all", "AWSEC2FlowLog", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3272-L3280
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2HostResources
func (t *Template) GetAllAWSEC2HostResources() map[string]*resources.AWSEC2Host { results := map[string]*resources.AWSEC2Host{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2Host: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2HostResources() map[string]*resources.AWSEC2Host { results := map[string]*resources.AWSEC2Host{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2Host: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2HostResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2Host", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2Host", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2Host", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2HostResources retrieves all AWSEC2Host items from an AWS CloudFormation template
[ "GetAllAWSEC2HostResources", "retrieves", "all", "AWSEC2Host", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3283-L3292
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2HostWithName
func (t *Template) GetAWSEC2HostWithName(name string) (*resources.AWSEC2Host, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2Host: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2Host not found", name) }
go
func (t *Template) GetAWSEC2HostWithName(name string) (*resources.AWSEC2Host, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2Host: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2Host not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2HostWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2Host", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2Host", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2HostWithName retrieves all AWSEC2Host items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2HostWithName", "retrieves", "all", "AWSEC2Host", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3296-L3304
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2InstanceResources
func (t *Template) GetAllAWSEC2InstanceResources() map[string]*resources.AWSEC2Instance { results := map[string]*resources.AWSEC2Instance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2Instance: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2InstanceResources() map[string]*resources.AWSEC2Instance { results := map[string]*resources.AWSEC2Instance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2Instance: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2InstanceResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2Instance", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2Instance", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2Instance", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2InstanceResources retrieves all AWSEC2Instance items from an AWS CloudFormation template
[ "GetAllAWSEC2InstanceResources", "retrieves", "all", "AWSEC2Instance", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3307-L3316
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2InstanceWithName
func (t *Template) GetAWSEC2InstanceWithName(name string) (*resources.AWSEC2Instance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2Instance: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2Instance not found", name) }
go
func (t *Template) GetAWSEC2InstanceWithName(name string) (*resources.AWSEC2Instance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2Instance: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2Instance not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2InstanceWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2Instance", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2Instance", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2InstanceWithName retrieves all AWSEC2Instance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2InstanceWithName", "retrieves", "all", "AWSEC2Instance", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3320-L3328
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2InternetGatewayResources
func (t *Template) GetAllAWSEC2InternetGatewayResources() map[string]*resources.AWSEC2InternetGateway { results := map[string]*resources.AWSEC2InternetGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2InternetGateway: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2InternetGatewayResources() map[string]*resources.AWSEC2InternetGateway { results := map[string]*resources.AWSEC2InternetGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2InternetGateway: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2InternetGatewayResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2InternetGateway", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2InternetGateway", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2InternetGateway", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2InternetGatewayResources retrieves all AWSEC2InternetGateway items from an AWS CloudFormation template
[ "GetAllAWSEC2InternetGatewayResources", "retrieves", "all", "AWSEC2InternetGateway", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3331-L3340
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2InternetGatewayWithName
func (t *Template) GetAWSEC2InternetGatewayWithName(name string) (*resources.AWSEC2InternetGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2InternetGateway: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2InternetGateway not found", name) }
go
func (t *Template) GetAWSEC2InternetGatewayWithName(name string) (*resources.AWSEC2InternetGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2InternetGateway: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2InternetGateway not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2InternetGatewayWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2InternetGateway", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2InternetGateway", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2InternetGatewayWithName retrieves all AWSEC2InternetGateway items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2InternetGatewayWithName", "retrieves", "all", "AWSEC2InternetGateway", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3344-L3352
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2LaunchTemplateResources
func (t *Template) GetAllAWSEC2LaunchTemplateResources() map[string]*resources.AWSEC2LaunchTemplate { results := map[string]*resources.AWSEC2LaunchTemplate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2LaunchTemplate: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2LaunchTemplateResources() map[string]*resources.AWSEC2LaunchTemplate { results := map[string]*resources.AWSEC2LaunchTemplate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2LaunchTemplate: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2LaunchTemplateResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2LaunchTemplate", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2LaunchTemplate", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2LaunchTemplate", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2LaunchTemplateResources retrieves all AWSEC2LaunchTemplate items from an AWS CloudFormation template
[ "GetAllAWSEC2LaunchTemplateResources", "retrieves", "all", "AWSEC2LaunchTemplate", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3355-L3364
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2LaunchTemplateWithName
func (t *Template) GetAWSEC2LaunchTemplateWithName(name string) (*resources.AWSEC2LaunchTemplate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2LaunchTemplate: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2LaunchTemplate not found", name) }
go
func (t *Template) GetAWSEC2LaunchTemplateWithName(name string) (*resources.AWSEC2LaunchTemplate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2LaunchTemplate: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2LaunchTemplate not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2LaunchTemplateWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2LaunchTemplate", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2LaunchTemplate", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2LaunchTemplateWithName retrieves all AWSEC2LaunchTemplate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2LaunchTemplateWithName", "retrieves", "all", "AWSEC2LaunchTemplate", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3368-L3376
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2NatGatewayResources
func (t *Template) GetAllAWSEC2NatGatewayResources() map[string]*resources.AWSEC2NatGateway { results := map[string]*resources.AWSEC2NatGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2NatGateway: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2NatGatewayResources() map[string]*resources.AWSEC2NatGateway { results := map[string]*resources.AWSEC2NatGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2NatGateway: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2NatGatewayResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2NatGateway", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2NatGateway", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2NatGateway", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2NatGatewayResources retrieves all AWSEC2NatGateway items from an AWS CloudFormation template
[ "GetAllAWSEC2NatGatewayResources", "retrieves", "all", "AWSEC2NatGateway", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3379-L3388
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2NatGatewayWithName
func (t *Template) GetAWSEC2NatGatewayWithName(name string) (*resources.AWSEC2NatGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2NatGateway: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2NatGateway not found", name) }
go
func (t *Template) GetAWSEC2NatGatewayWithName(name string) (*resources.AWSEC2NatGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2NatGateway: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2NatGateway not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2NatGatewayWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2NatGateway", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2NatGateway", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2NatGatewayWithName retrieves all AWSEC2NatGateway items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2NatGatewayWithName", "retrieves", "all", "AWSEC2NatGateway", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3392-L3400
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2NetworkAclResources
func (t *Template) GetAllAWSEC2NetworkAclResources() map[string]*resources.AWSEC2NetworkAcl { results := map[string]*resources.AWSEC2NetworkAcl{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2NetworkAcl: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2NetworkAclResources() map[string]*resources.AWSEC2NetworkAcl { results := map[string]*resources.AWSEC2NetworkAcl{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2NetworkAcl: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2NetworkAclResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2NetworkAcl", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2NetworkAcl", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2NetworkAcl", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2NetworkAclResources retrieves all AWSEC2NetworkAcl items from an AWS CloudFormation template
[ "GetAllAWSEC2NetworkAclResources", "retrieves", "all", "AWSEC2NetworkAcl", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3403-L3412
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2NetworkAclWithName
func (t *Template) GetAWSEC2NetworkAclWithName(name string) (*resources.AWSEC2NetworkAcl, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2NetworkAcl: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2NetworkAcl not found", name) }
go
func (t *Template) GetAWSEC2NetworkAclWithName(name string) (*resources.AWSEC2NetworkAcl, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2NetworkAcl: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2NetworkAcl not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2NetworkAclWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2NetworkAcl", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2NetworkAcl", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2NetworkAclWithName retrieves all AWSEC2NetworkAcl items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2NetworkAclWithName", "retrieves", "all", "AWSEC2NetworkAcl", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3416-L3424
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2NetworkAclEntryResources
func (t *Template) GetAllAWSEC2NetworkAclEntryResources() map[string]*resources.AWSEC2NetworkAclEntry { results := map[string]*resources.AWSEC2NetworkAclEntry{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2NetworkAclEntry: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2NetworkAclEntryResources() map[string]*resources.AWSEC2NetworkAclEntry { results := map[string]*resources.AWSEC2NetworkAclEntry{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2NetworkAclEntry: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2NetworkAclEntryResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2NetworkAclEntry", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2NetworkAclEntry", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2NetworkAclEntry", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2NetworkAclEntryResources retrieves all AWSEC2NetworkAclEntry items from an AWS CloudFormation template
[ "GetAllAWSEC2NetworkAclEntryResources", "retrieves", "all", "AWSEC2NetworkAclEntry", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3427-L3436
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2NetworkAclEntryWithName
func (t *Template) GetAWSEC2NetworkAclEntryWithName(name string) (*resources.AWSEC2NetworkAclEntry, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2NetworkAclEntry: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2NetworkAclEntry not found", name) }
go
func (t *Template) GetAWSEC2NetworkAclEntryWithName(name string) (*resources.AWSEC2NetworkAclEntry, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2NetworkAclEntry: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2NetworkAclEntry not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2NetworkAclEntryWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2NetworkAclEntry", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2NetworkAclEntry", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2NetworkAclEntryWithName retrieves all AWSEC2NetworkAclEntry items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2NetworkAclEntryWithName", "retrieves", "all", "AWSEC2NetworkAclEntry", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3440-L3448
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2NetworkInterfaceResources
func (t *Template) GetAllAWSEC2NetworkInterfaceResources() map[string]*resources.AWSEC2NetworkInterface { results := map[string]*resources.AWSEC2NetworkInterface{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2NetworkInterface: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2NetworkInterfaceResources() map[string]*resources.AWSEC2NetworkInterface { results := map[string]*resources.AWSEC2NetworkInterface{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2NetworkInterface: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2NetworkInterfaceResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2NetworkInterface", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2NetworkInterface", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2NetworkInterface", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2NetworkInterfaceResources retrieves all AWSEC2NetworkInterface items from an AWS CloudFormation template
[ "GetAllAWSEC2NetworkInterfaceResources", "retrieves", "all", "AWSEC2NetworkInterface", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3451-L3460
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2NetworkInterfaceWithName
func (t *Template) GetAWSEC2NetworkInterfaceWithName(name string) (*resources.AWSEC2NetworkInterface, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2NetworkInterface: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2NetworkInterface not found", name) }
go
func (t *Template) GetAWSEC2NetworkInterfaceWithName(name string) (*resources.AWSEC2NetworkInterface, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2NetworkInterface: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2NetworkInterface not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2NetworkInterfaceWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2NetworkInterface", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2NetworkInterface", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2NetworkInterfaceWithName retrieves all AWSEC2NetworkInterface items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2NetworkInterfaceWithName", "retrieves", "all", "AWSEC2NetworkInterface", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3464-L3472
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2NetworkInterfaceAttachmentResources
func (t *Template) GetAllAWSEC2NetworkInterfaceAttachmentResources() map[string]*resources.AWSEC2NetworkInterfaceAttachment { results := map[string]*resources.AWSEC2NetworkInterfaceAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2NetworkInterfaceAttachment: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2NetworkInterfaceAttachmentResources() map[string]*resources.AWSEC2NetworkInterfaceAttachment { results := map[string]*resources.AWSEC2NetworkInterfaceAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2NetworkInterfaceAttachment: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2NetworkInterfaceAttachmentResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2NetworkInterfaceAttachment", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2NetworkInterfaceAttachment", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2NetworkInterfaceAttachment", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2NetworkInterfaceAttachmentResources retrieves all AWSEC2NetworkInterfaceAttachment items from an AWS CloudFormation template
[ "GetAllAWSEC2NetworkInterfaceAttachmentResources", "retrieves", "all", "AWSEC2NetworkInterfaceAttachment", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3475-L3484
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2NetworkInterfaceAttachmentWithName
func (t *Template) GetAWSEC2NetworkInterfaceAttachmentWithName(name string) (*resources.AWSEC2NetworkInterfaceAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2NetworkInterfaceAttachment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2NetworkInterfaceAttachment not found", name) }
go
func (t *Template) GetAWSEC2NetworkInterfaceAttachmentWithName(name string) (*resources.AWSEC2NetworkInterfaceAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2NetworkInterfaceAttachment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2NetworkInterfaceAttachment not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2NetworkInterfaceAttachmentWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2NetworkInterfaceAttachment", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2NetworkInterfaceAttachment", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2NetworkInterfaceAttachmentWithName retrieves all AWSEC2NetworkInterfaceAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2NetworkInterfaceAttachmentWithName", "retrieves", "all", "AWSEC2NetworkInterfaceAttachment", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3488-L3496
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2NetworkInterfacePermissionResources
func (t *Template) GetAllAWSEC2NetworkInterfacePermissionResources() map[string]*resources.AWSEC2NetworkInterfacePermission { results := map[string]*resources.AWSEC2NetworkInterfacePermission{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2NetworkInterfacePermission: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2NetworkInterfacePermissionResources() map[string]*resources.AWSEC2NetworkInterfacePermission { results := map[string]*resources.AWSEC2NetworkInterfacePermission{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2NetworkInterfacePermission: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2NetworkInterfacePermissionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2NetworkInterfacePermission", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2NetworkInterfacePermission", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2NetworkInterfacePermission", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2NetworkInterfacePermissionResources retrieves all AWSEC2NetworkInterfacePermission items from an AWS CloudFormation template
[ "GetAllAWSEC2NetworkInterfacePermissionResources", "retrieves", "all", "AWSEC2NetworkInterfacePermission", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3499-L3508
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2NetworkInterfacePermissionWithName
func (t *Template) GetAWSEC2NetworkInterfacePermissionWithName(name string) (*resources.AWSEC2NetworkInterfacePermission, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2NetworkInterfacePermission: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2NetworkInterfacePermission not found", name) }
go
func (t *Template) GetAWSEC2NetworkInterfacePermissionWithName(name string) (*resources.AWSEC2NetworkInterfacePermission, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2NetworkInterfacePermission: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2NetworkInterfacePermission not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2NetworkInterfacePermissionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2NetworkInterfacePermission", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2NetworkInterfacePermission", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2NetworkInterfacePermissionWithName retrieves all AWSEC2NetworkInterfacePermission items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2NetworkInterfacePermissionWithName", "retrieves", "all", "AWSEC2NetworkInterfacePermission", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3512-L3520
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2PlacementGroupResources
func (t *Template) GetAllAWSEC2PlacementGroupResources() map[string]*resources.AWSEC2PlacementGroup { results := map[string]*resources.AWSEC2PlacementGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2PlacementGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2PlacementGroupResources() map[string]*resources.AWSEC2PlacementGroup { results := map[string]*resources.AWSEC2PlacementGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2PlacementGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2PlacementGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2PlacementGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2PlacementGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2PlacementGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2PlacementGroupResources retrieves all AWSEC2PlacementGroup items from an AWS CloudFormation template
[ "GetAllAWSEC2PlacementGroupResources", "retrieves", "all", "AWSEC2PlacementGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3523-L3532
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2PlacementGroupWithName
func (t *Template) GetAWSEC2PlacementGroupWithName(name string) (*resources.AWSEC2PlacementGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2PlacementGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2PlacementGroup not found", name) }
go
func (t *Template) GetAWSEC2PlacementGroupWithName(name string) (*resources.AWSEC2PlacementGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2PlacementGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2PlacementGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2PlacementGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2PlacementGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2PlacementGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2PlacementGroupWithName retrieves all AWSEC2PlacementGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2PlacementGroupWithName", "retrieves", "all", "AWSEC2PlacementGroup", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3536-L3544
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2RouteResources
func (t *Template) GetAllAWSEC2RouteResources() map[string]*resources.AWSEC2Route { results := map[string]*resources.AWSEC2Route{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2Route: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2RouteResources() map[string]*resources.AWSEC2Route { results := map[string]*resources.AWSEC2Route{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2Route: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2RouteResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2Route", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2Route", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2Route", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2RouteResources retrieves all AWSEC2Route items from an AWS CloudFormation template
[ "GetAllAWSEC2RouteResources", "retrieves", "all", "AWSEC2Route", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3547-L3556
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2RouteWithName
func (t *Template) GetAWSEC2RouteWithName(name string) (*resources.AWSEC2Route, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2Route: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2Route not found", name) }
go
func (t *Template) GetAWSEC2RouteWithName(name string) (*resources.AWSEC2Route, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2Route: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2Route not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2RouteWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2Route", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2Route", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2RouteWithName retrieves all AWSEC2Route items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2RouteWithName", "retrieves", "all", "AWSEC2Route", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3560-L3568
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2RouteTableResources
func (t *Template) GetAllAWSEC2RouteTableResources() map[string]*resources.AWSEC2RouteTable { results := map[string]*resources.AWSEC2RouteTable{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2RouteTable: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2RouteTableResources() map[string]*resources.AWSEC2RouteTable { results := map[string]*resources.AWSEC2RouteTable{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2RouteTable: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2RouteTableResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2RouteTable", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2RouteTable", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2RouteTable", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2RouteTableResources retrieves all AWSEC2RouteTable items from an AWS CloudFormation template
[ "GetAllAWSEC2RouteTableResources", "retrieves", "all", "AWSEC2RouteTable", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3571-L3580
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2RouteTableWithName
func (t *Template) GetAWSEC2RouteTableWithName(name string) (*resources.AWSEC2RouteTable, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2RouteTable: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2RouteTable not found", name) }
go
func (t *Template) GetAWSEC2RouteTableWithName(name string) (*resources.AWSEC2RouteTable, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2RouteTable: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2RouteTable not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2RouteTableWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2RouteTable", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2RouteTable", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2RouteTableWithName retrieves all AWSEC2RouteTable items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2RouteTableWithName", "retrieves", "all", "AWSEC2RouteTable", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3584-L3592
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2SecurityGroupResources
func (t *Template) GetAllAWSEC2SecurityGroupResources() map[string]*resources.AWSEC2SecurityGroup { results := map[string]*resources.AWSEC2SecurityGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SecurityGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2SecurityGroupResources() map[string]*resources.AWSEC2SecurityGroup { results := map[string]*resources.AWSEC2SecurityGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SecurityGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2SecurityGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SecurityGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SecurityGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SecurityGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2SecurityGroupResources retrieves all AWSEC2SecurityGroup items from an AWS CloudFormation template
[ "GetAllAWSEC2SecurityGroupResources", "retrieves", "all", "AWSEC2SecurityGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3595-L3604
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2SecurityGroupWithName
func (t *Template) GetAWSEC2SecurityGroupWithName(name string) (*resources.AWSEC2SecurityGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SecurityGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SecurityGroup not found", name) }
go
func (t *Template) GetAWSEC2SecurityGroupWithName(name string) (*resources.AWSEC2SecurityGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SecurityGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SecurityGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2SecurityGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2SecurityGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SecurityGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2SecurityGroupWithName retrieves all AWSEC2SecurityGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2SecurityGroupWithName", "retrieves", "all", "AWSEC2SecurityGroup", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3608-L3616
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2SecurityGroupEgressResources
func (t *Template) GetAllAWSEC2SecurityGroupEgressResources() map[string]*resources.AWSEC2SecurityGroupEgress { results := map[string]*resources.AWSEC2SecurityGroupEgress{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SecurityGroupEgress: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2SecurityGroupEgressResources() map[string]*resources.AWSEC2SecurityGroupEgress { results := map[string]*resources.AWSEC2SecurityGroupEgress{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SecurityGroupEgress: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2SecurityGroupEgressResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SecurityGroupEgress", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SecurityGroupEgress", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SecurityGroupEgress", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2SecurityGroupEgressResources retrieves all AWSEC2SecurityGroupEgress items from an AWS CloudFormation template
[ "GetAllAWSEC2SecurityGroupEgressResources", "retrieves", "all", "AWSEC2SecurityGroupEgress", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3619-L3628
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2SecurityGroupEgressWithName
func (t *Template) GetAWSEC2SecurityGroupEgressWithName(name string) (*resources.AWSEC2SecurityGroupEgress, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SecurityGroupEgress: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SecurityGroupEgress not found", name) }
go
func (t *Template) GetAWSEC2SecurityGroupEgressWithName(name string) (*resources.AWSEC2SecurityGroupEgress, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SecurityGroupEgress: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SecurityGroupEgress not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2SecurityGroupEgressWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2SecurityGroupEgress", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SecurityGroupEgress", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2SecurityGroupEgressWithName retrieves all AWSEC2SecurityGroupEgress items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2SecurityGroupEgressWithName", "retrieves", "all", "AWSEC2SecurityGroupEgress", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3632-L3640
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2SecurityGroupIngressResources
func (t *Template) GetAllAWSEC2SecurityGroupIngressResources() map[string]*resources.AWSEC2SecurityGroupIngress { results := map[string]*resources.AWSEC2SecurityGroupIngress{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SecurityGroupIngress: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2SecurityGroupIngressResources() map[string]*resources.AWSEC2SecurityGroupIngress { results := map[string]*resources.AWSEC2SecurityGroupIngress{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SecurityGroupIngress: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2SecurityGroupIngressResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SecurityGroupIngress", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SecurityGroupIngress", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SecurityGroupIngress", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2SecurityGroupIngressResources retrieves all AWSEC2SecurityGroupIngress items from an AWS CloudFormation template
[ "GetAllAWSEC2SecurityGroupIngressResources", "retrieves", "all", "AWSEC2SecurityGroupIngress", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3643-L3652
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2SecurityGroupIngressWithName
func (t *Template) GetAWSEC2SecurityGroupIngressWithName(name string) (*resources.AWSEC2SecurityGroupIngress, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SecurityGroupIngress: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SecurityGroupIngress not found", name) }
go
func (t *Template) GetAWSEC2SecurityGroupIngressWithName(name string) (*resources.AWSEC2SecurityGroupIngress, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SecurityGroupIngress: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SecurityGroupIngress not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2SecurityGroupIngressWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2SecurityGroupIngress", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SecurityGroupIngress", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2SecurityGroupIngressWithName retrieves all AWSEC2SecurityGroupIngress items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2SecurityGroupIngressWithName", "retrieves", "all", "AWSEC2SecurityGroupIngress", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3656-L3664
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2SpotFleetResources
func (t *Template) GetAllAWSEC2SpotFleetResources() map[string]*resources.AWSEC2SpotFleet { results := map[string]*resources.AWSEC2SpotFleet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SpotFleet: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2SpotFleetResources() map[string]*resources.AWSEC2SpotFleet { results := map[string]*resources.AWSEC2SpotFleet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SpotFleet: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2SpotFleetResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SpotFleet", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SpotFleet", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SpotFleet", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2SpotFleetResources retrieves all AWSEC2SpotFleet items from an AWS CloudFormation template
[ "GetAllAWSEC2SpotFleetResources", "retrieves", "all", "AWSEC2SpotFleet", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3667-L3676
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2SpotFleetWithName
func (t *Template) GetAWSEC2SpotFleetWithName(name string) (*resources.AWSEC2SpotFleet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SpotFleet: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SpotFleet not found", name) }
go
func (t *Template) GetAWSEC2SpotFleetWithName(name string) (*resources.AWSEC2SpotFleet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SpotFleet: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SpotFleet not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2SpotFleetWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2SpotFleet", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SpotFleet", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2SpotFleetWithName retrieves all AWSEC2SpotFleet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2SpotFleetWithName", "retrieves", "all", "AWSEC2SpotFleet", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3680-L3688
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2SubnetResources
func (t *Template) GetAllAWSEC2SubnetResources() map[string]*resources.AWSEC2Subnet { results := map[string]*resources.AWSEC2Subnet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2Subnet: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2SubnetResources() map[string]*resources.AWSEC2Subnet { results := map[string]*resources.AWSEC2Subnet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2Subnet: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2SubnetResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2Subnet", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2Subnet", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2Subnet", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2SubnetResources retrieves all AWSEC2Subnet items from an AWS CloudFormation template
[ "GetAllAWSEC2SubnetResources", "retrieves", "all", "AWSEC2Subnet", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3691-L3700
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2SubnetWithName
func (t *Template) GetAWSEC2SubnetWithName(name string) (*resources.AWSEC2Subnet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2Subnet: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2Subnet not found", name) }
go
func (t *Template) GetAWSEC2SubnetWithName(name string) (*resources.AWSEC2Subnet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2Subnet: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2Subnet not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2SubnetWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2Subnet", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2Subnet", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2SubnetWithName retrieves all AWSEC2Subnet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2SubnetWithName", "retrieves", "all", "AWSEC2Subnet", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3704-L3712
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2SubnetCidrBlockResources
func (t *Template) GetAllAWSEC2SubnetCidrBlockResources() map[string]*resources.AWSEC2SubnetCidrBlock { results := map[string]*resources.AWSEC2SubnetCidrBlock{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SubnetCidrBlock: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2SubnetCidrBlockResources() map[string]*resources.AWSEC2SubnetCidrBlock { results := map[string]*resources.AWSEC2SubnetCidrBlock{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SubnetCidrBlock: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2SubnetCidrBlockResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SubnetCidrBlock", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SubnetCidrBlock", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SubnetCidrBlock", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2SubnetCidrBlockResources retrieves all AWSEC2SubnetCidrBlock items from an AWS CloudFormation template
[ "GetAllAWSEC2SubnetCidrBlockResources", "retrieves", "all", "AWSEC2SubnetCidrBlock", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3715-L3724
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2SubnetCidrBlockWithName
func (t *Template) GetAWSEC2SubnetCidrBlockWithName(name string) (*resources.AWSEC2SubnetCidrBlock, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SubnetCidrBlock: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SubnetCidrBlock not found", name) }
go
func (t *Template) GetAWSEC2SubnetCidrBlockWithName(name string) (*resources.AWSEC2SubnetCidrBlock, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SubnetCidrBlock: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SubnetCidrBlock not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2SubnetCidrBlockWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2SubnetCidrBlock", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SubnetCidrBlock", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2SubnetCidrBlockWithName retrieves all AWSEC2SubnetCidrBlock items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2SubnetCidrBlockWithName", "retrieves", "all", "AWSEC2SubnetCidrBlock", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3728-L3736
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2SubnetNetworkAclAssociationResources
func (t *Template) GetAllAWSEC2SubnetNetworkAclAssociationResources() map[string]*resources.AWSEC2SubnetNetworkAclAssociation { results := map[string]*resources.AWSEC2SubnetNetworkAclAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SubnetNetworkAclAssociation: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2SubnetNetworkAclAssociationResources() map[string]*resources.AWSEC2SubnetNetworkAclAssociation { results := map[string]*resources.AWSEC2SubnetNetworkAclAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SubnetNetworkAclAssociation: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2SubnetNetworkAclAssociationResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SubnetNetworkAclAssociation", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SubnetNetworkAclAssociation", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SubnetNetworkAclAssociation", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2SubnetNetworkAclAssociationResources retrieves all AWSEC2SubnetNetworkAclAssociation items from an AWS CloudFormation template
[ "GetAllAWSEC2SubnetNetworkAclAssociationResources", "retrieves", "all", "AWSEC2SubnetNetworkAclAssociation", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3739-L3748
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2SubnetNetworkAclAssociationWithName
func (t *Template) GetAWSEC2SubnetNetworkAclAssociationWithName(name string) (*resources.AWSEC2SubnetNetworkAclAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SubnetNetworkAclAssociation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SubnetNetworkAclAssociation not found", name) }
go
func (t *Template) GetAWSEC2SubnetNetworkAclAssociationWithName(name string) (*resources.AWSEC2SubnetNetworkAclAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SubnetNetworkAclAssociation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SubnetNetworkAclAssociation not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2SubnetNetworkAclAssociationWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2SubnetNetworkAclAssociation", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SubnetNetworkAclAssociation", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2SubnetNetworkAclAssociationWithName retrieves all AWSEC2SubnetNetworkAclAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2SubnetNetworkAclAssociationWithName", "retrieves", "all", "AWSEC2SubnetNetworkAclAssociation", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3752-L3760
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2SubnetRouteTableAssociationResources
func (t *Template) GetAllAWSEC2SubnetRouteTableAssociationResources() map[string]*resources.AWSEC2SubnetRouteTableAssociation { results := map[string]*resources.AWSEC2SubnetRouteTableAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SubnetRouteTableAssociation: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2SubnetRouteTableAssociationResources() map[string]*resources.AWSEC2SubnetRouteTableAssociation { results := map[string]*resources.AWSEC2SubnetRouteTableAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2SubnetRouteTableAssociation: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2SubnetRouteTableAssociationResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SubnetRouteTableAssociation", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2SubnetRouteTableAssociation", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SubnetRouteTableAssociation", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2SubnetRouteTableAssociationResources retrieves all AWSEC2SubnetRouteTableAssociation items from an AWS CloudFormation template
[ "GetAllAWSEC2SubnetRouteTableAssociationResources", "retrieves", "all", "AWSEC2SubnetRouteTableAssociation", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3763-L3772
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2SubnetRouteTableAssociationWithName
func (t *Template) GetAWSEC2SubnetRouteTableAssociationWithName(name string) (*resources.AWSEC2SubnetRouteTableAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SubnetRouteTableAssociation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SubnetRouteTableAssociation not found", name) }
go
func (t *Template) GetAWSEC2SubnetRouteTableAssociationWithName(name string) (*resources.AWSEC2SubnetRouteTableAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2SubnetRouteTableAssociation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2SubnetRouteTableAssociation not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2SubnetRouteTableAssociationWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2SubnetRouteTableAssociation", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2SubnetRouteTableAssociation", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2SubnetRouteTableAssociationWithName retrieves all AWSEC2SubnetRouteTableAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2SubnetRouteTableAssociationWithName", "retrieves", "all", "AWSEC2SubnetRouteTableAssociation", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3776-L3784
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2TransitGatewayResources
func (t *Template) GetAllAWSEC2TransitGatewayResources() map[string]*resources.AWSEC2TransitGateway { results := map[string]*resources.AWSEC2TransitGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TransitGateway: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2TransitGatewayResources() map[string]*resources.AWSEC2TransitGateway { results := map[string]*resources.AWSEC2TransitGateway{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TransitGateway: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2TransitGatewayResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TransitGateway", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TransitGateway", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TransitGateway", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2TransitGatewayResources retrieves all AWSEC2TransitGateway items from an AWS CloudFormation template
[ "GetAllAWSEC2TransitGatewayResources", "retrieves", "all", "AWSEC2TransitGateway", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3787-L3796
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2TransitGatewayWithName
func (t *Template) GetAWSEC2TransitGatewayWithName(name string) (*resources.AWSEC2TransitGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TransitGateway: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TransitGateway not found", name) }
go
func (t *Template) GetAWSEC2TransitGatewayWithName(name string) (*resources.AWSEC2TransitGateway, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TransitGateway: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TransitGateway not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2TransitGatewayWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2TransitGateway", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TransitGateway", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2TransitGatewayWithName retrieves all AWSEC2TransitGateway items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2TransitGatewayWithName", "retrieves", "all", "AWSEC2TransitGateway", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3800-L3808
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2TransitGatewayAttachmentResources
func (t *Template) GetAllAWSEC2TransitGatewayAttachmentResources() map[string]*resources.AWSEC2TransitGatewayAttachment { results := map[string]*resources.AWSEC2TransitGatewayAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayAttachment: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2TransitGatewayAttachmentResources() map[string]*resources.AWSEC2TransitGatewayAttachment { results := map[string]*resources.AWSEC2TransitGatewayAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayAttachment: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2TransitGatewayAttachmentResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TransitGatewayAttachment", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TransitGatewayAttachment", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TransitGatewayAttachment", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2TransitGatewayAttachmentResources retrieves all AWSEC2TransitGatewayAttachment items from an AWS CloudFormation template
[ "GetAllAWSEC2TransitGatewayAttachmentResources", "retrieves", "all", "AWSEC2TransitGatewayAttachment", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3811-L3820
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2TransitGatewayAttachmentWithName
func (t *Template) GetAWSEC2TransitGatewayAttachmentWithName(name string) (*resources.AWSEC2TransitGatewayAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayAttachment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayAttachment not found", name) }
go
func (t *Template) GetAWSEC2TransitGatewayAttachmentWithName(name string) (*resources.AWSEC2TransitGatewayAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayAttachment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayAttachment not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2TransitGatewayAttachmentWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2TransitGatewayAttachment", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TransitGatewayAttachment", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2TransitGatewayAttachmentWithName retrieves all AWSEC2TransitGatewayAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2TransitGatewayAttachmentWithName", "retrieves", "all", "AWSEC2TransitGatewayAttachment", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3824-L3832
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2TransitGatewayRouteResources
func (t *Template) GetAllAWSEC2TransitGatewayRouteResources() map[string]*resources.AWSEC2TransitGatewayRoute { results := map[string]*resources.AWSEC2TransitGatewayRoute{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRoute: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2TransitGatewayRouteResources() map[string]*resources.AWSEC2TransitGatewayRoute { results := map[string]*resources.AWSEC2TransitGatewayRoute{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRoute: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2TransitGatewayRouteResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TransitGatewayRoute", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TransitGatewayRoute", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TransitGatewayRoute", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2TransitGatewayRouteResources retrieves all AWSEC2TransitGatewayRoute items from an AWS CloudFormation template
[ "GetAllAWSEC2TransitGatewayRouteResources", "retrieves", "all", "AWSEC2TransitGatewayRoute", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3835-L3844
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2TransitGatewayRouteWithName
func (t *Template) GetAWSEC2TransitGatewayRouteWithName(name string) (*resources.AWSEC2TransitGatewayRoute, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRoute: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRoute not found", name) }
go
func (t *Template) GetAWSEC2TransitGatewayRouteWithName(name string) (*resources.AWSEC2TransitGatewayRoute, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRoute: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRoute not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2TransitGatewayRouteWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2TransitGatewayRoute", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TransitGatewayRoute", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2TransitGatewayRouteWithName retrieves all AWSEC2TransitGatewayRoute items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2TransitGatewayRouteWithName", "retrieves", "all", "AWSEC2TransitGatewayRoute", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3848-L3856
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2TransitGatewayRouteTableResources
func (t *Template) GetAllAWSEC2TransitGatewayRouteTableResources() map[string]*resources.AWSEC2TransitGatewayRouteTable { results := map[string]*resources.AWSEC2TransitGatewayRouteTable{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRouteTable: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2TransitGatewayRouteTableResources() map[string]*resources.AWSEC2TransitGatewayRouteTable { results := map[string]*resources.AWSEC2TransitGatewayRouteTable{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRouteTable: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2TransitGatewayRouteTableResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TransitGatewayRouteTable", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TransitGatewayRouteTable", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TransitGatewayRouteTable", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2TransitGatewayRouteTableResources retrieves all AWSEC2TransitGatewayRouteTable items from an AWS CloudFormation template
[ "GetAllAWSEC2TransitGatewayRouteTableResources", "retrieves", "all", "AWSEC2TransitGatewayRouteTable", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3859-L3868
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2TransitGatewayRouteTableWithName
func (t *Template) GetAWSEC2TransitGatewayRouteTableWithName(name string) (*resources.AWSEC2TransitGatewayRouteTable, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRouteTable: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRouteTable not found", name) }
go
func (t *Template) GetAWSEC2TransitGatewayRouteTableWithName(name string) (*resources.AWSEC2TransitGatewayRouteTable, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRouteTable: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRouteTable not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2TransitGatewayRouteTableWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2TransitGatewayRouteTable", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TransitGatewayRouteTable", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2TransitGatewayRouteTableWithName retrieves all AWSEC2TransitGatewayRouteTable items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2TransitGatewayRouteTableWithName", "retrieves", "all", "AWSEC2TransitGatewayRouteTable", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3872-L3880
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2TransitGatewayRouteTableAssociationResources
func (t *Template) GetAllAWSEC2TransitGatewayRouteTableAssociationResources() map[string]*resources.AWSEC2TransitGatewayRouteTableAssociation { results := map[string]*resources.AWSEC2TransitGatewayRouteTableAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRouteTableAssociation: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2TransitGatewayRouteTableAssociationResources() map[string]*resources.AWSEC2TransitGatewayRouteTableAssociation { results := map[string]*resources.AWSEC2TransitGatewayRouteTableAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRouteTableAssociation: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2TransitGatewayRouteTableAssociationResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TransitGatewayRouteTableAssociation", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TransitGatewayRouteTableAssociation", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TransitGatewayRouteTableAssociation", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2TransitGatewayRouteTableAssociationResources retrieves all AWSEC2TransitGatewayRouteTableAssociation items from an AWS CloudFormation template
[ "GetAllAWSEC2TransitGatewayRouteTableAssociationResources", "retrieves", "all", "AWSEC2TransitGatewayRouteTableAssociation", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3883-L3892
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2TransitGatewayRouteTableAssociationWithName
func (t *Template) GetAWSEC2TransitGatewayRouteTableAssociationWithName(name string) (*resources.AWSEC2TransitGatewayRouteTableAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRouteTableAssociation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRouteTableAssociation not found", name) }
go
func (t *Template) GetAWSEC2TransitGatewayRouteTableAssociationWithName(name string) (*resources.AWSEC2TransitGatewayRouteTableAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRouteTableAssociation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRouteTableAssociation not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2TransitGatewayRouteTableAssociationWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2TransitGatewayRouteTableAssociation", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TransitGatewayRouteTableAssociation", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2TransitGatewayRouteTableAssociationWithName retrieves all AWSEC2TransitGatewayRouteTableAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2TransitGatewayRouteTableAssociationWithName", "retrieves", "all", "AWSEC2TransitGatewayRouteTableAssociation", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3896-L3904
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2TransitGatewayRouteTablePropagationResources
func (t *Template) GetAllAWSEC2TransitGatewayRouteTablePropagationResources() map[string]*resources.AWSEC2TransitGatewayRouteTablePropagation { results := map[string]*resources.AWSEC2TransitGatewayRouteTablePropagation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRouteTablePropagation: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2TransitGatewayRouteTablePropagationResources() map[string]*resources.AWSEC2TransitGatewayRouteTablePropagation { results := map[string]*resources.AWSEC2TransitGatewayRouteTablePropagation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRouteTablePropagation: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2TransitGatewayRouteTablePropagationResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TransitGatewayRouteTablePropagation", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TransitGatewayRouteTablePropagation", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TransitGatewayRouteTablePropagation", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2TransitGatewayRouteTablePropagationResources retrieves all AWSEC2TransitGatewayRouteTablePropagation items from an AWS CloudFormation template
[ "GetAllAWSEC2TransitGatewayRouteTablePropagationResources", "retrieves", "all", "AWSEC2TransitGatewayRouteTablePropagation", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3907-L3916
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2TransitGatewayRouteTablePropagationWithName
func (t *Template) GetAWSEC2TransitGatewayRouteTablePropagationWithName(name string) (*resources.AWSEC2TransitGatewayRouteTablePropagation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRouteTablePropagation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRouteTablePropagation not found", name) }
go
func (t *Template) GetAWSEC2TransitGatewayRouteTablePropagationWithName(name string) (*resources.AWSEC2TransitGatewayRouteTablePropagation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TransitGatewayRouteTablePropagation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRouteTablePropagation not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2TransitGatewayRouteTablePropagationWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2TransitGatewayRouteTablePropagation", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TransitGatewayRouteTablePropagation", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2TransitGatewayRouteTablePropagationWithName retrieves all AWSEC2TransitGatewayRouteTablePropagation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2TransitGatewayRouteTablePropagationWithName", "retrieves", "all", "AWSEC2TransitGatewayRouteTablePropagation", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3920-L3928
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2TrunkInterfaceAssociationResources
func (t *Template) GetAllAWSEC2TrunkInterfaceAssociationResources() map[string]*resources.AWSEC2TrunkInterfaceAssociation { results := map[string]*resources.AWSEC2TrunkInterfaceAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TrunkInterfaceAssociation: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2TrunkInterfaceAssociationResources() map[string]*resources.AWSEC2TrunkInterfaceAssociation { results := map[string]*resources.AWSEC2TrunkInterfaceAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2TrunkInterfaceAssociation: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2TrunkInterfaceAssociationResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TrunkInterfaceAssociation", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2TrunkInterfaceAssociation", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TrunkInterfaceAssociation", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2TrunkInterfaceAssociationResources retrieves all AWSEC2TrunkInterfaceAssociation items from an AWS CloudFormation template
[ "GetAllAWSEC2TrunkInterfaceAssociationResources", "retrieves", "all", "AWSEC2TrunkInterfaceAssociation", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3931-L3940
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2TrunkInterfaceAssociationWithName
func (t *Template) GetAWSEC2TrunkInterfaceAssociationWithName(name string) (*resources.AWSEC2TrunkInterfaceAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TrunkInterfaceAssociation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TrunkInterfaceAssociation not found", name) }
go
func (t *Template) GetAWSEC2TrunkInterfaceAssociationWithName(name string) (*resources.AWSEC2TrunkInterfaceAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2TrunkInterfaceAssociation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2TrunkInterfaceAssociation not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2TrunkInterfaceAssociationWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2TrunkInterfaceAssociation", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2TrunkInterfaceAssociation", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2TrunkInterfaceAssociationWithName retrieves all AWSEC2TrunkInterfaceAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2TrunkInterfaceAssociationWithName", "retrieves", "all", "AWSEC2TrunkInterfaceAssociation", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3944-L3952
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2VPCResources
func (t *Template) GetAllAWSEC2VPCResources() map[string]*resources.AWSEC2VPC { results := map[string]*resources.AWSEC2VPC{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2VPC: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2VPCResources() map[string]*resources.AWSEC2VPC { results := map[string]*resources.AWSEC2VPC{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2VPC: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2VPCResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2VPC", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2VPC", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2VPC", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2VPCResources retrieves all AWSEC2VPC items from an AWS CloudFormation template
[ "GetAllAWSEC2VPCResources", "retrieves", "all", "AWSEC2VPC", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3955-L3964
train
awslabs/goformation
cloudformation/all.go
GetAWSEC2VPCWithName
func (t *Template) GetAWSEC2VPCWithName(name string) (*resources.AWSEC2VPC, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2VPC: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2VPC not found", name) }
go
func (t *Template) GetAWSEC2VPCWithName(name string) (*resources.AWSEC2VPC, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSEC2VPC: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSEC2VPC not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSEC2VPCWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSEC2VPC", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2VPC", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSEC2VPCWithName retrieves all AWSEC2VPC items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSEC2VPCWithName", "retrieves", "all", "AWSEC2VPC", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "found", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3968-L3976
train
awslabs/goformation
cloudformation/all.go
GetAllAWSEC2VPCCidrBlockResources
func (t *Template) GetAllAWSEC2VPCCidrBlockResources() map[string]*resources.AWSEC2VPCCidrBlock { results := map[string]*resources.AWSEC2VPCCidrBlock{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2VPCCidrBlock: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSEC2VPCCidrBlockResources() map[string]*resources.AWSEC2VPCCidrBlock { results := map[string]*resources.AWSEC2VPCCidrBlock{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSEC2VPCCidrBlock: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSEC2VPCCidrBlockResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2VPCCidrBlock", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSEC2VPCCidrBlock", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSEC2VPCCidrBlock", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSEC2VPCCidrBlockResources retrieves all AWSEC2VPCCidrBlock items from an AWS CloudFormation template
[ "GetAllAWSEC2VPCCidrBlockResources", "retrieves", "all", "AWSEC2VPCCidrBlock", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3979-L3988
train