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
GetAWSIoTAnalyticsDatasetWithName
func (t *Template) GetAWSIoTAnalyticsDatasetWithName(name string) (*resources.AWSIoTAnalyticsDataset, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsDataset: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsDataset not found", name) }
go
func (t *Template) GetAWSIoTAnalyticsDatasetWithName(name string) (*resources.AWSIoTAnalyticsDataset, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsDataset: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsDataset not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIoTAnalyticsDatasetWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIoTAnalyticsDataset", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTAnalyticsDataset", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIoTAnalyticsDatasetWithName retrieves all AWSIoTAnalyticsDataset items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIoTAnalyticsDatasetWithName", "retrieves", "all", "AWSIoTAnalyticsDataset", "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#L6392-L6400
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIoTAnalyticsDatastoreResources
func (t *Template) GetAllAWSIoTAnalyticsDatastoreResources() map[string]*resources.AWSIoTAnalyticsDatastore { results := map[string]*resources.AWSIoTAnalyticsDatastore{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsDatastore: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIoTAnalyticsDatastoreResources() map[string]*resources.AWSIoTAnalyticsDatastore { results := map[string]*resources.AWSIoTAnalyticsDatastore{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsDatastore: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIoTAnalyticsDatastoreResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTAnalyticsDatastore", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTAnalyticsDatastore", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTAnalyticsDatastore", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIoTAnalyticsDatastoreResources retrieves all AWSIoTAnalyticsDatastore items from an AWS CloudFormation template
[ "GetAllAWSIoTAnalyticsDatastoreResources", "retrieves", "all", "AWSIoTAnalyticsDatastore", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6403-L6412
train
awslabs/goformation
cloudformation/all.go
GetAWSIoTAnalyticsDatastoreWithName
func (t *Template) GetAWSIoTAnalyticsDatastoreWithName(name string) (*resources.AWSIoTAnalyticsDatastore, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsDatastore: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsDatastore not found", name) }
go
func (t *Template) GetAWSIoTAnalyticsDatastoreWithName(name string) (*resources.AWSIoTAnalyticsDatastore, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsDatastore: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsDatastore not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIoTAnalyticsDatastoreWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIoTAnalyticsDatastore", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTAnalyticsDatastore", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIoTAnalyticsDatastoreWithName retrieves all AWSIoTAnalyticsDatastore items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIoTAnalyticsDatastoreWithName", "retrieves", "all", "AWSIoTAnalyticsDatastore", "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#L6416-L6424
train
awslabs/goformation
cloudformation/all.go
GetAllAWSIoTAnalyticsPipelineResources
func (t *Template) GetAllAWSIoTAnalyticsPipelineResources() map[string]*resources.AWSIoTAnalyticsPipeline { results := map[string]*resources.AWSIoTAnalyticsPipeline{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsPipeline: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSIoTAnalyticsPipelineResources() map[string]*resources.AWSIoTAnalyticsPipeline { results := map[string]*resources.AWSIoTAnalyticsPipeline{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsPipeline: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSIoTAnalyticsPipelineResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTAnalyticsPipeline", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSIoTAnalyticsPipeline", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTAnalyticsPipeline", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSIoTAnalyticsPipelineResources retrieves all AWSIoTAnalyticsPipeline items from an AWS CloudFormation template
[ "GetAllAWSIoTAnalyticsPipelineResources", "retrieves", "all", "AWSIoTAnalyticsPipeline", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6427-L6436
train
awslabs/goformation
cloudformation/all.go
GetAWSIoTAnalyticsPipelineWithName
func (t *Template) GetAWSIoTAnalyticsPipelineWithName(name string) (*resources.AWSIoTAnalyticsPipeline, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsPipeline: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsPipeline not found", name) }
go
func (t *Template) GetAWSIoTAnalyticsPipelineWithName(name string) (*resources.AWSIoTAnalyticsPipeline, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSIoTAnalyticsPipeline: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsPipeline not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSIoTAnalyticsPipelineWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSIoTAnalyticsPipeline", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSIoTAnalyticsPipeline", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSIoTAnalyticsPipelineWithName retrieves all AWSIoTAnalyticsPipeline items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSIoTAnalyticsPipelineWithName", "retrieves", "all", "AWSIoTAnalyticsPipeline", "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#L6440-L6448
train
awslabs/goformation
cloudformation/all.go
GetAllAWSKMSAliasResources
func (t *Template) GetAllAWSKMSAliasResources() map[string]*resources.AWSKMSAlias { results := map[string]*resources.AWSKMSAlias{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKMSAlias: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSKMSAliasResources() map[string]*resources.AWSKMSAlias { results := map[string]*resources.AWSKMSAlias{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKMSAlias: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSKMSAliasResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSKMSAlias", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSKMSAlias", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKMSAlias", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSKMSAliasResources retrieves all AWSKMSAlias items from an AWS CloudFormation template
[ "GetAllAWSKMSAliasResources", "retrieves", "all", "AWSKMSAlias", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6451-L6460
train
awslabs/goformation
cloudformation/all.go
GetAWSKMSAliasWithName
func (t *Template) GetAWSKMSAliasWithName(name string) (*resources.AWSKMSAlias, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKMSAlias: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKMSAlias not found", name) }
go
func (t *Template) GetAWSKMSAliasWithName(name string) (*resources.AWSKMSAlias, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKMSAlias: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKMSAlias not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSKMSAliasWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSKMSAlias", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKMSAlias", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSKMSAliasWithName retrieves all AWSKMSAlias items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSKMSAliasWithName", "retrieves", "all", "AWSKMSAlias", "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#L6464-L6472
train
awslabs/goformation
cloudformation/all.go
GetAllAWSKMSKeyResources
func (t *Template) GetAllAWSKMSKeyResources() map[string]*resources.AWSKMSKey { results := map[string]*resources.AWSKMSKey{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKMSKey: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSKMSKeyResources() map[string]*resources.AWSKMSKey { results := map[string]*resources.AWSKMSKey{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKMSKey: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSKMSKeyResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSKMSKey", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSKMSKey", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKMSKey", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSKMSKeyResources retrieves all AWSKMSKey items from an AWS CloudFormation template
[ "GetAllAWSKMSKeyResources", "retrieves", "all", "AWSKMSKey", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6475-L6484
train
awslabs/goformation
cloudformation/all.go
GetAWSKMSKeyWithName
func (t *Template) GetAWSKMSKeyWithName(name string) (*resources.AWSKMSKey, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKMSKey: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKMSKey not found", name) }
go
func (t *Template) GetAWSKMSKeyWithName(name string) (*resources.AWSKMSKey, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKMSKey: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKMSKey not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSKMSKeyWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSKMSKey", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKMSKey", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSKMSKeyWithName retrieves all AWSKMSKey items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSKMSKeyWithName", "retrieves", "all", "AWSKMSKey", "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#L6488-L6496
train
awslabs/goformation
cloudformation/all.go
GetAllAWSKinesisStreamResources
func (t *Template) GetAllAWSKinesisStreamResources() map[string]*resources.AWSKinesisStream { results := map[string]*resources.AWSKinesisStream{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisStream: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSKinesisStreamResources() map[string]*resources.AWSKinesisStream { results := map[string]*resources.AWSKinesisStream{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisStream: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSKinesisStreamResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisStream", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisStream", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisStream", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSKinesisStreamResources retrieves all AWSKinesisStream items from an AWS CloudFormation template
[ "GetAllAWSKinesisStreamResources", "retrieves", "all", "AWSKinesisStream", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6499-L6508
train
awslabs/goformation
cloudformation/all.go
GetAWSKinesisStreamWithName
func (t *Template) GetAWSKinesisStreamWithName(name string) (*resources.AWSKinesisStream, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisStream: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisStream not found", name) }
go
func (t *Template) GetAWSKinesisStreamWithName(name string) (*resources.AWSKinesisStream, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisStream: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisStream not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSKinesisStreamWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSKinesisStream", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisStream", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSKinesisStreamWithName retrieves all AWSKinesisStream items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSKinesisStreamWithName", "retrieves", "all", "AWSKinesisStream", "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#L6512-L6520
train
awslabs/goformation
cloudformation/all.go
GetAllAWSKinesisStreamConsumerResources
func (t *Template) GetAllAWSKinesisStreamConsumerResources() map[string]*resources.AWSKinesisStreamConsumer { results := map[string]*resources.AWSKinesisStreamConsumer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisStreamConsumer: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSKinesisStreamConsumerResources() map[string]*resources.AWSKinesisStreamConsumer { results := map[string]*resources.AWSKinesisStreamConsumer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisStreamConsumer: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSKinesisStreamConsumerResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisStreamConsumer", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisStreamConsumer", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisStreamConsumer", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSKinesisStreamConsumerResources retrieves all AWSKinesisStreamConsumer items from an AWS CloudFormation template
[ "GetAllAWSKinesisStreamConsumerResources", "retrieves", "all", "AWSKinesisStreamConsumer", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6523-L6532
train
awslabs/goformation
cloudformation/all.go
GetAWSKinesisStreamConsumerWithName
func (t *Template) GetAWSKinesisStreamConsumerWithName(name string) (*resources.AWSKinesisStreamConsumer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisStreamConsumer: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisStreamConsumer not found", name) }
go
func (t *Template) GetAWSKinesisStreamConsumerWithName(name string) (*resources.AWSKinesisStreamConsumer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisStreamConsumer: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisStreamConsumer not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSKinesisStreamConsumerWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSKinesisStreamConsumer", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisStreamConsumer", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSKinesisStreamConsumerWithName retrieves all AWSKinesisStreamConsumer items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSKinesisStreamConsumerWithName", "retrieves", "all", "AWSKinesisStreamConsumer", "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#L6536-L6544
train
awslabs/goformation
cloudformation/all.go
GetAllAWSKinesisAnalyticsApplicationResources
func (t *Template) GetAllAWSKinesisAnalyticsApplicationResources() map[string]*resources.AWSKinesisAnalyticsApplication { results := map[string]*resources.AWSKinesisAnalyticsApplication{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsApplication: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSKinesisAnalyticsApplicationResources() map[string]*resources.AWSKinesisAnalyticsApplication { results := map[string]*resources.AWSKinesisAnalyticsApplication{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsApplication: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSKinesisAnalyticsApplicationResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsApplication", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsApplication", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsApplication", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSKinesisAnalyticsApplicationResources retrieves all AWSKinesisAnalyticsApplication items from an AWS CloudFormation template
[ "GetAllAWSKinesisAnalyticsApplicationResources", "retrieves", "all", "AWSKinesisAnalyticsApplication", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6547-L6556
train
awslabs/goformation
cloudformation/all.go
GetAWSKinesisAnalyticsApplicationWithName
func (t *Template) GetAWSKinesisAnalyticsApplicationWithName(name string) (*resources.AWSKinesisAnalyticsApplication, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsApplication: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsApplication not found", name) }
go
func (t *Template) GetAWSKinesisAnalyticsApplicationWithName(name string) (*resources.AWSKinesisAnalyticsApplication, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsApplication: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsApplication not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSKinesisAnalyticsApplicationWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSKinesisAnalyticsApplication", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsApplication", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSKinesisAnalyticsApplicationWithName retrieves all AWSKinesisAnalyticsApplication items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSKinesisAnalyticsApplicationWithName", "retrieves", "all", "AWSKinesisAnalyticsApplication", "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#L6560-L6568
train
awslabs/goformation
cloudformation/all.go
GetAllAWSKinesisAnalyticsApplicationOutputResources
func (t *Template) GetAllAWSKinesisAnalyticsApplicationOutputResources() map[string]*resources.AWSKinesisAnalyticsApplicationOutput { results := map[string]*resources.AWSKinesisAnalyticsApplicationOutput{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsApplicationOutput: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSKinesisAnalyticsApplicationOutputResources() map[string]*resources.AWSKinesisAnalyticsApplicationOutput { results := map[string]*resources.AWSKinesisAnalyticsApplicationOutput{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsApplicationOutput: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSKinesisAnalyticsApplicationOutputResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsApplicationOutput", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsApplicationOutput", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsApplicationOutput", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSKinesisAnalyticsApplicationOutputResources retrieves all AWSKinesisAnalyticsApplicationOutput items from an AWS CloudFormation template
[ "GetAllAWSKinesisAnalyticsApplicationOutputResources", "retrieves", "all", "AWSKinesisAnalyticsApplicationOutput", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6571-L6580
train
awslabs/goformation
cloudformation/all.go
GetAWSKinesisAnalyticsApplicationOutputWithName
func (t *Template) GetAWSKinesisAnalyticsApplicationOutputWithName(name string) (*resources.AWSKinesisAnalyticsApplicationOutput, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsApplicationOutput: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsApplicationOutput not found", name) }
go
func (t *Template) GetAWSKinesisAnalyticsApplicationOutputWithName(name string) (*resources.AWSKinesisAnalyticsApplicationOutput, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsApplicationOutput: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsApplicationOutput not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSKinesisAnalyticsApplicationOutputWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSKinesisAnalyticsApplicationOutput", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsApplicationOutput", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSKinesisAnalyticsApplicationOutputWithName retrieves all AWSKinesisAnalyticsApplicationOutput items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSKinesisAnalyticsApplicationOutputWithName", "retrieves", "all", "AWSKinesisAnalyticsApplicationOutput", "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#L6584-L6592
train
awslabs/goformation
cloudformation/all.go
GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources
func (t *Template) GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources() map[string]*resources.AWSKinesisAnalyticsApplicationReferenceDataSource { results := map[string]*resources.AWSKinesisAnalyticsApplicationReferenceDataSource{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsApplicationReferenceDataSource: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources() map[string]*resources.AWSKinesisAnalyticsApplicationReferenceDataSource { results := map[string]*resources.AWSKinesisAnalyticsApplicationReferenceDataSource{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsApplicationReferenceDataSource: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsApplicationReferenceDataSource", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsApplicationReferenceDataSource", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsApplicationReferenceDataSource", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources retrieves all AWSKinesisAnalyticsApplicationReferenceDataSource items from an AWS CloudFormation template
[ "GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources", "retrieves", "all", "AWSKinesisAnalyticsApplicationReferenceDataSource", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6595-L6604
train
awslabs/goformation
cloudformation/all.go
GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName
func (t *Template) GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName(name string) (*resources.AWSKinesisAnalyticsApplicationReferenceDataSource, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsApplicationReferenceDataSource: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsApplicationReferenceDataSource not found", name) }
go
func (t *Template) GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName(name string) (*resources.AWSKinesisAnalyticsApplicationReferenceDataSource, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsApplicationReferenceDataSource: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsApplicationReferenceDataSource not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSKinesisAnalyticsApplicationReferenceDataSource", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsApplicationReferenceDataSource", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName retrieves all AWSKinesisAnalyticsApplicationReferenceDataSource items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName", "retrieves", "all", "AWSKinesisAnalyticsApplicationReferenceDataSource", "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#L6608-L6616
train
awslabs/goformation
cloudformation/all.go
GetAllAWSKinesisAnalyticsV2ApplicationResources
func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationResources() map[string]*resources.AWSKinesisAnalyticsV2Application { results := map[string]*resources.AWSKinesisAnalyticsV2Application{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2Application: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationResources() map[string]*resources.AWSKinesisAnalyticsV2Application { results := map[string]*resources.AWSKinesisAnalyticsV2Application{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2Application: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSKinesisAnalyticsV2ApplicationResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsV2Application", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsV2Application", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsV2Application", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSKinesisAnalyticsV2ApplicationResources retrieves all AWSKinesisAnalyticsV2Application items from an AWS CloudFormation template
[ "GetAllAWSKinesisAnalyticsV2ApplicationResources", "retrieves", "all", "AWSKinesisAnalyticsV2Application", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6619-L6628
train
awslabs/goformation
cloudformation/all.go
GetAWSKinesisAnalyticsV2ApplicationWithName
func (t *Template) GetAWSKinesisAnalyticsV2ApplicationWithName(name string) (*resources.AWSKinesisAnalyticsV2Application, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2Application: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2Application not found", name) }
go
func (t *Template) GetAWSKinesisAnalyticsV2ApplicationWithName(name string) (*resources.AWSKinesisAnalyticsV2Application, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2Application: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2Application not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSKinesisAnalyticsV2ApplicationWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSKinesisAnalyticsV2Application", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsV2Application", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSKinesisAnalyticsV2ApplicationWithName retrieves all AWSKinesisAnalyticsV2Application items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSKinesisAnalyticsV2ApplicationWithName", "retrieves", "all", "AWSKinesisAnalyticsV2Application", "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#L6632-L6640
train
awslabs/goformation
cloudformation/all.go
GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources
func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption { results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption { results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources retrieves all AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption items from an AWS CloudFormation template
[ "GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources", "retrieves", "all", "AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6643-L6652
train
awslabs/goformation
cloudformation/all.go
GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName
func (t *Template) GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption not found", name) }
go
func (t *Template) GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName retrieves all AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName", "retrieves", "all", "AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption", "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#L6656-L6664
train
awslabs/goformation
cloudformation/all.go
GetAllAWSKinesisAnalyticsV2ApplicationOutputResources
func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationOutputResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationOutput { results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationOutput{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2ApplicationOutput: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationOutputResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationOutput { results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationOutput{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2ApplicationOutput: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSKinesisAnalyticsV2ApplicationOutputResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationOutput", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationOutput", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationOutput", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSKinesisAnalyticsV2ApplicationOutputResources retrieves all AWSKinesisAnalyticsV2ApplicationOutput items from an AWS CloudFormation template
[ "GetAllAWSKinesisAnalyticsV2ApplicationOutputResources", "retrieves", "all", "AWSKinesisAnalyticsV2ApplicationOutput", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6667-L6676
train
awslabs/goformation
cloudformation/all.go
GetAWSKinesisAnalyticsV2ApplicationOutputWithName
func (t *Template) GetAWSKinesisAnalyticsV2ApplicationOutputWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationOutput, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2ApplicationOutput: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2ApplicationOutput not found", name) }
go
func (t *Template) GetAWSKinesisAnalyticsV2ApplicationOutputWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationOutput, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2ApplicationOutput: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2ApplicationOutput not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSKinesisAnalyticsV2ApplicationOutputWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationOutput", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationOutput", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSKinesisAnalyticsV2ApplicationOutputWithName retrieves all AWSKinesisAnalyticsV2ApplicationOutput items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSKinesisAnalyticsV2ApplicationOutputWithName", "retrieves", "all", "AWSKinesisAnalyticsV2ApplicationOutput", "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#L6680-L6688
train
awslabs/goformation
cloudformation/all.go
GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources
func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource { results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource { results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationReferenceDataSource", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationReferenceDataSource", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationReferenceDataSource", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources retrieves all AWSKinesisAnalyticsV2ApplicationReferenceDataSource items from an AWS CloudFormation template
[ "GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources", "retrieves", "all", "AWSKinesisAnalyticsV2ApplicationReferenceDataSource", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6691-L6700
train
awslabs/goformation
cloudformation/all.go
GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName
func (t *Template) GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2ApplicationReferenceDataSource not found", name) }
go
func (t *Template) GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2ApplicationReferenceDataSource not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationReferenceDataSource", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisAnalyticsV2ApplicationReferenceDataSource", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName retrieves all AWSKinesisAnalyticsV2ApplicationReferenceDataSource items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName", "retrieves", "all", "AWSKinesisAnalyticsV2ApplicationReferenceDataSource", "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#L6704-L6712
train
awslabs/goformation
cloudformation/all.go
GetAllAWSKinesisFirehoseDeliveryStreamResources
func (t *Template) GetAllAWSKinesisFirehoseDeliveryStreamResources() map[string]*resources.AWSKinesisFirehoseDeliveryStream { results := map[string]*resources.AWSKinesisFirehoseDeliveryStream{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisFirehoseDeliveryStream: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSKinesisFirehoseDeliveryStreamResources() map[string]*resources.AWSKinesisFirehoseDeliveryStream { results := map[string]*resources.AWSKinesisFirehoseDeliveryStream{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSKinesisFirehoseDeliveryStream: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSKinesisFirehoseDeliveryStreamResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisFirehoseDeliveryStream", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSKinesisFirehoseDeliveryStream", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisFirehoseDeliveryStream", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSKinesisFirehoseDeliveryStreamResources retrieves all AWSKinesisFirehoseDeliveryStream items from an AWS CloudFormation template
[ "GetAllAWSKinesisFirehoseDeliveryStreamResources", "retrieves", "all", "AWSKinesisFirehoseDeliveryStream", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6715-L6724
train
awslabs/goformation
cloudformation/all.go
GetAWSKinesisFirehoseDeliveryStreamWithName
func (t *Template) GetAWSKinesisFirehoseDeliveryStreamWithName(name string) (*resources.AWSKinesisFirehoseDeliveryStream, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisFirehoseDeliveryStream: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisFirehoseDeliveryStream not found", name) }
go
func (t *Template) GetAWSKinesisFirehoseDeliveryStreamWithName(name string) (*resources.AWSKinesisFirehoseDeliveryStream, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSKinesisFirehoseDeliveryStream: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSKinesisFirehoseDeliveryStream not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSKinesisFirehoseDeliveryStreamWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSKinesisFirehoseDeliveryStream", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSKinesisFirehoseDeliveryStream", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSKinesisFirehoseDeliveryStreamWithName retrieves all AWSKinesisFirehoseDeliveryStream items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSKinesisFirehoseDeliveryStreamWithName", "retrieves", "all", "AWSKinesisFirehoseDeliveryStream", "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#L6728-L6736
train
awslabs/goformation
cloudformation/all.go
GetAllAWSLambdaAliasResources
func (t *Template) GetAllAWSLambdaAliasResources() map[string]*resources.AWSLambdaAlias { results := map[string]*resources.AWSLambdaAlias{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaAlias: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSLambdaAliasResources() map[string]*resources.AWSLambdaAlias { results := map[string]*resources.AWSLambdaAlias{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaAlias: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSLambdaAliasResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaAlias", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaAlias", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaAlias", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSLambdaAliasResources retrieves all AWSLambdaAlias items from an AWS CloudFormation template
[ "GetAllAWSLambdaAliasResources", "retrieves", "all", "AWSLambdaAlias", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6739-L6748
train
awslabs/goformation
cloudformation/all.go
GetAWSLambdaAliasWithName
func (t *Template) GetAWSLambdaAliasWithName(name string) (*resources.AWSLambdaAlias, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaAlias: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaAlias not found", name) }
go
func (t *Template) GetAWSLambdaAliasWithName(name string) (*resources.AWSLambdaAlias, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaAlias: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaAlias not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSLambdaAliasWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSLambdaAlias", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaAlias", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSLambdaAliasWithName retrieves all AWSLambdaAlias items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSLambdaAliasWithName", "retrieves", "all", "AWSLambdaAlias", "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#L6752-L6760
train
awslabs/goformation
cloudformation/all.go
GetAllAWSLambdaEventSourceMappingResources
func (t *Template) GetAllAWSLambdaEventSourceMappingResources() map[string]*resources.AWSLambdaEventSourceMapping { results := map[string]*resources.AWSLambdaEventSourceMapping{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaEventSourceMapping: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSLambdaEventSourceMappingResources() map[string]*resources.AWSLambdaEventSourceMapping { results := map[string]*resources.AWSLambdaEventSourceMapping{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaEventSourceMapping: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSLambdaEventSourceMappingResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaEventSourceMapping", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaEventSourceMapping", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaEventSourceMapping", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSLambdaEventSourceMappingResources retrieves all AWSLambdaEventSourceMapping items from an AWS CloudFormation template
[ "GetAllAWSLambdaEventSourceMappingResources", "retrieves", "all", "AWSLambdaEventSourceMapping", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6763-L6772
train
awslabs/goformation
cloudformation/all.go
GetAWSLambdaEventSourceMappingWithName
func (t *Template) GetAWSLambdaEventSourceMappingWithName(name string) (*resources.AWSLambdaEventSourceMapping, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaEventSourceMapping: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaEventSourceMapping not found", name) }
go
func (t *Template) GetAWSLambdaEventSourceMappingWithName(name string) (*resources.AWSLambdaEventSourceMapping, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaEventSourceMapping: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaEventSourceMapping not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSLambdaEventSourceMappingWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSLambdaEventSourceMapping", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaEventSourceMapping", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSLambdaEventSourceMappingWithName retrieves all AWSLambdaEventSourceMapping items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSLambdaEventSourceMappingWithName", "retrieves", "all", "AWSLambdaEventSourceMapping", "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#L6776-L6784
train
awslabs/goformation
cloudformation/all.go
GetAllAWSLambdaFunctionResources
func (t *Template) GetAllAWSLambdaFunctionResources() map[string]*resources.AWSLambdaFunction { results := map[string]*resources.AWSLambdaFunction{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaFunction: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSLambdaFunctionResources() map[string]*resources.AWSLambdaFunction { results := map[string]*resources.AWSLambdaFunction{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaFunction: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSLambdaFunctionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaFunction", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaFunction", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaFunction", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSLambdaFunctionResources retrieves all AWSLambdaFunction items from an AWS CloudFormation template
[ "GetAllAWSLambdaFunctionResources", "retrieves", "all", "AWSLambdaFunction", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6787-L6796
train
awslabs/goformation
cloudformation/all.go
GetAWSLambdaFunctionWithName
func (t *Template) GetAWSLambdaFunctionWithName(name string) (*resources.AWSLambdaFunction, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaFunction: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaFunction not found", name) }
go
func (t *Template) GetAWSLambdaFunctionWithName(name string) (*resources.AWSLambdaFunction, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaFunction: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaFunction not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSLambdaFunctionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSLambdaFunction", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaFunction", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSLambdaFunctionWithName retrieves all AWSLambdaFunction items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSLambdaFunctionWithName", "retrieves", "all", "AWSLambdaFunction", "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#L6800-L6808
train
awslabs/goformation
cloudformation/all.go
GetAllAWSLambdaLayerVersionResources
func (t *Template) GetAllAWSLambdaLayerVersionResources() map[string]*resources.AWSLambdaLayerVersion { results := map[string]*resources.AWSLambdaLayerVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaLayerVersion: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSLambdaLayerVersionResources() map[string]*resources.AWSLambdaLayerVersion { results := map[string]*resources.AWSLambdaLayerVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaLayerVersion: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSLambdaLayerVersionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaLayerVersion", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaLayerVersion", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaLayerVersion", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSLambdaLayerVersionResources retrieves all AWSLambdaLayerVersion items from an AWS CloudFormation template
[ "GetAllAWSLambdaLayerVersionResources", "retrieves", "all", "AWSLambdaLayerVersion", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6811-L6820
train
awslabs/goformation
cloudformation/all.go
GetAWSLambdaLayerVersionWithName
func (t *Template) GetAWSLambdaLayerVersionWithName(name string) (*resources.AWSLambdaLayerVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaLayerVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaLayerVersion not found", name) }
go
func (t *Template) GetAWSLambdaLayerVersionWithName(name string) (*resources.AWSLambdaLayerVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaLayerVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaLayerVersion not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSLambdaLayerVersionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSLambdaLayerVersion", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaLayerVersion", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSLambdaLayerVersionWithName retrieves all AWSLambdaLayerVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSLambdaLayerVersionWithName", "retrieves", "all", "AWSLambdaLayerVersion", "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#L6824-L6832
train
awslabs/goformation
cloudformation/all.go
GetAllAWSLambdaLayerVersionPermissionResources
func (t *Template) GetAllAWSLambdaLayerVersionPermissionResources() map[string]*resources.AWSLambdaLayerVersionPermission { results := map[string]*resources.AWSLambdaLayerVersionPermission{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaLayerVersionPermission: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSLambdaLayerVersionPermissionResources() map[string]*resources.AWSLambdaLayerVersionPermission { results := map[string]*resources.AWSLambdaLayerVersionPermission{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaLayerVersionPermission: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSLambdaLayerVersionPermissionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaLayerVersionPermission", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaLayerVersionPermission", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaLayerVersionPermission", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSLambdaLayerVersionPermissionResources retrieves all AWSLambdaLayerVersionPermission items from an AWS CloudFormation template
[ "GetAllAWSLambdaLayerVersionPermissionResources", "retrieves", "all", "AWSLambdaLayerVersionPermission", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6835-L6844
train
awslabs/goformation
cloudformation/all.go
GetAWSLambdaLayerVersionPermissionWithName
func (t *Template) GetAWSLambdaLayerVersionPermissionWithName(name string) (*resources.AWSLambdaLayerVersionPermission, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaLayerVersionPermission: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaLayerVersionPermission not found", name) }
go
func (t *Template) GetAWSLambdaLayerVersionPermissionWithName(name string) (*resources.AWSLambdaLayerVersionPermission, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaLayerVersionPermission: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaLayerVersionPermission not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSLambdaLayerVersionPermissionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSLambdaLayerVersionPermission", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaLayerVersionPermission", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSLambdaLayerVersionPermissionWithName retrieves all AWSLambdaLayerVersionPermission items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSLambdaLayerVersionPermissionWithName", "retrieves", "all", "AWSLambdaLayerVersionPermission", "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#L6848-L6856
train
awslabs/goformation
cloudformation/all.go
GetAllAWSLambdaPermissionResources
func (t *Template) GetAllAWSLambdaPermissionResources() map[string]*resources.AWSLambdaPermission { results := map[string]*resources.AWSLambdaPermission{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaPermission: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSLambdaPermissionResources() map[string]*resources.AWSLambdaPermission { results := map[string]*resources.AWSLambdaPermission{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaPermission: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSLambdaPermissionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaPermission", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaPermission", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaPermission", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSLambdaPermissionResources retrieves all AWSLambdaPermission items from an AWS CloudFormation template
[ "GetAllAWSLambdaPermissionResources", "retrieves", "all", "AWSLambdaPermission", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6859-L6868
train
awslabs/goformation
cloudformation/all.go
GetAWSLambdaPermissionWithName
func (t *Template) GetAWSLambdaPermissionWithName(name string) (*resources.AWSLambdaPermission, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaPermission: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaPermission not found", name) }
go
func (t *Template) GetAWSLambdaPermissionWithName(name string) (*resources.AWSLambdaPermission, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaPermission: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaPermission not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSLambdaPermissionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSLambdaPermission", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaPermission", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSLambdaPermissionWithName retrieves all AWSLambdaPermission items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSLambdaPermissionWithName", "retrieves", "all", "AWSLambdaPermission", "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#L6872-L6880
train
awslabs/goformation
cloudformation/all.go
GetAllAWSLambdaVersionResources
func (t *Template) GetAllAWSLambdaVersionResources() map[string]*resources.AWSLambdaVersion { results := map[string]*resources.AWSLambdaVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaVersion: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSLambdaVersionResources() map[string]*resources.AWSLambdaVersion { results := map[string]*resources.AWSLambdaVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLambdaVersion: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSLambdaVersionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaVersion", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSLambdaVersion", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaVersion", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSLambdaVersionResources retrieves all AWSLambdaVersion items from an AWS CloudFormation template
[ "GetAllAWSLambdaVersionResources", "retrieves", "all", "AWSLambdaVersion", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6883-L6892
train
awslabs/goformation
cloudformation/all.go
GetAWSLambdaVersionWithName
func (t *Template) GetAWSLambdaVersionWithName(name string) (*resources.AWSLambdaVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaVersion not found", name) }
go
func (t *Template) GetAWSLambdaVersionWithName(name string) (*resources.AWSLambdaVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLambdaVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLambdaVersion not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSLambdaVersionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSLambdaVersion", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLambdaVersion", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSLambdaVersionWithName retrieves all AWSLambdaVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSLambdaVersionWithName", "retrieves", "all", "AWSLambdaVersion", "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#L6896-L6904
train
awslabs/goformation
cloudformation/all.go
GetAllAWSLogsDestinationResources
func (t *Template) GetAllAWSLogsDestinationResources() map[string]*resources.AWSLogsDestination { results := map[string]*resources.AWSLogsDestination{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLogsDestination: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSLogsDestinationResources() map[string]*resources.AWSLogsDestination { results := map[string]*resources.AWSLogsDestination{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLogsDestination: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSLogsDestinationResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSLogsDestination", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSLogsDestination", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLogsDestination", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSLogsDestinationResources retrieves all AWSLogsDestination items from an AWS CloudFormation template
[ "GetAllAWSLogsDestinationResources", "retrieves", "all", "AWSLogsDestination", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6907-L6916
train
awslabs/goformation
cloudformation/all.go
GetAWSLogsDestinationWithName
func (t *Template) GetAWSLogsDestinationWithName(name string) (*resources.AWSLogsDestination, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLogsDestination: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLogsDestination not found", name) }
go
func (t *Template) GetAWSLogsDestinationWithName(name string) (*resources.AWSLogsDestination, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLogsDestination: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLogsDestination not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSLogsDestinationWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSLogsDestination", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLogsDestination", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSLogsDestinationWithName retrieves all AWSLogsDestination items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSLogsDestinationWithName", "retrieves", "all", "AWSLogsDestination", "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#L6920-L6928
train
awslabs/goformation
cloudformation/all.go
GetAllAWSLogsLogGroupResources
func (t *Template) GetAllAWSLogsLogGroupResources() map[string]*resources.AWSLogsLogGroup { results := map[string]*resources.AWSLogsLogGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLogsLogGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSLogsLogGroupResources() map[string]*resources.AWSLogsLogGroup { results := map[string]*resources.AWSLogsLogGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLogsLogGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSLogsLogGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSLogsLogGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSLogsLogGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLogsLogGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSLogsLogGroupResources retrieves all AWSLogsLogGroup items from an AWS CloudFormation template
[ "GetAllAWSLogsLogGroupResources", "retrieves", "all", "AWSLogsLogGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6931-L6940
train
awslabs/goformation
cloudformation/all.go
GetAWSLogsLogGroupWithName
func (t *Template) GetAWSLogsLogGroupWithName(name string) (*resources.AWSLogsLogGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLogsLogGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLogsLogGroup not found", name) }
go
func (t *Template) GetAWSLogsLogGroupWithName(name string) (*resources.AWSLogsLogGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLogsLogGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLogsLogGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSLogsLogGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSLogsLogGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLogsLogGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSLogsLogGroupWithName retrieves all AWSLogsLogGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSLogsLogGroupWithName", "retrieves", "all", "AWSLogsLogGroup", "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#L6944-L6952
train
awslabs/goformation
cloudformation/all.go
GetAllAWSLogsLogStreamResources
func (t *Template) GetAllAWSLogsLogStreamResources() map[string]*resources.AWSLogsLogStream { results := map[string]*resources.AWSLogsLogStream{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLogsLogStream: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSLogsLogStreamResources() map[string]*resources.AWSLogsLogStream { results := map[string]*resources.AWSLogsLogStream{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLogsLogStream: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSLogsLogStreamResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSLogsLogStream", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSLogsLogStream", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLogsLogStream", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSLogsLogStreamResources retrieves all AWSLogsLogStream items from an AWS CloudFormation template
[ "GetAllAWSLogsLogStreamResources", "retrieves", "all", "AWSLogsLogStream", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6955-L6964
train
awslabs/goformation
cloudformation/all.go
GetAWSLogsLogStreamWithName
func (t *Template) GetAWSLogsLogStreamWithName(name string) (*resources.AWSLogsLogStream, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLogsLogStream: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLogsLogStream not found", name) }
go
func (t *Template) GetAWSLogsLogStreamWithName(name string) (*resources.AWSLogsLogStream, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLogsLogStream: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLogsLogStream not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSLogsLogStreamWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSLogsLogStream", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLogsLogStream", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSLogsLogStreamWithName retrieves all AWSLogsLogStream items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSLogsLogStreamWithName", "retrieves", "all", "AWSLogsLogStream", "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#L6968-L6976
train
awslabs/goformation
cloudformation/all.go
GetAllAWSLogsMetricFilterResources
func (t *Template) GetAllAWSLogsMetricFilterResources() map[string]*resources.AWSLogsMetricFilter { results := map[string]*resources.AWSLogsMetricFilter{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLogsMetricFilter: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSLogsMetricFilterResources() map[string]*resources.AWSLogsMetricFilter { results := map[string]*resources.AWSLogsMetricFilter{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLogsMetricFilter: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSLogsMetricFilterResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSLogsMetricFilter", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSLogsMetricFilter", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLogsMetricFilter", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSLogsMetricFilterResources retrieves all AWSLogsMetricFilter items from an AWS CloudFormation template
[ "GetAllAWSLogsMetricFilterResources", "retrieves", "all", "AWSLogsMetricFilter", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6979-L6988
train
awslabs/goformation
cloudformation/all.go
GetAWSLogsMetricFilterWithName
func (t *Template) GetAWSLogsMetricFilterWithName(name string) (*resources.AWSLogsMetricFilter, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLogsMetricFilter: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLogsMetricFilter not found", name) }
go
func (t *Template) GetAWSLogsMetricFilterWithName(name string) (*resources.AWSLogsMetricFilter, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLogsMetricFilter: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLogsMetricFilter not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSLogsMetricFilterWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSLogsMetricFilter", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLogsMetricFilter", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSLogsMetricFilterWithName retrieves all AWSLogsMetricFilter items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSLogsMetricFilterWithName", "retrieves", "all", "AWSLogsMetricFilter", "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#L6992-L7000
train
awslabs/goformation
cloudformation/all.go
GetAllAWSLogsSubscriptionFilterResources
func (t *Template) GetAllAWSLogsSubscriptionFilterResources() map[string]*resources.AWSLogsSubscriptionFilter { results := map[string]*resources.AWSLogsSubscriptionFilter{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLogsSubscriptionFilter: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSLogsSubscriptionFilterResources() map[string]*resources.AWSLogsSubscriptionFilter { results := map[string]*resources.AWSLogsSubscriptionFilter{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSLogsSubscriptionFilter: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSLogsSubscriptionFilterResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSLogsSubscriptionFilter", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSLogsSubscriptionFilter", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLogsSubscriptionFilter", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSLogsSubscriptionFilterResources retrieves all AWSLogsSubscriptionFilter items from an AWS CloudFormation template
[ "GetAllAWSLogsSubscriptionFilterResources", "retrieves", "all", "AWSLogsSubscriptionFilter", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7003-L7012
train
awslabs/goformation
cloudformation/all.go
GetAWSLogsSubscriptionFilterWithName
func (t *Template) GetAWSLogsSubscriptionFilterWithName(name string) (*resources.AWSLogsSubscriptionFilter, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLogsSubscriptionFilter: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLogsSubscriptionFilter not found", name) }
go
func (t *Template) GetAWSLogsSubscriptionFilterWithName(name string) (*resources.AWSLogsSubscriptionFilter, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSLogsSubscriptionFilter: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSLogsSubscriptionFilter not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSLogsSubscriptionFilterWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSLogsSubscriptionFilter", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSLogsSubscriptionFilter", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSLogsSubscriptionFilterWithName retrieves all AWSLogsSubscriptionFilter items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSLogsSubscriptionFilterWithName", "retrieves", "all", "AWSLogsSubscriptionFilter", "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#L7016-L7024
train
awslabs/goformation
cloudformation/all.go
GetAllAWSNeptuneDBClusterResources
func (t *Template) GetAllAWSNeptuneDBClusterResources() map[string]*resources.AWSNeptuneDBCluster { results := map[string]*resources.AWSNeptuneDBCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSNeptuneDBCluster: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSNeptuneDBClusterResources() map[string]*resources.AWSNeptuneDBCluster { results := map[string]*resources.AWSNeptuneDBCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSNeptuneDBCluster: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSNeptuneDBClusterResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSNeptuneDBCluster", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSNeptuneDBCluster", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSNeptuneDBCluster", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSNeptuneDBClusterResources retrieves all AWSNeptuneDBCluster items from an AWS CloudFormation template
[ "GetAllAWSNeptuneDBClusterResources", "retrieves", "all", "AWSNeptuneDBCluster", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7027-L7036
train
awslabs/goformation
cloudformation/all.go
GetAWSNeptuneDBClusterWithName
func (t *Template) GetAWSNeptuneDBClusterWithName(name string) (*resources.AWSNeptuneDBCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSNeptuneDBCluster: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSNeptuneDBCluster not found", name) }
go
func (t *Template) GetAWSNeptuneDBClusterWithName(name string) (*resources.AWSNeptuneDBCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSNeptuneDBCluster: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSNeptuneDBCluster not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSNeptuneDBClusterWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSNeptuneDBCluster", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSNeptuneDBCluster", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSNeptuneDBClusterWithName retrieves all AWSNeptuneDBCluster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSNeptuneDBClusterWithName", "retrieves", "all", "AWSNeptuneDBCluster", "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#L7040-L7048
train
awslabs/goformation
cloudformation/all.go
GetAllAWSNeptuneDBClusterParameterGroupResources
func (t *Template) GetAllAWSNeptuneDBClusterParameterGroupResources() map[string]*resources.AWSNeptuneDBClusterParameterGroup { results := map[string]*resources.AWSNeptuneDBClusterParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSNeptuneDBClusterParameterGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSNeptuneDBClusterParameterGroupResources() map[string]*resources.AWSNeptuneDBClusterParameterGroup { results := map[string]*resources.AWSNeptuneDBClusterParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSNeptuneDBClusterParameterGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSNeptuneDBClusterParameterGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSNeptuneDBClusterParameterGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSNeptuneDBClusterParameterGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSNeptuneDBClusterParameterGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSNeptuneDBClusterParameterGroupResources retrieves all AWSNeptuneDBClusterParameterGroup items from an AWS CloudFormation template
[ "GetAllAWSNeptuneDBClusterParameterGroupResources", "retrieves", "all", "AWSNeptuneDBClusterParameterGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7051-L7060
train
awslabs/goformation
cloudformation/all.go
GetAWSNeptuneDBClusterParameterGroupWithName
func (t *Template) GetAWSNeptuneDBClusterParameterGroupWithName(name string) (*resources.AWSNeptuneDBClusterParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSNeptuneDBClusterParameterGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSNeptuneDBClusterParameterGroup not found", name) }
go
func (t *Template) GetAWSNeptuneDBClusterParameterGroupWithName(name string) (*resources.AWSNeptuneDBClusterParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSNeptuneDBClusterParameterGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSNeptuneDBClusterParameterGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSNeptuneDBClusterParameterGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSNeptuneDBClusterParameterGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSNeptuneDBClusterParameterGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSNeptuneDBClusterParameterGroupWithName retrieves all AWSNeptuneDBClusterParameterGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSNeptuneDBClusterParameterGroupWithName", "retrieves", "all", "AWSNeptuneDBClusterParameterGroup", "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#L7064-L7072
train
awslabs/goformation
cloudformation/all.go
GetAllAWSNeptuneDBInstanceResources
func (t *Template) GetAllAWSNeptuneDBInstanceResources() map[string]*resources.AWSNeptuneDBInstance { results := map[string]*resources.AWSNeptuneDBInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSNeptuneDBInstance: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSNeptuneDBInstanceResources() map[string]*resources.AWSNeptuneDBInstance { results := map[string]*resources.AWSNeptuneDBInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSNeptuneDBInstance: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSNeptuneDBInstanceResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSNeptuneDBInstance", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSNeptuneDBInstance", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSNeptuneDBInstance", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSNeptuneDBInstanceResources retrieves all AWSNeptuneDBInstance items from an AWS CloudFormation template
[ "GetAllAWSNeptuneDBInstanceResources", "retrieves", "all", "AWSNeptuneDBInstance", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7075-L7084
train
awslabs/goformation
cloudformation/all.go
GetAWSNeptuneDBInstanceWithName
func (t *Template) GetAWSNeptuneDBInstanceWithName(name string) (*resources.AWSNeptuneDBInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSNeptuneDBInstance: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSNeptuneDBInstance not found", name) }
go
func (t *Template) GetAWSNeptuneDBInstanceWithName(name string) (*resources.AWSNeptuneDBInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSNeptuneDBInstance: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSNeptuneDBInstance not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSNeptuneDBInstanceWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSNeptuneDBInstance", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSNeptuneDBInstance", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSNeptuneDBInstanceWithName retrieves all AWSNeptuneDBInstance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSNeptuneDBInstanceWithName", "retrieves", "all", "AWSNeptuneDBInstance", "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#L7088-L7096
train
awslabs/goformation
cloudformation/all.go
GetAllAWSNeptuneDBParameterGroupResources
func (t *Template) GetAllAWSNeptuneDBParameterGroupResources() map[string]*resources.AWSNeptuneDBParameterGroup { results := map[string]*resources.AWSNeptuneDBParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSNeptuneDBParameterGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSNeptuneDBParameterGroupResources() map[string]*resources.AWSNeptuneDBParameterGroup { results := map[string]*resources.AWSNeptuneDBParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSNeptuneDBParameterGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSNeptuneDBParameterGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSNeptuneDBParameterGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSNeptuneDBParameterGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSNeptuneDBParameterGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSNeptuneDBParameterGroupResources retrieves all AWSNeptuneDBParameterGroup items from an AWS CloudFormation template
[ "GetAllAWSNeptuneDBParameterGroupResources", "retrieves", "all", "AWSNeptuneDBParameterGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7099-L7108
train
awslabs/goformation
cloudformation/all.go
GetAWSNeptuneDBParameterGroupWithName
func (t *Template) GetAWSNeptuneDBParameterGroupWithName(name string) (*resources.AWSNeptuneDBParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSNeptuneDBParameterGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSNeptuneDBParameterGroup not found", name) }
go
func (t *Template) GetAWSNeptuneDBParameterGroupWithName(name string) (*resources.AWSNeptuneDBParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSNeptuneDBParameterGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSNeptuneDBParameterGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSNeptuneDBParameterGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSNeptuneDBParameterGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSNeptuneDBParameterGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSNeptuneDBParameterGroupWithName retrieves all AWSNeptuneDBParameterGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSNeptuneDBParameterGroupWithName", "retrieves", "all", "AWSNeptuneDBParameterGroup", "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#L7112-L7120
train
awslabs/goformation
cloudformation/all.go
GetAllAWSNeptuneDBSubnetGroupResources
func (t *Template) GetAllAWSNeptuneDBSubnetGroupResources() map[string]*resources.AWSNeptuneDBSubnetGroup { results := map[string]*resources.AWSNeptuneDBSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSNeptuneDBSubnetGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSNeptuneDBSubnetGroupResources() map[string]*resources.AWSNeptuneDBSubnetGroup { results := map[string]*resources.AWSNeptuneDBSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSNeptuneDBSubnetGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSNeptuneDBSubnetGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSNeptuneDBSubnetGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSNeptuneDBSubnetGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSNeptuneDBSubnetGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSNeptuneDBSubnetGroupResources retrieves all AWSNeptuneDBSubnetGroup items from an AWS CloudFormation template
[ "GetAllAWSNeptuneDBSubnetGroupResources", "retrieves", "all", "AWSNeptuneDBSubnetGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7123-L7132
train
awslabs/goformation
cloudformation/all.go
GetAWSNeptuneDBSubnetGroupWithName
func (t *Template) GetAWSNeptuneDBSubnetGroupWithName(name string) (*resources.AWSNeptuneDBSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSNeptuneDBSubnetGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSNeptuneDBSubnetGroup not found", name) }
go
func (t *Template) GetAWSNeptuneDBSubnetGroupWithName(name string) (*resources.AWSNeptuneDBSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSNeptuneDBSubnetGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSNeptuneDBSubnetGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSNeptuneDBSubnetGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSNeptuneDBSubnetGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSNeptuneDBSubnetGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSNeptuneDBSubnetGroupWithName retrieves all AWSNeptuneDBSubnetGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSNeptuneDBSubnetGroupWithName", "retrieves", "all", "AWSNeptuneDBSubnetGroup", "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#L7136-L7144
train
awslabs/goformation
cloudformation/all.go
GetAllAWSOpsWorksAppResources
func (t *Template) GetAllAWSOpsWorksAppResources() map[string]*resources.AWSOpsWorksApp { results := map[string]*resources.AWSOpsWorksApp{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksApp: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSOpsWorksAppResources() map[string]*resources.AWSOpsWorksApp { results := map[string]*resources.AWSOpsWorksApp{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksApp: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSOpsWorksAppResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksApp", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksApp", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksApp", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSOpsWorksAppResources retrieves all AWSOpsWorksApp items from an AWS CloudFormation template
[ "GetAllAWSOpsWorksAppResources", "retrieves", "all", "AWSOpsWorksApp", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7147-L7156
train
awslabs/goformation
cloudformation/all.go
GetAWSOpsWorksAppWithName
func (t *Template) GetAWSOpsWorksAppWithName(name string) (*resources.AWSOpsWorksApp, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksApp: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksApp not found", name) }
go
func (t *Template) GetAWSOpsWorksAppWithName(name string) (*resources.AWSOpsWorksApp, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksApp: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksApp not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSOpsWorksAppWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSOpsWorksApp", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksApp", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSOpsWorksAppWithName retrieves all AWSOpsWorksApp items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSOpsWorksAppWithName", "retrieves", "all", "AWSOpsWorksApp", "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#L7160-L7168
train
awslabs/goformation
cloudformation/all.go
GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources
func (t *Template) GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources() map[string]*resources.AWSOpsWorksElasticLoadBalancerAttachment { results := map[string]*resources.AWSOpsWorksElasticLoadBalancerAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksElasticLoadBalancerAttachment: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources() map[string]*resources.AWSOpsWorksElasticLoadBalancerAttachment { results := map[string]*resources.AWSOpsWorksElasticLoadBalancerAttachment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksElasticLoadBalancerAttachment: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksElasticLoadBalancerAttachment", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksElasticLoadBalancerAttachment", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksElasticLoadBalancerAttachment", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources retrieves all AWSOpsWorksElasticLoadBalancerAttachment items from an AWS CloudFormation template
[ "GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources", "retrieves", "all", "AWSOpsWorksElasticLoadBalancerAttachment", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7171-L7180
train
awslabs/goformation
cloudformation/all.go
GetAWSOpsWorksElasticLoadBalancerAttachmentWithName
func (t *Template) GetAWSOpsWorksElasticLoadBalancerAttachmentWithName(name string) (*resources.AWSOpsWorksElasticLoadBalancerAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksElasticLoadBalancerAttachment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksElasticLoadBalancerAttachment not found", name) }
go
func (t *Template) GetAWSOpsWorksElasticLoadBalancerAttachmentWithName(name string) (*resources.AWSOpsWorksElasticLoadBalancerAttachment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksElasticLoadBalancerAttachment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksElasticLoadBalancerAttachment not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSOpsWorksElasticLoadBalancerAttachmentWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSOpsWorksElasticLoadBalancerAttachment", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksElasticLoadBalancerAttachment", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSOpsWorksElasticLoadBalancerAttachmentWithName retrieves all AWSOpsWorksElasticLoadBalancerAttachment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSOpsWorksElasticLoadBalancerAttachmentWithName", "retrieves", "all", "AWSOpsWorksElasticLoadBalancerAttachment", "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#L7184-L7192
train
awslabs/goformation
cloudformation/all.go
GetAllAWSOpsWorksInstanceResources
func (t *Template) GetAllAWSOpsWorksInstanceResources() map[string]*resources.AWSOpsWorksInstance { results := map[string]*resources.AWSOpsWorksInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksInstance: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSOpsWorksInstanceResources() map[string]*resources.AWSOpsWorksInstance { results := map[string]*resources.AWSOpsWorksInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksInstance: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSOpsWorksInstanceResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksInstance", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksInstance", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksInstance", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSOpsWorksInstanceResources retrieves all AWSOpsWorksInstance items from an AWS CloudFormation template
[ "GetAllAWSOpsWorksInstanceResources", "retrieves", "all", "AWSOpsWorksInstance", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7195-L7204
train
awslabs/goformation
cloudformation/all.go
GetAWSOpsWorksInstanceWithName
func (t *Template) GetAWSOpsWorksInstanceWithName(name string) (*resources.AWSOpsWorksInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksInstance: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksInstance not found", name) }
go
func (t *Template) GetAWSOpsWorksInstanceWithName(name string) (*resources.AWSOpsWorksInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksInstance: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksInstance not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSOpsWorksInstanceWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSOpsWorksInstance", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksInstance", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSOpsWorksInstanceWithName retrieves all AWSOpsWorksInstance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSOpsWorksInstanceWithName", "retrieves", "all", "AWSOpsWorksInstance", "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#L7208-L7216
train
awslabs/goformation
cloudformation/all.go
GetAllAWSOpsWorksLayerResources
func (t *Template) GetAllAWSOpsWorksLayerResources() map[string]*resources.AWSOpsWorksLayer { results := map[string]*resources.AWSOpsWorksLayer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksLayer: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSOpsWorksLayerResources() map[string]*resources.AWSOpsWorksLayer { results := map[string]*resources.AWSOpsWorksLayer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksLayer: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSOpsWorksLayerResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksLayer", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksLayer", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksLayer", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSOpsWorksLayerResources retrieves all AWSOpsWorksLayer items from an AWS CloudFormation template
[ "GetAllAWSOpsWorksLayerResources", "retrieves", "all", "AWSOpsWorksLayer", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7219-L7228
train
awslabs/goformation
cloudformation/all.go
GetAWSOpsWorksLayerWithName
func (t *Template) GetAWSOpsWorksLayerWithName(name string) (*resources.AWSOpsWorksLayer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksLayer: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksLayer not found", name) }
go
func (t *Template) GetAWSOpsWorksLayerWithName(name string) (*resources.AWSOpsWorksLayer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksLayer: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksLayer not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSOpsWorksLayerWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSOpsWorksLayer", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksLayer", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSOpsWorksLayerWithName retrieves all AWSOpsWorksLayer items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSOpsWorksLayerWithName", "retrieves", "all", "AWSOpsWorksLayer", "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#L7232-L7240
train
awslabs/goformation
cloudformation/all.go
GetAllAWSOpsWorksStackResources
func (t *Template) GetAllAWSOpsWorksStackResources() map[string]*resources.AWSOpsWorksStack { results := map[string]*resources.AWSOpsWorksStack{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksStack: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSOpsWorksStackResources() map[string]*resources.AWSOpsWorksStack { results := map[string]*resources.AWSOpsWorksStack{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksStack: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSOpsWorksStackResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksStack", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksStack", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksStack", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSOpsWorksStackResources retrieves all AWSOpsWorksStack items from an AWS CloudFormation template
[ "GetAllAWSOpsWorksStackResources", "retrieves", "all", "AWSOpsWorksStack", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7243-L7252
train
awslabs/goformation
cloudformation/all.go
GetAWSOpsWorksStackWithName
func (t *Template) GetAWSOpsWorksStackWithName(name string) (*resources.AWSOpsWorksStack, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksStack: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksStack not found", name) }
go
func (t *Template) GetAWSOpsWorksStackWithName(name string) (*resources.AWSOpsWorksStack, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksStack: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksStack not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSOpsWorksStackWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSOpsWorksStack", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksStack", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSOpsWorksStackWithName retrieves all AWSOpsWorksStack items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSOpsWorksStackWithName", "retrieves", "all", "AWSOpsWorksStack", "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#L7256-L7264
train
awslabs/goformation
cloudformation/all.go
GetAllAWSOpsWorksUserProfileResources
func (t *Template) GetAllAWSOpsWorksUserProfileResources() map[string]*resources.AWSOpsWorksUserProfile { results := map[string]*resources.AWSOpsWorksUserProfile{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksUserProfile: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSOpsWorksUserProfileResources() map[string]*resources.AWSOpsWorksUserProfile { results := map[string]*resources.AWSOpsWorksUserProfile{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksUserProfile: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSOpsWorksUserProfileResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksUserProfile", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksUserProfile", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksUserProfile", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSOpsWorksUserProfileResources retrieves all AWSOpsWorksUserProfile items from an AWS CloudFormation template
[ "GetAllAWSOpsWorksUserProfileResources", "retrieves", "all", "AWSOpsWorksUserProfile", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7267-L7276
train
awslabs/goformation
cloudformation/all.go
GetAWSOpsWorksUserProfileWithName
func (t *Template) GetAWSOpsWorksUserProfileWithName(name string) (*resources.AWSOpsWorksUserProfile, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksUserProfile: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksUserProfile not found", name) }
go
func (t *Template) GetAWSOpsWorksUserProfileWithName(name string) (*resources.AWSOpsWorksUserProfile, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksUserProfile: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksUserProfile not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSOpsWorksUserProfileWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSOpsWorksUserProfile", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksUserProfile", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSOpsWorksUserProfileWithName retrieves all AWSOpsWorksUserProfile items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSOpsWorksUserProfileWithName", "retrieves", "all", "AWSOpsWorksUserProfile", "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#L7280-L7288
train
awslabs/goformation
cloudformation/all.go
GetAllAWSOpsWorksVolumeResources
func (t *Template) GetAllAWSOpsWorksVolumeResources() map[string]*resources.AWSOpsWorksVolume { results := map[string]*resources.AWSOpsWorksVolume{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksVolume: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSOpsWorksVolumeResources() map[string]*resources.AWSOpsWorksVolume { results := map[string]*resources.AWSOpsWorksVolume{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksVolume: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSOpsWorksVolumeResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksVolume", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksVolume", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksVolume", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSOpsWorksVolumeResources retrieves all AWSOpsWorksVolume items from an AWS CloudFormation template
[ "GetAllAWSOpsWorksVolumeResources", "retrieves", "all", "AWSOpsWorksVolume", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7291-L7300
train
awslabs/goformation
cloudformation/all.go
GetAWSOpsWorksVolumeWithName
func (t *Template) GetAWSOpsWorksVolumeWithName(name string) (*resources.AWSOpsWorksVolume, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksVolume: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksVolume not found", name) }
go
func (t *Template) GetAWSOpsWorksVolumeWithName(name string) (*resources.AWSOpsWorksVolume, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksVolume: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksVolume not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSOpsWorksVolumeWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSOpsWorksVolume", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksVolume", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSOpsWorksVolumeWithName retrieves all AWSOpsWorksVolume items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSOpsWorksVolumeWithName", "retrieves", "all", "AWSOpsWorksVolume", "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#L7304-L7312
train
awslabs/goformation
cloudformation/all.go
GetAllAWSOpsWorksCMServerResources
func (t *Template) GetAllAWSOpsWorksCMServerResources() map[string]*resources.AWSOpsWorksCMServer { results := map[string]*resources.AWSOpsWorksCMServer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksCMServer: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSOpsWorksCMServerResources() map[string]*resources.AWSOpsWorksCMServer { results := map[string]*resources.AWSOpsWorksCMServer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSOpsWorksCMServer: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSOpsWorksCMServerResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksCMServer", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSOpsWorksCMServer", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksCMServer", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSOpsWorksCMServerResources retrieves all AWSOpsWorksCMServer items from an AWS CloudFormation template
[ "GetAllAWSOpsWorksCMServerResources", "retrieves", "all", "AWSOpsWorksCMServer", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7315-L7324
train
awslabs/goformation
cloudformation/all.go
GetAWSOpsWorksCMServerWithName
func (t *Template) GetAWSOpsWorksCMServerWithName(name string) (*resources.AWSOpsWorksCMServer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksCMServer: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksCMServer not found", name) }
go
func (t *Template) GetAWSOpsWorksCMServerWithName(name string) (*resources.AWSOpsWorksCMServer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSOpsWorksCMServer: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSOpsWorksCMServer not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSOpsWorksCMServerWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSOpsWorksCMServer", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSOpsWorksCMServer", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSOpsWorksCMServerWithName retrieves all AWSOpsWorksCMServer items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSOpsWorksCMServerWithName", "retrieves", "all", "AWSOpsWorksCMServer", "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#L7328-L7336
train
awslabs/goformation
cloudformation/all.go
GetAllAWSRAMResourceShareResources
func (t *Template) GetAllAWSRAMResourceShareResources() map[string]*resources.AWSRAMResourceShare { results := map[string]*resources.AWSRAMResourceShare{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRAMResourceShare: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSRAMResourceShareResources() map[string]*resources.AWSRAMResourceShare { results := map[string]*resources.AWSRAMResourceShare{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRAMResourceShare: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSRAMResourceShareResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSRAMResourceShare", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSRAMResourceShare", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRAMResourceShare", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSRAMResourceShareResources retrieves all AWSRAMResourceShare items from an AWS CloudFormation template
[ "GetAllAWSRAMResourceShareResources", "retrieves", "all", "AWSRAMResourceShare", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7339-L7348
train
awslabs/goformation
cloudformation/all.go
GetAWSRAMResourceShareWithName
func (t *Template) GetAWSRAMResourceShareWithName(name string) (*resources.AWSRAMResourceShare, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRAMResourceShare: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRAMResourceShare not found", name) }
go
func (t *Template) GetAWSRAMResourceShareWithName(name string) (*resources.AWSRAMResourceShare, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRAMResourceShare: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRAMResourceShare not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSRAMResourceShareWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSRAMResourceShare", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRAMResourceShare", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSRAMResourceShareWithName retrieves all AWSRAMResourceShare items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSRAMResourceShareWithName", "retrieves", "all", "AWSRAMResourceShare", "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#L7352-L7360
train
awslabs/goformation
cloudformation/all.go
GetAllAWSRDSDBClusterResources
func (t *Template) GetAllAWSRDSDBClusterResources() map[string]*resources.AWSRDSDBCluster { results := map[string]*resources.AWSRDSDBCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBCluster: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSRDSDBClusterResources() map[string]*resources.AWSRDSDBCluster { results := map[string]*resources.AWSRDSDBCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBCluster: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSRDSDBClusterResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBCluster", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBCluster", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBCluster", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSRDSDBClusterResources retrieves all AWSRDSDBCluster items from an AWS CloudFormation template
[ "GetAllAWSRDSDBClusterResources", "retrieves", "all", "AWSRDSDBCluster", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7363-L7372
train
awslabs/goformation
cloudformation/all.go
GetAWSRDSDBClusterWithName
func (t *Template) GetAWSRDSDBClusterWithName(name string) (*resources.AWSRDSDBCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBCluster: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBCluster not found", name) }
go
func (t *Template) GetAWSRDSDBClusterWithName(name string) (*resources.AWSRDSDBCluster, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBCluster: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBCluster not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSRDSDBClusterWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSRDSDBCluster", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBCluster", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSRDSDBClusterWithName retrieves all AWSRDSDBCluster items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSRDSDBClusterWithName", "retrieves", "all", "AWSRDSDBCluster", "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#L7376-L7384
train
awslabs/goformation
cloudformation/all.go
GetAllAWSRDSDBClusterParameterGroupResources
func (t *Template) GetAllAWSRDSDBClusterParameterGroupResources() map[string]*resources.AWSRDSDBClusterParameterGroup { results := map[string]*resources.AWSRDSDBClusterParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBClusterParameterGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSRDSDBClusterParameterGroupResources() map[string]*resources.AWSRDSDBClusterParameterGroup { results := map[string]*resources.AWSRDSDBClusterParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBClusterParameterGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSRDSDBClusterParameterGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBClusterParameterGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBClusterParameterGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBClusterParameterGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSRDSDBClusterParameterGroupResources retrieves all AWSRDSDBClusterParameterGroup items from an AWS CloudFormation template
[ "GetAllAWSRDSDBClusterParameterGroupResources", "retrieves", "all", "AWSRDSDBClusterParameterGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7387-L7396
train
awslabs/goformation
cloudformation/all.go
GetAWSRDSDBClusterParameterGroupWithName
func (t *Template) GetAWSRDSDBClusterParameterGroupWithName(name string) (*resources.AWSRDSDBClusterParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBClusterParameterGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBClusterParameterGroup not found", name) }
go
func (t *Template) GetAWSRDSDBClusterParameterGroupWithName(name string) (*resources.AWSRDSDBClusterParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBClusterParameterGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBClusterParameterGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSRDSDBClusterParameterGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSRDSDBClusterParameterGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBClusterParameterGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSRDSDBClusterParameterGroupWithName retrieves all AWSRDSDBClusterParameterGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSRDSDBClusterParameterGroupWithName", "retrieves", "all", "AWSRDSDBClusterParameterGroup", "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#L7400-L7408
train
awslabs/goformation
cloudformation/all.go
GetAllAWSRDSDBInstanceResources
func (t *Template) GetAllAWSRDSDBInstanceResources() map[string]*resources.AWSRDSDBInstance { results := map[string]*resources.AWSRDSDBInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBInstance: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSRDSDBInstanceResources() map[string]*resources.AWSRDSDBInstance { results := map[string]*resources.AWSRDSDBInstance{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBInstance: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSRDSDBInstanceResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBInstance", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBInstance", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBInstance", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSRDSDBInstanceResources retrieves all AWSRDSDBInstance items from an AWS CloudFormation template
[ "GetAllAWSRDSDBInstanceResources", "retrieves", "all", "AWSRDSDBInstance", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7411-L7420
train
awslabs/goformation
cloudformation/all.go
GetAWSRDSDBInstanceWithName
func (t *Template) GetAWSRDSDBInstanceWithName(name string) (*resources.AWSRDSDBInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBInstance: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBInstance not found", name) }
go
func (t *Template) GetAWSRDSDBInstanceWithName(name string) (*resources.AWSRDSDBInstance, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBInstance: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBInstance not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSRDSDBInstanceWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSRDSDBInstance", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBInstance", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSRDSDBInstanceWithName retrieves all AWSRDSDBInstance items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSRDSDBInstanceWithName", "retrieves", "all", "AWSRDSDBInstance", "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#L7424-L7432
train
awslabs/goformation
cloudformation/all.go
GetAllAWSRDSDBParameterGroupResources
func (t *Template) GetAllAWSRDSDBParameterGroupResources() map[string]*resources.AWSRDSDBParameterGroup { results := map[string]*resources.AWSRDSDBParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBParameterGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSRDSDBParameterGroupResources() map[string]*resources.AWSRDSDBParameterGroup { results := map[string]*resources.AWSRDSDBParameterGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBParameterGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSRDSDBParameterGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBParameterGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBParameterGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBParameterGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSRDSDBParameterGroupResources retrieves all AWSRDSDBParameterGroup items from an AWS CloudFormation template
[ "GetAllAWSRDSDBParameterGroupResources", "retrieves", "all", "AWSRDSDBParameterGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7435-L7444
train
awslabs/goformation
cloudformation/all.go
GetAWSRDSDBParameterGroupWithName
func (t *Template) GetAWSRDSDBParameterGroupWithName(name string) (*resources.AWSRDSDBParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBParameterGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBParameterGroup not found", name) }
go
func (t *Template) GetAWSRDSDBParameterGroupWithName(name string) (*resources.AWSRDSDBParameterGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBParameterGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBParameterGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSRDSDBParameterGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSRDSDBParameterGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBParameterGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSRDSDBParameterGroupWithName retrieves all AWSRDSDBParameterGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSRDSDBParameterGroupWithName", "retrieves", "all", "AWSRDSDBParameterGroup", "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#L7448-L7456
train
awslabs/goformation
cloudformation/all.go
GetAllAWSRDSDBSecurityGroupResources
func (t *Template) GetAllAWSRDSDBSecurityGroupResources() map[string]*resources.AWSRDSDBSecurityGroup { results := map[string]*resources.AWSRDSDBSecurityGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBSecurityGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSRDSDBSecurityGroupResources() map[string]*resources.AWSRDSDBSecurityGroup { results := map[string]*resources.AWSRDSDBSecurityGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBSecurityGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSRDSDBSecurityGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBSecurityGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBSecurityGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBSecurityGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSRDSDBSecurityGroupResources retrieves all AWSRDSDBSecurityGroup items from an AWS CloudFormation template
[ "GetAllAWSRDSDBSecurityGroupResources", "retrieves", "all", "AWSRDSDBSecurityGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7459-L7468
train
awslabs/goformation
cloudformation/all.go
GetAWSRDSDBSecurityGroupWithName
func (t *Template) GetAWSRDSDBSecurityGroupWithName(name string) (*resources.AWSRDSDBSecurityGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBSecurityGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBSecurityGroup not found", name) }
go
func (t *Template) GetAWSRDSDBSecurityGroupWithName(name string) (*resources.AWSRDSDBSecurityGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBSecurityGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBSecurityGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSRDSDBSecurityGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSRDSDBSecurityGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBSecurityGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSRDSDBSecurityGroupWithName retrieves all AWSRDSDBSecurityGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSRDSDBSecurityGroupWithName", "retrieves", "all", "AWSRDSDBSecurityGroup", "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#L7472-L7480
train
awslabs/goformation
cloudformation/all.go
GetAllAWSRDSDBSecurityGroupIngressResources
func (t *Template) GetAllAWSRDSDBSecurityGroupIngressResources() map[string]*resources.AWSRDSDBSecurityGroupIngress { results := map[string]*resources.AWSRDSDBSecurityGroupIngress{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBSecurityGroupIngress: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSRDSDBSecurityGroupIngressResources() map[string]*resources.AWSRDSDBSecurityGroupIngress { results := map[string]*resources.AWSRDSDBSecurityGroupIngress{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBSecurityGroupIngress: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSRDSDBSecurityGroupIngressResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBSecurityGroupIngress", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBSecurityGroupIngress", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBSecurityGroupIngress", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSRDSDBSecurityGroupIngressResources retrieves all AWSRDSDBSecurityGroupIngress items from an AWS CloudFormation template
[ "GetAllAWSRDSDBSecurityGroupIngressResources", "retrieves", "all", "AWSRDSDBSecurityGroupIngress", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7483-L7492
train
awslabs/goformation
cloudformation/all.go
GetAWSRDSDBSecurityGroupIngressWithName
func (t *Template) GetAWSRDSDBSecurityGroupIngressWithName(name string) (*resources.AWSRDSDBSecurityGroupIngress, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBSecurityGroupIngress: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBSecurityGroupIngress not found", name) }
go
func (t *Template) GetAWSRDSDBSecurityGroupIngressWithName(name string) (*resources.AWSRDSDBSecurityGroupIngress, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBSecurityGroupIngress: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBSecurityGroupIngress not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSRDSDBSecurityGroupIngressWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSRDSDBSecurityGroupIngress", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBSecurityGroupIngress", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSRDSDBSecurityGroupIngressWithName retrieves all AWSRDSDBSecurityGroupIngress items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSRDSDBSecurityGroupIngressWithName", "retrieves", "all", "AWSRDSDBSecurityGroupIngress", "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#L7496-L7504
train
awslabs/goformation
cloudformation/all.go
GetAllAWSRDSDBSubnetGroupResources
func (t *Template) GetAllAWSRDSDBSubnetGroupResources() map[string]*resources.AWSRDSDBSubnetGroup { results := map[string]*resources.AWSRDSDBSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBSubnetGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSRDSDBSubnetGroupResources() map[string]*resources.AWSRDSDBSubnetGroup { results := map[string]*resources.AWSRDSDBSubnetGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSDBSubnetGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSRDSDBSubnetGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBSubnetGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSDBSubnetGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBSubnetGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSRDSDBSubnetGroupResources retrieves all AWSRDSDBSubnetGroup items from an AWS CloudFormation template
[ "GetAllAWSRDSDBSubnetGroupResources", "retrieves", "all", "AWSRDSDBSubnetGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7507-L7516
train
awslabs/goformation
cloudformation/all.go
GetAWSRDSDBSubnetGroupWithName
func (t *Template) GetAWSRDSDBSubnetGroupWithName(name string) (*resources.AWSRDSDBSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBSubnetGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBSubnetGroup not found", name) }
go
func (t *Template) GetAWSRDSDBSubnetGroupWithName(name string) (*resources.AWSRDSDBSubnetGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSDBSubnetGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSDBSubnetGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSRDSDBSubnetGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSRDSDBSubnetGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSDBSubnetGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSRDSDBSubnetGroupWithName retrieves all AWSRDSDBSubnetGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSRDSDBSubnetGroupWithName", "retrieves", "all", "AWSRDSDBSubnetGroup", "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#L7520-L7528
train
awslabs/goformation
cloudformation/all.go
GetAllAWSRDSEventSubscriptionResources
func (t *Template) GetAllAWSRDSEventSubscriptionResources() map[string]*resources.AWSRDSEventSubscription { results := map[string]*resources.AWSRDSEventSubscription{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSEventSubscription: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSRDSEventSubscriptionResources() map[string]*resources.AWSRDSEventSubscription { results := map[string]*resources.AWSRDSEventSubscription{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSEventSubscription: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSRDSEventSubscriptionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSEventSubscription", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSEventSubscription", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSEventSubscription", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSRDSEventSubscriptionResources retrieves all AWSRDSEventSubscription items from an AWS CloudFormation template
[ "GetAllAWSRDSEventSubscriptionResources", "retrieves", "all", "AWSRDSEventSubscription", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7531-L7540
train
awslabs/goformation
cloudformation/all.go
GetAWSRDSEventSubscriptionWithName
func (t *Template) GetAWSRDSEventSubscriptionWithName(name string) (*resources.AWSRDSEventSubscription, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSEventSubscription: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSEventSubscription not found", name) }
go
func (t *Template) GetAWSRDSEventSubscriptionWithName(name string) (*resources.AWSRDSEventSubscription, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSEventSubscription: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSEventSubscription not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSRDSEventSubscriptionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSRDSEventSubscription", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSEventSubscription", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSRDSEventSubscriptionWithName retrieves all AWSRDSEventSubscription items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSRDSEventSubscriptionWithName", "retrieves", "all", "AWSRDSEventSubscription", "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#L7544-L7552
train
awslabs/goformation
cloudformation/all.go
GetAllAWSRDSOptionGroupResources
func (t *Template) GetAllAWSRDSOptionGroupResources() map[string]*resources.AWSRDSOptionGroup { results := map[string]*resources.AWSRDSOptionGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSOptionGroup: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSRDSOptionGroupResources() map[string]*resources.AWSRDSOptionGroup { results := map[string]*resources.AWSRDSOptionGroup{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRDSOptionGroup: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSRDSOptionGroupResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSOptionGroup", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSRDSOptionGroup", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSOptionGroup", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSRDSOptionGroupResources retrieves all AWSRDSOptionGroup items from an AWS CloudFormation template
[ "GetAllAWSRDSOptionGroupResources", "retrieves", "all", "AWSRDSOptionGroup", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7555-L7564
train
awslabs/goformation
cloudformation/all.go
GetAWSRDSOptionGroupWithName
func (t *Template) GetAWSRDSOptionGroupWithName(name string) (*resources.AWSRDSOptionGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSOptionGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSOptionGroup not found", name) }
go
func (t *Template) GetAWSRDSOptionGroupWithName(name string) (*resources.AWSRDSOptionGroup, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSRDSOptionGroup: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSRDSOptionGroup not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSRDSOptionGroupWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSRDSOptionGroup", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRDSOptionGroup", ":", "return", "resource", ",", "nil", "\n", "}", "\n", "}", "\n", "return", "nil", ",", "fmt", ".", "Errorf", "(", "\"", "\"", ",", "name", ")", "\n", "}" ]
// GetAWSRDSOptionGroupWithName retrieves all AWSRDSOptionGroup items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSRDSOptionGroupWithName", "retrieves", "all", "AWSRDSOptionGroup", "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#L7568-L7576
train
awslabs/goformation
cloudformation/all.go
GetAllAWSRedshiftClusterResources
func (t *Template) GetAllAWSRedshiftClusterResources() map[string]*resources.AWSRedshiftCluster { results := map[string]*resources.AWSRedshiftCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRedshiftCluster: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSRedshiftClusterResources() map[string]*resources.AWSRedshiftCluster { results := map[string]*resources.AWSRedshiftCluster{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSRedshiftCluster: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSRedshiftClusterResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSRedshiftCluster", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSRedshiftCluster", "{", "}", "\n", "for", "name", ",", "untyped", ":=", "range", "t", ".", "Resources", "{", "switch", "resource", ":=", "untyped", ".", "(", "type", ")", "{", "case", "*", "resources", ".", "AWSRedshiftCluster", ":", "results", "[", "name", "]", "=", "resource", "\n", "}", "\n", "}", "\n", "return", "results", "\n", "}" ]
// GetAllAWSRedshiftClusterResources retrieves all AWSRedshiftCluster items from an AWS CloudFormation template
[ "GetAllAWSRedshiftClusterResources", "retrieves", "all", "AWSRedshiftCluster", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7579-L7588
train