repo stringlengths 5 67 | path stringlengths 4 218 | func_name stringlengths 0 151 | original_string stringlengths 52 373k | language stringclasses 6 values | code stringlengths 52 373k | code_tokens listlengths 10 512 | docstring stringlengths 3 47.2k | docstring_tokens listlengths 3 234 | sha stringlengths 40 40 | url stringlengths 85 339 | partition stringclasses 3 values |
|---|---|---|---|---|---|---|---|---|---|---|---|
awslabs/goformation | cloudformation/all.go | GetAWSElasticLoadBalancingV2LoadBalancerWithName | func (t *Template) GetAWSElasticLoadBalancingV2LoadBalancerWithName(name string) (*resources.AWSElasticLoadBalancingV2LoadBalancer, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2LoadBalancer:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticLoadBalancingV2LoadBalancer not found", name)
} | go | func (t *Template) GetAWSElasticLoadBalancingV2LoadBalancerWithName(name string) (*resources.AWSElasticLoadBalancingV2LoadBalancer, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2LoadBalancer:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticLoadBalancingV2LoadBalancer not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElasticLoadBalancingV2LoadBalancerWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElasticLoadBalancingV2LoadBalancer",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Reso... | // GetAWSElasticLoadBalancingV2LoadBalancerWithName retrieves all AWSElasticLoadBalancingV2LoadBalancer items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElasticLoadBalancingV2LoadBalancerWithName",
"retrieves",
"all",
"AWSElasticLoadBalancingV2LoadBalancer",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4928-L4936 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElasticLoadBalancingV2TargetGroupResources | func (t *Template) GetAllAWSElasticLoadBalancingV2TargetGroupResources() map[string]*resources.AWSElasticLoadBalancingV2TargetGroup {
results := map[string]*resources.AWSElasticLoadBalancingV2TargetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2TargetGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElasticLoadBalancingV2TargetGroupResources() map[string]*resources.AWSElasticLoadBalancingV2TargetGroup {
results := map[string]*resources.AWSElasticLoadBalancingV2TargetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2TargetGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElasticLoadBalancingV2TargetGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElasticLoadBalancingV2TargetGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".... | // GetAllAWSElasticLoadBalancingV2TargetGroupResources retrieves all AWSElasticLoadBalancingV2TargetGroup items from an AWS CloudFormation template | [
"GetAllAWSElasticLoadBalancingV2TargetGroupResources",
"retrieves",
"all",
"AWSElasticLoadBalancingV2TargetGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4939-L4948 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElasticLoadBalancingV2TargetGroupWithName | func (t *Template) GetAWSElasticLoadBalancingV2TargetGroupWithName(name string) (*resources.AWSElasticLoadBalancingV2TargetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2TargetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticLoadBalancingV2TargetGroup not found", name)
} | go | func (t *Template) GetAWSElasticLoadBalancingV2TargetGroupWithName(name string) (*resources.AWSElasticLoadBalancingV2TargetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2TargetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticLoadBalancingV2TargetGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElasticLoadBalancingV2TargetGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElasticLoadBalancingV2TargetGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resour... | // GetAWSElasticLoadBalancingV2TargetGroupWithName retrieves all AWSElasticLoadBalancingV2TargetGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElasticLoadBalancingV2TargetGroupWithName",
"retrieves",
"all",
"AWSElasticLoadBalancingV2TargetGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4952-L4960 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElasticsearchDomainResources | func (t *Template) GetAllAWSElasticsearchDomainResources() map[string]*resources.AWSElasticsearchDomain {
results := map[string]*resources.AWSElasticsearchDomain{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticsearchDomain:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElasticsearchDomainResources() map[string]*resources.AWSElasticsearchDomain {
results := map[string]*resources.AWSElasticsearchDomain{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticsearchDomain:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElasticsearchDomainResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElasticsearchDomain",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElasticsearchDomain... | // GetAllAWSElasticsearchDomainResources retrieves all AWSElasticsearchDomain items from an AWS CloudFormation template | [
"GetAllAWSElasticsearchDomainResources",
"retrieves",
"all",
"AWSElasticsearchDomain",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4963-L4972 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElasticsearchDomainWithName | func (t *Template) GetAWSElasticsearchDomainWithName(name string) (*resources.AWSElasticsearchDomain, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticsearchDomain:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticsearchDomain not found", name)
} | go | func (t *Template) GetAWSElasticsearchDomainWithName(name string) (*resources.AWSElasticsearchDomain, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticsearchDomain:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticsearchDomain not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElasticsearchDomainWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElasticsearchDomain",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]"... | // GetAWSElasticsearchDomainWithName retrieves all AWSElasticsearchDomain items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElasticsearchDomainWithName",
"retrieves",
"all",
"AWSElasticsearchDomain",
"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#L4976-L4984 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEventsEventBusPolicyResources | func (t *Template) GetAllAWSEventsEventBusPolicyResources() map[string]*resources.AWSEventsEventBusPolicy {
results := map[string]*resources.AWSEventsEventBusPolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEventsEventBusPolicy:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEventsEventBusPolicyResources() map[string]*resources.AWSEventsEventBusPolicy {
results := map[string]*resources.AWSEventsEventBusPolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEventsEventBusPolicy:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEventsEventBusPolicyResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEventsEventBusPolicy",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEventsEventBusPol... | // GetAllAWSEventsEventBusPolicyResources retrieves all AWSEventsEventBusPolicy items from an AWS CloudFormation template | [
"GetAllAWSEventsEventBusPolicyResources",
"retrieves",
"all",
"AWSEventsEventBusPolicy",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4987-L4996 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEventsEventBusPolicyWithName | func (t *Template) GetAWSEventsEventBusPolicyWithName(name string) (*resources.AWSEventsEventBusPolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEventsEventBusPolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEventsEventBusPolicy not found", name)
} | go | func (t *Template) GetAWSEventsEventBusPolicyWithName(name string) (*resources.AWSEventsEventBusPolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEventsEventBusPolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEventsEventBusPolicy not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEventsEventBusPolicyWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEventsEventBusPolicy",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"... | // GetAWSEventsEventBusPolicyWithName retrieves all AWSEventsEventBusPolicy items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEventsEventBusPolicyWithName",
"retrieves",
"all",
"AWSEventsEventBusPolicy",
"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#L5000-L5008 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEventsRuleResources | func (t *Template) GetAllAWSEventsRuleResources() map[string]*resources.AWSEventsRule {
results := map[string]*resources.AWSEventsRule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEventsRule:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEventsRuleResources() map[string]*resources.AWSEventsRule {
results := map[string]*resources.AWSEventsRule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEventsRule:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEventsRuleResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEventsRule",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEventsRule",
"{",
"}",
"\n",
... | // GetAllAWSEventsRuleResources retrieves all AWSEventsRule items from an AWS CloudFormation template | [
"GetAllAWSEventsRuleResources",
"retrieves",
"all",
"AWSEventsRule",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5011-L5020 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEventsRuleWithName | func (t *Template) GetAWSEventsRuleWithName(name string) (*resources.AWSEventsRule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEventsRule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEventsRule not found", name)
} | go | func (t *Template) GetAWSEventsRuleWithName(name string) (*resources.AWSEventsRule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEventsRule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEventsRule not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEventsRuleWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEventsRule",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
... | // GetAWSEventsRuleWithName retrieves all AWSEventsRule items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEventsRuleWithName",
"retrieves",
"all",
"AWSEventsRule",
"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#L5024-L5032 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSFSxFileSystemResources | func (t *Template) GetAllAWSFSxFileSystemResources() map[string]*resources.AWSFSxFileSystem {
results := map[string]*resources.AWSFSxFileSystem{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSFSxFileSystem:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSFSxFileSystemResources() map[string]*resources.AWSFSxFileSystem {
results := map[string]*resources.AWSFSxFileSystem{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSFSxFileSystem:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSFSxFileSystemResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSFSxFileSystem",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSFSxFileSystem",
"{",
"}",
... | // GetAllAWSFSxFileSystemResources retrieves all AWSFSxFileSystem items from an AWS CloudFormation template | [
"GetAllAWSFSxFileSystemResources",
"retrieves",
"all",
"AWSFSxFileSystem",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5035-L5044 | train |
awslabs/goformation | cloudformation/all.go | GetAWSFSxFileSystemWithName | func (t *Template) GetAWSFSxFileSystemWithName(name string) (*resources.AWSFSxFileSystem, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSFSxFileSystem:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSFSxFileSystem not found", name)
} | go | func (t *Template) GetAWSFSxFileSystemWithName(name string) (*resources.AWSFSxFileSystem, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSFSxFileSystem:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSFSxFileSystem not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSFSxFileSystemWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSFSxFileSystem",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSFSxFileSystemWithName retrieves all AWSFSxFileSystem items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSFSxFileSystemWithName",
"retrieves",
"all",
"AWSFSxFileSystem",
"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#L5048-L5056 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGameLiftAliasResources | func (t *Template) GetAllAWSGameLiftAliasResources() map[string]*resources.AWSGameLiftAlias {
results := map[string]*resources.AWSGameLiftAlias{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGameLiftAlias:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGameLiftAliasResources() map[string]*resources.AWSGameLiftAlias {
results := map[string]*resources.AWSGameLiftAlias{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGameLiftAlias:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGameLiftAliasResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGameLiftAlias",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGameLiftAlias",
"{",
"}",
... | // GetAllAWSGameLiftAliasResources retrieves all AWSGameLiftAlias items from an AWS CloudFormation template | [
"GetAllAWSGameLiftAliasResources",
"retrieves",
"all",
"AWSGameLiftAlias",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5059-L5068 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGameLiftAliasWithName | func (t *Template) GetAWSGameLiftAliasWithName(name string) (*resources.AWSGameLiftAlias, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGameLiftAlias:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGameLiftAlias not found", name)
} | go | func (t *Template) GetAWSGameLiftAliasWithName(name string) (*resources.AWSGameLiftAlias, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGameLiftAlias:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGameLiftAlias not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGameLiftAliasWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGameLiftAlias",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSGameLiftAliasWithName retrieves all AWSGameLiftAlias items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGameLiftAliasWithName",
"retrieves",
"all",
"AWSGameLiftAlias",
"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#L5072-L5080 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGameLiftBuildResources | func (t *Template) GetAllAWSGameLiftBuildResources() map[string]*resources.AWSGameLiftBuild {
results := map[string]*resources.AWSGameLiftBuild{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGameLiftBuild:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGameLiftBuildResources() map[string]*resources.AWSGameLiftBuild {
results := map[string]*resources.AWSGameLiftBuild{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGameLiftBuild:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGameLiftBuildResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGameLiftBuild",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGameLiftBuild",
"{",
"}",
... | // GetAllAWSGameLiftBuildResources retrieves all AWSGameLiftBuild items from an AWS CloudFormation template | [
"GetAllAWSGameLiftBuildResources",
"retrieves",
"all",
"AWSGameLiftBuild",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5083-L5092 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGameLiftBuildWithName | func (t *Template) GetAWSGameLiftBuildWithName(name string) (*resources.AWSGameLiftBuild, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGameLiftBuild:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGameLiftBuild not found", name)
} | go | func (t *Template) GetAWSGameLiftBuildWithName(name string) (*resources.AWSGameLiftBuild, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGameLiftBuild:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGameLiftBuild not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGameLiftBuildWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGameLiftBuild",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSGameLiftBuildWithName retrieves all AWSGameLiftBuild items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGameLiftBuildWithName",
"retrieves",
"all",
"AWSGameLiftBuild",
"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#L5096-L5104 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGameLiftFleetResources | func (t *Template) GetAllAWSGameLiftFleetResources() map[string]*resources.AWSGameLiftFleet {
results := map[string]*resources.AWSGameLiftFleet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGameLiftFleet:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGameLiftFleetResources() map[string]*resources.AWSGameLiftFleet {
results := map[string]*resources.AWSGameLiftFleet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGameLiftFleet:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGameLiftFleetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGameLiftFleet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGameLiftFleet",
"{",
"}",
... | // GetAllAWSGameLiftFleetResources retrieves all AWSGameLiftFleet items from an AWS CloudFormation template | [
"GetAllAWSGameLiftFleetResources",
"retrieves",
"all",
"AWSGameLiftFleet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5107-L5116 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGameLiftFleetWithName | func (t *Template) GetAWSGameLiftFleetWithName(name string) (*resources.AWSGameLiftFleet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGameLiftFleet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGameLiftFleet not found", name)
} | go | func (t *Template) GetAWSGameLiftFleetWithName(name string) (*resources.AWSGameLiftFleet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGameLiftFleet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGameLiftFleet not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGameLiftFleetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGameLiftFleet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSGameLiftFleetWithName retrieves all AWSGameLiftFleet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGameLiftFleetWithName",
"retrieves",
"all",
"AWSGameLiftFleet",
"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#L5120-L5128 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGlueClassifierResources | func (t *Template) GetAllAWSGlueClassifierResources() map[string]*resources.AWSGlueClassifier {
results := map[string]*resources.AWSGlueClassifier{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueClassifier:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGlueClassifierResources() map[string]*resources.AWSGlueClassifier {
results := map[string]*resources.AWSGlueClassifier{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueClassifier:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGlueClassifierResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueClassifier",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueClassifier",
"{",
"}"... | // GetAllAWSGlueClassifierResources retrieves all AWSGlueClassifier items from an AWS CloudFormation template | [
"GetAllAWSGlueClassifierResources",
"retrieves",
"all",
"AWSGlueClassifier",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5131-L5140 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGlueClassifierWithName | func (t *Template) GetAWSGlueClassifierWithName(name string) (*resources.AWSGlueClassifier, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueClassifier:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueClassifier not found", name)
} | go | func (t *Template) GetAWSGlueClassifierWithName(name string) (*resources.AWSGlueClassifier, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueClassifier:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueClassifier not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGlueClassifierWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGlueClassifier",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSGlueClassifierWithName retrieves all AWSGlueClassifier items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGlueClassifierWithName",
"retrieves",
"all",
"AWSGlueClassifier",
"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#L5144-L5152 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGlueConnectionResources | func (t *Template) GetAllAWSGlueConnectionResources() map[string]*resources.AWSGlueConnection {
results := map[string]*resources.AWSGlueConnection{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueConnection:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGlueConnectionResources() map[string]*resources.AWSGlueConnection {
results := map[string]*resources.AWSGlueConnection{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueConnection:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGlueConnectionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueConnection",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueConnection",
"{",
"}"... | // GetAllAWSGlueConnectionResources retrieves all AWSGlueConnection items from an AWS CloudFormation template | [
"GetAllAWSGlueConnectionResources",
"retrieves",
"all",
"AWSGlueConnection",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5155-L5164 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGlueConnectionWithName | func (t *Template) GetAWSGlueConnectionWithName(name string) (*resources.AWSGlueConnection, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueConnection:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueConnection not found", name)
} | go | func (t *Template) GetAWSGlueConnectionWithName(name string) (*resources.AWSGlueConnection, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueConnection:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueConnection not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGlueConnectionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGlueConnection",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSGlueConnectionWithName retrieves all AWSGlueConnection items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGlueConnectionWithName",
"retrieves",
"all",
"AWSGlueConnection",
"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#L5168-L5176 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGlueCrawlerResources | func (t *Template) GetAllAWSGlueCrawlerResources() map[string]*resources.AWSGlueCrawler {
results := map[string]*resources.AWSGlueCrawler{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueCrawler:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGlueCrawlerResources() map[string]*resources.AWSGlueCrawler {
results := map[string]*resources.AWSGlueCrawler{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueCrawler:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGlueCrawlerResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueCrawler",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueCrawler",
"{",
"}",
"\n",... | // GetAllAWSGlueCrawlerResources retrieves all AWSGlueCrawler items from an AWS CloudFormation template | [
"GetAllAWSGlueCrawlerResources",
"retrieves",
"all",
"AWSGlueCrawler",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5179-L5188 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGlueCrawlerWithName | func (t *Template) GetAWSGlueCrawlerWithName(name string) (*resources.AWSGlueCrawler, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueCrawler:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueCrawler not found", name)
} | go | func (t *Template) GetAWSGlueCrawlerWithName(name string) (*resources.AWSGlueCrawler, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueCrawler:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueCrawler not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGlueCrawlerWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGlueCrawler",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",... | // GetAWSGlueCrawlerWithName retrieves all AWSGlueCrawler items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGlueCrawlerWithName",
"retrieves",
"all",
"AWSGlueCrawler",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5192-L5200 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGlueDatabaseResources | func (t *Template) GetAllAWSGlueDatabaseResources() map[string]*resources.AWSGlueDatabase {
results := map[string]*resources.AWSGlueDatabase{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueDatabase:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGlueDatabaseResources() map[string]*resources.AWSGlueDatabase {
results := map[string]*resources.AWSGlueDatabase{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueDatabase:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGlueDatabaseResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueDatabase",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueDatabase",
"{",
"}",
"\... | // GetAllAWSGlueDatabaseResources retrieves all AWSGlueDatabase items from an AWS CloudFormation template | [
"GetAllAWSGlueDatabaseResources",
"retrieves",
"all",
"AWSGlueDatabase",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5203-L5212 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGlueDatabaseWithName | func (t *Template) GetAWSGlueDatabaseWithName(name string) (*resources.AWSGlueDatabase, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueDatabase:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueDatabase not found", name)
} | go | func (t *Template) GetAWSGlueDatabaseWithName(name string) (*resources.AWSGlueDatabase, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueDatabase:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueDatabase not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGlueDatabaseWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGlueDatabase",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok... | // GetAWSGlueDatabaseWithName retrieves all AWSGlueDatabase items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGlueDatabaseWithName",
"retrieves",
"all",
"AWSGlueDatabase",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5216-L5224 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGlueDevEndpointResources | func (t *Template) GetAllAWSGlueDevEndpointResources() map[string]*resources.AWSGlueDevEndpoint {
results := map[string]*resources.AWSGlueDevEndpoint{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueDevEndpoint:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGlueDevEndpointResources() map[string]*resources.AWSGlueDevEndpoint {
results := map[string]*resources.AWSGlueDevEndpoint{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueDevEndpoint:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGlueDevEndpointResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueDevEndpoint",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueDevEndpoint",
"{",
... | // GetAllAWSGlueDevEndpointResources retrieves all AWSGlueDevEndpoint items from an AWS CloudFormation template | [
"GetAllAWSGlueDevEndpointResources",
"retrieves",
"all",
"AWSGlueDevEndpoint",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5227-L5236 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGlueDevEndpointWithName | func (t *Template) GetAWSGlueDevEndpointWithName(name string) (*resources.AWSGlueDevEndpoint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueDevEndpoint:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueDevEndpoint not found", name)
} | go | func (t *Template) GetAWSGlueDevEndpointWithName(name string) (*resources.AWSGlueDevEndpoint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueDevEndpoint:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueDevEndpoint not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGlueDevEndpointWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGlueDevEndpoint",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",... | // GetAWSGlueDevEndpointWithName retrieves all AWSGlueDevEndpoint items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGlueDevEndpointWithName",
"retrieves",
"all",
"AWSGlueDevEndpoint",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5240-L5248 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGlueJobResources | func (t *Template) GetAllAWSGlueJobResources() map[string]*resources.AWSGlueJob {
results := map[string]*resources.AWSGlueJob{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueJob:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGlueJobResources() map[string]*resources.AWSGlueJob {
results := map[string]*resources.AWSGlueJob{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueJob:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGlueJobResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueJob",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueJob",
"{",
"}",
"\n",
"for",
... | // GetAllAWSGlueJobResources retrieves all AWSGlueJob items from an AWS CloudFormation template | [
"GetAllAWSGlueJobResources",
"retrieves",
"all",
"AWSGlueJob",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5251-L5260 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGlueJobWithName | func (t *Template) GetAWSGlueJobWithName(name string) (*resources.AWSGlueJob, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueJob:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueJob not found", name)
} | go | func (t *Template) GetAWSGlueJobWithName(name string) (*resources.AWSGlueJob, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueJob:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueJob not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGlueJobWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGlueJob",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
... | // GetAWSGlueJobWithName retrieves all AWSGlueJob items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGlueJobWithName",
"retrieves",
"all",
"AWSGlueJob",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5264-L5272 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGluePartitionResources | func (t *Template) GetAllAWSGluePartitionResources() map[string]*resources.AWSGluePartition {
results := map[string]*resources.AWSGluePartition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGluePartition:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGluePartitionResources() map[string]*resources.AWSGluePartition {
results := map[string]*resources.AWSGluePartition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGluePartition:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGluePartitionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGluePartition",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGluePartition",
"{",
"}",
... | // GetAllAWSGluePartitionResources retrieves all AWSGluePartition items from an AWS CloudFormation template | [
"GetAllAWSGluePartitionResources",
"retrieves",
"all",
"AWSGluePartition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5275-L5284 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGluePartitionWithName | func (t *Template) GetAWSGluePartitionWithName(name string) (*resources.AWSGluePartition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGluePartition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGluePartition not found", name)
} | go | func (t *Template) GetAWSGluePartitionWithName(name string) (*resources.AWSGluePartition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGluePartition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGluePartition not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGluePartitionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGluePartition",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSGluePartitionWithName retrieves all AWSGluePartition items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGluePartitionWithName",
"retrieves",
"all",
"AWSGluePartition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5288-L5296 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGlueTableResources | func (t *Template) GetAllAWSGlueTableResources() map[string]*resources.AWSGlueTable {
results := map[string]*resources.AWSGlueTable{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueTable:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGlueTableResources() map[string]*resources.AWSGlueTable {
results := map[string]*resources.AWSGlueTable{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueTable:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGlueTableResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueTable",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueTable",
"{",
"}",
"\n",
"fo... | // GetAllAWSGlueTableResources retrieves all AWSGlueTable items from an AWS CloudFormation template | [
"GetAllAWSGlueTableResources",
"retrieves",
"all",
"AWSGlueTable",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5299-L5308 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGlueTableWithName | func (t *Template) GetAWSGlueTableWithName(name string) (*resources.AWSGlueTable, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueTable:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueTable not found", name)
} | go | func (t *Template) GetAWSGlueTableWithName(name string) (*resources.AWSGlueTable, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueTable:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueTable not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGlueTableWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGlueTable",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"... | // GetAWSGlueTableWithName retrieves all AWSGlueTable items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGlueTableWithName",
"retrieves",
"all",
"AWSGlueTable",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5312-L5320 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGlueTriggerResources | func (t *Template) GetAllAWSGlueTriggerResources() map[string]*resources.AWSGlueTrigger {
results := map[string]*resources.AWSGlueTrigger{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueTrigger:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGlueTriggerResources() map[string]*resources.AWSGlueTrigger {
results := map[string]*resources.AWSGlueTrigger{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGlueTrigger:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGlueTriggerResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueTrigger",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGlueTrigger",
"{",
"}",
"\n",... | // GetAllAWSGlueTriggerResources retrieves all AWSGlueTrigger items from an AWS CloudFormation template | [
"GetAllAWSGlueTriggerResources",
"retrieves",
"all",
"AWSGlueTrigger",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5323-L5332 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGlueTriggerWithName | func (t *Template) GetAWSGlueTriggerWithName(name string) (*resources.AWSGlueTrigger, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueTrigger:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueTrigger not found", name)
} | go | func (t *Template) GetAWSGlueTriggerWithName(name string) (*resources.AWSGlueTrigger, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGlueTrigger:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGlueTrigger not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGlueTriggerWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGlueTrigger",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",... | // GetAWSGlueTriggerWithName retrieves all AWSGlueTrigger items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGlueTriggerWithName",
"retrieves",
"all",
"AWSGlueTrigger",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5336-L5344 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassConnectorDefinitionResources | func (t *Template) GetAllAWSGreengrassConnectorDefinitionResources() map[string]*resources.AWSGreengrassConnectorDefinition {
results := map[string]*resources.AWSGreengrassConnectorDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassConnectorDefinition:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassConnectorDefinitionResources() map[string]*resources.AWSGreengrassConnectorDefinition {
results := map[string]*resources.AWSGreengrassConnectorDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassConnectorDefinition:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassConnectorDefinitionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassConnectorDefinition",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AW... | // GetAllAWSGreengrassConnectorDefinitionResources retrieves all AWSGreengrassConnectorDefinition items from an AWS CloudFormation template | [
"GetAllAWSGreengrassConnectorDefinitionResources",
"retrieves",
"all",
"AWSGreengrassConnectorDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5347-L5356 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassConnectorDefinitionWithName | func (t *Template) GetAWSGreengrassConnectorDefinitionWithName(name string) (*resources.AWSGreengrassConnectorDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassConnectorDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassConnectorDefinition not found", name)
} | go | func (t *Template) GetAWSGreengrassConnectorDefinitionWithName(name string) (*resources.AWSGreengrassConnectorDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassConnectorDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassConnectorDefinition not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassConnectorDefinitionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassConnectorDefinition",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSGreengrassConnectorDefinitionWithName retrieves all AWSGreengrassConnectorDefinition items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassConnectorDefinitionWithName",
"retrieves",
"all",
"AWSGreengrassConnectorDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5360-L5368 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassConnectorDefinitionVersionResources | func (t *Template) GetAllAWSGreengrassConnectorDefinitionVersionResources() map[string]*resources.AWSGreengrassConnectorDefinitionVersion {
results := map[string]*resources.AWSGreengrassConnectorDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassConnectorDefinitionVersion:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassConnectorDefinitionVersionResources() map[string]*resources.AWSGreengrassConnectorDefinitionVersion {
results := map[string]*resources.AWSGreengrassConnectorDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassConnectorDefinitionVersion:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassConnectorDefinitionVersionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassConnectorDefinitionVersion",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources"... | // GetAllAWSGreengrassConnectorDefinitionVersionResources retrieves all AWSGreengrassConnectorDefinitionVersion items from an AWS CloudFormation template | [
"GetAllAWSGreengrassConnectorDefinitionVersionResources",
"retrieves",
"all",
"AWSGreengrassConnectorDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5371-L5380 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassConnectorDefinitionVersionWithName | func (t *Template) GetAWSGreengrassConnectorDefinitionVersionWithName(name string) (*resources.AWSGreengrassConnectorDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassConnectorDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassConnectorDefinitionVersion not found", name)
} | go | func (t *Template) GetAWSGreengrassConnectorDefinitionVersionWithName(name string) (*resources.AWSGreengrassConnectorDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassConnectorDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassConnectorDefinitionVersion not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassConnectorDefinitionVersionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassConnectorDefinitionVersion",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"... | // GetAWSGreengrassConnectorDefinitionVersionWithName retrieves all AWSGreengrassConnectorDefinitionVersion items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassConnectorDefinitionVersionWithName",
"retrieves",
"all",
"AWSGreengrassConnectorDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"i... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5384-L5392 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassCoreDefinitionResources | func (t *Template) GetAllAWSGreengrassCoreDefinitionResources() map[string]*resources.AWSGreengrassCoreDefinition {
results := map[string]*resources.AWSGreengrassCoreDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassCoreDefinition:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassCoreDefinitionResources() map[string]*resources.AWSGreengrassCoreDefinition {
results := map[string]*resources.AWSGreengrassCoreDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassCoreDefinition:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassCoreDefinitionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassCoreDefinition",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengras... | // GetAllAWSGreengrassCoreDefinitionResources retrieves all AWSGreengrassCoreDefinition items from an AWS CloudFormation template | [
"GetAllAWSGreengrassCoreDefinitionResources",
"retrieves",
"all",
"AWSGreengrassCoreDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5395-L5404 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassCoreDefinitionWithName | func (t *Template) GetAWSGreengrassCoreDefinitionWithName(name string) (*resources.AWSGreengrassCoreDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassCoreDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassCoreDefinition not found", name)
} | go | func (t *Template) GetAWSGreengrassCoreDefinitionWithName(name string) (*resources.AWSGreengrassCoreDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassCoreDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassCoreDefinition not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassCoreDefinitionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassCoreDefinition",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"na... | // GetAWSGreengrassCoreDefinitionWithName retrieves all AWSGreengrassCoreDefinition items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassCoreDefinitionWithName",
"retrieves",
"all",
"AWSGreengrassCoreDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5408-L5416 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassCoreDefinitionVersionResources | func (t *Template) GetAllAWSGreengrassCoreDefinitionVersionResources() map[string]*resources.AWSGreengrassCoreDefinitionVersion {
results := map[string]*resources.AWSGreengrassCoreDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassCoreDefinitionVersion:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassCoreDefinitionVersionResources() map[string]*resources.AWSGreengrassCoreDefinitionVersion {
results := map[string]*resources.AWSGreengrassCoreDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassCoreDefinitionVersion:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassCoreDefinitionVersionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassCoreDefinitionVersion",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
... | // GetAllAWSGreengrassCoreDefinitionVersionResources retrieves all AWSGreengrassCoreDefinitionVersion items from an AWS CloudFormation template | [
"GetAllAWSGreengrassCoreDefinitionVersionResources",
"retrieves",
"all",
"AWSGreengrassCoreDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5419-L5428 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassCoreDefinitionVersionWithName | func (t *Template) GetAWSGreengrassCoreDefinitionVersionWithName(name string) (*resources.AWSGreengrassCoreDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassCoreDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassCoreDefinitionVersion not found", name)
} | go | func (t *Template) GetAWSGreengrassCoreDefinitionVersionWithName(name string) (*resources.AWSGreengrassCoreDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassCoreDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassCoreDefinitionVersion not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassCoreDefinitionVersionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassCoreDefinitionVersion",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources"... | // GetAWSGreengrassCoreDefinitionVersionWithName retrieves all AWSGreengrassCoreDefinitionVersion items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassCoreDefinitionVersionWithName",
"retrieves",
"all",
"AWSGreengrassCoreDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5432-L5440 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassDeviceDefinitionResources | func (t *Template) GetAllAWSGreengrassDeviceDefinitionResources() map[string]*resources.AWSGreengrassDeviceDefinition {
results := map[string]*resources.AWSGreengrassDeviceDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassDeviceDefinition:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassDeviceDefinitionResources() map[string]*resources.AWSGreengrassDeviceDefinition {
results := map[string]*resources.AWSGreengrassDeviceDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassDeviceDefinition:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassDeviceDefinitionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassDeviceDefinition",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreen... | // GetAllAWSGreengrassDeviceDefinitionResources retrieves all AWSGreengrassDeviceDefinition items from an AWS CloudFormation template | [
"GetAllAWSGreengrassDeviceDefinitionResources",
"retrieves",
"all",
"AWSGreengrassDeviceDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5443-L5452 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassDeviceDefinitionWithName | func (t *Template) GetAWSGreengrassDeviceDefinitionWithName(name string) (*resources.AWSGreengrassDeviceDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassDeviceDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassDeviceDefinition not found", name)
} | go | func (t *Template) GetAWSGreengrassDeviceDefinitionWithName(name string) (*resources.AWSGreengrassDeviceDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassDeviceDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassDeviceDefinition not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassDeviceDefinitionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassDeviceDefinition",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
... | // GetAWSGreengrassDeviceDefinitionWithName retrieves all AWSGreengrassDeviceDefinition items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassDeviceDefinitionWithName",
"retrieves",
"all",
"AWSGreengrassDeviceDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"foun... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5456-L5464 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassDeviceDefinitionVersionResources | func (t *Template) GetAllAWSGreengrassDeviceDefinitionVersionResources() map[string]*resources.AWSGreengrassDeviceDefinitionVersion {
results := map[string]*resources.AWSGreengrassDeviceDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassDeviceDefinitionVersion:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassDeviceDefinitionVersionResources() map[string]*resources.AWSGreengrassDeviceDefinitionVersion {
results := map[string]*resources.AWSGreengrassDeviceDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassDeviceDefinitionVersion:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassDeviceDefinitionVersionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassDeviceDefinitionVersion",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".... | // GetAllAWSGreengrassDeviceDefinitionVersionResources retrieves all AWSGreengrassDeviceDefinitionVersion items from an AWS CloudFormation template | [
"GetAllAWSGreengrassDeviceDefinitionVersionResources",
"retrieves",
"all",
"AWSGreengrassDeviceDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5467-L5476 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassDeviceDefinitionVersionWithName | func (t *Template) GetAWSGreengrassDeviceDefinitionVersionWithName(name string) (*resources.AWSGreengrassDeviceDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassDeviceDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassDeviceDefinitionVersion not found", name)
} | go | func (t *Template) GetAWSGreengrassDeviceDefinitionVersionWithName(name string) (*resources.AWSGreengrassDeviceDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassDeviceDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassDeviceDefinitionVersion not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassDeviceDefinitionVersionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassDeviceDefinitionVersion",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resour... | // GetAWSGreengrassDeviceDefinitionVersionWithName retrieves all AWSGreengrassDeviceDefinitionVersion items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassDeviceDefinitionVersionWithName",
"retrieves",
"all",
"AWSGreengrassDeviceDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5480-L5488 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassFunctionDefinitionResources | func (t *Template) GetAllAWSGreengrassFunctionDefinitionResources() map[string]*resources.AWSGreengrassFunctionDefinition {
results := map[string]*resources.AWSGreengrassFunctionDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassFunctionDefinition:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassFunctionDefinitionResources() map[string]*resources.AWSGreengrassFunctionDefinition {
results := map[string]*resources.AWSGreengrassFunctionDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassFunctionDefinition:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassFunctionDefinitionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassFunctionDefinition",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSG... | // GetAllAWSGreengrassFunctionDefinitionResources retrieves all AWSGreengrassFunctionDefinition items from an AWS CloudFormation template | [
"GetAllAWSGreengrassFunctionDefinitionResources",
"retrieves",
"all",
"AWSGreengrassFunctionDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5491-L5500 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassFunctionDefinitionWithName | func (t *Template) GetAWSGreengrassFunctionDefinitionWithName(name string) (*resources.AWSGreengrassFunctionDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassFunctionDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassFunctionDefinition not found", name)
} | go | func (t *Template) GetAWSGreengrassFunctionDefinitionWithName(name string) (*resources.AWSGreengrassFunctionDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassFunctionDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassFunctionDefinition not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassFunctionDefinitionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassFunctionDefinition",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[... | // GetAWSGreengrassFunctionDefinitionWithName retrieves all AWSGreengrassFunctionDefinition items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassFunctionDefinitionWithName",
"retrieves",
"all",
"AWSGreengrassFunctionDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5504-L5512 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassFunctionDefinitionVersionResources | func (t *Template) GetAllAWSGreengrassFunctionDefinitionVersionResources() map[string]*resources.AWSGreengrassFunctionDefinitionVersion {
results := map[string]*resources.AWSGreengrassFunctionDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassFunctionDefinitionVersion:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassFunctionDefinitionVersionResources() map[string]*resources.AWSGreengrassFunctionDefinitionVersion {
results := map[string]*resources.AWSGreengrassFunctionDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassFunctionDefinitionVersion:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassFunctionDefinitionVersionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassFunctionDefinitionVersion",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
... | // GetAllAWSGreengrassFunctionDefinitionVersionResources retrieves all AWSGreengrassFunctionDefinitionVersion items from an AWS CloudFormation template | [
"GetAllAWSGreengrassFunctionDefinitionVersionResources",
"retrieves",
"all",
"AWSGreengrassFunctionDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5515-L5524 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassFunctionDefinitionVersionWithName | func (t *Template) GetAWSGreengrassFunctionDefinitionVersionWithName(name string) (*resources.AWSGreengrassFunctionDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassFunctionDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassFunctionDefinitionVersion not found", name)
} | go | func (t *Template) GetAWSGreengrassFunctionDefinitionVersionWithName(name string) (*resources.AWSGreengrassFunctionDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassFunctionDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassFunctionDefinitionVersion not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassFunctionDefinitionVersionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassFunctionDefinitionVersion",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Re... | // GetAWSGreengrassFunctionDefinitionVersionWithName retrieves all AWSGreengrassFunctionDefinitionVersion items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassFunctionDefinitionVersionWithName",
"retrieves",
"all",
"AWSGreengrassFunctionDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if"... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5528-L5536 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassGroupResources | func (t *Template) GetAllAWSGreengrassGroupResources() map[string]*resources.AWSGreengrassGroup {
results := map[string]*resources.AWSGreengrassGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassGroupResources() map[string]*resources.AWSGreengrassGroup {
results := map[string]*resources.AWSGreengrassGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassGroup",
"{",
... | // GetAllAWSGreengrassGroupResources retrieves all AWSGreengrassGroup items from an AWS CloudFormation template | [
"GetAllAWSGreengrassGroupResources",
"retrieves",
"all",
"AWSGreengrassGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5539-L5548 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassGroupWithName | func (t *Template) GetAWSGreengrassGroupWithName(name string) (*resources.AWSGreengrassGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassGroup not found", name)
} | go | func (t *Template) GetAWSGreengrassGroupWithName(name string) (*resources.AWSGreengrassGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",... | // GetAWSGreengrassGroupWithName retrieves all AWSGreengrassGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassGroupWithName",
"retrieves",
"all",
"AWSGreengrassGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5552-L5560 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassGroupVersionResources | func (t *Template) GetAllAWSGreengrassGroupVersionResources() map[string]*resources.AWSGreengrassGroupVersion {
results := map[string]*resources.AWSGreengrassGroupVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassGroupVersion:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassGroupVersionResources() map[string]*resources.AWSGreengrassGroupVersion {
results := map[string]*resources.AWSGreengrassGroupVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassGroupVersion:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassGroupVersionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassGroupVersion",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassGro... | // GetAllAWSGreengrassGroupVersionResources retrieves all AWSGreengrassGroupVersion items from an AWS CloudFormation template | [
"GetAllAWSGreengrassGroupVersionResources",
"retrieves",
"all",
"AWSGreengrassGroupVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5563-L5572 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassGroupVersionWithName | func (t *Template) GetAWSGreengrassGroupVersionWithName(name string) (*resources.AWSGreengrassGroupVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassGroupVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassGroupVersion not found", name)
} | go | func (t *Template) GetAWSGreengrassGroupVersionWithName(name string) (*resources.AWSGreengrassGroupVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassGroupVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassGroupVersion not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassGroupVersionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassGroupVersion",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",... | // GetAWSGreengrassGroupVersionWithName retrieves all AWSGreengrassGroupVersion items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassGroupVersionWithName",
"retrieves",
"all",
"AWSGreengrassGroupVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
".... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5576-L5584 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassLoggerDefinitionResources | func (t *Template) GetAllAWSGreengrassLoggerDefinitionResources() map[string]*resources.AWSGreengrassLoggerDefinition {
results := map[string]*resources.AWSGreengrassLoggerDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassLoggerDefinition:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassLoggerDefinitionResources() map[string]*resources.AWSGreengrassLoggerDefinition {
results := map[string]*resources.AWSGreengrassLoggerDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassLoggerDefinition:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassLoggerDefinitionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassLoggerDefinition",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreen... | // GetAllAWSGreengrassLoggerDefinitionResources retrieves all AWSGreengrassLoggerDefinition items from an AWS CloudFormation template | [
"GetAllAWSGreengrassLoggerDefinitionResources",
"retrieves",
"all",
"AWSGreengrassLoggerDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5587-L5596 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassLoggerDefinitionWithName | func (t *Template) GetAWSGreengrassLoggerDefinitionWithName(name string) (*resources.AWSGreengrassLoggerDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassLoggerDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassLoggerDefinition not found", name)
} | go | func (t *Template) GetAWSGreengrassLoggerDefinitionWithName(name string) (*resources.AWSGreengrassLoggerDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassLoggerDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassLoggerDefinition not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassLoggerDefinitionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassLoggerDefinition",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
... | // GetAWSGreengrassLoggerDefinitionWithName retrieves all AWSGreengrassLoggerDefinition items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassLoggerDefinitionWithName",
"retrieves",
"all",
"AWSGreengrassLoggerDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"foun... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5600-L5608 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassLoggerDefinitionVersionResources | func (t *Template) GetAllAWSGreengrassLoggerDefinitionVersionResources() map[string]*resources.AWSGreengrassLoggerDefinitionVersion {
results := map[string]*resources.AWSGreengrassLoggerDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassLoggerDefinitionVersion:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassLoggerDefinitionVersionResources() map[string]*resources.AWSGreengrassLoggerDefinitionVersion {
results := map[string]*resources.AWSGreengrassLoggerDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassLoggerDefinitionVersion:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassLoggerDefinitionVersionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassLoggerDefinitionVersion",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".... | // GetAllAWSGreengrassLoggerDefinitionVersionResources retrieves all AWSGreengrassLoggerDefinitionVersion items from an AWS CloudFormation template | [
"GetAllAWSGreengrassLoggerDefinitionVersionResources",
"retrieves",
"all",
"AWSGreengrassLoggerDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5611-L5620 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassLoggerDefinitionVersionWithName | func (t *Template) GetAWSGreengrassLoggerDefinitionVersionWithName(name string) (*resources.AWSGreengrassLoggerDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassLoggerDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassLoggerDefinitionVersion not found", name)
} | go | func (t *Template) GetAWSGreengrassLoggerDefinitionVersionWithName(name string) (*resources.AWSGreengrassLoggerDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassLoggerDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassLoggerDefinitionVersion not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassLoggerDefinitionVersionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassLoggerDefinitionVersion",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resour... | // GetAWSGreengrassLoggerDefinitionVersionWithName retrieves all AWSGreengrassLoggerDefinitionVersion items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassLoggerDefinitionVersionWithName",
"retrieves",
"all",
"AWSGreengrassLoggerDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5624-L5632 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassResourceDefinitionVersionResources | func (t *Template) GetAllAWSGreengrassResourceDefinitionVersionResources() map[string]*resources.AWSGreengrassResourceDefinitionVersion {
results := map[string]*resources.AWSGreengrassResourceDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassResourceDefinitionVersion:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassResourceDefinitionVersionResources() map[string]*resources.AWSGreengrassResourceDefinitionVersion {
results := map[string]*resources.AWSGreengrassResourceDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassResourceDefinitionVersion:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassResourceDefinitionVersionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassResourceDefinitionVersion",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
... | // GetAllAWSGreengrassResourceDefinitionVersionResources retrieves all AWSGreengrassResourceDefinitionVersion items from an AWS CloudFormation template | [
"GetAllAWSGreengrassResourceDefinitionVersionResources",
"retrieves",
"all",
"AWSGreengrassResourceDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5635-L5644 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassResourceDefinitionVersionWithName | func (t *Template) GetAWSGreengrassResourceDefinitionVersionWithName(name string) (*resources.AWSGreengrassResourceDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassResourceDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassResourceDefinitionVersion not found", name)
} | go | func (t *Template) GetAWSGreengrassResourceDefinitionVersionWithName(name string) (*resources.AWSGreengrassResourceDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassResourceDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassResourceDefinitionVersion not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassResourceDefinitionVersionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassResourceDefinitionVersion",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Re... | // GetAWSGreengrassResourceDefinitionVersionWithName retrieves all AWSGreengrassResourceDefinitionVersion items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassResourceDefinitionVersionWithName",
"retrieves",
"all",
"AWSGreengrassResourceDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if"... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5648-L5656 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassSubscriptionDefinitionResources | func (t *Template) GetAllAWSGreengrassSubscriptionDefinitionResources() map[string]*resources.AWSGreengrassSubscriptionDefinition {
results := map[string]*resources.AWSGreengrassSubscriptionDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassSubscriptionDefinition:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassSubscriptionDefinitionResources() map[string]*resources.AWSGreengrassSubscriptionDefinition {
results := map[string]*resources.AWSGreengrassSubscriptionDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassSubscriptionDefinition:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassSubscriptionDefinitionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassSubscriptionDefinition",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",... | // GetAllAWSGreengrassSubscriptionDefinitionResources retrieves all AWSGreengrassSubscriptionDefinition items from an AWS CloudFormation template | [
"GetAllAWSGreengrassSubscriptionDefinitionResources",
"retrieves",
"all",
"AWSGreengrassSubscriptionDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5659-L5668 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassSubscriptionDefinitionWithName | func (t *Template) GetAWSGreengrassSubscriptionDefinitionWithName(name string) (*resources.AWSGreengrassSubscriptionDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassSubscriptionDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassSubscriptionDefinition not found", name)
} | go | func (t *Template) GetAWSGreengrassSubscriptionDefinitionWithName(name string) (*resources.AWSGreengrassSubscriptionDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassSubscriptionDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassSubscriptionDefinition not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassSubscriptionDefinitionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassSubscriptionDefinition",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resource... | // GetAWSGreengrassSubscriptionDefinitionWithName retrieves all AWSGreengrassSubscriptionDefinition items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassSubscriptionDefinitionWithName",
"retrieves",
"all",
"AWSGreengrassSubscriptionDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"n... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5672-L5680 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGreengrassSubscriptionDefinitionVersionResources | func (t *Template) GetAllAWSGreengrassSubscriptionDefinitionVersionResources() map[string]*resources.AWSGreengrassSubscriptionDefinitionVersion {
results := map[string]*resources.AWSGreengrassSubscriptionDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassSubscriptionDefinitionVersion:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGreengrassSubscriptionDefinitionVersionResources() map[string]*resources.AWSGreengrassSubscriptionDefinitionVersion {
results := map[string]*resources.AWSGreengrassSubscriptionDefinitionVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGreengrassSubscriptionDefinitionVersion:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGreengrassSubscriptionDefinitionVersionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGreengrassSubscriptionDefinitionVersion",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"reso... | // GetAllAWSGreengrassSubscriptionDefinitionVersionResources retrieves all AWSGreengrassSubscriptionDefinitionVersion items from an AWS CloudFormation template | [
"GetAllAWSGreengrassSubscriptionDefinitionVersionResources",
"retrieves",
"all",
"AWSGreengrassSubscriptionDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5683-L5692 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGreengrassSubscriptionDefinitionVersionWithName | func (t *Template) GetAWSGreengrassSubscriptionDefinitionVersionWithName(name string) (*resources.AWSGreengrassSubscriptionDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassSubscriptionDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassSubscriptionDefinitionVersion not found", name)
} | go | func (t *Template) GetAWSGreengrassSubscriptionDefinitionVersionWithName(name string) (*resources.AWSGreengrassSubscriptionDefinitionVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGreengrassSubscriptionDefinitionVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGreengrassSubscriptionDefinitionVersion not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGreengrassSubscriptionDefinitionVersionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGreengrassSubscriptionDefinitionVersion",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".... | // GetAWSGreengrassSubscriptionDefinitionVersionWithName retrieves all AWSGreengrassSubscriptionDefinitionVersion items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGreengrassSubscriptionDefinitionVersionWithName",
"retrieves",
"all",
"AWSGreengrassSubscriptionDefinitionVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error"... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5696-L5704 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGuardDutyDetectorResources | func (t *Template) GetAllAWSGuardDutyDetectorResources() map[string]*resources.AWSGuardDutyDetector {
results := map[string]*resources.AWSGuardDutyDetector{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyDetector:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGuardDutyDetectorResources() map[string]*resources.AWSGuardDutyDetector {
results := map[string]*resources.AWSGuardDutyDetector{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyDetector:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGuardDutyDetectorResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGuardDutyDetector",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGuardDutyDetector",
"... | // GetAllAWSGuardDutyDetectorResources retrieves all AWSGuardDutyDetector items from an AWS CloudFormation template | [
"GetAllAWSGuardDutyDetectorResources",
"retrieves",
"all",
"AWSGuardDutyDetector",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5707-L5716 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGuardDutyDetectorWithName | func (t *Template) GetAWSGuardDutyDetectorWithName(name string) (*resources.AWSGuardDutyDetector, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyDetector:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGuardDutyDetector not found", name)
} | go | func (t *Template) GetAWSGuardDutyDetectorWithName(name string) (*resources.AWSGuardDutyDetector, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyDetector:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGuardDutyDetector not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGuardDutyDetectorWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGuardDutyDetector",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSGuardDutyDetectorWithName retrieves all AWSGuardDutyDetector items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGuardDutyDetectorWithName",
"retrieves",
"all",
"AWSGuardDutyDetector",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5720-L5728 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGuardDutyFilterResources | func (t *Template) GetAllAWSGuardDutyFilterResources() map[string]*resources.AWSGuardDutyFilter {
results := map[string]*resources.AWSGuardDutyFilter{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyFilter:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGuardDutyFilterResources() map[string]*resources.AWSGuardDutyFilter {
results := map[string]*resources.AWSGuardDutyFilter{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyFilter:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGuardDutyFilterResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGuardDutyFilter",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGuardDutyFilter",
"{",
... | // GetAllAWSGuardDutyFilterResources retrieves all AWSGuardDutyFilter items from an AWS CloudFormation template | [
"GetAllAWSGuardDutyFilterResources",
"retrieves",
"all",
"AWSGuardDutyFilter",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5731-L5740 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGuardDutyFilterWithName | func (t *Template) GetAWSGuardDutyFilterWithName(name string) (*resources.AWSGuardDutyFilter, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyFilter:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGuardDutyFilter not found", name)
} | go | func (t *Template) GetAWSGuardDutyFilterWithName(name string) (*resources.AWSGuardDutyFilter, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyFilter:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGuardDutyFilter not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGuardDutyFilterWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGuardDutyFilter",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",... | // GetAWSGuardDutyFilterWithName retrieves all AWSGuardDutyFilter items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGuardDutyFilterWithName",
"retrieves",
"all",
"AWSGuardDutyFilter",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5744-L5752 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGuardDutyIPSetResources | func (t *Template) GetAllAWSGuardDutyIPSetResources() map[string]*resources.AWSGuardDutyIPSet {
results := map[string]*resources.AWSGuardDutyIPSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyIPSet:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGuardDutyIPSetResources() map[string]*resources.AWSGuardDutyIPSet {
results := map[string]*resources.AWSGuardDutyIPSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyIPSet:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGuardDutyIPSetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGuardDutyIPSet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGuardDutyIPSet",
"{",
"}"... | // GetAllAWSGuardDutyIPSetResources retrieves all AWSGuardDutyIPSet items from an AWS CloudFormation template | [
"GetAllAWSGuardDutyIPSetResources",
"retrieves",
"all",
"AWSGuardDutyIPSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5755-L5764 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGuardDutyIPSetWithName | func (t *Template) GetAWSGuardDutyIPSetWithName(name string) (*resources.AWSGuardDutyIPSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyIPSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGuardDutyIPSet not found", name)
} | go | func (t *Template) GetAWSGuardDutyIPSetWithName(name string) (*resources.AWSGuardDutyIPSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyIPSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGuardDutyIPSet not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGuardDutyIPSetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGuardDutyIPSet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSGuardDutyIPSetWithName retrieves all AWSGuardDutyIPSet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGuardDutyIPSetWithName",
"retrieves",
"all",
"AWSGuardDutyIPSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5768-L5776 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGuardDutyMasterResources | func (t *Template) GetAllAWSGuardDutyMasterResources() map[string]*resources.AWSGuardDutyMaster {
results := map[string]*resources.AWSGuardDutyMaster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyMaster:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGuardDutyMasterResources() map[string]*resources.AWSGuardDutyMaster {
results := map[string]*resources.AWSGuardDutyMaster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyMaster:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGuardDutyMasterResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGuardDutyMaster",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGuardDutyMaster",
"{",
... | // GetAllAWSGuardDutyMasterResources retrieves all AWSGuardDutyMaster items from an AWS CloudFormation template | [
"GetAllAWSGuardDutyMasterResources",
"retrieves",
"all",
"AWSGuardDutyMaster",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5779-L5788 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGuardDutyMasterWithName | func (t *Template) GetAWSGuardDutyMasterWithName(name string) (*resources.AWSGuardDutyMaster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyMaster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGuardDutyMaster not found", name)
} | go | func (t *Template) GetAWSGuardDutyMasterWithName(name string) (*resources.AWSGuardDutyMaster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyMaster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGuardDutyMaster not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGuardDutyMasterWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGuardDutyMaster",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",... | // GetAWSGuardDutyMasterWithName retrieves all AWSGuardDutyMaster items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGuardDutyMasterWithName",
"retrieves",
"all",
"AWSGuardDutyMaster",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5792-L5800 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGuardDutyMemberResources | func (t *Template) GetAllAWSGuardDutyMemberResources() map[string]*resources.AWSGuardDutyMember {
results := map[string]*resources.AWSGuardDutyMember{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyMember:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGuardDutyMemberResources() map[string]*resources.AWSGuardDutyMember {
results := map[string]*resources.AWSGuardDutyMember{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyMember:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGuardDutyMemberResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGuardDutyMember",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGuardDutyMember",
"{",
... | // GetAllAWSGuardDutyMemberResources retrieves all AWSGuardDutyMember items from an AWS CloudFormation template | [
"GetAllAWSGuardDutyMemberResources",
"retrieves",
"all",
"AWSGuardDutyMember",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5803-L5812 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGuardDutyMemberWithName | func (t *Template) GetAWSGuardDutyMemberWithName(name string) (*resources.AWSGuardDutyMember, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyMember:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGuardDutyMember not found", name)
} | go | func (t *Template) GetAWSGuardDutyMemberWithName(name string) (*resources.AWSGuardDutyMember, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyMember:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGuardDutyMember not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGuardDutyMemberWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGuardDutyMember",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",... | // GetAWSGuardDutyMemberWithName retrieves all AWSGuardDutyMember items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGuardDutyMemberWithName",
"retrieves",
"all",
"AWSGuardDutyMember",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5816-L5824 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSGuardDutyThreatIntelSetResources | func (t *Template) GetAllAWSGuardDutyThreatIntelSetResources() map[string]*resources.AWSGuardDutyThreatIntelSet {
results := map[string]*resources.AWSGuardDutyThreatIntelSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyThreatIntelSet:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSGuardDutyThreatIntelSetResources() map[string]*resources.AWSGuardDutyThreatIntelSet {
results := map[string]*resources.AWSGuardDutyThreatIntelSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyThreatIntelSet:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSGuardDutyThreatIntelSetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGuardDutyThreatIntelSet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSGuardDutyTh... | // GetAllAWSGuardDutyThreatIntelSetResources retrieves all AWSGuardDutyThreatIntelSet items from an AWS CloudFormation template | [
"GetAllAWSGuardDutyThreatIntelSetResources",
"retrieves",
"all",
"AWSGuardDutyThreatIntelSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5827-L5836 | train |
awslabs/goformation | cloudformation/all.go | GetAWSGuardDutyThreatIntelSetWithName | func (t *Template) GetAWSGuardDutyThreatIntelSetWithName(name string) (*resources.AWSGuardDutyThreatIntelSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyThreatIntelSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGuardDutyThreatIntelSet not found", name)
} | go | func (t *Template) GetAWSGuardDutyThreatIntelSetWithName(name string) (*resources.AWSGuardDutyThreatIntelSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSGuardDutyThreatIntelSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSGuardDutyThreatIntelSet not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSGuardDutyThreatIntelSetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSGuardDutyThreatIntelSet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name... | // GetAWSGuardDutyThreatIntelSetWithName retrieves all AWSGuardDutyThreatIntelSet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSGuardDutyThreatIntelSetWithName",
"retrieves",
"all",
"AWSGuardDutyThreatIntelSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5840-L5848 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSIAMAccessKeyResources | func (t *Template) GetAllAWSIAMAccessKeyResources() map[string]*resources.AWSIAMAccessKey {
results := map[string]*resources.AWSIAMAccessKey{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMAccessKey:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSIAMAccessKeyResources() map[string]*resources.AWSIAMAccessKey {
results := map[string]*resources.AWSIAMAccessKey{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMAccessKey:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSIAMAccessKeyResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMAccessKey",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMAccessKey",
"{",
"}",
"\... | // GetAllAWSIAMAccessKeyResources retrieves all AWSIAMAccessKey items from an AWS CloudFormation template | [
"GetAllAWSIAMAccessKeyResources",
"retrieves",
"all",
"AWSIAMAccessKey",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5851-L5860 | train |
awslabs/goformation | cloudformation/all.go | GetAWSIAMAccessKeyWithName | func (t *Template) GetAWSIAMAccessKeyWithName(name string) (*resources.AWSIAMAccessKey, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMAccessKey:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMAccessKey not found", name)
} | go | func (t *Template) GetAWSIAMAccessKeyWithName(name string) (*resources.AWSIAMAccessKey, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMAccessKey:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMAccessKey not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSIAMAccessKeyWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSIAMAccessKey",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok... | // GetAWSIAMAccessKeyWithName retrieves all AWSIAMAccessKey items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSIAMAccessKeyWithName",
"retrieves",
"all",
"AWSIAMAccessKey",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5864-L5872 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSIAMGroupResources | func (t *Template) GetAllAWSIAMGroupResources() map[string]*resources.AWSIAMGroup {
results := map[string]*resources.AWSIAMGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSIAMGroupResources() map[string]*resources.AWSIAMGroup {
results := map[string]*resources.AWSIAMGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSIAMGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMGroup",
"{",
"}",
"\n",
"for",... | // GetAllAWSIAMGroupResources retrieves all AWSIAMGroup items from an AWS CloudFormation template | [
"GetAllAWSIAMGroupResources",
"retrieves",
"all",
"AWSIAMGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5875-L5884 | train |
awslabs/goformation | cloudformation/all.go | GetAWSIAMGroupWithName | func (t *Template) GetAWSIAMGroupWithName(name string) (*resources.AWSIAMGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMGroup not found", name)
} | go | func (t *Template) GetAWSIAMGroupWithName(name string) (*resources.AWSIAMGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSIAMGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSIAMGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{"... | // GetAWSIAMGroupWithName retrieves all AWSIAMGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSIAMGroupWithName",
"retrieves",
"all",
"AWSIAMGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5888-L5896 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSIAMInstanceProfileResources | func (t *Template) GetAllAWSIAMInstanceProfileResources() map[string]*resources.AWSIAMInstanceProfile {
results := map[string]*resources.AWSIAMInstanceProfile{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMInstanceProfile:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSIAMInstanceProfileResources() map[string]*resources.AWSIAMInstanceProfile {
results := map[string]*resources.AWSIAMInstanceProfile{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMInstanceProfile:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSIAMInstanceProfileResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMInstanceProfile",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMInstanceProfile",
... | // GetAllAWSIAMInstanceProfileResources retrieves all AWSIAMInstanceProfile items from an AWS CloudFormation template | [
"GetAllAWSIAMInstanceProfileResources",
"retrieves",
"all",
"AWSIAMInstanceProfile",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5899-L5908 | train |
awslabs/goformation | cloudformation/all.go | GetAWSIAMInstanceProfileWithName | func (t *Template) GetAWSIAMInstanceProfileWithName(name string) (*resources.AWSIAMInstanceProfile, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMInstanceProfile:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMInstanceProfile not found", name)
} | go | func (t *Template) GetAWSIAMInstanceProfileWithName(name string) (*resources.AWSIAMInstanceProfile, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMInstanceProfile:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMInstanceProfile not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSIAMInstanceProfileWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSIAMInstanceProfile",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSIAMInstanceProfileWithName retrieves all AWSIAMInstanceProfile items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSIAMInstanceProfileWithName",
"retrieves",
"all",
"AWSIAMInstanceProfile",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5912-L5920 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSIAMManagedPolicyResources | func (t *Template) GetAllAWSIAMManagedPolicyResources() map[string]*resources.AWSIAMManagedPolicy {
results := map[string]*resources.AWSIAMManagedPolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMManagedPolicy:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSIAMManagedPolicyResources() map[string]*resources.AWSIAMManagedPolicy {
results := map[string]*resources.AWSIAMManagedPolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMManagedPolicy:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSIAMManagedPolicyResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMManagedPolicy",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMManagedPolicy",
"{",... | // GetAllAWSIAMManagedPolicyResources retrieves all AWSIAMManagedPolicy items from an AWS CloudFormation template | [
"GetAllAWSIAMManagedPolicyResources",
"retrieves",
"all",
"AWSIAMManagedPolicy",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5923-L5932 | train |
awslabs/goformation | cloudformation/all.go | GetAWSIAMManagedPolicyWithName | func (t *Template) GetAWSIAMManagedPolicyWithName(name string) (*resources.AWSIAMManagedPolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMManagedPolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMManagedPolicy not found", name)
} | go | func (t *Template) GetAWSIAMManagedPolicyWithName(name string) (*resources.AWSIAMManagedPolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMManagedPolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMManagedPolicy not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSIAMManagedPolicyWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSIAMManagedPolicy",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";... | // GetAWSIAMManagedPolicyWithName retrieves all AWSIAMManagedPolicy items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSIAMManagedPolicyWithName",
"retrieves",
"all",
"AWSIAMManagedPolicy",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5936-L5944 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSIAMPolicyResources | func (t *Template) GetAllAWSIAMPolicyResources() map[string]*resources.AWSIAMPolicy {
results := map[string]*resources.AWSIAMPolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMPolicy:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSIAMPolicyResources() map[string]*resources.AWSIAMPolicy {
results := map[string]*resources.AWSIAMPolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMPolicy:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSIAMPolicyResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMPolicy",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMPolicy",
"{",
"}",
"\n",
"fo... | // GetAllAWSIAMPolicyResources retrieves all AWSIAMPolicy items from an AWS CloudFormation template | [
"GetAllAWSIAMPolicyResources",
"retrieves",
"all",
"AWSIAMPolicy",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5947-L5956 | train |
awslabs/goformation | cloudformation/all.go | GetAWSIAMPolicyWithName | func (t *Template) GetAWSIAMPolicyWithName(name string) (*resources.AWSIAMPolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMPolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMPolicy not found", name)
} | go | func (t *Template) GetAWSIAMPolicyWithName(name string) (*resources.AWSIAMPolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMPolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMPolicy not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSIAMPolicyWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSIAMPolicy",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"... | // GetAWSIAMPolicyWithName retrieves all AWSIAMPolicy items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSIAMPolicyWithName",
"retrieves",
"all",
"AWSIAMPolicy",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5960-L5968 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSIAMRoleResources | func (t *Template) GetAllAWSIAMRoleResources() map[string]*resources.AWSIAMRole {
results := map[string]*resources.AWSIAMRole{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMRole:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSIAMRoleResources() map[string]*resources.AWSIAMRole {
results := map[string]*resources.AWSIAMRole{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMRole:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSIAMRoleResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMRole",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMRole",
"{",
"}",
"\n",
"for",
... | // GetAllAWSIAMRoleResources retrieves all AWSIAMRole items from an AWS CloudFormation template | [
"GetAllAWSIAMRoleResources",
"retrieves",
"all",
"AWSIAMRole",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5971-L5980 | train |
awslabs/goformation | cloudformation/all.go | GetAWSIAMRoleWithName | func (t *Template) GetAWSIAMRoleWithName(name string) (*resources.AWSIAMRole, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMRole:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMRole not found", name)
} | go | func (t *Template) GetAWSIAMRoleWithName(name string) (*resources.AWSIAMRole, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMRole:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMRole not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSIAMRoleWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSIAMRole",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
... | // GetAWSIAMRoleWithName retrieves all AWSIAMRole items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSIAMRoleWithName",
"retrieves",
"all",
"AWSIAMRole",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5984-L5992 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSIAMServiceLinkedRoleResources | func (t *Template) GetAllAWSIAMServiceLinkedRoleResources() map[string]*resources.AWSIAMServiceLinkedRole {
results := map[string]*resources.AWSIAMServiceLinkedRole{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMServiceLinkedRole:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSIAMServiceLinkedRoleResources() map[string]*resources.AWSIAMServiceLinkedRole {
results := map[string]*resources.AWSIAMServiceLinkedRole{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMServiceLinkedRole:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSIAMServiceLinkedRoleResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMServiceLinkedRole",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMServiceLinkedR... | // GetAllAWSIAMServiceLinkedRoleResources retrieves all AWSIAMServiceLinkedRole items from an AWS CloudFormation template | [
"GetAllAWSIAMServiceLinkedRoleResources",
"retrieves",
"all",
"AWSIAMServiceLinkedRole",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L5995-L6004 | train |
awslabs/goformation | cloudformation/all.go | GetAWSIAMServiceLinkedRoleWithName | func (t *Template) GetAWSIAMServiceLinkedRoleWithName(name string) (*resources.AWSIAMServiceLinkedRole, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMServiceLinkedRole:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMServiceLinkedRole not found", name)
} | go | func (t *Template) GetAWSIAMServiceLinkedRoleWithName(name string) (*resources.AWSIAMServiceLinkedRole, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMServiceLinkedRole:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMServiceLinkedRole not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSIAMServiceLinkedRoleWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSIAMServiceLinkedRole",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"... | // GetAWSIAMServiceLinkedRoleWithName retrieves all AWSIAMServiceLinkedRole items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSIAMServiceLinkedRoleWithName",
"retrieves",
"all",
"AWSIAMServiceLinkedRole",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6008-L6016 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSIAMUserResources | func (t *Template) GetAllAWSIAMUserResources() map[string]*resources.AWSIAMUser {
results := map[string]*resources.AWSIAMUser{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMUser:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSIAMUserResources() map[string]*resources.AWSIAMUser {
results := map[string]*resources.AWSIAMUser{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMUser:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSIAMUserResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMUser",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMUser",
"{",
"}",
"\n",
"for",
... | // GetAllAWSIAMUserResources retrieves all AWSIAMUser items from an AWS CloudFormation template | [
"GetAllAWSIAMUserResources",
"retrieves",
"all",
"AWSIAMUser",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6019-L6028 | train |
awslabs/goformation | cloudformation/all.go | GetAWSIAMUserWithName | func (t *Template) GetAWSIAMUserWithName(name string) (*resources.AWSIAMUser, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMUser:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMUser not found", name)
} | go | func (t *Template) GetAWSIAMUserWithName(name string) (*resources.AWSIAMUser, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMUser:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMUser not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSIAMUserWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSIAMUser",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
... | // GetAWSIAMUserWithName retrieves all AWSIAMUser items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSIAMUserWithName",
"retrieves",
"all",
"AWSIAMUser",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6032-L6040 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSIAMUserToGroupAdditionResources | func (t *Template) GetAllAWSIAMUserToGroupAdditionResources() map[string]*resources.AWSIAMUserToGroupAddition {
results := map[string]*resources.AWSIAMUserToGroupAddition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMUserToGroupAddition:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSIAMUserToGroupAdditionResources() map[string]*resources.AWSIAMUserToGroupAddition {
results := map[string]*resources.AWSIAMUserToGroupAddition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIAMUserToGroupAddition:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSIAMUserToGroupAdditionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMUserToGroupAddition",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIAMUserToGrou... | // GetAllAWSIAMUserToGroupAdditionResources retrieves all AWSIAMUserToGroupAddition items from an AWS CloudFormation template | [
"GetAllAWSIAMUserToGroupAdditionResources",
"retrieves",
"all",
"AWSIAMUserToGroupAddition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6043-L6052 | train |
awslabs/goformation | cloudformation/all.go | GetAWSIAMUserToGroupAdditionWithName | func (t *Template) GetAWSIAMUserToGroupAdditionWithName(name string) (*resources.AWSIAMUserToGroupAddition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMUserToGroupAddition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMUserToGroupAddition not found", name)
} | go | func (t *Template) GetAWSIAMUserToGroupAdditionWithName(name string) (*resources.AWSIAMUserToGroupAddition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIAMUserToGroupAddition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIAMUserToGroupAddition not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSIAMUserToGroupAdditionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSIAMUserToGroupAddition",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",... | // GetAWSIAMUserToGroupAdditionWithName retrieves all AWSIAMUserToGroupAddition items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSIAMUserToGroupAdditionWithName",
"retrieves",
"all",
"AWSIAMUserToGroupAddition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
".... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6056-L6064 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSInspectorAssessmentTargetResources | func (t *Template) GetAllAWSInspectorAssessmentTargetResources() map[string]*resources.AWSInspectorAssessmentTarget {
results := map[string]*resources.AWSInspectorAssessmentTarget{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSInspectorAssessmentTarget:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSInspectorAssessmentTargetResources() map[string]*resources.AWSInspectorAssessmentTarget {
results := map[string]*resources.AWSInspectorAssessmentTarget{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSInspectorAssessmentTarget:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSInspectorAssessmentTargetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSInspectorAssessmentTarget",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSInspect... | // GetAllAWSInspectorAssessmentTargetResources retrieves all AWSInspectorAssessmentTarget items from an AWS CloudFormation template | [
"GetAllAWSInspectorAssessmentTargetResources",
"retrieves",
"all",
"AWSInspectorAssessmentTarget",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6067-L6076 | train |
awslabs/goformation | cloudformation/all.go | GetAWSInspectorAssessmentTargetWithName | func (t *Template) GetAWSInspectorAssessmentTargetWithName(name string) (*resources.AWSInspectorAssessmentTarget, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSInspectorAssessmentTarget:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSInspectorAssessmentTarget not found", name)
} | go | func (t *Template) GetAWSInspectorAssessmentTargetWithName(name string) (*resources.AWSInspectorAssessmentTarget, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSInspectorAssessmentTarget:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSInspectorAssessmentTarget not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSInspectorAssessmentTargetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSInspectorAssessmentTarget",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"... | // GetAWSInspectorAssessmentTargetWithName retrieves all AWSInspectorAssessmentTarget items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSInspectorAssessmentTargetWithName",
"retrieves",
"all",
"AWSInspectorAssessmentTarget",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found"... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6080-L6088 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSInspectorAssessmentTemplateResources | func (t *Template) GetAllAWSInspectorAssessmentTemplateResources() map[string]*resources.AWSInspectorAssessmentTemplate {
results := map[string]*resources.AWSInspectorAssessmentTemplate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSInspectorAssessmentTemplate:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSInspectorAssessmentTemplateResources() map[string]*resources.AWSInspectorAssessmentTemplate {
results := map[string]*resources.AWSInspectorAssessmentTemplate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSInspectorAssessmentTemplate:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSInspectorAssessmentTemplateResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSInspectorAssessmentTemplate",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIns... | // GetAllAWSInspectorAssessmentTemplateResources retrieves all AWSInspectorAssessmentTemplate items from an AWS CloudFormation template | [
"GetAllAWSInspectorAssessmentTemplateResources",
"retrieves",
"all",
"AWSInspectorAssessmentTemplate",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6091-L6100 | train |
awslabs/goformation | cloudformation/all.go | GetAWSInspectorAssessmentTemplateWithName | func (t *Template) GetAWSInspectorAssessmentTemplateWithName(name string) (*resources.AWSInspectorAssessmentTemplate, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSInspectorAssessmentTemplate:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSInspectorAssessmentTemplate not found", name)
} | go | func (t *Template) GetAWSInspectorAssessmentTemplateWithName(name string) (*resources.AWSInspectorAssessmentTemplate, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSInspectorAssessmentTemplate:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSInspectorAssessmentTemplate not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSInspectorAssessmentTemplateWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSInspectorAssessmentTemplate",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",... | // GetAWSInspectorAssessmentTemplateWithName retrieves all AWSInspectorAssessmentTemplate items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSInspectorAssessmentTemplateWithName",
"retrieves",
"all",
"AWSInspectorAssessmentTemplate",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"fo... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6104-L6112 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSInspectorResourceGroupResources | func (t *Template) GetAllAWSInspectorResourceGroupResources() map[string]*resources.AWSInspectorResourceGroup {
results := map[string]*resources.AWSInspectorResourceGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSInspectorResourceGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSInspectorResourceGroupResources() map[string]*resources.AWSInspectorResourceGroup {
results := map[string]*resources.AWSInspectorResourceGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSInspectorResourceGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSInspectorResourceGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSInspectorResourceGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSInspectorReso... | // GetAllAWSInspectorResourceGroupResources retrieves all AWSInspectorResourceGroup items from an AWS CloudFormation template | [
"GetAllAWSInspectorResourceGroupResources",
"retrieves",
"all",
"AWSInspectorResourceGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6115-L6124 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.