repo
stringlengths 5
54
| path
stringlengths 4
155
| func_name
stringlengths 1
118
| original_string
stringlengths 52
85.5k
| language
stringclasses 1
value | code
stringlengths 52
85.5k
| code_tokens
list | docstring
stringlengths 6
2.61k
| docstring_tokens
list | sha
stringlengths 40
40
| url
stringlengths 85
252
| partition
stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSApplicationAutoScalingScalableTargetWithName
|
func (t *Template) GetAWSApplicationAutoScalingScalableTargetWithName(name string) (*resources.AWSApplicationAutoScalingScalableTarget, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSApplicationAutoScalingScalableTarget:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSApplicationAutoScalingScalableTarget not found", name)
}
|
go
|
func (t *Template) GetAWSApplicationAutoScalingScalableTargetWithName(name string) (*resources.AWSApplicationAutoScalingScalableTarget, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSApplicationAutoScalingScalableTarget:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSApplicationAutoScalingScalableTarget not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSApplicationAutoScalingScalableTargetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSApplicationAutoScalingScalableTarget",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSApplicationAutoScalingScalableTarget",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSApplicationAutoScalingScalableTargetWithName retrieves all AWSApplicationAutoScalingScalableTarget items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSApplicationAutoScalingScalableTargetWithName",
"retrieves",
"all",
"AWSApplicationAutoScalingScalableTarget",
"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#L1592-L1600
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSApplicationAutoScalingScalingPolicyResources
|
func (t *Template) GetAllAWSApplicationAutoScalingScalingPolicyResources() map[string]*resources.AWSApplicationAutoScalingScalingPolicy {
results := map[string]*resources.AWSApplicationAutoScalingScalingPolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSApplicationAutoScalingScalingPolicy:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSApplicationAutoScalingScalingPolicyResources() map[string]*resources.AWSApplicationAutoScalingScalingPolicy {
results := map[string]*resources.AWSApplicationAutoScalingScalingPolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSApplicationAutoScalingScalingPolicy:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSApplicationAutoScalingScalingPolicyResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSApplicationAutoScalingScalingPolicy",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSApplicationAutoScalingScalingPolicy",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSApplicationAutoScalingScalingPolicy",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSApplicationAutoScalingScalingPolicyResources retrieves all AWSApplicationAutoScalingScalingPolicy items from an AWS CloudFormation template
|
[
"GetAllAWSApplicationAutoScalingScalingPolicyResources",
"retrieves",
"all",
"AWSApplicationAutoScalingScalingPolicy",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1603-L1612
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSApplicationAutoScalingScalingPolicyWithName
|
func (t *Template) GetAWSApplicationAutoScalingScalingPolicyWithName(name string) (*resources.AWSApplicationAutoScalingScalingPolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSApplicationAutoScalingScalingPolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSApplicationAutoScalingScalingPolicy not found", name)
}
|
go
|
func (t *Template) GetAWSApplicationAutoScalingScalingPolicyWithName(name string) (*resources.AWSApplicationAutoScalingScalingPolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSApplicationAutoScalingScalingPolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSApplicationAutoScalingScalingPolicy not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSApplicationAutoScalingScalingPolicyWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSApplicationAutoScalingScalingPolicy",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSApplicationAutoScalingScalingPolicy",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSApplicationAutoScalingScalingPolicyWithName retrieves all AWSApplicationAutoScalingScalingPolicy items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSApplicationAutoScalingScalingPolicyWithName",
"retrieves",
"all",
"AWSApplicationAutoScalingScalingPolicy",
"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#L1616-L1624
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSAthenaNamedQueryResources
|
func (t *Template) GetAllAWSAthenaNamedQueryResources() map[string]*resources.AWSAthenaNamedQuery {
results := map[string]*resources.AWSAthenaNamedQuery{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAthenaNamedQuery:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSAthenaNamedQueryResources() map[string]*resources.AWSAthenaNamedQuery {
results := map[string]*resources.AWSAthenaNamedQuery{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAthenaNamedQuery:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAthenaNamedQueryResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAthenaNamedQuery",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAthenaNamedQuery",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAthenaNamedQuery",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSAthenaNamedQueryResources retrieves all AWSAthenaNamedQuery items from an AWS CloudFormation template
|
[
"GetAllAWSAthenaNamedQueryResources",
"retrieves",
"all",
"AWSAthenaNamedQuery",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1627-L1636
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSAthenaNamedQueryWithName
|
func (t *Template) GetAWSAthenaNamedQueryWithName(name string) (*resources.AWSAthenaNamedQuery, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAthenaNamedQuery:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAthenaNamedQuery not found", name)
}
|
go
|
func (t *Template) GetAWSAthenaNamedQueryWithName(name string) (*resources.AWSAthenaNamedQuery, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAthenaNamedQuery:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAthenaNamedQuery not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAthenaNamedQueryWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAthenaNamedQuery",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAthenaNamedQuery",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSAthenaNamedQueryWithName retrieves all AWSAthenaNamedQuery items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSAthenaNamedQueryWithName",
"retrieves",
"all",
"AWSAthenaNamedQuery",
"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#L1640-L1648
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSAutoScalingAutoScalingGroupResources
|
func (t *Template) GetAllAWSAutoScalingAutoScalingGroupResources() map[string]*resources.AWSAutoScalingAutoScalingGroup {
results := map[string]*resources.AWSAutoScalingAutoScalingGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingAutoScalingGroup:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSAutoScalingAutoScalingGroupResources() map[string]*resources.AWSAutoScalingAutoScalingGroup {
results := map[string]*resources.AWSAutoScalingAutoScalingGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingAutoScalingGroup:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAutoScalingAutoScalingGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAutoScalingAutoScalingGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAutoScalingAutoScalingGroup",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAutoScalingAutoScalingGroup",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSAutoScalingAutoScalingGroupResources retrieves all AWSAutoScalingAutoScalingGroup items from an AWS CloudFormation template
|
[
"GetAllAWSAutoScalingAutoScalingGroupResources",
"retrieves",
"all",
"AWSAutoScalingAutoScalingGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1651-L1660
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSAutoScalingAutoScalingGroupWithName
|
func (t *Template) GetAWSAutoScalingAutoScalingGroupWithName(name string) (*resources.AWSAutoScalingAutoScalingGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingAutoScalingGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAutoScalingAutoScalingGroup not found", name)
}
|
go
|
func (t *Template) GetAWSAutoScalingAutoScalingGroupWithName(name string) (*resources.AWSAutoScalingAutoScalingGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingAutoScalingGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAutoScalingAutoScalingGroup not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAutoScalingAutoScalingGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAutoScalingAutoScalingGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAutoScalingAutoScalingGroup",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSAutoScalingAutoScalingGroupWithName retrieves all AWSAutoScalingAutoScalingGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSAutoScalingAutoScalingGroupWithName",
"retrieves",
"all",
"AWSAutoScalingAutoScalingGroup",
"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#L1664-L1672
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSAutoScalingLaunchConfigurationResources
|
func (t *Template) GetAllAWSAutoScalingLaunchConfigurationResources() map[string]*resources.AWSAutoScalingLaunchConfiguration {
results := map[string]*resources.AWSAutoScalingLaunchConfiguration{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingLaunchConfiguration:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSAutoScalingLaunchConfigurationResources() map[string]*resources.AWSAutoScalingLaunchConfiguration {
results := map[string]*resources.AWSAutoScalingLaunchConfiguration{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingLaunchConfiguration:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAutoScalingLaunchConfigurationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAutoScalingLaunchConfiguration",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAutoScalingLaunchConfiguration",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAutoScalingLaunchConfiguration",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSAutoScalingLaunchConfigurationResources retrieves all AWSAutoScalingLaunchConfiguration items from an AWS CloudFormation template
|
[
"GetAllAWSAutoScalingLaunchConfigurationResources",
"retrieves",
"all",
"AWSAutoScalingLaunchConfiguration",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1675-L1684
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSAutoScalingLaunchConfigurationWithName
|
func (t *Template) GetAWSAutoScalingLaunchConfigurationWithName(name string) (*resources.AWSAutoScalingLaunchConfiguration, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingLaunchConfiguration:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAutoScalingLaunchConfiguration not found", name)
}
|
go
|
func (t *Template) GetAWSAutoScalingLaunchConfigurationWithName(name string) (*resources.AWSAutoScalingLaunchConfiguration, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingLaunchConfiguration:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAutoScalingLaunchConfiguration not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAutoScalingLaunchConfigurationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAutoScalingLaunchConfiguration",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAutoScalingLaunchConfiguration",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSAutoScalingLaunchConfigurationWithName retrieves all AWSAutoScalingLaunchConfiguration items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSAutoScalingLaunchConfigurationWithName",
"retrieves",
"all",
"AWSAutoScalingLaunchConfiguration",
"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#L1688-L1696
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSAutoScalingLifecycleHookResources
|
func (t *Template) GetAllAWSAutoScalingLifecycleHookResources() map[string]*resources.AWSAutoScalingLifecycleHook {
results := map[string]*resources.AWSAutoScalingLifecycleHook{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingLifecycleHook:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSAutoScalingLifecycleHookResources() map[string]*resources.AWSAutoScalingLifecycleHook {
results := map[string]*resources.AWSAutoScalingLifecycleHook{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingLifecycleHook:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAutoScalingLifecycleHookResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAutoScalingLifecycleHook",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAutoScalingLifecycleHook",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAutoScalingLifecycleHook",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSAutoScalingLifecycleHookResources retrieves all AWSAutoScalingLifecycleHook items from an AWS CloudFormation template
|
[
"GetAllAWSAutoScalingLifecycleHookResources",
"retrieves",
"all",
"AWSAutoScalingLifecycleHook",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1699-L1708
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSAutoScalingLifecycleHookWithName
|
func (t *Template) GetAWSAutoScalingLifecycleHookWithName(name string) (*resources.AWSAutoScalingLifecycleHook, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingLifecycleHook:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAutoScalingLifecycleHook not found", name)
}
|
go
|
func (t *Template) GetAWSAutoScalingLifecycleHookWithName(name string) (*resources.AWSAutoScalingLifecycleHook, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingLifecycleHook:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAutoScalingLifecycleHook not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAutoScalingLifecycleHookWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAutoScalingLifecycleHook",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAutoScalingLifecycleHook",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSAutoScalingLifecycleHookWithName retrieves all AWSAutoScalingLifecycleHook items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSAutoScalingLifecycleHookWithName",
"retrieves",
"all",
"AWSAutoScalingLifecycleHook",
"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#L1712-L1720
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSAutoScalingScalingPolicyResources
|
func (t *Template) GetAllAWSAutoScalingScalingPolicyResources() map[string]*resources.AWSAutoScalingScalingPolicy {
results := map[string]*resources.AWSAutoScalingScalingPolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingScalingPolicy:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSAutoScalingScalingPolicyResources() map[string]*resources.AWSAutoScalingScalingPolicy {
results := map[string]*resources.AWSAutoScalingScalingPolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingScalingPolicy:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAutoScalingScalingPolicyResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAutoScalingScalingPolicy",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAutoScalingScalingPolicy",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAutoScalingScalingPolicy",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSAutoScalingScalingPolicyResources retrieves all AWSAutoScalingScalingPolicy items from an AWS CloudFormation template
|
[
"GetAllAWSAutoScalingScalingPolicyResources",
"retrieves",
"all",
"AWSAutoScalingScalingPolicy",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1723-L1732
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSAutoScalingScalingPolicyWithName
|
func (t *Template) GetAWSAutoScalingScalingPolicyWithName(name string) (*resources.AWSAutoScalingScalingPolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingScalingPolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAutoScalingScalingPolicy not found", name)
}
|
go
|
func (t *Template) GetAWSAutoScalingScalingPolicyWithName(name string) (*resources.AWSAutoScalingScalingPolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingScalingPolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAutoScalingScalingPolicy not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAutoScalingScalingPolicyWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAutoScalingScalingPolicy",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAutoScalingScalingPolicy",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSAutoScalingScalingPolicyWithName retrieves all AWSAutoScalingScalingPolicy items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSAutoScalingScalingPolicyWithName",
"retrieves",
"all",
"AWSAutoScalingScalingPolicy",
"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#L1736-L1744
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSAutoScalingScheduledActionResources
|
func (t *Template) GetAllAWSAutoScalingScheduledActionResources() map[string]*resources.AWSAutoScalingScheduledAction {
results := map[string]*resources.AWSAutoScalingScheduledAction{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingScheduledAction:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSAutoScalingScheduledActionResources() map[string]*resources.AWSAutoScalingScheduledAction {
results := map[string]*resources.AWSAutoScalingScheduledAction{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingScheduledAction:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAutoScalingScheduledActionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAutoScalingScheduledAction",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAutoScalingScheduledAction",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAutoScalingScheduledAction",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSAutoScalingScheduledActionResources retrieves all AWSAutoScalingScheduledAction items from an AWS CloudFormation template
|
[
"GetAllAWSAutoScalingScheduledActionResources",
"retrieves",
"all",
"AWSAutoScalingScheduledAction",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1747-L1756
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSAutoScalingScheduledActionWithName
|
func (t *Template) GetAWSAutoScalingScheduledActionWithName(name string) (*resources.AWSAutoScalingScheduledAction, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingScheduledAction:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAutoScalingScheduledAction not found", name)
}
|
go
|
func (t *Template) GetAWSAutoScalingScheduledActionWithName(name string) (*resources.AWSAutoScalingScheduledAction, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingScheduledAction:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAutoScalingScheduledAction not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAutoScalingScheduledActionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAutoScalingScheduledAction",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAutoScalingScheduledAction",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSAutoScalingScheduledActionWithName retrieves all AWSAutoScalingScheduledAction items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSAutoScalingScheduledActionWithName",
"retrieves",
"all",
"AWSAutoScalingScheduledAction",
"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#L1760-L1768
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSAutoScalingPlansScalingPlanResources
|
func (t *Template) GetAllAWSAutoScalingPlansScalingPlanResources() map[string]*resources.AWSAutoScalingPlansScalingPlan {
results := map[string]*resources.AWSAutoScalingPlansScalingPlan{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingPlansScalingPlan:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSAutoScalingPlansScalingPlanResources() map[string]*resources.AWSAutoScalingPlansScalingPlan {
results := map[string]*resources.AWSAutoScalingPlansScalingPlan{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingPlansScalingPlan:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAutoScalingPlansScalingPlanResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAutoScalingPlansScalingPlan",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAutoScalingPlansScalingPlan",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAutoScalingPlansScalingPlan",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSAutoScalingPlansScalingPlanResources retrieves all AWSAutoScalingPlansScalingPlan items from an AWS CloudFormation template
|
[
"GetAllAWSAutoScalingPlansScalingPlanResources",
"retrieves",
"all",
"AWSAutoScalingPlansScalingPlan",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1771-L1780
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSAutoScalingPlansScalingPlanWithName
|
func (t *Template) GetAWSAutoScalingPlansScalingPlanWithName(name string) (*resources.AWSAutoScalingPlansScalingPlan, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingPlansScalingPlan:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAutoScalingPlansScalingPlan not found", name)
}
|
go
|
func (t *Template) GetAWSAutoScalingPlansScalingPlanWithName(name string) (*resources.AWSAutoScalingPlansScalingPlan, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAutoScalingPlansScalingPlan:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAutoScalingPlansScalingPlan not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAutoScalingPlansScalingPlanWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAutoScalingPlansScalingPlan",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSAutoScalingPlansScalingPlan",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSAutoScalingPlansScalingPlanWithName retrieves all AWSAutoScalingPlansScalingPlan items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSAutoScalingPlansScalingPlanWithName",
"retrieves",
"all",
"AWSAutoScalingPlansScalingPlan",
"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#L1784-L1792
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSBatchComputeEnvironmentResources
|
func (t *Template) GetAllAWSBatchComputeEnvironmentResources() map[string]*resources.AWSBatchComputeEnvironment {
results := map[string]*resources.AWSBatchComputeEnvironment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSBatchComputeEnvironment:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSBatchComputeEnvironmentResources() map[string]*resources.AWSBatchComputeEnvironment {
results := map[string]*resources.AWSBatchComputeEnvironment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSBatchComputeEnvironment:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSBatchComputeEnvironmentResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSBatchComputeEnvironment",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSBatchComputeEnvironment",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSBatchComputeEnvironment",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSBatchComputeEnvironmentResources retrieves all AWSBatchComputeEnvironment items from an AWS CloudFormation template
|
[
"GetAllAWSBatchComputeEnvironmentResources",
"retrieves",
"all",
"AWSBatchComputeEnvironment",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1795-L1804
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSBatchComputeEnvironmentWithName
|
func (t *Template) GetAWSBatchComputeEnvironmentWithName(name string) (*resources.AWSBatchComputeEnvironment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSBatchComputeEnvironment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSBatchComputeEnvironment not found", name)
}
|
go
|
func (t *Template) GetAWSBatchComputeEnvironmentWithName(name string) (*resources.AWSBatchComputeEnvironment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSBatchComputeEnvironment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSBatchComputeEnvironment not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSBatchComputeEnvironmentWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSBatchComputeEnvironment",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSBatchComputeEnvironment",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSBatchComputeEnvironmentWithName retrieves all AWSBatchComputeEnvironment items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSBatchComputeEnvironmentWithName",
"retrieves",
"all",
"AWSBatchComputeEnvironment",
"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#L1808-L1816
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSBatchJobDefinitionResources
|
func (t *Template) GetAllAWSBatchJobDefinitionResources() map[string]*resources.AWSBatchJobDefinition {
results := map[string]*resources.AWSBatchJobDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSBatchJobDefinition:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSBatchJobDefinitionResources() map[string]*resources.AWSBatchJobDefinition {
results := map[string]*resources.AWSBatchJobDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSBatchJobDefinition:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSBatchJobDefinitionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSBatchJobDefinition",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSBatchJobDefinition",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSBatchJobDefinition",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSBatchJobDefinitionResources retrieves all AWSBatchJobDefinition items from an AWS CloudFormation template
|
[
"GetAllAWSBatchJobDefinitionResources",
"retrieves",
"all",
"AWSBatchJobDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1819-L1828
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSBatchJobDefinitionWithName
|
func (t *Template) GetAWSBatchJobDefinitionWithName(name string) (*resources.AWSBatchJobDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSBatchJobDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSBatchJobDefinition not found", name)
}
|
go
|
func (t *Template) GetAWSBatchJobDefinitionWithName(name string) (*resources.AWSBatchJobDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSBatchJobDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSBatchJobDefinition not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSBatchJobDefinitionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSBatchJobDefinition",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSBatchJobDefinition",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSBatchJobDefinitionWithName retrieves all AWSBatchJobDefinition items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSBatchJobDefinitionWithName",
"retrieves",
"all",
"AWSBatchJobDefinition",
"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#L1832-L1840
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSBatchJobQueueResources
|
func (t *Template) GetAllAWSBatchJobQueueResources() map[string]*resources.AWSBatchJobQueue {
results := map[string]*resources.AWSBatchJobQueue{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSBatchJobQueue:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSBatchJobQueueResources() map[string]*resources.AWSBatchJobQueue {
results := map[string]*resources.AWSBatchJobQueue{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSBatchJobQueue:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSBatchJobQueueResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSBatchJobQueue",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSBatchJobQueue",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSBatchJobQueue",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSBatchJobQueueResources retrieves all AWSBatchJobQueue items from an AWS CloudFormation template
|
[
"GetAllAWSBatchJobQueueResources",
"retrieves",
"all",
"AWSBatchJobQueue",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1843-L1852
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSBatchJobQueueWithName
|
func (t *Template) GetAWSBatchJobQueueWithName(name string) (*resources.AWSBatchJobQueue, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSBatchJobQueue:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSBatchJobQueue not found", name)
}
|
go
|
func (t *Template) GetAWSBatchJobQueueWithName(name string) (*resources.AWSBatchJobQueue, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSBatchJobQueue:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSBatchJobQueue not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSBatchJobQueueWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSBatchJobQueue",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSBatchJobQueue",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSBatchJobQueueWithName retrieves all AWSBatchJobQueue items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSBatchJobQueueWithName",
"retrieves",
"all",
"AWSBatchJobQueue",
"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#L1856-L1864
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSBudgetsBudgetResources
|
func (t *Template) GetAllAWSBudgetsBudgetResources() map[string]*resources.AWSBudgetsBudget {
results := map[string]*resources.AWSBudgetsBudget{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSBudgetsBudget:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSBudgetsBudgetResources() map[string]*resources.AWSBudgetsBudget {
results := map[string]*resources.AWSBudgetsBudget{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSBudgetsBudget:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSBudgetsBudgetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSBudgetsBudget",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSBudgetsBudget",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSBudgetsBudget",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSBudgetsBudgetResources retrieves all AWSBudgetsBudget items from an AWS CloudFormation template
|
[
"GetAllAWSBudgetsBudgetResources",
"retrieves",
"all",
"AWSBudgetsBudget",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1867-L1876
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSBudgetsBudgetWithName
|
func (t *Template) GetAWSBudgetsBudgetWithName(name string) (*resources.AWSBudgetsBudget, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSBudgetsBudget:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSBudgetsBudget not found", name)
}
|
go
|
func (t *Template) GetAWSBudgetsBudgetWithName(name string) (*resources.AWSBudgetsBudget, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSBudgetsBudget:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSBudgetsBudget not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSBudgetsBudgetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSBudgetsBudget",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSBudgetsBudget",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSBudgetsBudgetWithName retrieves all AWSBudgetsBudget items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSBudgetsBudgetWithName",
"retrieves",
"all",
"AWSBudgetsBudget",
"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#L1880-L1888
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCertificateManagerCertificateResources
|
func (t *Template) GetAllAWSCertificateManagerCertificateResources() map[string]*resources.AWSCertificateManagerCertificate {
results := map[string]*resources.AWSCertificateManagerCertificate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCertificateManagerCertificate:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCertificateManagerCertificateResources() map[string]*resources.AWSCertificateManagerCertificate {
results := map[string]*resources.AWSCertificateManagerCertificate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCertificateManagerCertificate:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCertificateManagerCertificateResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCertificateManagerCertificate",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCertificateManagerCertificate",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCertificateManagerCertificate",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCertificateManagerCertificateResources retrieves all AWSCertificateManagerCertificate items from an AWS CloudFormation template
|
[
"GetAllAWSCertificateManagerCertificateResources",
"retrieves",
"all",
"AWSCertificateManagerCertificate",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1891-L1900
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCertificateManagerCertificateWithName
|
func (t *Template) GetAWSCertificateManagerCertificateWithName(name string) (*resources.AWSCertificateManagerCertificate, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCertificateManagerCertificate:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCertificateManagerCertificate not found", name)
}
|
go
|
func (t *Template) GetAWSCertificateManagerCertificateWithName(name string) (*resources.AWSCertificateManagerCertificate, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCertificateManagerCertificate:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCertificateManagerCertificate not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCertificateManagerCertificateWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCertificateManagerCertificate",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCertificateManagerCertificate",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCertificateManagerCertificateWithName retrieves all AWSCertificateManagerCertificate items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCertificateManagerCertificateWithName",
"retrieves",
"all",
"AWSCertificateManagerCertificate",
"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#L1904-L1912
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCloud9EnvironmentEC2Resources
|
func (t *Template) GetAllAWSCloud9EnvironmentEC2Resources() map[string]*resources.AWSCloud9EnvironmentEC2 {
results := map[string]*resources.AWSCloud9EnvironmentEC2{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloud9EnvironmentEC2:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCloud9EnvironmentEC2Resources() map[string]*resources.AWSCloud9EnvironmentEC2 {
results := map[string]*resources.AWSCloud9EnvironmentEC2{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloud9EnvironmentEC2:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCloud9EnvironmentEC2Resources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloud9EnvironmentEC2",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloud9EnvironmentEC2",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloud9EnvironmentEC2",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCloud9EnvironmentEC2Resources retrieves all AWSCloud9EnvironmentEC2 items from an AWS CloudFormation template
|
[
"GetAllAWSCloud9EnvironmentEC2Resources",
"retrieves",
"all",
"AWSCloud9EnvironmentEC2",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1915-L1924
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCloud9EnvironmentEC2WithName
|
func (t *Template) GetAWSCloud9EnvironmentEC2WithName(name string) (*resources.AWSCloud9EnvironmentEC2, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloud9EnvironmentEC2:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloud9EnvironmentEC2 not found", name)
}
|
go
|
func (t *Template) GetAWSCloud9EnvironmentEC2WithName(name string) (*resources.AWSCloud9EnvironmentEC2, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloud9EnvironmentEC2:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloud9EnvironmentEC2 not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCloud9EnvironmentEC2WithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCloud9EnvironmentEC2",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloud9EnvironmentEC2",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCloud9EnvironmentEC2WithName retrieves all AWSCloud9EnvironmentEC2 items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCloud9EnvironmentEC2WithName",
"retrieves",
"all",
"AWSCloud9EnvironmentEC2",
"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#L1928-L1936
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCloudFormationCustomResourceResources
|
func (t *Template) GetAllAWSCloudFormationCustomResourceResources() map[string]*resources.AWSCloudFormationCustomResource {
results := map[string]*resources.AWSCloudFormationCustomResource{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationCustomResource:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCloudFormationCustomResourceResources() map[string]*resources.AWSCloudFormationCustomResource {
results := map[string]*resources.AWSCloudFormationCustomResource{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationCustomResource:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCloudFormationCustomResourceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFormationCustomResource",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFormationCustomResource",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFormationCustomResource",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCloudFormationCustomResourceResources retrieves all AWSCloudFormationCustomResource items from an AWS CloudFormation template
|
[
"GetAllAWSCloudFormationCustomResourceResources",
"retrieves",
"all",
"AWSCloudFormationCustomResource",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1939-L1948
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCloudFormationCustomResourceWithName
|
func (t *Template) GetAWSCloudFormationCustomResourceWithName(name string) (*resources.AWSCloudFormationCustomResource, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationCustomResource:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFormationCustomResource not found", name)
}
|
go
|
func (t *Template) GetAWSCloudFormationCustomResourceWithName(name string) (*resources.AWSCloudFormationCustomResource, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationCustomResource:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFormationCustomResource not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCloudFormationCustomResourceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCloudFormationCustomResource",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFormationCustomResource",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCloudFormationCustomResourceWithName retrieves all AWSCloudFormationCustomResource items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCloudFormationCustomResourceWithName",
"retrieves",
"all",
"AWSCloudFormationCustomResource",
"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#L1952-L1960
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCloudFormationMacroResources
|
func (t *Template) GetAllAWSCloudFormationMacroResources() map[string]*resources.AWSCloudFormationMacro {
results := map[string]*resources.AWSCloudFormationMacro{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationMacro:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCloudFormationMacroResources() map[string]*resources.AWSCloudFormationMacro {
results := map[string]*resources.AWSCloudFormationMacro{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationMacro:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCloudFormationMacroResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFormationMacro",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFormationMacro",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFormationMacro",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCloudFormationMacroResources retrieves all AWSCloudFormationMacro items from an AWS CloudFormation template
|
[
"GetAllAWSCloudFormationMacroResources",
"retrieves",
"all",
"AWSCloudFormationMacro",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1963-L1972
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCloudFormationMacroWithName
|
func (t *Template) GetAWSCloudFormationMacroWithName(name string) (*resources.AWSCloudFormationMacro, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationMacro:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFormationMacro not found", name)
}
|
go
|
func (t *Template) GetAWSCloudFormationMacroWithName(name string) (*resources.AWSCloudFormationMacro, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationMacro:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFormationMacro not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCloudFormationMacroWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCloudFormationMacro",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFormationMacro",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCloudFormationMacroWithName retrieves all AWSCloudFormationMacro items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCloudFormationMacroWithName",
"retrieves",
"all",
"AWSCloudFormationMacro",
"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#L1976-L1984
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCloudFormationStackResources
|
func (t *Template) GetAllAWSCloudFormationStackResources() map[string]*resources.AWSCloudFormationStack {
results := map[string]*resources.AWSCloudFormationStack{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationStack:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCloudFormationStackResources() map[string]*resources.AWSCloudFormationStack {
results := map[string]*resources.AWSCloudFormationStack{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationStack:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCloudFormationStackResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFormationStack",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFormationStack",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFormationStack",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCloudFormationStackResources retrieves all AWSCloudFormationStack items from an AWS CloudFormation template
|
[
"GetAllAWSCloudFormationStackResources",
"retrieves",
"all",
"AWSCloudFormationStack",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1987-L1996
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCloudFormationStackWithName
|
func (t *Template) GetAWSCloudFormationStackWithName(name string) (*resources.AWSCloudFormationStack, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationStack:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFormationStack not found", name)
}
|
go
|
func (t *Template) GetAWSCloudFormationStackWithName(name string) (*resources.AWSCloudFormationStack, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationStack:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFormationStack not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCloudFormationStackWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCloudFormationStack",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFormationStack",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCloudFormationStackWithName retrieves all AWSCloudFormationStack items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCloudFormationStackWithName",
"retrieves",
"all",
"AWSCloudFormationStack",
"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#L2000-L2008
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCloudFormationWaitConditionResources
|
func (t *Template) GetAllAWSCloudFormationWaitConditionResources() map[string]*resources.AWSCloudFormationWaitCondition {
results := map[string]*resources.AWSCloudFormationWaitCondition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationWaitCondition:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCloudFormationWaitConditionResources() map[string]*resources.AWSCloudFormationWaitCondition {
results := map[string]*resources.AWSCloudFormationWaitCondition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationWaitCondition:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCloudFormationWaitConditionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFormationWaitCondition",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFormationWaitCondition",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFormationWaitCondition",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCloudFormationWaitConditionResources retrieves all AWSCloudFormationWaitCondition items from an AWS CloudFormation template
|
[
"GetAllAWSCloudFormationWaitConditionResources",
"retrieves",
"all",
"AWSCloudFormationWaitCondition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2011-L2020
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCloudFormationWaitConditionWithName
|
func (t *Template) GetAWSCloudFormationWaitConditionWithName(name string) (*resources.AWSCloudFormationWaitCondition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationWaitCondition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFormationWaitCondition not found", name)
}
|
go
|
func (t *Template) GetAWSCloudFormationWaitConditionWithName(name string) (*resources.AWSCloudFormationWaitCondition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationWaitCondition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFormationWaitCondition not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCloudFormationWaitConditionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCloudFormationWaitCondition",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFormationWaitCondition",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCloudFormationWaitConditionWithName retrieves all AWSCloudFormationWaitCondition items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCloudFormationWaitConditionWithName",
"retrieves",
"all",
"AWSCloudFormationWaitCondition",
"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#L2024-L2032
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCloudFormationWaitConditionHandleResources
|
func (t *Template) GetAllAWSCloudFormationWaitConditionHandleResources() map[string]*resources.AWSCloudFormationWaitConditionHandle {
results := map[string]*resources.AWSCloudFormationWaitConditionHandle{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationWaitConditionHandle:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCloudFormationWaitConditionHandleResources() map[string]*resources.AWSCloudFormationWaitConditionHandle {
results := map[string]*resources.AWSCloudFormationWaitConditionHandle{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationWaitConditionHandle:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCloudFormationWaitConditionHandleResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFormationWaitConditionHandle",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFormationWaitConditionHandle",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFormationWaitConditionHandle",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCloudFormationWaitConditionHandleResources retrieves all AWSCloudFormationWaitConditionHandle items from an AWS CloudFormation template
|
[
"GetAllAWSCloudFormationWaitConditionHandleResources",
"retrieves",
"all",
"AWSCloudFormationWaitConditionHandle",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2035-L2044
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCloudFormationWaitConditionHandleWithName
|
func (t *Template) GetAWSCloudFormationWaitConditionHandleWithName(name string) (*resources.AWSCloudFormationWaitConditionHandle, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationWaitConditionHandle:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFormationWaitConditionHandle not found", name)
}
|
go
|
func (t *Template) GetAWSCloudFormationWaitConditionHandleWithName(name string) (*resources.AWSCloudFormationWaitConditionHandle, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFormationWaitConditionHandle:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFormationWaitConditionHandle not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCloudFormationWaitConditionHandleWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCloudFormationWaitConditionHandle",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFormationWaitConditionHandle",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCloudFormationWaitConditionHandleWithName retrieves all AWSCloudFormationWaitConditionHandle items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCloudFormationWaitConditionHandleWithName",
"retrieves",
"all",
"AWSCloudFormationWaitConditionHandle",
"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#L2048-L2056
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCloudFrontCloudFrontOriginAccessIdentityResources
|
func (t *Template) GetAllAWSCloudFrontCloudFrontOriginAccessIdentityResources() map[string]*resources.AWSCloudFrontCloudFrontOriginAccessIdentity {
results := map[string]*resources.AWSCloudFrontCloudFrontOriginAccessIdentity{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFrontCloudFrontOriginAccessIdentity:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCloudFrontCloudFrontOriginAccessIdentityResources() map[string]*resources.AWSCloudFrontCloudFrontOriginAccessIdentity {
results := map[string]*resources.AWSCloudFrontCloudFrontOriginAccessIdentity{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFrontCloudFrontOriginAccessIdentity:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCloudFrontCloudFrontOriginAccessIdentityResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFrontCloudFrontOriginAccessIdentity",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFrontCloudFrontOriginAccessIdentity",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFrontCloudFrontOriginAccessIdentity",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCloudFrontCloudFrontOriginAccessIdentityResources retrieves all AWSCloudFrontCloudFrontOriginAccessIdentity items from an AWS CloudFormation template
|
[
"GetAllAWSCloudFrontCloudFrontOriginAccessIdentityResources",
"retrieves",
"all",
"AWSCloudFrontCloudFrontOriginAccessIdentity",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2059-L2068
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCloudFrontCloudFrontOriginAccessIdentityWithName
|
func (t *Template) GetAWSCloudFrontCloudFrontOriginAccessIdentityWithName(name string) (*resources.AWSCloudFrontCloudFrontOriginAccessIdentity, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFrontCloudFrontOriginAccessIdentity:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFrontCloudFrontOriginAccessIdentity not found", name)
}
|
go
|
func (t *Template) GetAWSCloudFrontCloudFrontOriginAccessIdentityWithName(name string) (*resources.AWSCloudFrontCloudFrontOriginAccessIdentity, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFrontCloudFrontOriginAccessIdentity:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFrontCloudFrontOriginAccessIdentity not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCloudFrontCloudFrontOriginAccessIdentityWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCloudFrontCloudFrontOriginAccessIdentity",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFrontCloudFrontOriginAccessIdentity",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCloudFrontCloudFrontOriginAccessIdentityWithName retrieves all AWSCloudFrontCloudFrontOriginAccessIdentity items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCloudFrontCloudFrontOriginAccessIdentityWithName",
"retrieves",
"all",
"AWSCloudFrontCloudFrontOriginAccessIdentity",
"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#L2072-L2080
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCloudFrontDistributionResources
|
func (t *Template) GetAllAWSCloudFrontDistributionResources() map[string]*resources.AWSCloudFrontDistribution {
results := map[string]*resources.AWSCloudFrontDistribution{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFrontDistribution:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCloudFrontDistributionResources() map[string]*resources.AWSCloudFrontDistribution {
results := map[string]*resources.AWSCloudFrontDistribution{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFrontDistribution:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCloudFrontDistributionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFrontDistribution",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFrontDistribution",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFrontDistribution",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCloudFrontDistributionResources retrieves all AWSCloudFrontDistribution items from an AWS CloudFormation template
|
[
"GetAllAWSCloudFrontDistributionResources",
"retrieves",
"all",
"AWSCloudFrontDistribution",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2083-L2092
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCloudFrontDistributionWithName
|
func (t *Template) GetAWSCloudFrontDistributionWithName(name string) (*resources.AWSCloudFrontDistribution, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFrontDistribution:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFrontDistribution not found", name)
}
|
go
|
func (t *Template) GetAWSCloudFrontDistributionWithName(name string) (*resources.AWSCloudFrontDistribution, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFrontDistribution:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFrontDistribution not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCloudFrontDistributionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCloudFrontDistribution",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFrontDistribution",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCloudFrontDistributionWithName retrieves all AWSCloudFrontDistribution items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCloudFrontDistributionWithName",
"retrieves",
"all",
"AWSCloudFrontDistribution",
"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#L2096-L2104
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCloudFrontStreamingDistributionResources
|
func (t *Template) GetAllAWSCloudFrontStreamingDistributionResources() map[string]*resources.AWSCloudFrontStreamingDistribution {
results := map[string]*resources.AWSCloudFrontStreamingDistribution{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFrontStreamingDistribution:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCloudFrontStreamingDistributionResources() map[string]*resources.AWSCloudFrontStreamingDistribution {
results := map[string]*resources.AWSCloudFrontStreamingDistribution{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudFrontStreamingDistribution:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCloudFrontStreamingDistributionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFrontStreamingDistribution",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudFrontStreamingDistribution",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFrontStreamingDistribution",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCloudFrontStreamingDistributionResources retrieves all AWSCloudFrontStreamingDistribution items from an AWS CloudFormation template
|
[
"GetAllAWSCloudFrontStreamingDistributionResources",
"retrieves",
"all",
"AWSCloudFrontStreamingDistribution",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2107-L2116
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCloudFrontStreamingDistributionWithName
|
func (t *Template) GetAWSCloudFrontStreamingDistributionWithName(name string) (*resources.AWSCloudFrontStreamingDistribution, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFrontStreamingDistribution:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFrontStreamingDistribution not found", name)
}
|
go
|
func (t *Template) GetAWSCloudFrontStreamingDistributionWithName(name string) (*resources.AWSCloudFrontStreamingDistribution, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudFrontStreamingDistribution:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudFrontStreamingDistribution not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCloudFrontStreamingDistributionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCloudFrontStreamingDistribution",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudFrontStreamingDistribution",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCloudFrontStreamingDistributionWithName retrieves all AWSCloudFrontStreamingDistribution items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCloudFrontStreamingDistributionWithName",
"retrieves",
"all",
"AWSCloudFrontStreamingDistribution",
"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#L2120-L2128
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCloudTrailTrailResources
|
func (t *Template) GetAllAWSCloudTrailTrailResources() map[string]*resources.AWSCloudTrailTrail {
results := map[string]*resources.AWSCloudTrailTrail{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudTrailTrail:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCloudTrailTrailResources() map[string]*resources.AWSCloudTrailTrail {
results := map[string]*resources.AWSCloudTrailTrail{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudTrailTrail:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCloudTrailTrailResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudTrailTrail",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudTrailTrail",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudTrailTrail",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCloudTrailTrailResources retrieves all AWSCloudTrailTrail items from an AWS CloudFormation template
|
[
"GetAllAWSCloudTrailTrailResources",
"retrieves",
"all",
"AWSCloudTrailTrail",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2131-L2140
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCloudTrailTrailWithName
|
func (t *Template) GetAWSCloudTrailTrailWithName(name string) (*resources.AWSCloudTrailTrail, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudTrailTrail:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudTrailTrail not found", name)
}
|
go
|
func (t *Template) GetAWSCloudTrailTrailWithName(name string) (*resources.AWSCloudTrailTrail, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudTrailTrail:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudTrailTrail not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCloudTrailTrailWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCloudTrailTrail",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudTrailTrail",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCloudTrailTrailWithName retrieves all AWSCloudTrailTrail items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCloudTrailTrailWithName",
"retrieves",
"all",
"AWSCloudTrailTrail",
"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#L2144-L2152
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCloudWatchAlarmResources
|
func (t *Template) GetAllAWSCloudWatchAlarmResources() map[string]*resources.AWSCloudWatchAlarm {
results := map[string]*resources.AWSCloudWatchAlarm{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudWatchAlarm:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCloudWatchAlarmResources() map[string]*resources.AWSCloudWatchAlarm {
results := map[string]*resources.AWSCloudWatchAlarm{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudWatchAlarm:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCloudWatchAlarmResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudWatchAlarm",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudWatchAlarm",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudWatchAlarm",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCloudWatchAlarmResources retrieves all AWSCloudWatchAlarm items from an AWS CloudFormation template
|
[
"GetAllAWSCloudWatchAlarmResources",
"retrieves",
"all",
"AWSCloudWatchAlarm",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2155-L2164
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCloudWatchAlarmWithName
|
func (t *Template) GetAWSCloudWatchAlarmWithName(name string) (*resources.AWSCloudWatchAlarm, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudWatchAlarm:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudWatchAlarm not found", name)
}
|
go
|
func (t *Template) GetAWSCloudWatchAlarmWithName(name string) (*resources.AWSCloudWatchAlarm, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudWatchAlarm:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudWatchAlarm not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCloudWatchAlarmWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCloudWatchAlarm",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudWatchAlarm",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCloudWatchAlarmWithName retrieves all AWSCloudWatchAlarm items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCloudWatchAlarmWithName",
"retrieves",
"all",
"AWSCloudWatchAlarm",
"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#L2168-L2176
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCloudWatchDashboardResources
|
func (t *Template) GetAllAWSCloudWatchDashboardResources() map[string]*resources.AWSCloudWatchDashboard {
results := map[string]*resources.AWSCloudWatchDashboard{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudWatchDashboard:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCloudWatchDashboardResources() map[string]*resources.AWSCloudWatchDashboard {
results := map[string]*resources.AWSCloudWatchDashboard{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCloudWatchDashboard:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCloudWatchDashboardResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudWatchDashboard",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCloudWatchDashboard",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudWatchDashboard",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCloudWatchDashboardResources retrieves all AWSCloudWatchDashboard items from an AWS CloudFormation template
|
[
"GetAllAWSCloudWatchDashboardResources",
"retrieves",
"all",
"AWSCloudWatchDashboard",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2179-L2188
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCloudWatchDashboardWithName
|
func (t *Template) GetAWSCloudWatchDashboardWithName(name string) (*resources.AWSCloudWatchDashboard, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudWatchDashboard:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudWatchDashboard not found", name)
}
|
go
|
func (t *Template) GetAWSCloudWatchDashboardWithName(name string) (*resources.AWSCloudWatchDashboard, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCloudWatchDashboard:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCloudWatchDashboard not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCloudWatchDashboardWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCloudWatchDashboard",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCloudWatchDashboard",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCloudWatchDashboardWithName retrieves all AWSCloudWatchDashboard items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCloudWatchDashboardWithName",
"retrieves",
"all",
"AWSCloudWatchDashboard",
"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#L2192-L2200
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCodeBuildProjectResources
|
func (t *Template) GetAllAWSCodeBuildProjectResources() map[string]*resources.AWSCodeBuildProject {
results := map[string]*resources.AWSCodeBuildProject{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodeBuildProject:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCodeBuildProjectResources() map[string]*resources.AWSCodeBuildProject {
results := map[string]*resources.AWSCodeBuildProject{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodeBuildProject:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCodeBuildProjectResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodeBuildProject",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodeBuildProject",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodeBuildProject",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCodeBuildProjectResources retrieves all AWSCodeBuildProject items from an AWS CloudFormation template
|
[
"GetAllAWSCodeBuildProjectResources",
"retrieves",
"all",
"AWSCodeBuildProject",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2203-L2212
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCodeBuildProjectWithName
|
func (t *Template) GetAWSCodeBuildProjectWithName(name string) (*resources.AWSCodeBuildProject, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodeBuildProject:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodeBuildProject not found", name)
}
|
go
|
func (t *Template) GetAWSCodeBuildProjectWithName(name string) (*resources.AWSCodeBuildProject, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodeBuildProject:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodeBuildProject not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCodeBuildProjectWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCodeBuildProject",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodeBuildProject",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCodeBuildProjectWithName retrieves all AWSCodeBuildProject items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCodeBuildProjectWithName",
"retrieves",
"all",
"AWSCodeBuildProject",
"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#L2216-L2224
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCodeCommitRepositoryResources
|
func (t *Template) GetAllAWSCodeCommitRepositoryResources() map[string]*resources.AWSCodeCommitRepository {
results := map[string]*resources.AWSCodeCommitRepository{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodeCommitRepository:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCodeCommitRepositoryResources() map[string]*resources.AWSCodeCommitRepository {
results := map[string]*resources.AWSCodeCommitRepository{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodeCommitRepository:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCodeCommitRepositoryResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodeCommitRepository",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodeCommitRepository",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodeCommitRepository",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCodeCommitRepositoryResources retrieves all AWSCodeCommitRepository items from an AWS CloudFormation template
|
[
"GetAllAWSCodeCommitRepositoryResources",
"retrieves",
"all",
"AWSCodeCommitRepository",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2227-L2236
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCodeCommitRepositoryWithName
|
func (t *Template) GetAWSCodeCommitRepositoryWithName(name string) (*resources.AWSCodeCommitRepository, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodeCommitRepository:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodeCommitRepository not found", name)
}
|
go
|
func (t *Template) GetAWSCodeCommitRepositoryWithName(name string) (*resources.AWSCodeCommitRepository, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodeCommitRepository:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodeCommitRepository not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCodeCommitRepositoryWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCodeCommitRepository",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodeCommitRepository",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCodeCommitRepositoryWithName retrieves all AWSCodeCommitRepository items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCodeCommitRepositoryWithName",
"retrieves",
"all",
"AWSCodeCommitRepository",
"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#L2240-L2248
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCodeDeployApplicationResources
|
func (t *Template) GetAllAWSCodeDeployApplicationResources() map[string]*resources.AWSCodeDeployApplication {
results := map[string]*resources.AWSCodeDeployApplication{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodeDeployApplication:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCodeDeployApplicationResources() map[string]*resources.AWSCodeDeployApplication {
results := map[string]*resources.AWSCodeDeployApplication{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodeDeployApplication:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCodeDeployApplicationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodeDeployApplication",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodeDeployApplication",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodeDeployApplication",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCodeDeployApplicationResources retrieves all AWSCodeDeployApplication items from an AWS CloudFormation template
|
[
"GetAllAWSCodeDeployApplicationResources",
"retrieves",
"all",
"AWSCodeDeployApplication",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2251-L2260
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCodeDeployApplicationWithName
|
func (t *Template) GetAWSCodeDeployApplicationWithName(name string) (*resources.AWSCodeDeployApplication, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodeDeployApplication:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodeDeployApplication not found", name)
}
|
go
|
func (t *Template) GetAWSCodeDeployApplicationWithName(name string) (*resources.AWSCodeDeployApplication, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodeDeployApplication:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodeDeployApplication not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCodeDeployApplicationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCodeDeployApplication",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodeDeployApplication",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCodeDeployApplicationWithName retrieves all AWSCodeDeployApplication items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCodeDeployApplicationWithName",
"retrieves",
"all",
"AWSCodeDeployApplication",
"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#L2264-L2272
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCodeDeployDeploymentConfigResources
|
func (t *Template) GetAllAWSCodeDeployDeploymentConfigResources() map[string]*resources.AWSCodeDeployDeploymentConfig {
results := map[string]*resources.AWSCodeDeployDeploymentConfig{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodeDeployDeploymentConfig:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCodeDeployDeploymentConfigResources() map[string]*resources.AWSCodeDeployDeploymentConfig {
results := map[string]*resources.AWSCodeDeployDeploymentConfig{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodeDeployDeploymentConfig:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCodeDeployDeploymentConfigResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodeDeployDeploymentConfig",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodeDeployDeploymentConfig",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodeDeployDeploymentConfig",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCodeDeployDeploymentConfigResources retrieves all AWSCodeDeployDeploymentConfig items from an AWS CloudFormation template
|
[
"GetAllAWSCodeDeployDeploymentConfigResources",
"retrieves",
"all",
"AWSCodeDeployDeploymentConfig",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2275-L2284
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCodeDeployDeploymentConfigWithName
|
func (t *Template) GetAWSCodeDeployDeploymentConfigWithName(name string) (*resources.AWSCodeDeployDeploymentConfig, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodeDeployDeploymentConfig:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodeDeployDeploymentConfig not found", name)
}
|
go
|
func (t *Template) GetAWSCodeDeployDeploymentConfigWithName(name string) (*resources.AWSCodeDeployDeploymentConfig, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodeDeployDeploymentConfig:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodeDeployDeploymentConfig not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCodeDeployDeploymentConfigWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCodeDeployDeploymentConfig",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodeDeployDeploymentConfig",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCodeDeployDeploymentConfigWithName retrieves all AWSCodeDeployDeploymentConfig items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCodeDeployDeploymentConfigWithName",
"retrieves",
"all",
"AWSCodeDeployDeploymentConfig",
"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#L2288-L2296
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCodeDeployDeploymentGroupResources
|
func (t *Template) GetAllAWSCodeDeployDeploymentGroupResources() map[string]*resources.AWSCodeDeployDeploymentGroup {
results := map[string]*resources.AWSCodeDeployDeploymentGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodeDeployDeploymentGroup:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCodeDeployDeploymentGroupResources() map[string]*resources.AWSCodeDeployDeploymentGroup {
results := map[string]*resources.AWSCodeDeployDeploymentGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodeDeployDeploymentGroup:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCodeDeployDeploymentGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodeDeployDeploymentGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodeDeployDeploymentGroup",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodeDeployDeploymentGroup",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCodeDeployDeploymentGroupResources retrieves all AWSCodeDeployDeploymentGroup items from an AWS CloudFormation template
|
[
"GetAllAWSCodeDeployDeploymentGroupResources",
"retrieves",
"all",
"AWSCodeDeployDeploymentGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2299-L2308
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCodeDeployDeploymentGroupWithName
|
func (t *Template) GetAWSCodeDeployDeploymentGroupWithName(name string) (*resources.AWSCodeDeployDeploymentGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodeDeployDeploymentGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodeDeployDeploymentGroup not found", name)
}
|
go
|
func (t *Template) GetAWSCodeDeployDeploymentGroupWithName(name string) (*resources.AWSCodeDeployDeploymentGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodeDeployDeploymentGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodeDeployDeploymentGroup not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCodeDeployDeploymentGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCodeDeployDeploymentGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodeDeployDeploymentGroup",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCodeDeployDeploymentGroupWithName retrieves all AWSCodeDeployDeploymentGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCodeDeployDeploymentGroupWithName",
"retrieves",
"all",
"AWSCodeDeployDeploymentGroup",
"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#L2312-L2320
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCodePipelineCustomActionTypeResources
|
func (t *Template) GetAllAWSCodePipelineCustomActionTypeResources() map[string]*resources.AWSCodePipelineCustomActionType {
results := map[string]*resources.AWSCodePipelineCustomActionType{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodePipelineCustomActionType:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCodePipelineCustomActionTypeResources() map[string]*resources.AWSCodePipelineCustomActionType {
results := map[string]*resources.AWSCodePipelineCustomActionType{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodePipelineCustomActionType:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCodePipelineCustomActionTypeResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodePipelineCustomActionType",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodePipelineCustomActionType",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodePipelineCustomActionType",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCodePipelineCustomActionTypeResources retrieves all AWSCodePipelineCustomActionType items from an AWS CloudFormation template
|
[
"GetAllAWSCodePipelineCustomActionTypeResources",
"retrieves",
"all",
"AWSCodePipelineCustomActionType",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2323-L2332
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCodePipelineCustomActionTypeWithName
|
func (t *Template) GetAWSCodePipelineCustomActionTypeWithName(name string) (*resources.AWSCodePipelineCustomActionType, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodePipelineCustomActionType:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodePipelineCustomActionType not found", name)
}
|
go
|
func (t *Template) GetAWSCodePipelineCustomActionTypeWithName(name string) (*resources.AWSCodePipelineCustomActionType, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodePipelineCustomActionType:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodePipelineCustomActionType not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCodePipelineCustomActionTypeWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCodePipelineCustomActionType",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodePipelineCustomActionType",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCodePipelineCustomActionTypeWithName retrieves all AWSCodePipelineCustomActionType items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCodePipelineCustomActionTypeWithName",
"retrieves",
"all",
"AWSCodePipelineCustomActionType",
"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#L2336-L2344
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCodePipelinePipelineResources
|
func (t *Template) GetAllAWSCodePipelinePipelineResources() map[string]*resources.AWSCodePipelinePipeline {
results := map[string]*resources.AWSCodePipelinePipeline{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodePipelinePipeline:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCodePipelinePipelineResources() map[string]*resources.AWSCodePipelinePipeline {
results := map[string]*resources.AWSCodePipelinePipeline{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodePipelinePipeline:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCodePipelinePipelineResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodePipelinePipeline",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodePipelinePipeline",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodePipelinePipeline",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCodePipelinePipelineResources retrieves all AWSCodePipelinePipeline items from an AWS CloudFormation template
|
[
"GetAllAWSCodePipelinePipelineResources",
"retrieves",
"all",
"AWSCodePipelinePipeline",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2347-L2356
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCodePipelinePipelineWithName
|
func (t *Template) GetAWSCodePipelinePipelineWithName(name string) (*resources.AWSCodePipelinePipeline, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodePipelinePipeline:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodePipelinePipeline not found", name)
}
|
go
|
func (t *Template) GetAWSCodePipelinePipelineWithName(name string) (*resources.AWSCodePipelinePipeline, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodePipelinePipeline:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodePipelinePipeline not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCodePipelinePipelineWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCodePipelinePipeline",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodePipelinePipeline",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCodePipelinePipelineWithName retrieves all AWSCodePipelinePipeline items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCodePipelinePipelineWithName",
"retrieves",
"all",
"AWSCodePipelinePipeline",
"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#L2360-L2368
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCodePipelineWebhookResources
|
func (t *Template) GetAllAWSCodePipelineWebhookResources() map[string]*resources.AWSCodePipelineWebhook {
results := map[string]*resources.AWSCodePipelineWebhook{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodePipelineWebhook:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCodePipelineWebhookResources() map[string]*resources.AWSCodePipelineWebhook {
results := map[string]*resources.AWSCodePipelineWebhook{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCodePipelineWebhook:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCodePipelineWebhookResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodePipelineWebhook",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCodePipelineWebhook",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodePipelineWebhook",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCodePipelineWebhookResources retrieves all AWSCodePipelineWebhook items from an AWS CloudFormation template
|
[
"GetAllAWSCodePipelineWebhookResources",
"retrieves",
"all",
"AWSCodePipelineWebhook",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2371-L2380
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCodePipelineWebhookWithName
|
func (t *Template) GetAWSCodePipelineWebhookWithName(name string) (*resources.AWSCodePipelineWebhook, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodePipelineWebhook:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodePipelineWebhook not found", name)
}
|
go
|
func (t *Template) GetAWSCodePipelineWebhookWithName(name string) (*resources.AWSCodePipelineWebhook, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCodePipelineWebhook:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCodePipelineWebhook not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCodePipelineWebhookWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCodePipelineWebhook",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCodePipelineWebhook",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCodePipelineWebhookWithName retrieves all AWSCodePipelineWebhook items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCodePipelineWebhookWithName",
"retrieves",
"all",
"AWSCodePipelineWebhook",
"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#L2384-L2392
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCognitoIdentityPoolResources
|
func (t *Template) GetAllAWSCognitoIdentityPoolResources() map[string]*resources.AWSCognitoIdentityPool {
results := map[string]*resources.AWSCognitoIdentityPool{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoIdentityPool:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCognitoIdentityPoolResources() map[string]*resources.AWSCognitoIdentityPool {
results := map[string]*resources.AWSCognitoIdentityPool{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoIdentityPool:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCognitoIdentityPoolResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoIdentityPool",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoIdentityPool",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoIdentityPool",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCognitoIdentityPoolResources retrieves all AWSCognitoIdentityPool items from an AWS CloudFormation template
|
[
"GetAllAWSCognitoIdentityPoolResources",
"retrieves",
"all",
"AWSCognitoIdentityPool",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2395-L2404
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCognitoIdentityPoolWithName
|
func (t *Template) GetAWSCognitoIdentityPoolWithName(name string) (*resources.AWSCognitoIdentityPool, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoIdentityPool:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoIdentityPool not found", name)
}
|
go
|
func (t *Template) GetAWSCognitoIdentityPoolWithName(name string) (*resources.AWSCognitoIdentityPool, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoIdentityPool:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoIdentityPool not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCognitoIdentityPoolWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCognitoIdentityPool",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoIdentityPool",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCognitoIdentityPoolWithName retrieves all AWSCognitoIdentityPool items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCognitoIdentityPoolWithName",
"retrieves",
"all",
"AWSCognitoIdentityPool",
"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#L2408-L2416
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCognitoIdentityPoolRoleAttachmentResources
|
func (t *Template) GetAllAWSCognitoIdentityPoolRoleAttachmentResources() map[string]*resources.AWSCognitoIdentityPoolRoleAttachment {
results := map[string]*resources.AWSCognitoIdentityPoolRoleAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoIdentityPoolRoleAttachment:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCognitoIdentityPoolRoleAttachmentResources() map[string]*resources.AWSCognitoIdentityPoolRoleAttachment {
results := map[string]*resources.AWSCognitoIdentityPoolRoleAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoIdentityPoolRoleAttachment:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCognitoIdentityPoolRoleAttachmentResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoIdentityPoolRoleAttachment",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoIdentityPoolRoleAttachment",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoIdentityPoolRoleAttachment",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCognitoIdentityPoolRoleAttachmentResources retrieves all AWSCognitoIdentityPoolRoleAttachment items from an AWS CloudFormation template
|
[
"GetAllAWSCognitoIdentityPoolRoleAttachmentResources",
"retrieves",
"all",
"AWSCognitoIdentityPoolRoleAttachment",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2419-L2428
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCognitoIdentityPoolRoleAttachmentWithName
|
func (t *Template) GetAWSCognitoIdentityPoolRoleAttachmentWithName(name string) (*resources.AWSCognitoIdentityPoolRoleAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoIdentityPoolRoleAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoIdentityPoolRoleAttachment not found", name)
}
|
go
|
func (t *Template) GetAWSCognitoIdentityPoolRoleAttachmentWithName(name string) (*resources.AWSCognitoIdentityPoolRoleAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoIdentityPoolRoleAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoIdentityPoolRoleAttachment not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCognitoIdentityPoolRoleAttachmentWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCognitoIdentityPoolRoleAttachment",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoIdentityPoolRoleAttachment",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCognitoIdentityPoolRoleAttachmentWithName retrieves all AWSCognitoIdentityPoolRoleAttachment items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCognitoIdentityPoolRoleAttachmentWithName",
"retrieves",
"all",
"AWSCognitoIdentityPoolRoleAttachment",
"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#L2432-L2440
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCognitoUserPoolResources
|
func (t *Template) GetAllAWSCognitoUserPoolResources() map[string]*resources.AWSCognitoUserPool {
results := map[string]*resources.AWSCognitoUserPool{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPool:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCognitoUserPoolResources() map[string]*resources.AWSCognitoUserPool {
results := map[string]*resources.AWSCognitoUserPool{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPool:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCognitoUserPoolResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoUserPool",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoUserPool",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoUserPool",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCognitoUserPoolResources retrieves all AWSCognitoUserPool items from an AWS CloudFormation template
|
[
"GetAllAWSCognitoUserPoolResources",
"retrieves",
"all",
"AWSCognitoUserPool",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2443-L2452
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCognitoUserPoolWithName
|
func (t *Template) GetAWSCognitoUserPoolWithName(name string) (*resources.AWSCognitoUserPool, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPool:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPool not found", name)
}
|
go
|
func (t *Template) GetAWSCognitoUserPoolWithName(name string) (*resources.AWSCognitoUserPool, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPool:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPool not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCognitoUserPoolWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCognitoUserPool",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoUserPool",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCognitoUserPoolWithName retrieves all AWSCognitoUserPool items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCognitoUserPoolWithName",
"retrieves",
"all",
"AWSCognitoUserPool",
"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#L2456-L2464
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCognitoUserPoolClientResources
|
func (t *Template) GetAllAWSCognitoUserPoolClientResources() map[string]*resources.AWSCognitoUserPoolClient {
results := map[string]*resources.AWSCognitoUserPoolClient{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolClient:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCognitoUserPoolClientResources() map[string]*resources.AWSCognitoUserPoolClient {
results := map[string]*resources.AWSCognitoUserPoolClient{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolClient:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCognitoUserPoolClientResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoUserPoolClient",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoUserPoolClient",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoUserPoolClient",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCognitoUserPoolClientResources retrieves all AWSCognitoUserPoolClient items from an AWS CloudFormation template
|
[
"GetAllAWSCognitoUserPoolClientResources",
"retrieves",
"all",
"AWSCognitoUserPoolClient",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2467-L2476
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCognitoUserPoolClientWithName
|
func (t *Template) GetAWSCognitoUserPoolClientWithName(name string) (*resources.AWSCognitoUserPoolClient, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolClient:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPoolClient not found", name)
}
|
go
|
func (t *Template) GetAWSCognitoUserPoolClientWithName(name string) (*resources.AWSCognitoUserPoolClient, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolClient:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPoolClient not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCognitoUserPoolClientWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCognitoUserPoolClient",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoUserPoolClient",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCognitoUserPoolClientWithName retrieves all AWSCognitoUserPoolClient items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCognitoUserPoolClientWithName",
"retrieves",
"all",
"AWSCognitoUserPoolClient",
"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#L2480-L2488
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCognitoUserPoolGroupResources
|
func (t *Template) GetAllAWSCognitoUserPoolGroupResources() map[string]*resources.AWSCognitoUserPoolGroup {
results := map[string]*resources.AWSCognitoUserPoolGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolGroup:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCognitoUserPoolGroupResources() map[string]*resources.AWSCognitoUserPoolGroup {
results := map[string]*resources.AWSCognitoUserPoolGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolGroup:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCognitoUserPoolGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoUserPoolGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoUserPoolGroup",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoUserPoolGroup",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCognitoUserPoolGroupResources retrieves all AWSCognitoUserPoolGroup items from an AWS CloudFormation template
|
[
"GetAllAWSCognitoUserPoolGroupResources",
"retrieves",
"all",
"AWSCognitoUserPoolGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2491-L2500
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCognitoUserPoolGroupWithName
|
func (t *Template) GetAWSCognitoUserPoolGroupWithName(name string) (*resources.AWSCognitoUserPoolGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPoolGroup not found", name)
}
|
go
|
func (t *Template) GetAWSCognitoUserPoolGroupWithName(name string) (*resources.AWSCognitoUserPoolGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPoolGroup not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCognitoUserPoolGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCognitoUserPoolGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoUserPoolGroup",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCognitoUserPoolGroupWithName retrieves all AWSCognitoUserPoolGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCognitoUserPoolGroupWithName",
"retrieves",
"all",
"AWSCognitoUserPoolGroup",
"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#L2504-L2512
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCognitoUserPoolUserResources
|
func (t *Template) GetAllAWSCognitoUserPoolUserResources() map[string]*resources.AWSCognitoUserPoolUser {
results := map[string]*resources.AWSCognitoUserPoolUser{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUser:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCognitoUserPoolUserResources() map[string]*resources.AWSCognitoUserPoolUser {
results := map[string]*resources.AWSCognitoUserPoolUser{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUser:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCognitoUserPoolUserResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoUserPoolUser",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoUserPoolUser",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoUserPoolUser",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCognitoUserPoolUserResources retrieves all AWSCognitoUserPoolUser items from an AWS CloudFormation template
|
[
"GetAllAWSCognitoUserPoolUserResources",
"retrieves",
"all",
"AWSCognitoUserPoolUser",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2515-L2524
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCognitoUserPoolUserWithName
|
func (t *Template) GetAWSCognitoUserPoolUserWithName(name string) (*resources.AWSCognitoUserPoolUser, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUser:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPoolUser not found", name)
}
|
go
|
func (t *Template) GetAWSCognitoUserPoolUserWithName(name string) (*resources.AWSCognitoUserPoolUser, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUser:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPoolUser not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCognitoUserPoolUserWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCognitoUserPoolUser",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoUserPoolUser",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCognitoUserPoolUserWithName retrieves all AWSCognitoUserPoolUser items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCognitoUserPoolUserWithName",
"retrieves",
"all",
"AWSCognitoUserPoolUser",
"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#L2528-L2536
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSCognitoUserPoolUserToGroupAttachmentResources
|
func (t *Template) GetAllAWSCognitoUserPoolUserToGroupAttachmentResources() map[string]*resources.AWSCognitoUserPoolUserToGroupAttachment {
results := map[string]*resources.AWSCognitoUserPoolUserToGroupAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUserToGroupAttachment:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSCognitoUserPoolUserToGroupAttachmentResources() map[string]*resources.AWSCognitoUserPoolUserToGroupAttachment {
results := map[string]*resources.AWSCognitoUserPoolUserToGroupAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUserToGroupAttachment:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCognitoUserPoolUserToGroupAttachmentResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoUserPoolUserToGroupAttachment",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoUserPoolUserToGroupAttachment",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoUserPoolUserToGroupAttachment",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSCognitoUserPoolUserToGroupAttachmentResources retrieves all AWSCognitoUserPoolUserToGroupAttachment items from an AWS CloudFormation template
|
[
"GetAllAWSCognitoUserPoolUserToGroupAttachmentResources",
"retrieves",
"all",
"AWSCognitoUserPoolUserToGroupAttachment",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2539-L2548
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSCognitoUserPoolUserToGroupAttachmentWithName
|
func (t *Template) GetAWSCognitoUserPoolUserToGroupAttachmentWithName(name string) (*resources.AWSCognitoUserPoolUserToGroupAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUserToGroupAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPoolUserToGroupAttachment not found", name)
}
|
go
|
func (t *Template) GetAWSCognitoUserPoolUserToGroupAttachmentWithName(name string) (*resources.AWSCognitoUserPoolUserToGroupAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUserToGroupAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPoolUserToGroupAttachment not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCognitoUserPoolUserToGroupAttachmentWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCognitoUserPoolUserToGroupAttachment",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSCognitoUserPoolUserToGroupAttachment",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSCognitoUserPoolUserToGroupAttachmentWithName retrieves all AWSCognitoUserPoolUserToGroupAttachment items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSCognitoUserPoolUserToGroupAttachmentWithName",
"retrieves",
"all",
"AWSCognitoUserPoolUserToGroupAttachment",
"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#L2552-L2560
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSConfigAggregationAuthorizationResources
|
func (t *Template) GetAllAWSConfigAggregationAuthorizationResources() map[string]*resources.AWSConfigAggregationAuthorization {
results := map[string]*resources.AWSConfigAggregationAuthorization{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigAggregationAuthorization:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSConfigAggregationAuthorizationResources() map[string]*resources.AWSConfigAggregationAuthorization {
results := map[string]*resources.AWSConfigAggregationAuthorization{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigAggregationAuthorization:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSConfigAggregationAuthorizationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigAggregationAuthorization",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigAggregationAuthorization",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSConfigAggregationAuthorization",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSConfigAggregationAuthorizationResources retrieves all AWSConfigAggregationAuthorization items from an AWS CloudFormation template
|
[
"GetAllAWSConfigAggregationAuthorizationResources",
"retrieves",
"all",
"AWSConfigAggregationAuthorization",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2563-L2572
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSConfigAggregationAuthorizationWithName
|
func (t *Template) GetAWSConfigAggregationAuthorizationWithName(name string) (*resources.AWSConfigAggregationAuthorization, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigAggregationAuthorization:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigAggregationAuthorization not found", name)
}
|
go
|
func (t *Template) GetAWSConfigAggregationAuthorizationWithName(name string) (*resources.AWSConfigAggregationAuthorization, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigAggregationAuthorization:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigAggregationAuthorization not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSConfigAggregationAuthorizationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSConfigAggregationAuthorization",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSConfigAggregationAuthorization",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSConfigAggregationAuthorizationWithName retrieves all AWSConfigAggregationAuthorization items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSConfigAggregationAuthorizationWithName",
"retrieves",
"all",
"AWSConfigAggregationAuthorization",
"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#L2576-L2584
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSConfigConfigRuleResources
|
func (t *Template) GetAllAWSConfigConfigRuleResources() map[string]*resources.AWSConfigConfigRule {
results := map[string]*resources.AWSConfigConfigRule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigRule:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSConfigConfigRuleResources() map[string]*resources.AWSConfigConfigRule {
results := map[string]*resources.AWSConfigConfigRule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigRule:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSConfigConfigRuleResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigConfigRule",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigConfigRule",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSConfigConfigRule",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSConfigConfigRuleResources retrieves all AWSConfigConfigRule items from an AWS CloudFormation template
|
[
"GetAllAWSConfigConfigRuleResources",
"retrieves",
"all",
"AWSConfigConfigRule",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2587-L2596
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSConfigConfigRuleWithName
|
func (t *Template) GetAWSConfigConfigRuleWithName(name string) (*resources.AWSConfigConfigRule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigRule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigConfigRule not found", name)
}
|
go
|
func (t *Template) GetAWSConfigConfigRuleWithName(name string) (*resources.AWSConfigConfigRule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigRule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigConfigRule not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSConfigConfigRuleWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSConfigConfigRule",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSConfigConfigRule",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSConfigConfigRuleWithName retrieves all AWSConfigConfigRule items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSConfigConfigRuleWithName",
"retrieves",
"all",
"AWSConfigConfigRule",
"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#L2600-L2608
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSConfigConfigurationAggregatorResources
|
func (t *Template) GetAllAWSConfigConfigurationAggregatorResources() map[string]*resources.AWSConfigConfigurationAggregator {
results := map[string]*resources.AWSConfigConfigurationAggregator{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationAggregator:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSConfigConfigurationAggregatorResources() map[string]*resources.AWSConfigConfigurationAggregator {
results := map[string]*resources.AWSConfigConfigurationAggregator{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationAggregator:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSConfigConfigurationAggregatorResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigConfigurationAggregator",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigConfigurationAggregator",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSConfigConfigurationAggregator",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSConfigConfigurationAggregatorResources retrieves all AWSConfigConfigurationAggregator items from an AWS CloudFormation template
|
[
"GetAllAWSConfigConfigurationAggregatorResources",
"retrieves",
"all",
"AWSConfigConfigurationAggregator",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2611-L2620
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSConfigConfigurationAggregatorWithName
|
func (t *Template) GetAWSConfigConfigurationAggregatorWithName(name string) (*resources.AWSConfigConfigurationAggregator, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationAggregator:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigConfigurationAggregator not found", name)
}
|
go
|
func (t *Template) GetAWSConfigConfigurationAggregatorWithName(name string) (*resources.AWSConfigConfigurationAggregator, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationAggregator:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigConfigurationAggregator not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSConfigConfigurationAggregatorWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSConfigConfigurationAggregator",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSConfigConfigurationAggregator",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSConfigConfigurationAggregatorWithName retrieves all AWSConfigConfigurationAggregator items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSConfigConfigurationAggregatorWithName",
"retrieves",
"all",
"AWSConfigConfigurationAggregator",
"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#L2624-L2632
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSConfigConfigurationRecorderResources
|
func (t *Template) GetAllAWSConfigConfigurationRecorderResources() map[string]*resources.AWSConfigConfigurationRecorder {
results := map[string]*resources.AWSConfigConfigurationRecorder{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationRecorder:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSConfigConfigurationRecorderResources() map[string]*resources.AWSConfigConfigurationRecorder {
results := map[string]*resources.AWSConfigConfigurationRecorder{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationRecorder:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSConfigConfigurationRecorderResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigConfigurationRecorder",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigConfigurationRecorder",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSConfigConfigurationRecorder",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSConfigConfigurationRecorderResources retrieves all AWSConfigConfigurationRecorder items from an AWS CloudFormation template
|
[
"GetAllAWSConfigConfigurationRecorderResources",
"retrieves",
"all",
"AWSConfigConfigurationRecorder",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2635-L2644
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSConfigConfigurationRecorderWithName
|
func (t *Template) GetAWSConfigConfigurationRecorderWithName(name string) (*resources.AWSConfigConfigurationRecorder, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationRecorder:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigConfigurationRecorder not found", name)
}
|
go
|
func (t *Template) GetAWSConfigConfigurationRecorderWithName(name string) (*resources.AWSConfigConfigurationRecorder, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationRecorder:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigConfigurationRecorder not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSConfigConfigurationRecorderWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSConfigConfigurationRecorder",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSConfigConfigurationRecorder",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSConfigConfigurationRecorderWithName retrieves all AWSConfigConfigurationRecorder items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSConfigConfigurationRecorderWithName",
"retrieves",
"all",
"AWSConfigConfigurationRecorder",
"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#L2648-L2656
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSConfigDeliveryChannelResources
|
func (t *Template) GetAllAWSConfigDeliveryChannelResources() map[string]*resources.AWSConfigDeliveryChannel {
results := map[string]*resources.AWSConfigDeliveryChannel{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigDeliveryChannel:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSConfigDeliveryChannelResources() map[string]*resources.AWSConfigDeliveryChannel {
results := map[string]*resources.AWSConfigDeliveryChannel{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigDeliveryChannel:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSConfigDeliveryChannelResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigDeliveryChannel",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigDeliveryChannel",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSConfigDeliveryChannel",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSConfigDeliveryChannelResources retrieves all AWSConfigDeliveryChannel items from an AWS CloudFormation template
|
[
"GetAllAWSConfigDeliveryChannelResources",
"retrieves",
"all",
"AWSConfigDeliveryChannel",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2659-L2668
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSConfigDeliveryChannelWithName
|
func (t *Template) GetAWSConfigDeliveryChannelWithName(name string) (*resources.AWSConfigDeliveryChannel, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigDeliveryChannel:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigDeliveryChannel not found", name)
}
|
go
|
func (t *Template) GetAWSConfigDeliveryChannelWithName(name string) (*resources.AWSConfigDeliveryChannel, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigDeliveryChannel:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigDeliveryChannel not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSConfigDeliveryChannelWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSConfigDeliveryChannel",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSConfigDeliveryChannel",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSConfigDeliveryChannelWithName retrieves all AWSConfigDeliveryChannel items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSConfigDeliveryChannelWithName",
"retrieves",
"all",
"AWSConfigDeliveryChannel",
"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#L2672-L2680
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSDAXClusterResources
|
func (t *Template) GetAllAWSDAXClusterResources() map[string]*resources.AWSDAXCluster {
results := map[string]*resources.AWSDAXCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDAXCluster:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSDAXClusterResources() map[string]*resources.AWSDAXCluster {
results := map[string]*resources.AWSDAXCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDAXCluster:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDAXClusterResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDAXCluster",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDAXCluster",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSDAXCluster",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSDAXClusterResources retrieves all AWSDAXCluster items from an AWS CloudFormation template
|
[
"GetAllAWSDAXClusterResources",
"retrieves",
"all",
"AWSDAXCluster",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2683-L2692
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSDAXClusterWithName
|
func (t *Template) GetAWSDAXClusterWithName(name string) (*resources.AWSDAXCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDAXCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDAXCluster not found", name)
}
|
go
|
func (t *Template) GetAWSDAXClusterWithName(name string) (*resources.AWSDAXCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDAXCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDAXCluster not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDAXClusterWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDAXCluster",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSDAXCluster",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSDAXClusterWithName retrieves all AWSDAXCluster items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSDAXClusterWithName",
"retrieves",
"all",
"AWSDAXCluster",
"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#L2696-L2704
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSDAXParameterGroupResources
|
func (t *Template) GetAllAWSDAXParameterGroupResources() map[string]*resources.AWSDAXParameterGroup {
results := map[string]*resources.AWSDAXParameterGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDAXParameterGroup:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSDAXParameterGroupResources() map[string]*resources.AWSDAXParameterGroup {
results := map[string]*resources.AWSDAXParameterGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDAXParameterGroup:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDAXParameterGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDAXParameterGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDAXParameterGroup",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSDAXParameterGroup",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSDAXParameterGroupResources retrieves all AWSDAXParameterGroup items from an AWS CloudFormation template
|
[
"GetAllAWSDAXParameterGroupResources",
"retrieves",
"all",
"AWSDAXParameterGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2707-L2716
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSDAXParameterGroupWithName
|
func (t *Template) GetAWSDAXParameterGroupWithName(name string) (*resources.AWSDAXParameterGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDAXParameterGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDAXParameterGroup not found", name)
}
|
go
|
func (t *Template) GetAWSDAXParameterGroupWithName(name string) (*resources.AWSDAXParameterGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDAXParameterGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDAXParameterGroup not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDAXParameterGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDAXParameterGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSDAXParameterGroup",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSDAXParameterGroupWithName retrieves all AWSDAXParameterGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSDAXParameterGroupWithName",
"retrieves",
"all",
"AWSDAXParameterGroup",
"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#L2720-L2728
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSDAXSubnetGroupResources
|
func (t *Template) GetAllAWSDAXSubnetGroupResources() map[string]*resources.AWSDAXSubnetGroup {
results := map[string]*resources.AWSDAXSubnetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDAXSubnetGroup:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSDAXSubnetGroupResources() map[string]*resources.AWSDAXSubnetGroup {
results := map[string]*resources.AWSDAXSubnetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDAXSubnetGroup:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDAXSubnetGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDAXSubnetGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDAXSubnetGroup",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSDAXSubnetGroup",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSDAXSubnetGroupResources retrieves all AWSDAXSubnetGroup items from an AWS CloudFormation template
|
[
"GetAllAWSDAXSubnetGroupResources",
"retrieves",
"all",
"AWSDAXSubnetGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2731-L2740
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSDAXSubnetGroupWithName
|
func (t *Template) GetAWSDAXSubnetGroupWithName(name string) (*resources.AWSDAXSubnetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDAXSubnetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDAXSubnetGroup not found", name)
}
|
go
|
func (t *Template) GetAWSDAXSubnetGroupWithName(name string) (*resources.AWSDAXSubnetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDAXSubnetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDAXSubnetGroup not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDAXSubnetGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDAXSubnetGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSDAXSubnetGroup",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSDAXSubnetGroupWithName retrieves all AWSDAXSubnetGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSDAXSubnetGroupWithName",
"retrieves",
"all",
"AWSDAXSubnetGroup",
"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#L2744-L2752
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSDLMLifecyclePolicyResources
|
func (t *Template) GetAllAWSDLMLifecyclePolicyResources() map[string]*resources.AWSDLMLifecyclePolicy {
results := map[string]*resources.AWSDLMLifecyclePolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDLMLifecyclePolicy:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSDLMLifecyclePolicyResources() map[string]*resources.AWSDLMLifecyclePolicy {
results := map[string]*resources.AWSDLMLifecyclePolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDLMLifecyclePolicy:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDLMLifecyclePolicyResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDLMLifecyclePolicy",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDLMLifecyclePolicy",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSDLMLifecyclePolicy",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSDLMLifecyclePolicyResources retrieves all AWSDLMLifecyclePolicy items from an AWS CloudFormation template
|
[
"GetAllAWSDLMLifecyclePolicyResources",
"retrieves",
"all",
"AWSDLMLifecyclePolicy",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2755-L2764
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAWSDLMLifecyclePolicyWithName
|
func (t *Template) GetAWSDLMLifecyclePolicyWithName(name string) (*resources.AWSDLMLifecyclePolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDLMLifecyclePolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDLMLifecyclePolicy not found", name)
}
|
go
|
func (t *Template) GetAWSDLMLifecyclePolicyWithName(name string) (*resources.AWSDLMLifecyclePolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDLMLifecyclePolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDLMLifecyclePolicy not found", name)
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDLMLifecyclePolicyWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDLMLifecyclePolicy",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSDLMLifecyclePolicy",
":",
"return",
"resource",
",",
"nil",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"nil",
",",
"fmt",
".",
"Errorf",
"(",
"\"",
"\"",
",",
"name",
")",
"\n",
"}"
] |
// GetAWSDLMLifecyclePolicyWithName retrieves all AWSDLMLifecyclePolicy items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
|
[
"GetAWSDLMLifecyclePolicyWithName",
"retrieves",
"all",
"AWSDLMLifecyclePolicy",
"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#L2768-L2776
|
train
|
awslabs/goformation
|
cloudformation/all.go
|
GetAllAWSDMSCertificateResources
|
func (t *Template) GetAllAWSDMSCertificateResources() map[string]*resources.AWSDMSCertificate {
results := map[string]*resources.AWSDMSCertificate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSCertificate:
results[name] = resource
}
}
return results
}
|
go
|
func (t *Template) GetAllAWSDMSCertificateResources() map[string]*resources.AWSDMSCertificate {
results := map[string]*resources.AWSDMSCertificate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSCertificate:
results[name] = resource
}
}
return results
}
|
[
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDMSCertificateResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSCertificate",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSCertificate",
"{",
"}",
"\n",
"for",
"name",
",",
"untyped",
":=",
"range",
"t",
".",
"Resources",
"{",
"switch",
"resource",
":=",
"untyped",
".",
"(",
"type",
")",
"{",
"case",
"*",
"resources",
".",
"AWSDMSCertificate",
":",
"results",
"[",
"name",
"]",
"=",
"resource",
"\n",
"}",
"\n",
"}",
"\n",
"return",
"results",
"\n",
"}"
] |
// GetAllAWSDMSCertificateResources retrieves all AWSDMSCertificate items from an AWS CloudFormation template
|
[
"GetAllAWSDMSCertificateResources",
"retrieves",
"all",
"AWSDMSCertificate",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] |
8898b813a27809556420fcf0427a32765a567302
|
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2779-L2788
|
train
|
Subsets and Splits
SQL Console for semeru/code-text-go
Retrieves a limited set of code samples with their languages, with a specific case adjustment for 'Go' language.