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
GetAWSGlueCrawlerWithName
func (t *Template) GetAWSGlueCrawlerWithName(name string) (*resources.AWSGlueCrawler, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGlueCrawler: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGlueCrawler not found", name) }
go
func (t *Template) GetAWSGlueCrawlerWithName(name string) (*resources.AWSGlueCrawler, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGlueCrawler: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGlueCrawler not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGlueCrawlerWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGlueCrawler", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGlueCrawler", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGlueCrawlerWithName retrieves all AWSGlueCrawler items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGlueCrawlerWithName", "retrieves", "all", "AWSGlueCrawler", "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#L5192-L5200
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGlueDatabaseResources
func (t *Template) GetAllAWSGlueDatabaseResources() map[string]*resources.AWSGlueDatabase { results := map[string]*resources.AWSGlueDatabase{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGlueDatabase: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGlueDatabaseResources() map[string]*resources.AWSGlueDatabase { results := map[string]*resources.AWSGlueDatabase{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGlueDatabase: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGlueDatabaseResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGlueDatabase", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGlueDatabase", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGlueDatabase", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGlueDatabaseResources retrieves all AWSGlueDatabase items from an AWS CloudFormation template
[ "GetAllAWSGlueDatabaseResources", "retrieves", "all", "AWSGlueDatabase", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5203-L5212
train
awslabs/goformation
cloudformation/all.go
GetAWSGlueDatabaseWithName
func (t *Template) GetAWSGlueDatabaseWithName(name string) (*resources.AWSGlueDatabase, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGlueDatabase: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGlueDatabase not found", name) }
go
func (t *Template) GetAWSGlueDatabaseWithName(name string) (*resources.AWSGlueDatabase, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGlueDatabase: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGlueDatabase not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGlueDatabaseWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGlueDatabase", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGlueDatabase", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGlueDatabaseWithName retrieves all AWSGlueDatabase items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGlueDatabaseWithName", "retrieves", "all", "AWSGlueDatabase", "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#L5216-L5224
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGlueDevEndpointResources
func (t *Template) GetAllAWSGlueDevEndpointResources() map[string]*resources.AWSGlueDevEndpoint { results := map[string]*resources.AWSGlueDevEndpoint{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGlueDevEndpoint: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGlueDevEndpointResources() map[string]*resources.AWSGlueDevEndpoint { results := map[string]*resources.AWSGlueDevEndpoint{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGlueDevEndpoint: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGlueDevEndpointResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGlueDevEndpoint", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGlueDevEndpoint", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGlueDevEndpoint", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGlueDevEndpointResources retrieves all AWSGlueDevEndpoint items from an AWS CloudFormation template
[ "GetAllAWSGlueDevEndpointResources", "retrieves", "all", "AWSGlueDevEndpoint", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5227-L5236
train
awslabs/goformation
cloudformation/all.go
GetAWSGlueDevEndpointWithName
func (t *Template) GetAWSGlueDevEndpointWithName(name string) (*resources.AWSGlueDevEndpoint, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGlueDevEndpoint: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGlueDevEndpoint not found", name) }
go
func (t *Template) GetAWSGlueDevEndpointWithName(name string) (*resources.AWSGlueDevEndpoint, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGlueDevEndpoint: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGlueDevEndpoint not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGlueDevEndpointWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGlueDevEndpoint", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGlueDevEndpoint", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGlueDevEndpointWithName retrieves all AWSGlueDevEndpoint items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGlueDevEndpointWithName", "retrieves", "all", "AWSGlueDevEndpoint", "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#L5240-L5248
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGlueJobResources
func (t *Template) GetAllAWSGlueJobResources() map[string]*resources.AWSGlueJob { results := map[string]*resources.AWSGlueJob{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGlueJob: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGlueJobResources() map[string]*resources.AWSGlueJob { results := map[string]*resources.AWSGlueJob{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGlueJob: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGlueJobResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGlueJob", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGlueJob", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGlueJob", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGlueJobResources retrieves all AWSGlueJob items from an AWS CloudFormation template
[ "GetAllAWSGlueJobResources", "retrieves", "all", "AWSGlueJob", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5251-L5260
train
awslabs/goformation
cloudformation/all.go
GetAWSGlueJobWithName
func (t *Template) GetAWSGlueJobWithName(name string) (*resources.AWSGlueJob, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGlueJob: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGlueJob not found", name) }
go
func (t *Template) GetAWSGlueJobWithName(name string) (*resources.AWSGlueJob, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGlueJob: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGlueJob not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGlueJobWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGlueJob", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGlueJob", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGlueJobWithName retrieves all AWSGlueJob items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGlueJobWithName", "retrieves", "all", "AWSGlueJob", "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#L5264-L5272
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGluePartitionResources
func (t *Template) GetAllAWSGluePartitionResources() map[string]*resources.AWSGluePartition { results := map[string]*resources.AWSGluePartition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGluePartition: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGluePartitionResources() map[string]*resources.AWSGluePartition { results := map[string]*resources.AWSGluePartition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGluePartition: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGluePartitionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGluePartition", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGluePartition", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGluePartition", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGluePartitionResources retrieves all AWSGluePartition items from an AWS CloudFormation template
[ "GetAllAWSGluePartitionResources", "retrieves", "all", "AWSGluePartition", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5275-L5284
train
awslabs/goformation
cloudformation/all.go
GetAWSGluePartitionWithName
func (t *Template) GetAWSGluePartitionWithName(name string) (*resources.AWSGluePartition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGluePartition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGluePartition not found", name) }
go
func (t *Template) GetAWSGluePartitionWithName(name string) (*resources.AWSGluePartition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGluePartition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGluePartition not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGluePartitionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGluePartition", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGluePartition", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGluePartitionWithName retrieves all AWSGluePartition items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGluePartitionWithName", "retrieves", "all", "AWSGluePartition", "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#L5288-L5296
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGlueTableResources
func (t *Template) GetAllAWSGlueTableResources() map[string]*resources.AWSGlueTable { results := map[string]*resources.AWSGlueTable{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGlueTable: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGlueTableResources() map[string]*resources.AWSGlueTable { results := map[string]*resources.AWSGlueTable{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGlueTable: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGlueTableResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGlueTable", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGlueTable", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGlueTable", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGlueTableResources retrieves all AWSGlueTable items from an AWS CloudFormation template
[ "GetAllAWSGlueTableResources", "retrieves", "all", "AWSGlueTable", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5299-L5308
train
awslabs/goformation
cloudformation/all.go
GetAWSGlueTableWithName
func (t *Template) GetAWSGlueTableWithName(name string) (*resources.AWSGlueTable, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGlueTable: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGlueTable not found", name) }
go
func (t *Template) GetAWSGlueTableWithName(name string) (*resources.AWSGlueTable, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGlueTable: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGlueTable not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGlueTableWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGlueTable", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGlueTable", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGlueTableWithName retrieves all AWSGlueTable items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGlueTableWithName", "retrieves", "all", "AWSGlueTable", "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#L5312-L5320
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGlueTriggerResources
func (t *Template) GetAllAWSGlueTriggerResources() map[string]*resources.AWSGlueTrigger { results := map[string]*resources.AWSGlueTrigger{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGlueTrigger: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGlueTriggerResources() map[string]*resources.AWSGlueTrigger { results := map[string]*resources.AWSGlueTrigger{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGlueTrigger: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGlueTriggerResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGlueTrigger", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGlueTrigger", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGlueTrigger", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGlueTriggerResources retrieves all AWSGlueTrigger items from an AWS CloudFormation template
[ "GetAllAWSGlueTriggerResources", "retrieves", "all", "AWSGlueTrigger", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5323-L5332
train
awslabs/goformation
cloudformation/all.go
GetAWSGlueTriggerWithName
func (t *Template) GetAWSGlueTriggerWithName(name string) (*resources.AWSGlueTrigger, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGlueTrigger: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGlueTrigger not found", name) }
go
func (t *Template) GetAWSGlueTriggerWithName(name string) (*resources.AWSGlueTrigger, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGlueTrigger: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGlueTrigger not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGlueTriggerWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGlueTrigger", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGlueTrigger", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGlueTriggerWithName retrieves all AWSGlueTrigger items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGlueTriggerWithName", "retrieves", "all", "AWSGlueTrigger", "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#L5336-L5344
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassConnectorDefinitionResources
func (t *Template) GetAllAWSGreengrassConnectorDefinitionResources() map[string]*resources.AWSGreengrassConnectorDefinition { results := map[string]*resources.AWSGreengrassConnectorDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassConnectorDefinition: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassConnectorDefinitionResources() map[string]*resources.AWSGreengrassConnectorDefinition { results := map[string]*resources.AWSGreengrassConnectorDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassConnectorDefinition: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassConnectorDefinitionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassConnectorDefinition", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassConnectorDefinition", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassConnectorDefinition", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassConnectorDefinitionResources retrieves all AWSGreengrassConnectorDefinition items from an AWS CloudFormation template
[ "GetAllAWSGreengrassConnectorDefinitionResources", "retrieves", "all", "AWSGreengrassConnectorDefinition", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5347-L5356
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassConnectorDefinitionWithName
func (t *Template) GetAWSGreengrassConnectorDefinitionWithName(name string) (*resources.AWSGreengrassConnectorDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassConnectorDefinition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassConnectorDefinition not found", name) }
go
func (t *Template) GetAWSGreengrassConnectorDefinitionWithName(name string) (*resources.AWSGreengrassConnectorDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassConnectorDefinition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassConnectorDefinition not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassConnectorDefinitionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassConnectorDefinition", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassConnectorDefinition", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassConnectorDefinitionWithName retrieves all AWSGreengrassConnectorDefinition items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassConnectorDefinitionWithName", "retrieves", "all", "AWSGreengrassConnectorDefinition", "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#L5360-L5368
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassConnectorDefinitionVersionResources
func (t *Template) GetAllAWSGreengrassConnectorDefinitionVersionResources() map[string]*resources.AWSGreengrassConnectorDefinitionVersion { results := map[string]*resources.AWSGreengrassConnectorDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassConnectorDefinitionVersion: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassConnectorDefinitionVersionResources() map[string]*resources.AWSGreengrassConnectorDefinitionVersion { results := map[string]*resources.AWSGreengrassConnectorDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassConnectorDefinitionVersion: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassConnectorDefinitionVersionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassConnectorDefinitionVersion", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassConnectorDefinitionVersion", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassConnectorDefinitionVersion", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassConnectorDefinitionVersionResources retrieves all AWSGreengrassConnectorDefinitionVersion items from an AWS CloudFormation template
[ "GetAllAWSGreengrassConnectorDefinitionVersionResources", "retrieves", "all", "AWSGreengrassConnectorDefinitionVersion", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5371-L5380
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassConnectorDefinitionVersionWithName
func (t *Template) GetAWSGreengrassConnectorDefinitionVersionWithName(name string) (*resources.AWSGreengrassConnectorDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassConnectorDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassConnectorDefinitionVersion not found", name) }
go
func (t *Template) GetAWSGreengrassConnectorDefinitionVersionWithName(name string) (*resources.AWSGreengrassConnectorDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassConnectorDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassConnectorDefinitionVersion not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassConnectorDefinitionVersionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassConnectorDefinitionVersion", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassConnectorDefinitionVersion", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassConnectorDefinitionVersionWithName retrieves all AWSGreengrassConnectorDefinitionVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassConnectorDefinitionVersionWithName", "retrieves", "all", "AWSGreengrassConnectorDefinitionVersion", "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#L5384-L5392
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassCoreDefinitionResources
func (t *Template) GetAllAWSGreengrassCoreDefinitionResources() map[string]*resources.AWSGreengrassCoreDefinition { results := map[string]*resources.AWSGreengrassCoreDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassCoreDefinition: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassCoreDefinitionResources() map[string]*resources.AWSGreengrassCoreDefinition { results := map[string]*resources.AWSGreengrassCoreDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassCoreDefinition: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassCoreDefinitionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassCoreDefinition", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassCoreDefinition", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassCoreDefinition", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassCoreDefinitionResources retrieves all AWSGreengrassCoreDefinition items from an AWS CloudFormation template
[ "GetAllAWSGreengrassCoreDefinitionResources", "retrieves", "all", "AWSGreengrassCoreDefinition", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5395-L5404
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassCoreDefinitionWithName
func (t *Template) GetAWSGreengrassCoreDefinitionWithName(name string) (*resources.AWSGreengrassCoreDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassCoreDefinition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassCoreDefinition not found", name) }
go
func (t *Template) GetAWSGreengrassCoreDefinitionWithName(name string) (*resources.AWSGreengrassCoreDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassCoreDefinition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassCoreDefinition not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassCoreDefinitionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassCoreDefinition", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassCoreDefinition", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassCoreDefinitionWithName retrieves all AWSGreengrassCoreDefinition items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassCoreDefinitionWithName", "retrieves", "all", "AWSGreengrassCoreDefinition", "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#L5408-L5416
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassCoreDefinitionVersionResources
func (t *Template) GetAllAWSGreengrassCoreDefinitionVersionResources() map[string]*resources.AWSGreengrassCoreDefinitionVersion { results := map[string]*resources.AWSGreengrassCoreDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassCoreDefinitionVersion: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassCoreDefinitionVersionResources() map[string]*resources.AWSGreengrassCoreDefinitionVersion { results := map[string]*resources.AWSGreengrassCoreDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassCoreDefinitionVersion: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassCoreDefinitionVersionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassCoreDefinitionVersion", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassCoreDefinitionVersion", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassCoreDefinitionVersion", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassCoreDefinitionVersionResources retrieves all AWSGreengrassCoreDefinitionVersion items from an AWS CloudFormation template
[ "GetAllAWSGreengrassCoreDefinitionVersionResources", "retrieves", "all", "AWSGreengrassCoreDefinitionVersion", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5419-L5428
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassCoreDefinitionVersionWithName
func (t *Template) GetAWSGreengrassCoreDefinitionVersionWithName(name string) (*resources.AWSGreengrassCoreDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassCoreDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassCoreDefinitionVersion not found", name) }
go
func (t *Template) GetAWSGreengrassCoreDefinitionVersionWithName(name string) (*resources.AWSGreengrassCoreDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassCoreDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassCoreDefinitionVersion not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassCoreDefinitionVersionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassCoreDefinitionVersion", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassCoreDefinitionVersion", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassCoreDefinitionVersionWithName retrieves all AWSGreengrassCoreDefinitionVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassCoreDefinitionVersionWithName", "retrieves", "all", "AWSGreengrassCoreDefinitionVersion", "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#L5432-L5440
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassDeviceDefinitionResources
func (t *Template) GetAllAWSGreengrassDeviceDefinitionResources() map[string]*resources.AWSGreengrassDeviceDefinition { results := map[string]*resources.AWSGreengrassDeviceDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassDeviceDefinition: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassDeviceDefinitionResources() map[string]*resources.AWSGreengrassDeviceDefinition { results := map[string]*resources.AWSGreengrassDeviceDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassDeviceDefinition: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassDeviceDefinitionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassDeviceDefinition", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassDeviceDefinition", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassDeviceDefinition", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassDeviceDefinitionResources retrieves all AWSGreengrassDeviceDefinition items from an AWS CloudFormation template
[ "GetAllAWSGreengrassDeviceDefinitionResources", "retrieves", "all", "AWSGreengrassDeviceDefinition", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5443-L5452
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassDeviceDefinitionWithName
func (t *Template) GetAWSGreengrassDeviceDefinitionWithName(name string) (*resources.AWSGreengrassDeviceDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassDeviceDefinition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassDeviceDefinition not found", name) }
go
func (t *Template) GetAWSGreengrassDeviceDefinitionWithName(name string) (*resources.AWSGreengrassDeviceDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassDeviceDefinition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassDeviceDefinition not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassDeviceDefinitionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassDeviceDefinition", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassDeviceDefinition", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassDeviceDefinitionWithName retrieves all AWSGreengrassDeviceDefinition items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassDeviceDefinitionWithName", "retrieves", "all", "AWSGreengrassDeviceDefinition", "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#L5456-L5464
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassDeviceDefinitionVersionResources
func (t *Template) GetAllAWSGreengrassDeviceDefinitionVersionResources() map[string]*resources.AWSGreengrassDeviceDefinitionVersion { results := map[string]*resources.AWSGreengrassDeviceDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassDeviceDefinitionVersion: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassDeviceDefinitionVersionResources() map[string]*resources.AWSGreengrassDeviceDefinitionVersion { results := map[string]*resources.AWSGreengrassDeviceDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassDeviceDefinitionVersion: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassDeviceDefinitionVersionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassDeviceDefinitionVersion", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassDeviceDefinitionVersion", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassDeviceDefinitionVersion", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassDeviceDefinitionVersionResources retrieves all AWSGreengrassDeviceDefinitionVersion items from an AWS CloudFormation template
[ "GetAllAWSGreengrassDeviceDefinitionVersionResources", "retrieves", "all", "AWSGreengrassDeviceDefinitionVersion", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5467-L5476
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassDeviceDefinitionVersionWithName
func (t *Template) GetAWSGreengrassDeviceDefinitionVersionWithName(name string) (*resources.AWSGreengrassDeviceDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassDeviceDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassDeviceDefinitionVersion not found", name) }
go
func (t *Template) GetAWSGreengrassDeviceDefinitionVersionWithName(name string) (*resources.AWSGreengrassDeviceDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassDeviceDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassDeviceDefinitionVersion not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassDeviceDefinitionVersionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassDeviceDefinitionVersion", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassDeviceDefinitionVersion", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassDeviceDefinitionVersionWithName retrieves all AWSGreengrassDeviceDefinitionVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassDeviceDefinitionVersionWithName", "retrieves", "all", "AWSGreengrassDeviceDefinitionVersion", "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#L5480-L5488
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassFunctionDefinitionResources
func (t *Template) GetAllAWSGreengrassFunctionDefinitionResources() map[string]*resources.AWSGreengrassFunctionDefinition { results := map[string]*resources.AWSGreengrassFunctionDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassFunctionDefinition: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassFunctionDefinitionResources() map[string]*resources.AWSGreengrassFunctionDefinition { results := map[string]*resources.AWSGreengrassFunctionDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassFunctionDefinition: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassFunctionDefinitionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassFunctionDefinition", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassFunctionDefinition", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassFunctionDefinition", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassFunctionDefinitionResources retrieves all AWSGreengrassFunctionDefinition items from an AWS CloudFormation template
[ "GetAllAWSGreengrassFunctionDefinitionResources", "retrieves", "all", "AWSGreengrassFunctionDefinition", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5491-L5500
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassFunctionDefinitionWithName
func (t *Template) GetAWSGreengrassFunctionDefinitionWithName(name string) (*resources.AWSGreengrassFunctionDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassFunctionDefinition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassFunctionDefinition not found", name) }
go
func (t *Template) GetAWSGreengrassFunctionDefinitionWithName(name string) (*resources.AWSGreengrassFunctionDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassFunctionDefinition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassFunctionDefinition not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassFunctionDefinitionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassFunctionDefinition", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassFunctionDefinition", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassFunctionDefinitionWithName retrieves all AWSGreengrassFunctionDefinition items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassFunctionDefinitionWithName", "retrieves", "all", "AWSGreengrassFunctionDefinition", "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#L5504-L5512
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassFunctionDefinitionVersionResources
func (t *Template) GetAllAWSGreengrassFunctionDefinitionVersionResources() map[string]*resources.AWSGreengrassFunctionDefinitionVersion { results := map[string]*resources.AWSGreengrassFunctionDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassFunctionDefinitionVersion: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassFunctionDefinitionVersionResources() map[string]*resources.AWSGreengrassFunctionDefinitionVersion { results := map[string]*resources.AWSGreengrassFunctionDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassFunctionDefinitionVersion: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassFunctionDefinitionVersionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassFunctionDefinitionVersion", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassFunctionDefinitionVersion", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassFunctionDefinitionVersion", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassFunctionDefinitionVersionResources retrieves all AWSGreengrassFunctionDefinitionVersion items from an AWS CloudFormation template
[ "GetAllAWSGreengrassFunctionDefinitionVersionResources", "retrieves", "all", "AWSGreengrassFunctionDefinitionVersion", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5515-L5524
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassFunctionDefinitionVersionWithName
func (t *Template) GetAWSGreengrassFunctionDefinitionVersionWithName(name string) (*resources.AWSGreengrassFunctionDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassFunctionDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassFunctionDefinitionVersion not found", name) }
go
func (t *Template) GetAWSGreengrassFunctionDefinitionVersionWithName(name string) (*resources.AWSGreengrassFunctionDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassFunctionDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassFunctionDefinitionVersion not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassFunctionDefinitionVersionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassFunctionDefinitionVersion", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassFunctionDefinitionVersion", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassFunctionDefinitionVersionWithName retrieves all AWSGreengrassFunctionDefinitionVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassFunctionDefinitionVersionWithName", "retrieves", "all", "AWSGreengrassFunctionDefinitionVersion", "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#L5528-L5536
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassGroupResources
func (t *Template) GetAllAWSGreengrassGroupResources() map[string]*resources.AWSGreengrassGroup { results := map[string]*resources.AWSGreengrassGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassGroupResources() map[string]*resources.AWSGreengrassGroup { results := map[string]*resources.AWSGreengrassGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassGroupResources retrieves all AWSGreengrassGroup items from an AWS CloudFormation template
[ "GetAllAWSGreengrassGroupResources", "retrieves", "all", "AWSGreengrassGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5539-L5548
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassGroupWithName
func (t *Template) GetAWSGreengrassGroupWithName(name string) (*resources.AWSGreengrassGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassGroup not found", name) }
go
func (t *Template) GetAWSGreengrassGroupWithName(name string) (*resources.AWSGreengrassGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassGroupWithName retrieves all AWSGreengrassGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassGroupWithName", "retrieves", "all", "AWSGreengrassGroup", "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#L5552-L5560
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassGroupVersionResources
func (t *Template) GetAllAWSGreengrassGroupVersionResources() map[string]*resources.AWSGreengrassGroupVersion { results := map[string]*resources.AWSGreengrassGroupVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassGroupVersion: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassGroupVersionResources() map[string]*resources.AWSGreengrassGroupVersion { results := map[string]*resources.AWSGreengrassGroupVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassGroupVersion: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassGroupVersionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassGroupVersion", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassGroupVersion", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassGroupVersion", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassGroupVersionResources retrieves all AWSGreengrassGroupVersion items from an AWS CloudFormation template
[ "GetAllAWSGreengrassGroupVersionResources", "retrieves", "all", "AWSGreengrassGroupVersion", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5563-L5572
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassGroupVersionWithName
func (t *Template) GetAWSGreengrassGroupVersionWithName(name string) (*resources.AWSGreengrassGroupVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassGroupVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassGroupVersion not found", name) }
go
func (t *Template) GetAWSGreengrassGroupVersionWithName(name string) (*resources.AWSGreengrassGroupVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassGroupVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassGroupVersion not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassGroupVersionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassGroupVersion", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassGroupVersion", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassGroupVersionWithName retrieves all AWSGreengrassGroupVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassGroupVersionWithName", "retrieves", "all", "AWSGreengrassGroupVersion", "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#L5576-L5584
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassLoggerDefinitionResources
func (t *Template) GetAllAWSGreengrassLoggerDefinitionResources() map[string]*resources.AWSGreengrassLoggerDefinition { results := map[string]*resources.AWSGreengrassLoggerDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassLoggerDefinition: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassLoggerDefinitionResources() map[string]*resources.AWSGreengrassLoggerDefinition { results := map[string]*resources.AWSGreengrassLoggerDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassLoggerDefinition: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassLoggerDefinitionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassLoggerDefinition", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassLoggerDefinition", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassLoggerDefinition", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassLoggerDefinitionResources retrieves all AWSGreengrassLoggerDefinition items from an AWS CloudFormation template
[ "GetAllAWSGreengrassLoggerDefinitionResources", "retrieves", "all", "AWSGreengrassLoggerDefinition", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5587-L5596
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassLoggerDefinitionWithName
func (t *Template) GetAWSGreengrassLoggerDefinitionWithName(name string) (*resources.AWSGreengrassLoggerDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassLoggerDefinition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassLoggerDefinition not found", name) }
go
func (t *Template) GetAWSGreengrassLoggerDefinitionWithName(name string) (*resources.AWSGreengrassLoggerDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassLoggerDefinition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassLoggerDefinition not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassLoggerDefinitionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassLoggerDefinition", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassLoggerDefinition", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassLoggerDefinitionWithName retrieves all AWSGreengrassLoggerDefinition items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassLoggerDefinitionWithName", "retrieves", "all", "AWSGreengrassLoggerDefinition", "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#L5600-L5608
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassLoggerDefinitionVersionResources
func (t *Template) GetAllAWSGreengrassLoggerDefinitionVersionResources() map[string]*resources.AWSGreengrassLoggerDefinitionVersion { results := map[string]*resources.AWSGreengrassLoggerDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassLoggerDefinitionVersion: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassLoggerDefinitionVersionResources() map[string]*resources.AWSGreengrassLoggerDefinitionVersion { results := map[string]*resources.AWSGreengrassLoggerDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassLoggerDefinitionVersion: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassLoggerDefinitionVersionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassLoggerDefinitionVersion", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassLoggerDefinitionVersion", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassLoggerDefinitionVersion", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassLoggerDefinitionVersionResources retrieves all AWSGreengrassLoggerDefinitionVersion items from an AWS CloudFormation template
[ "GetAllAWSGreengrassLoggerDefinitionVersionResources", "retrieves", "all", "AWSGreengrassLoggerDefinitionVersion", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5611-L5620
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassLoggerDefinitionVersionWithName
func (t *Template) GetAWSGreengrassLoggerDefinitionVersionWithName(name string) (*resources.AWSGreengrassLoggerDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassLoggerDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassLoggerDefinitionVersion not found", name) }
go
func (t *Template) GetAWSGreengrassLoggerDefinitionVersionWithName(name string) (*resources.AWSGreengrassLoggerDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassLoggerDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassLoggerDefinitionVersion not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassLoggerDefinitionVersionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassLoggerDefinitionVersion", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassLoggerDefinitionVersion", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassLoggerDefinitionVersionWithName retrieves all AWSGreengrassLoggerDefinitionVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassLoggerDefinitionVersionWithName", "retrieves", "all", "AWSGreengrassLoggerDefinitionVersion", "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#L5624-L5632
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassResourceDefinitionVersionResources
func (t *Template) GetAllAWSGreengrassResourceDefinitionVersionResources() map[string]*resources.AWSGreengrassResourceDefinitionVersion { results := map[string]*resources.AWSGreengrassResourceDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassResourceDefinitionVersion: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassResourceDefinitionVersionResources() map[string]*resources.AWSGreengrassResourceDefinitionVersion { results := map[string]*resources.AWSGreengrassResourceDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassResourceDefinitionVersion: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassResourceDefinitionVersionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassResourceDefinitionVersion", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassResourceDefinitionVersion", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassResourceDefinitionVersion", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassResourceDefinitionVersionResources retrieves all AWSGreengrassResourceDefinitionVersion items from an AWS CloudFormation template
[ "GetAllAWSGreengrassResourceDefinitionVersionResources", "retrieves", "all", "AWSGreengrassResourceDefinitionVersion", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5635-L5644
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassResourceDefinitionVersionWithName
func (t *Template) GetAWSGreengrassResourceDefinitionVersionWithName(name string) (*resources.AWSGreengrassResourceDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassResourceDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassResourceDefinitionVersion not found", name) }
go
func (t *Template) GetAWSGreengrassResourceDefinitionVersionWithName(name string) (*resources.AWSGreengrassResourceDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassResourceDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassResourceDefinitionVersion not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassResourceDefinitionVersionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassResourceDefinitionVersion", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassResourceDefinitionVersion", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassResourceDefinitionVersionWithName retrieves all AWSGreengrassResourceDefinitionVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassResourceDefinitionVersionWithName", "retrieves", "all", "AWSGreengrassResourceDefinitionVersion", "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#L5648-L5656
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassSubscriptionDefinitionResources
func (t *Template) GetAllAWSGreengrassSubscriptionDefinitionResources() map[string]*resources.AWSGreengrassSubscriptionDefinition { results := map[string]*resources.AWSGreengrassSubscriptionDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassSubscriptionDefinition: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassSubscriptionDefinitionResources() map[string]*resources.AWSGreengrassSubscriptionDefinition { results := map[string]*resources.AWSGreengrassSubscriptionDefinition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassSubscriptionDefinition: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassSubscriptionDefinitionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassSubscriptionDefinition", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassSubscriptionDefinition", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassSubscriptionDefinition", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassSubscriptionDefinitionResources retrieves all AWSGreengrassSubscriptionDefinition items from an AWS CloudFormation template
[ "GetAllAWSGreengrassSubscriptionDefinitionResources", "retrieves", "all", "AWSGreengrassSubscriptionDefinition", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5659-L5668
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassSubscriptionDefinitionWithName
func (t *Template) GetAWSGreengrassSubscriptionDefinitionWithName(name string) (*resources.AWSGreengrassSubscriptionDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassSubscriptionDefinition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassSubscriptionDefinition not found", name) }
go
func (t *Template) GetAWSGreengrassSubscriptionDefinitionWithName(name string) (*resources.AWSGreengrassSubscriptionDefinition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassSubscriptionDefinition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassSubscriptionDefinition not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassSubscriptionDefinitionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassSubscriptionDefinition", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassSubscriptionDefinition", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassSubscriptionDefinitionWithName retrieves all AWSGreengrassSubscriptionDefinition items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassSubscriptionDefinitionWithName", "retrieves", "all", "AWSGreengrassSubscriptionDefinition", "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#L5672-L5680
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGreengrassSubscriptionDefinitionVersionResources
func (t *Template) GetAllAWSGreengrassSubscriptionDefinitionVersionResources() map[string]*resources.AWSGreengrassSubscriptionDefinitionVersion { results := map[string]*resources.AWSGreengrassSubscriptionDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassSubscriptionDefinitionVersion: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGreengrassSubscriptionDefinitionVersionResources() map[string]*resources.AWSGreengrassSubscriptionDefinitionVersion { results := map[string]*resources.AWSGreengrassSubscriptionDefinitionVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGreengrassSubscriptionDefinitionVersion: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGreengrassSubscriptionDefinitionVersionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassSubscriptionDefinitionVersion", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGreengrassSubscriptionDefinitionVersion", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassSubscriptionDefinitionVersion", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGreengrassSubscriptionDefinitionVersionResources retrieves all AWSGreengrassSubscriptionDefinitionVersion items from an AWS CloudFormation template
[ "GetAllAWSGreengrassSubscriptionDefinitionVersionResources", "retrieves", "all", "AWSGreengrassSubscriptionDefinitionVersion", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5683-L5692
train
awslabs/goformation
cloudformation/all.go
GetAWSGreengrassSubscriptionDefinitionVersionWithName
func (t *Template) GetAWSGreengrassSubscriptionDefinitionVersionWithName(name string) (*resources.AWSGreengrassSubscriptionDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassSubscriptionDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassSubscriptionDefinitionVersion not found", name) }
go
func (t *Template) GetAWSGreengrassSubscriptionDefinitionVersionWithName(name string) (*resources.AWSGreengrassSubscriptionDefinitionVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGreengrassSubscriptionDefinitionVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGreengrassSubscriptionDefinitionVersion not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGreengrassSubscriptionDefinitionVersionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGreengrassSubscriptionDefinitionVersion", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGreengrassSubscriptionDefinitionVersion", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGreengrassSubscriptionDefinitionVersionWithName retrieves all AWSGreengrassSubscriptionDefinitionVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGreengrassSubscriptionDefinitionVersionWithName", "retrieves", "all", "AWSGreengrassSubscriptionDefinitionVersion", "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#L5696-L5704
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGuardDutyDetectorResources
func (t *Template) GetAllAWSGuardDutyDetectorResources() map[string]*resources.AWSGuardDutyDetector { results := map[string]*resources.AWSGuardDutyDetector{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGuardDutyDetector: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGuardDutyDetectorResources() map[string]*resources.AWSGuardDutyDetector { results := map[string]*resources.AWSGuardDutyDetector{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGuardDutyDetector: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGuardDutyDetectorResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGuardDutyDetector", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGuardDutyDetector", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGuardDutyDetector", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGuardDutyDetectorResources retrieves all AWSGuardDutyDetector items from an AWS CloudFormation template
[ "GetAllAWSGuardDutyDetectorResources", "retrieves", "all", "AWSGuardDutyDetector", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5707-L5716
train
awslabs/goformation
cloudformation/all.go
GetAWSGuardDutyDetectorWithName
func (t *Template) GetAWSGuardDutyDetectorWithName(name string) (*resources.AWSGuardDutyDetector, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGuardDutyDetector: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGuardDutyDetector not found", name) }
go
func (t *Template) GetAWSGuardDutyDetectorWithName(name string) (*resources.AWSGuardDutyDetector, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGuardDutyDetector: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGuardDutyDetector not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGuardDutyDetectorWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGuardDutyDetector", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGuardDutyDetector", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGuardDutyDetectorWithName retrieves all AWSGuardDutyDetector items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGuardDutyDetectorWithName", "retrieves", "all", "AWSGuardDutyDetector", "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#L5720-L5728
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGuardDutyFilterResources
func (t *Template) GetAllAWSGuardDutyFilterResources() map[string]*resources.AWSGuardDutyFilter { results := map[string]*resources.AWSGuardDutyFilter{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGuardDutyFilter: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGuardDutyFilterResources() map[string]*resources.AWSGuardDutyFilter { results := map[string]*resources.AWSGuardDutyFilter{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGuardDutyFilter: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGuardDutyFilterResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGuardDutyFilter", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGuardDutyFilter", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGuardDutyFilter", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGuardDutyFilterResources retrieves all AWSGuardDutyFilter items from an AWS CloudFormation template
[ "GetAllAWSGuardDutyFilterResources", "retrieves", "all", "AWSGuardDutyFilter", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5731-L5740
train
awslabs/goformation
cloudformation/all.go
GetAWSGuardDutyFilterWithName
func (t *Template) GetAWSGuardDutyFilterWithName(name string) (*resources.AWSGuardDutyFilter, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGuardDutyFilter: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGuardDutyFilter not found", name) }
go
func (t *Template) GetAWSGuardDutyFilterWithName(name string) (*resources.AWSGuardDutyFilter, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGuardDutyFilter: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGuardDutyFilter not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGuardDutyFilterWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGuardDutyFilter", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGuardDutyFilter", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGuardDutyFilterWithName retrieves all AWSGuardDutyFilter items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGuardDutyFilterWithName", "retrieves", "all", "AWSGuardDutyFilter", "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#L5744-L5752
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGuardDutyIPSetResources
func (t *Template) GetAllAWSGuardDutyIPSetResources() map[string]*resources.AWSGuardDutyIPSet { results := map[string]*resources.AWSGuardDutyIPSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGuardDutyIPSet: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGuardDutyIPSetResources() map[string]*resources.AWSGuardDutyIPSet { results := map[string]*resources.AWSGuardDutyIPSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGuardDutyIPSet: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGuardDutyIPSetResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGuardDutyIPSet", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGuardDutyIPSet", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGuardDutyIPSet", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGuardDutyIPSetResources retrieves all AWSGuardDutyIPSet items from an AWS CloudFormation template
[ "GetAllAWSGuardDutyIPSetResources", "retrieves", "all", "AWSGuardDutyIPSet", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5755-L5764
train
awslabs/goformation
cloudformation/all.go
GetAWSGuardDutyIPSetWithName
func (t *Template) GetAWSGuardDutyIPSetWithName(name string) (*resources.AWSGuardDutyIPSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGuardDutyIPSet: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGuardDutyIPSet not found", name) }
go
func (t *Template) GetAWSGuardDutyIPSetWithName(name string) (*resources.AWSGuardDutyIPSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGuardDutyIPSet: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGuardDutyIPSet not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGuardDutyIPSetWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGuardDutyIPSet", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGuardDutyIPSet", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGuardDutyIPSetWithName retrieves all AWSGuardDutyIPSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGuardDutyIPSetWithName", "retrieves", "all", "AWSGuardDutyIPSet", "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#L5768-L5776
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGuardDutyMasterResources
func (t *Template) GetAllAWSGuardDutyMasterResources() map[string]*resources.AWSGuardDutyMaster { results := map[string]*resources.AWSGuardDutyMaster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGuardDutyMaster: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGuardDutyMasterResources() map[string]*resources.AWSGuardDutyMaster { results := map[string]*resources.AWSGuardDutyMaster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGuardDutyMaster: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGuardDutyMasterResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGuardDutyMaster", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGuardDutyMaster", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGuardDutyMaster", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGuardDutyMasterResources retrieves all AWSGuardDutyMaster items from an AWS CloudFormation template
[ "GetAllAWSGuardDutyMasterResources", "retrieves", "all", "AWSGuardDutyMaster", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5779-L5788
train
awslabs/goformation
cloudformation/all.go
GetAWSGuardDutyMasterWithName
func (t *Template) GetAWSGuardDutyMasterWithName(name string) (*resources.AWSGuardDutyMaster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGuardDutyMaster: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGuardDutyMaster not found", name) }
go
func (t *Template) GetAWSGuardDutyMasterWithName(name string) (*resources.AWSGuardDutyMaster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGuardDutyMaster: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGuardDutyMaster not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGuardDutyMasterWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGuardDutyMaster", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGuardDutyMaster", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGuardDutyMasterWithName retrieves all AWSGuardDutyMaster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGuardDutyMasterWithName", "retrieves", "all", "AWSGuardDutyMaster", "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#L5792-L5800
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGuardDutyMemberResources
func (t *Template) GetAllAWSGuardDutyMemberResources() map[string]*resources.AWSGuardDutyMember { results := map[string]*resources.AWSGuardDutyMember{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGuardDutyMember: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGuardDutyMemberResources() map[string]*resources.AWSGuardDutyMember { results := map[string]*resources.AWSGuardDutyMember{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGuardDutyMember: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGuardDutyMemberResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGuardDutyMember", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGuardDutyMember", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGuardDutyMember", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGuardDutyMemberResources retrieves all AWSGuardDutyMember items from an AWS CloudFormation template
[ "GetAllAWSGuardDutyMemberResources", "retrieves", "all", "AWSGuardDutyMember", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5803-L5812
train
awslabs/goformation
cloudformation/all.go
GetAWSGuardDutyMemberWithName
func (t *Template) GetAWSGuardDutyMemberWithName(name string) (*resources.AWSGuardDutyMember, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGuardDutyMember: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGuardDutyMember not found", name) }
go
func (t *Template) GetAWSGuardDutyMemberWithName(name string) (*resources.AWSGuardDutyMember, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGuardDutyMember: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGuardDutyMember not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGuardDutyMemberWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGuardDutyMember", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGuardDutyMember", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGuardDutyMemberWithName retrieves all AWSGuardDutyMember items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGuardDutyMemberWithName", "retrieves", "all", "AWSGuardDutyMember", "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#L5816-L5824
train
awslabs/goformation
cloudformation/all.go
GetAllAWSGuardDutyThreatIntelSetResources
func (t *Template) GetAllAWSGuardDutyThreatIntelSetResources() map[string]*resources.AWSGuardDutyThreatIntelSet { results := map[string]*resources.AWSGuardDutyThreatIntelSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGuardDutyThreatIntelSet: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSGuardDutyThreatIntelSetResources() map[string]*resources.AWSGuardDutyThreatIntelSet { results := map[string]*resources.AWSGuardDutyThreatIntelSet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSGuardDutyThreatIntelSet: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSGuardDutyThreatIntelSetResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSGuardDutyThreatIntelSet", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSGuardDutyThreatIntelSet", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGuardDutyThreatIntelSet", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSGuardDutyThreatIntelSetResources retrieves all AWSGuardDutyThreatIntelSet items from an AWS CloudFormation template
[ "GetAllAWSGuardDutyThreatIntelSetResources", "retrieves", "all", "AWSGuardDutyThreatIntelSet", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5827-L5836
train
awslabs/goformation
cloudformation/all.go
GetAWSGuardDutyThreatIntelSetWithName
func (t *Template) GetAWSGuardDutyThreatIntelSetWithName(name string) (*resources.AWSGuardDutyThreatIntelSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGuardDutyThreatIntelSet: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGuardDutyThreatIntelSet not found", name) }
go
func (t *Template) GetAWSGuardDutyThreatIntelSetWithName(name string) (*resources.AWSGuardDutyThreatIntelSet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSGuardDutyThreatIntelSet: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSGuardDutyThreatIntelSet not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSGuardDutyThreatIntelSetWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSGuardDutyThreatIntelSet", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSGuardDutyThreatIntelSet", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSGuardDutyThreatIntelSetWithName retrieves all AWSGuardDutyThreatIntelSet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSGuardDutyThreatIntelSetWithName", "retrieves", "all", "AWSGuardDutyThreatIntelSet", "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#L5840-L5848
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIAMAccessKeyResources
func (t *Template) GetAllAWSIAMAccessKeyResources() map[string]*resources.AWSIAMAccessKey { results := map[string]*resources.AWSIAMAccessKey{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMAccessKey: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIAMAccessKeyResources() map[string]*resources.AWSIAMAccessKey { results := map[string]*resources.AWSIAMAccessKey{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMAccessKey: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIAMAccessKeyResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMAccessKey", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMAccessKey", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMAccessKey", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIAMAccessKeyResources retrieves all AWSIAMAccessKey items from an AWS CloudFormation template
[ "GetAllAWSIAMAccessKeyResources", "retrieves", "all", "AWSIAMAccessKey", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5851-L5860
train
awslabs/goformation
cloudformation/all.go
GetAWSIAMAccessKeyWithName
func (t *Template) GetAWSIAMAccessKeyWithName(name string) (*resources.AWSIAMAccessKey, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMAccessKey: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMAccessKey not found", name) }
go
func (t *Template) GetAWSIAMAccessKeyWithName(name string) (*resources.AWSIAMAccessKey, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMAccessKey: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMAccessKey not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIAMAccessKeyWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIAMAccessKey", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMAccessKey", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIAMAccessKeyWithName retrieves all AWSIAMAccessKey items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIAMAccessKeyWithName", "retrieves", "all", "AWSIAMAccessKey", "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#L5864-L5872
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIAMGroupResources
func (t *Template) GetAllAWSIAMGroupResources() map[string]*resources.AWSIAMGroup { results := map[string]*resources.AWSIAMGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIAMGroupResources() map[string]*resources.AWSIAMGroup { results := map[string]*resources.AWSIAMGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIAMGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIAMGroupResources retrieves all AWSIAMGroup items from an AWS CloudFormation template
[ "GetAllAWSIAMGroupResources", "retrieves", "all", "AWSIAMGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5875-L5884
train
awslabs/goformation
cloudformation/all.go
GetAWSIAMGroupWithName
func (t *Template) GetAWSIAMGroupWithName(name string) (*resources.AWSIAMGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMGroup not found", name) }
go
func (t *Template) GetAWSIAMGroupWithName(name string) (*resources.AWSIAMGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIAMGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIAMGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIAMGroupWithName retrieves all AWSIAMGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIAMGroupWithName", "retrieves", "all", "AWSIAMGroup", "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#L5888-L5896
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIAMInstanceProfileResources
func (t *Template) GetAllAWSIAMInstanceProfileResources() map[string]*resources.AWSIAMInstanceProfile { results := map[string]*resources.AWSIAMInstanceProfile{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMInstanceProfile: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIAMInstanceProfileResources() map[string]*resources.AWSIAMInstanceProfile { results := map[string]*resources.AWSIAMInstanceProfile{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMInstanceProfile: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIAMInstanceProfileResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMInstanceProfile", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMInstanceProfile", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMInstanceProfile", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIAMInstanceProfileResources retrieves all AWSIAMInstanceProfile items from an AWS CloudFormation template
[ "GetAllAWSIAMInstanceProfileResources", "retrieves", "all", "AWSIAMInstanceProfile", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5899-L5908
train
awslabs/goformation
cloudformation/all.go
GetAWSIAMInstanceProfileWithName
func (t *Template) GetAWSIAMInstanceProfileWithName(name string) (*resources.AWSIAMInstanceProfile, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMInstanceProfile: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMInstanceProfile not found", name) }
go
func (t *Template) GetAWSIAMInstanceProfileWithName(name string) (*resources.AWSIAMInstanceProfile, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMInstanceProfile: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMInstanceProfile not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIAMInstanceProfileWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIAMInstanceProfile", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMInstanceProfile", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIAMInstanceProfileWithName retrieves all AWSIAMInstanceProfile items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIAMInstanceProfileWithName", "retrieves", "all", "AWSIAMInstanceProfile", "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#L5912-L5920
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIAMManagedPolicyResources
func (t *Template) GetAllAWSIAMManagedPolicyResources() map[string]*resources.AWSIAMManagedPolicy { results := map[string]*resources.AWSIAMManagedPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMManagedPolicy: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIAMManagedPolicyResources() map[string]*resources.AWSIAMManagedPolicy { results := map[string]*resources.AWSIAMManagedPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMManagedPolicy: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIAMManagedPolicyResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMManagedPolicy", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMManagedPolicy", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMManagedPolicy", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIAMManagedPolicyResources retrieves all AWSIAMManagedPolicy items from an AWS CloudFormation template
[ "GetAllAWSIAMManagedPolicyResources", "retrieves", "all", "AWSIAMManagedPolicy", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5923-L5932
train
awslabs/goformation
cloudformation/all.go
GetAWSIAMManagedPolicyWithName
func (t *Template) GetAWSIAMManagedPolicyWithName(name string) (*resources.AWSIAMManagedPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMManagedPolicy: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMManagedPolicy not found", name) }
go
func (t *Template) GetAWSIAMManagedPolicyWithName(name string) (*resources.AWSIAMManagedPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMManagedPolicy: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMManagedPolicy not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIAMManagedPolicyWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIAMManagedPolicy", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMManagedPolicy", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIAMManagedPolicyWithName retrieves all AWSIAMManagedPolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIAMManagedPolicyWithName", "retrieves", "all", "AWSIAMManagedPolicy", "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#L5936-L5944
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIAMPolicyResources
func (t *Template) GetAllAWSIAMPolicyResources() map[string]*resources.AWSIAMPolicy { results := map[string]*resources.AWSIAMPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMPolicy: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIAMPolicyResources() map[string]*resources.AWSIAMPolicy { results := map[string]*resources.AWSIAMPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMPolicy: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIAMPolicyResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMPolicy", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMPolicy", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMPolicy", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIAMPolicyResources retrieves all AWSIAMPolicy items from an AWS CloudFormation template
[ "GetAllAWSIAMPolicyResources", "retrieves", "all", "AWSIAMPolicy", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5947-L5956
train
awslabs/goformation
cloudformation/all.go
GetAWSIAMPolicyWithName
func (t *Template) GetAWSIAMPolicyWithName(name string) (*resources.AWSIAMPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMPolicy: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMPolicy not found", name) }
go
func (t *Template) GetAWSIAMPolicyWithName(name string) (*resources.AWSIAMPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMPolicy: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMPolicy not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIAMPolicyWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIAMPolicy", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMPolicy", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIAMPolicyWithName retrieves all AWSIAMPolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIAMPolicyWithName", "retrieves", "all", "AWSIAMPolicy", "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#L5960-L5968
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIAMRoleResources
func (t *Template) GetAllAWSIAMRoleResources() map[string]*resources.AWSIAMRole { results := map[string]*resources.AWSIAMRole{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMRole: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIAMRoleResources() map[string]*resources.AWSIAMRole { results := map[string]*resources.AWSIAMRole{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMRole: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIAMRoleResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMRole", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMRole", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMRole", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIAMRoleResources retrieves all AWSIAMRole items from an AWS CloudFormation template
[ "GetAllAWSIAMRoleResources", "retrieves", "all", "AWSIAMRole", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5971-L5980
train
awslabs/goformation
cloudformation/all.go
GetAWSIAMRoleWithName
func (t *Template) GetAWSIAMRoleWithName(name string) (*resources.AWSIAMRole, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMRole: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMRole not found", name) }
go
func (t *Template) GetAWSIAMRoleWithName(name string) (*resources.AWSIAMRole, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMRole: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMRole not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIAMRoleWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIAMRole", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMRole", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIAMRoleWithName retrieves all AWSIAMRole items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIAMRoleWithName", "retrieves", "all", "AWSIAMRole", "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#L5984-L5992
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIAMServiceLinkedRoleResources
func (t *Template) GetAllAWSIAMServiceLinkedRoleResources() map[string]*resources.AWSIAMServiceLinkedRole { results := map[string]*resources.AWSIAMServiceLinkedRole{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMServiceLinkedRole: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIAMServiceLinkedRoleResources() map[string]*resources.AWSIAMServiceLinkedRole { results := map[string]*resources.AWSIAMServiceLinkedRole{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMServiceLinkedRole: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIAMServiceLinkedRoleResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMServiceLinkedRole", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMServiceLinkedRole", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMServiceLinkedRole", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIAMServiceLinkedRoleResources retrieves all AWSIAMServiceLinkedRole items from an AWS CloudFormation template
[ "GetAllAWSIAMServiceLinkedRoleResources", "retrieves", "all", "AWSIAMServiceLinkedRole", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5995-L6004
train
awslabs/goformation
cloudformation/all.go
GetAWSIAMServiceLinkedRoleWithName
func (t *Template) GetAWSIAMServiceLinkedRoleWithName(name string) (*resources.AWSIAMServiceLinkedRole, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMServiceLinkedRole: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMServiceLinkedRole not found", name) }
go
func (t *Template) GetAWSIAMServiceLinkedRoleWithName(name string) (*resources.AWSIAMServiceLinkedRole, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMServiceLinkedRole: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMServiceLinkedRole not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIAMServiceLinkedRoleWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIAMServiceLinkedRole", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMServiceLinkedRole", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIAMServiceLinkedRoleWithName retrieves all AWSIAMServiceLinkedRole items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIAMServiceLinkedRoleWithName", "retrieves", "all", "AWSIAMServiceLinkedRole", "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#L6008-L6016
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIAMUserResources
func (t *Template) GetAllAWSIAMUserResources() map[string]*resources.AWSIAMUser { results := map[string]*resources.AWSIAMUser{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMUser: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIAMUserResources() map[string]*resources.AWSIAMUser { results := map[string]*resources.AWSIAMUser{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMUser: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIAMUserResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMUser", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMUser", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMUser", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIAMUserResources retrieves all AWSIAMUser items from an AWS CloudFormation template
[ "GetAllAWSIAMUserResources", "retrieves", "all", "AWSIAMUser", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6019-L6028
train
awslabs/goformation
cloudformation/all.go
GetAWSIAMUserWithName
func (t *Template) GetAWSIAMUserWithName(name string) (*resources.AWSIAMUser, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMUser: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMUser not found", name) }
go
func (t *Template) GetAWSIAMUserWithName(name string) (*resources.AWSIAMUser, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMUser: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMUser not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIAMUserWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIAMUser", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMUser", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIAMUserWithName retrieves all AWSIAMUser items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIAMUserWithName", "retrieves", "all", "AWSIAMUser", "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#L6032-L6040
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIAMUserToGroupAdditionResources
func (t *Template) GetAllAWSIAMUserToGroupAdditionResources() map[string]*resources.AWSIAMUserToGroupAddition { results := map[string]*resources.AWSIAMUserToGroupAddition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMUserToGroupAddition: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIAMUserToGroupAdditionResources() map[string]*resources.AWSIAMUserToGroupAddition { results := map[string]*resources.AWSIAMUserToGroupAddition{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIAMUserToGroupAddition: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIAMUserToGroupAdditionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMUserToGroupAddition", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIAMUserToGroupAddition", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMUserToGroupAddition", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIAMUserToGroupAdditionResources retrieves all AWSIAMUserToGroupAddition items from an AWS CloudFormation template
[ "GetAllAWSIAMUserToGroupAdditionResources", "retrieves", "all", "AWSIAMUserToGroupAddition", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6043-L6052
train
awslabs/goformation
cloudformation/all.go
GetAWSIAMUserToGroupAdditionWithName
func (t *Template) GetAWSIAMUserToGroupAdditionWithName(name string) (*resources.AWSIAMUserToGroupAddition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMUserToGroupAddition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMUserToGroupAddition not found", name) }
go
func (t *Template) GetAWSIAMUserToGroupAdditionWithName(name string) (*resources.AWSIAMUserToGroupAddition, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIAMUserToGroupAddition: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIAMUserToGroupAddition not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIAMUserToGroupAdditionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIAMUserToGroupAddition", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIAMUserToGroupAddition", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIAMUserToGroupAdditionWithName retrieves all AWSIAMUserToGroupAddition items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIAMUserToGroupAdditionWithName", "retrieves", "all", "AWSIAMUserToGroupAddition", "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#L6056-L6064
train
awslabs/goformation
cloudformation/all.go
GetAllAWSInspectorAssessmentTargetResources
func (t *Template) GetAllAWSInspectorAssessmentTargetResources() map[string]*resources.AWSInspectorAssessmentTarget { results := map[string]*resources.AWSInspectorAssessmentTarget{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSInspectorAssessmentTarget: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSInspectorAssessmentTargetResources() map[string]*resources.AWSInspectorAssessmentTarget { results := map[string]*resources.AWSInspectorAssessmentTarget{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSInspectorAssessmentTarget: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSInspectorAssessmentTargetResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSInspectorAssessmentTarget", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSInspectorAssessmentTarget", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSInspectorAssessmentTarget", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSInspectorAssessmentTargetResources retrieves all AWSInspectorAssessmentTarget items from an AWS CloudFormation template
[ "GetAllAWSInspectorAssessmentTargetResources", "retrieves", "all", "AWSInspectorAssessmentTarget", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6067-L6076
train
awslabs/goformation
cloudformation/all.go
GetAWSInspectorAssessmentTargetWithName
func (t *Template) GetAWSInspectorAssessmentTargetWithName(name string) (*resources.AWSInspectorAssessmentTarget, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSInspectorAssessmentTarget: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSInspectorAssessmentTarget not found", name) }
go
func (t *Template) GetAWSInspectorAssessmentTargetWithName(name string) (*resources.AWSInspectorAssessmentTarget, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSInspectorAssessmentTarget: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSInspectorAssessmentTarget not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSInspectorAssessmentTargetWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSInspectorAssessmentTarget", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSInspectorAssessmentTarget", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSInspectorAssessmentTargetWithName retrieves all AWSInspectorAssessmentTarget items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSInspectorAssessmentTargetWithName", "retrieves", "all", "AWSInspectorAssessmentTarget", "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#L6080-L6088
train
awslabs/goformation
cloudformation/all.go
GetAllAWSInspectorAssessmentTemplateResources
func (t *Template) GetAllAWSInspectorAssessmentTemplateResources() map[string]*resources.AWSInspectorAssessmentTemplate { results := map[string]*resources.AWSInspectorAssessmentTemplate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSInspectorAssessmentTemplate: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSInspectorAssessmentTemplateResources() map[string]*resources.AWSInspectorAssessmentTemplate { results := map[string]*resources.AWSInspectorAssessmentTemplate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSInspectorAssessmentTemplate: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSInspectorAssessmentTemplateResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSInspectorAssessmentTemplate", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSInspectorAssessmentTemplate", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSInspectorAssessmentTemplate", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSInspectorAssessmentTemplateResources retrieves all AWSInspectorAssessmentTemplate items from an AWS CloudFormation template
[ "GetAllAWSInspectorAssessmentTemplateResources", "retrieves", "all", "AWSInspectorAssessmentTemplate", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6091-L6100
train
awslabs/goformation
cloudformation/all.go
GetAWSInspectorAssessmentTemplateWithName
func (t *Template) GetAWSInspectorAssessmentTemplateWithName(name string) (*resources.AWSInspectorAssessmentTemplate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSInspectorAssessmentTemplate: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSInspectorAssessmentTemplate not found", name) }
go
func (t *Template) GetAWSInspectorAssessmentTemplateWithName(name string) (*resources.AWSInspectorAssessmentTemplate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSInspectorAssessmentTemplate: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSInspectorAssessmentTemplate not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSInspectorAssessmentTemplateWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSInspectorAssessmentTemplate", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSInspectorAssessmentTemplate", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSInspectorAssessmentTemplateWithName retrieves all AWSInspectorAssessmentTemplate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSInspectorAssessmentTemplateWithName", "retrieves", "all", "AWSInspectorAssessmentTemplate", "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#L6104-L6112
train
awslabs/goformation
cloudformation/all.go
GetAllAWSInspectorResourceGroupResources
func (t *Template) GetAllAWSInspectorResourceGroupResources() map[string]*resources.AWSInspectorResourceGroup { results := map[string]*resources.AWSInspectorResourceGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSInspectorResourceGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSInspectorResourceGroupResources() map[string]*resources.AWSInspectorResourceGroup { results := map[string]*resources.AWSInspectorResourceGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSInspectorResourceGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSInspectorResourceGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSInspectorResourceGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSInspectorResourceGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSInspectorResourceGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSInspectorResourceGroupResources retrieves all AWSInspectorResourceGroup items from an AWS CloudFormation template
[ "GetAllAWSInspectorResourceGroupResources", "retrieves", "all", "AWSInspectorResourceGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6115-L6124
train
awslabs/goformation
cloudformation/all.go
GetAWSInspectorResourceGroupWithName
func (t *Template) GetAWSInspectorResourceGroupWithName(name string) (*resources.AWSInspectorResourceGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSInspectorResourceGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSInspectorResourceGroup not found", name) }
go
func (t *Template) GetAWSInspectorResourceGroupWithName(name string) (*resources.AWSInspectorResourceGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSInspectorResourceGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSInspectorResourceGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSInspectorResourceGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSInspectorResourceGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSInspectorResourceGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSInspectorResourceGroupWithName retrieves all AWSInspectorResourceGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSInspectorResourceGroupWithName", "retrieves", "all", "AWSInspectorResourceGroup", "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#L6128-L6136
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIoT1ClickDeviceResources
func (t *Template) GetAllAWSIoT1ClickDeviceResources() map[string]*resources.AWSIoT1ClickDevice { results := map[string]*resources.AWSIoT1ClickDevice{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoT1ClickDevice: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIoT1ClickDeviceResources() map[string]*resources.AWSIoT1ClickDevice { results := map[string]*resources.AWSIoT1ClickDevice{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoT1ClickDevice: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIoT1ClickDeviceResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIoT1ClickDevice", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIoT1ClickDevice", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoT1ClickDevice", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIoT1ClickDeviceResources retrieves all AWSIoT1ClickDevice items from an AWS CloudFormation template
[ "GetAllAWSIoT1ClickDeviceResources", "retrieves", "all", "AWSIoT1ClickDevice", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6139-L6148
train
awslabs/goformation
cloudformation/all.go
GetAWSIoT1ClickDeviceWithName
func (t *Template) GetAWSIoT1ClickDeviceWithName(name string) (*resources.AWSIoT1ClickDevice, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoT1ClickDevice: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoT1ClickDevice not found", name) }
go
func (t *Template) GetAWSIoT1ClickDeviceWithName(name string) (*resources.AWSIoT1ClickDevice, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoT1ClickDevice: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoT1ClickDevice not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIoT1ClickDeviceWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIoT1ClickDevice", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoT1ClickDevice", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIoT1ClickDeviceWithName retrieves all AWSIoT1ClickDevice items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIoT1ClickDeviceWithName", "retrieves", "all", "AWSIoT1ClickDevice", "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#L6152-L6160
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIoT1ClickPlacementResources
func (t *Template) GetAllAWSIoT1ClickPlacementResources() map[string]*resources.AWSIoT1ClickPlacement { results := map[string]*resources.AWSIoT1ClickPlacement{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoT1ClickPlacement: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIoT1ClickPlacementResources() map[string]*resources.AWSIoT1ClickPlacement { results := map[string]*resources.AWSIoT1ClickPlacement{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoT1ClickPlacement: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIoT1ClickPlacementResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIoT1ClickPlacement", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIoT1ClickPlacement", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoT1ClickPlacement", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIoT1ClickPlacementResources retrieves all AWSIoT1ClickPlacement items from an AWS CloudFormation template
[ "GetAllAWSIoT1ClickPlacementResources", "retrieves", "all", "AWSIoT1ClickPlacement", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6163-L6172
train
awslabs/goformation
cloudformation/all.go
GetAWSIoT1ClickPlacementWithName
func (t *Template) GetAWSIoT1ClickPlacementWithName(name string) (*resources.AWSIoT1ClickPlacement, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoT1ClickPlacement: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoT1ClickPlacement not found", name) }
go
func (t *Template) GetAWSIoT1ClickPlacementWithName(name string) (*resources.AWSIoT1ClickPlacement, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoT1ClickPlacement: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoT1ClickPlacement not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIoT1ClickPlacementWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIoT1ClickPlacement", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoT1ClickPlacement", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIoT1ClickPlacementWithName retrieves all AWSIoT1ClickPlacement items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIoT1ClickPlacementWithName", "retrieves", "all", "AWSIoT1ClickPlacement", "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#L6176-L6184
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIoT1ClickProjectResources
func (t *Template) GetAllAWSIoT1ClickProjectResources() map[string]*resources.AWSIoT1ClickProject { results := map[string]*resources.AWSIoT1ClickProject{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoT1ClickProject: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIoT1ClickProjectResources() map[string]*resources.AWSIoT1ClickProject { results := map[string]*resources.AWSIoT1ClickProject{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoT1ClickProject: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIoT1ClickProjectResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIoT1ClickProject", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIoT1ClickProject", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoT1ClickProject", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIoT1ClickProjectResources retrieves all AWSIoT1ClickProject items from an AWS CloudFormation template
[ "GetAllAWSIoT1ClickProjectResources", "retrieves", "all", "AWSIoT1ClickProject", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6187-L6196
train
awslabs/goformation
cloudformation/all.go
GetAWSIoT1ClickProjectWithName
func (t *Template) GetAWSIoT1ClickProjectWithName(name string) (*resources.AWSIoT1ClickProject, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoT1ClickProject: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoT1ClickProject not found", name) }
go
func (t *Template) GetAWSIoT1ClickProjectWithName(name string) (*resources.AWSIoT1ClickProject, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoT1ClickProject: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoT1ClickProject not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIoT1ClickProjectWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIoT1ClickProject", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoT1ClickProject", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIoT1ClickProjectWithName retrieves all AWSIoT1ClickProject items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIoT1ClickProjectWithName", "retrieves", "all", "AWSIoT1ClickProject", "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#L6200-L6208
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIoTCertificateResources
func (t *Template) GetAllAWSIoTCertificateResources() map[string]*resources.AWSIoTCertificate { results := map[string]*resources.AWSIoTCertificate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTCertificate: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIoTCertificateResources() map[string]*resources.AWSIoTCertificate { results := map[string]*resources.AWSIoTCertificate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTCertificate: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIoTCertificateResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTCertificate", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTCertificate", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTCertificate", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIoTCertificateResources retrieves all AWSIoTCertificate items from an AWS CloudFormation template
[ "GetAllAWSIoTCertificateResources", "retrieves", "all", "AWSIoTCertificate", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6211-L6220
train
awslabs/goformation
cloudformation/all.go
GetAWSIoTCertificateWithName
func (t *Template) GetAWSIoTCertificateWithName(name string) (*resources.AWSIoTCertificate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTCertificate: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTCertificate not found", name) }
go
func (t *Template) GetAWSIoTCertificateWithName(name string) (*resources.AWSIoTCertificate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTCertificate: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTCertificate not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIoTCertificateWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIoTCertificate", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTCertificate", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIoTCertificateWithName retrieves all AWSIoTCertificate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIoTCertificateWithName", "retrieves", "all", "AWSIoTCertificate", "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#L6224-L6232
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIoTPolicyResources
func (t *Template) GetAllAWSIoTPolicyResources() map[string]*resources.AWSIoTPolicy { results := map[string]*resources.AWSIoTPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTPolicy: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIoTPolicyResources() map[string]*resources.AWSIoTPolicy { results := map[string]*resources.AWSIoTPolicy{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTPolicy: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIoTPolicyResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTPolicy", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTPolicy", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTPolicy", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIoTPolicyResources retrieves all AWSIoTPolicy items from an AWS CloudFormation template
[ "GetAllAWSIoTPolicyResources", "retrieves", "all", "AWSIoTPolicy", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6235-L6244
train
awslabs/goformation
cloudformation/all.go
GetAWSIoTPolicyWithName
func (t *Template) GetAWSIoTPolicyWithName(name string) (*resources.AWSIoTPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTPolicy: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTPolicy not found", name) }
go
func (t *Template) GetAWSIoTPolicyWithName(name string) (*resources.AWSIoTPolicy, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTPolicy: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTPolicy not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIoTPolicyWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIoTPolicy", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTPolicy", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIoTPolicyWithName retrieves all AWSIoTPolicy items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIoTPolicyWithName", "retrieves", "all", "AWSIoTPolicy", "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#L6248-L6256
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIoTPolicyPrincipalAttachmentResources
func (t *Template) GetAllAWSIoTPolicyPrincipalAttachmentResources() map[string]*resources.AWSIoTPolicyPrincipalAttachment { results := map[string]*resources.AWSIoTPolicyPrincipalAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTPolicyPrincipalAttachment: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIoTPolicyPrincipalAttachmentResources() map[string]*resources.AWSIoTPolicyPrincipalAttachment { results := map[string]*resources.AWSIoTPolicyPrincipalAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTPolicyPrincipalAttachment: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIoTPolicyPrincipalAttachmentResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTPolicyPrincipalAttachment", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTPolicyPrincipalAttachment", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTPolicyPrincipalAttachment", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIoTPolicyPrincipalAttachmentResources retrieves all AWSIoTPolicyPrincipalAttachment items from an AWS CloudFormation template
[ "GetAllAWSIoTPolicyPrincipalAttachmentResources", "retrieves", "all", "AWSIoTPolicyPrincipalAttachment", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6259-L6268
train
awslabs/goformation
cloudformation/all.go
GetAWSIoTPolicyPrincipalAttachmentWithName
func (t *Template) GetAWSIoTPolicyPrincipalAttachmentWithName(name string) (*resources.AWSIoTPolicyPrincipalAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTPolicyPrincipalAttachment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTPolicyPrincipalAttachment not found", name) }
go
func (t *Template) GetAWSIoTPolicyPrincipalAttachmentWithName(name string) (*resources.AWSIoTPolicyPrincipalAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTPolicyPrincipalAttachment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTPolicyPrincipalAttachment not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIoTPolicyPrincipalAttachmentWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIoTPolicyPrincipalAttachment", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTPolicyPrincipalAttachment", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIoTPolicyPrincipalAttachmentWithName retrieves all AWSIoTPolicyPrincipalAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIoTPolicyPrincipalAttachmentWithName", "retrieves", "all", "AWSIoTPolicyPrincipalAttachment", "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#L6272-L6280
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIoTThingResources
func (t *Template) GetAllAWSIoTThingResources() map[string]*resources.AWSIoTThing { results := map[string]*resources.AWSIoTThing{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTThing: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIoTThingResources() map[string]*resources.AWSIoTThing { results := map[string]*resources.AWSIoTThing{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTThing: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIoTThingResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTThing", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTThing", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTThing", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIoTThingResources retrieves all AWSIoTThing items from an AWS CloudFormation template
[ "GetAllAWSIoTThingResources", "retrieves", "all", "AWSIoTThing", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6283-L6292
train
awslabs/goformation
cloudformation/all.go
GetAWSIoTThingWithName
func (t *Template) GetAWSIoTThingWithName(name string) (*resources.AWSIoTThing, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTThing: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTThing not found", name) }
go
func (t *Template) GetAWSIoTThingWithName(name string) (*resources.AWSIoTThing, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTThing: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTThing not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIoTThingWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIoTThing", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTThing", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIoTThingWithName retrieves all AWSIoTThing items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIoTThingWithName", "retrieves", "all", "AWSIoTThing", "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#L6296-L6304
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIoTThingPrincipalAttachmentResources
func (t *Template) GetAllAWSIoTThingPrincipalAttachmentResources() map[string]*resources.AWSIoTThingPrincipalAttachment { results := map[string]*resources.AWSIoTThingPrincipalAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTThingPrincipalAttachment: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIoTThingPrincipalAttachmentResources() map[string]*resources.AWSIoTThingPrincipalAttachment { results := map[string]*resources.AWSIoTThingPrincipalAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTThingPrincipalAttachment: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIoTThingPrincipalAttachmentResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTThingPrincipalAttachment", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTThingPrincipalAttachment", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTThingPrincipalAttachment", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIoTThingPrincipalAttachmentResources retrieves all AWSIoTThingPrincipalAttachment items from an AWS CloudFormation template
[ "GetAllAWSIoTThingPrincipalAttachmentResources", "retrieves", "all", "AWSIoTThingPrincipalAttachment", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6307-L6316
train
awslabs/goformation
cloudformation/all.go
GetAWSIoTThingPrincipalAttachmentWithName
func (t *Template) GetAWSIoTThingPrincipalAttachmentWithName(name string) (*resources.AWSIoTThingPrincipalAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTThingPrincipalAttachment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTThingPrincipalAttachment not found", name) }
go
func (t *Template) GetAWSIoTThingPrincipalAttachmentWithName(name string) (*resources.AWSIoTThingPrincipalAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTThingPrincipalAttachment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTThingPrincipalAttachment not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIoTThingPrincipalAttachmentWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIoTThingPrincipalAttachment", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTThingPrincipalAttachment", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIoTThingPrincipalAttachmentWithName retrieves all AWSIoTThingPrincipalAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIoTThingPrincipalAttachmentWithName", "retrieves", "all", "AWSIoTThingPrincipalAttachment", "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#L6320-L6328
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIoTTopicRuleResources
func (t *Template) GetAllAWSIoTTopicRuleResources() map[string]*resources.AWSIoTTopicRule { results := map[string]*resources.AWSIoTTopicRule{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTTopicRule: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIoTTopicRuleResources() map[string]*resources.AWSIoTTopicRule { results := map[string]*resources.AWSIoTTopicRule{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTTopicRule: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIoTTopicRuleResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTTopicRule", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTTopicRule", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTTopicRule", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIoTTopicRuleResources retrieves all AWSIoTTopicRule items from an AWS CloudFormation template
[ "GetAllAWSIoTTopicRuleResources", "retrieves", "all", "AWSIoTTopicRule", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6331-L6340
train
awslabs/goformation
cloudformation/all.go
GetAWSIoTTopicRuleWithName
func (t *Template) GetAWSIoTTopicRuleWithName(name string) (*resources.AWSIoTTopicRule, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTTopicRule: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTTopicRule not found", name) }
go
func (t *Template) GetAWSIoTTopicRuleWithName(name string) (*resources.AWSIoTTopicRule, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTTopicRule: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTTopicRule not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIoTTopicRuleWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIoTTopicRule", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTTopicRule", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIoTTopicRuleWithName retrieves all AWSIoTTopicRule items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIoTTopicRuleWithName", "retrieves", "all", "AWSIoTTopicRule", "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#L6344-L6352
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIoTAnalyticsChannelResources
func (t *Template) GetAllAWSIoTAnalyticsChannelResources() map[string]*resources.AWSIoTAnalyticsChannel { results := map[string]*resources.AWSIoTAnalyticsChannel{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsChannel: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIoTAnalyticsChannelResources() map[string]*resources.AWSIoTAnalyticsChannel { results := map[string]*resources.AWSIoTAnalyticsChannel{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsChannel: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIoTAnalyticsChannelResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTAnalyticsChannel", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTAnalyticsChannel", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTAnalyticsChannel", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIoTAnalyticsChannelResources retrieves all AWSIoTAnalyticsChannel items from an AWS CloudFormation template
[ "GetAllAWSIoTAnalyticsChannelResources", "retrieves", "all", "AWSIoTAnalyticsChannel", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6355-L6364
train
awslabs/goformation
cloudformation/all.go
GetAWSIoTAnalyticsChannelWithName
func (t *Template) GetAWSIoTAnalyticsChannelWithName(name string) (*resources.AWSIoTAnalyticsChannel, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsChannel: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsChannel not found", name) }
go
func (t *Template) GetAWSIoTAnalyticsChannelWithName(name string) (*resources.AWSIoTAnalyticsChannel, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsChannel: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsChannel not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIoTAnalyticsChannelWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIoTAnalyticsChannel", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTAnalyticsChannel", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIoTAnalyticsChannelWithName retrieves all AWSIoTAnalyticsChannel items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIoTAnalyticsChannelWithName", "retrieves", "all", "AWSIoTAnalyticsChannel", "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#L6368-L6376
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIoTAnalyticsDatasetResources
func (t *Template) GetAllAWSIoTAnalyticsDatasetResources() map[string]*resources.AWSIoTAnalyticsDataset { results := map[string]*resources.AWSIoTAnalyticsDataset{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsDataset: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIoTAnalyticsDatasetResources() map[string]*resources.AWSIoTAnalyticsDataset { results := map[string]*resources.AWSIoTAnalyticsDataset{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsDataset: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIoTAnalyticsDatasetResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTAnalyticsDataset", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTAnalyticsDataset", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTAnalyticsDataset", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIoTAnalyticsDatasetResources retrieves all AWSIoTAnalyticsDataset items from an AWS CloudFormation template
[ "GetAllAWSIoTAnalyticsDatasetResources", "retrieves", "all", "AWSIoTAnalyticsDataset", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6379-L6388
train