repo stringlengths 5 67 | path stringlengths 4 218 | func_name stringlengths 0 151 | original_string stringlengths 52 373k | language stringclasses 6 values | code stringlengths 52 373k | code_tokens listlengths 10 512 | docstring stringlengths 3 47.2k | docstring_tokens listlengths 3 234 | sha stringlengths 40 40 | url stringlengths 85 339 | partition stringclasses 3 values |
|---|---|---|---|---|---|---|---|---|---|---|---|
awslabs/goformation | cloudformation/all.go | GetAWSAppStreamImageBuilderWithName | func (t *Template) GetAWSAppStreamImageBuilderWithName(name string) (*resources.AWSAppStreamImageBuilder, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppStreamImageBuilder:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppStreamImageBuilder not found", name)
} | go | func (t *Template) GetAWSAppStreamImageBuilderWithName(name string) (*resources.AWSAppStreamImageBuilder, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppStreamImageBuilder:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppStreamImageBuilder not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAppStreamImageBuilderWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAppStreamImageBuilder",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
... | // GetAWSAppStreamImageBuilderWithName retrieves all AWSAppStreamImageBuilder items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSAppStreamImageBuilderWithName",
"retrieves",
"all",
"AWSAppStreamImageBuilder",
"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#L1328-L1336 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSAppStreamStackResources | func (t *Template) GetAllAWSAppStreamStackResources() map[string]*resources.AWSAppStreamStack {
results := map[string]*resources.AWSAppStreamStack{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppStreamStack:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSAppStreamStackResources() map[string]*resources.AWSAppStreamStack {
results := map[string]*resources.AWSAppStreamStack{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppStreamStack:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAppStreamStackResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppStreamStack",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppStreamStack",
"{",
"}"... | // GetAllAWSAppStreamStackResources retrieves all AWSAppStreamStack items from an AWS CloudFormation template | [
"GetAllAWSAppStreamStackResources",
"retrieves",
"all",
"AWSAppStreamStack",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1339-L1348 | train |
awslabs/goformation | cloudformation/all.go | GetAWSAppStreamStackWithName | func (t *Template) GetAWSAppStreamStackWithName(name string) (*resources.AWSAppStreamStack, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppStreamStack:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppStreamStack not found", name)
} | go | func (t *Template) GetAWSAppStreamStackWithName(name string) (*resources.AWSAppStreamStack, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppStreamStack:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppStreamStack not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAppStreamStackWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAppStreamStack",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSAppStreamStackWithName retrieves all AWSAppStreamStack items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSAppStreamStackWithName",
"retrieves",
"all",
"AWSAppStreamStack",
"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#L1352-L1360 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSAppStreamStackFleetAssociationResources | func (t *Template) GetAllAWSAppStreamStackFleetAssociationResources() map[string]*resources.AWSAppStreamStackFleetAssociation {
results := map[string]*resources.AWSAppStreamStackFleetAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppStreamStackFleetAssociation:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSAppStreamStackFleetAssociationResources() map[string]*resources.AWSAppStreamStackFleetAssociation {
results := map[string]*resources.AWSAppStreamStackFleetAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppStreamStackFleetAssociation:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAppStreamStackFleetAssociationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppStreamStackFleetAssociation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"... | // GetAllAWSAppStreamStackFleetAssociationResources retrieves all AWSAppStreamStackFleetAssociation items from an AWS CloudFormation template | [
"GetAllAWSAppStreamStackFleetAssociationResources",
"retrieves",
"all",
"AWSAppStreamStackFleetAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1363-L1372 | train |
awslabs/goformation | cloudformation/all.go | GetAWSAppStreamStackFleetAssociationWithName | func (t *Template) GetAWSAppStreamStackFleetAssociationWithName(name string) (*resources.AWSAppStreamStackFleetAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppStreamStackFleetAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppStreamStackFleetAssociation not found", name)
} | go | func (t *Template) GetAWSAppStreamStackFleetAssociationWithName(name string) (*resources.AWSAppStreamStackFleetAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppStreamStackFleetAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppStreamStackFleetAssociation not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAppStreamStackFleetAssociationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAppStreamStackFleetAssociation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSAppStreamStackFleetAssociationWithName retrieves all AWSAppStreamStackFleetAssociation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSAppStreamStackFleetAssociationWithName",
"retrieves",
"all",
"AWSAppStreamStackFleetAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1376-L1384 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSAppStreamStackUserAssociationResources | func (t *Template) GetAllAWSAppStreamStackUserAssociationResources() map[string]*resources.AWSAppStreamStackUserAssociation {
results := map[string]*resources.AWSAppStreamStackUserAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppStreamStackUserAssociation:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSAppStreamStackUserAssociationResources() map[string]*resources.AWSAppStreamStackUserAssociation {
results := map[string]*resources.AWSAppStreamStackUserAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppStreamStackUserAssociation:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAppStreamStackUserAssociationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppStreamStackUserAssociation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AW... | // GetAllAWSAppStreamStackUserAssociationResources retrieves all AWSAppStreamStackUserAssociation items from an AWS CloudFormation template | [
"GetAllAWSAppStreamStackUserAssociationResources",
"retrieves",
"all",
"AWSAppStreamStackUserAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1387-L1396 | train |
awslabs/goformation | cloudformation/all.go | GetAWSAppStreamStackUserAssociationWithName | func (t *Template) GetAWSAppStreamStackUserAssociationWithName(name string) (*resources.AWSAppStreamStackUserAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppStreamStackUserAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppStreamStackUserAssociation not found", name)
} | go | func (t *Template) GetAWSAppStreamStackUserAssociationWithName(name string) (*resources.AWSAppStreamStackUserAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppStreamStackUserAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppStreamStackUserAssociation not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAppStreamStackUserAssociationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAppStreamStackUserAssociation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSAppStreamStackUserAssociationWithName retrieves all AWSAppStreamStackUserAssociation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSAppStreamStackUserAssociationWithName",
"retrieves",
"all",
"AWSAppStreamStackUserAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1400-L1408 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSAppStreamUserResources | func (t *Template) GetAllAWSAppStreamUserResources() map[string]*resources.AWSAppStreamUser {
results := map[string]*resources.AWSAppStreamUser{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppStreamUser:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSAppStreamUserResources() map[string]*resources.AWSAppStreamUser {
results := map[string]*resources.AWSAppStreamUser{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppStreamUser:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAppStreamUserResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppStreamUser",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppStreamUser",
"{",
"}",
... | // GetAllAWSAppStreamUserResources retrieves all AWSAppStreamUser items from an AWS CloudFormation template | [
"GetAllAWSAppStreamUserResources",
"retrieves",
"all",
"AWSAppStreamUser",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1411-L1420 | train |
awslabs/goformation | cloudformation/all.go | GetAWSAppStreamUserWithName | func (t *Template) GetAWSAppStreamUserWithName(name string) (*resources.AWSAppStreamUser, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppStreamUser:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppStreamUser not found", name)
} | go | func (t *Template) GetAWSAppStreamUserWithName(name string) (*resources.AWSAppStreamUser, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppStreamUser:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppStreamUser not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAppStreamUserWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAppStreamUser",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSAppStreamUserWithName retrieves all AWSAppStreamUser items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSAppStreamUserWithName",
"retrieves",
"all",
"AWSAppStreamUser",
"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#L1424-L1432 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSAppSyncApiKeyResources | func (t *Template) GetAllAWSAppSyncApiKeyResources() map[string]*resources.AWSAppSyncApiKey {
results := map[string]*resources.AWSAppSyncApiKey{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppSyncApiKey:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSAppSyncApiKeyResources() map[string]*resources.AWSAppSyncApiKey {
results := map[string]*resources.AWSAppSyncApiKey{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppSyncApiKey:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAppSyncApiKeyResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppSyncApiKey",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppSyncApiKey",
"{",
"}",
... | // GetAllAWSAppSyncApiKeyResources retrieves all AWSAppSyncApiKey items from an AWS CloudFormation template | [
"GetAllAWSAppSyncApiKeyResources",
"retrieves",
"all",
"AWSAppSyncApiKey",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1435-L1444 | train |
awslabs/goformation | cloudformation/all.go | GetAWSAppSyncApiKeyWithName | func (t *Template) GetAWSAppSyncApiKeyWithName(name string) (*resources.AWSAppSyncApiKey, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppSyncApiKey:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppSyncApiKey not found", name)
} | go | func (t *Template) GetAWSAppSyncApiKeyWithName(name string) (*resources.AWSAppSyncApiKey, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppSyncApiKey:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppSyncApiKey not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAppSyncApiKeyWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAppSyncApiKey",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSAppSyncApiKeyWithName retrieves all AWSAppSyncApiKey items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSAppSyncApiKeyWithName",
"retrieves",
"all",
"AWSAppSyncApiKey",
"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#L1448-L1456 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSAppSyncDataSourceResources | func (t *Template) GetAllAWSAppSyncDataSourceResources() map[string]*resources.AWSAppSyncDataSource {
results := map[string]*resources.AWSAppSyncDataSource{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppSyncDataSource:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSAppSyncDataSourceResources() map[string]*resources.AWSAppSyncDataSource {
results := map[string]*resources.AWSAppSyncDataSource{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppSyncDataSource:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAppSyncDataSourceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppSyncDataSource",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppSyncDataSource",
"... | // GetAllAWSAppSyncDataSourceResources retrieves all AWSAppSyncDataSource items from an AWS CloudFormation template | [
"GetAllAWSAppSyncDataSourceResources",
"retrieves",
"all",
"AWSAppSyncDataSource",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1459-L1468 | train |
awslabs/goformation | cloudformation/all.go | GetAWSAppSyncDataSourceWithName | func (t *Template) GetAWSAppSyncDataSourceWithName(name string) (*resources.AWSAppSyncDataSource, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppSyncDataSource:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppSyncDataSource not found", name)
} | go | func (t *Template) GetAWSAppSyncDataSourceWithName(name string) (*resources.AWSAppSyncDataSource, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppSyncDataSource:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppSyncDataSource not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAppSyncDataSourceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAppSyncDataSource",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSAppSyncDataSourceWithName retrieves all AWSAppSyncDataSource items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSAppSyncDataSourceWithName",
"retrieves",
"all",
"AWSAppSyncDataSource",
"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#L1472-L1480 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSAppSyncFunctionConfigurationResources | func (t *Template) GetAllAWSAppSyncFunctionConfigurationResources() map[string]*resources.AWSAppSyncFunctionConfiguration {
results := map[string]*resources.AWSAppSyncFunctionConfiguration{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppSyncFunctionConfiguration:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSAppSyncFunctionConfigurationResources() map[string]*resources.AWSAppSyncFunctionConfiguration {
results := map[string]*resources.AWSAppSyncFunctionConfiguration{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppSyncFunctionConfiguration:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAppSyncFunctionConfigurationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppSyncFunctionConfiguration",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSA... | // GetAllAWSAppSyncFunctionConfigurationResources retrieves all AWSAppSyncFunctionConfiguration items from an AWS CloudFormation template | [
"GetAllAWSAppSyncFunctionConfigurationResources",
"retrieves",
"all",
"AWSAppSyncFunctionConfiguration",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1483-L1492 | train |
awslabs/goformation | cloudformation/all.go | GetAWSAppSyncFunctionConfigurationWithName | func (t *Template) GetAWSAppSyncFunctionConfigurationWithName(name string) (*resources.AWSAppSyncFunctionConfiguration, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppSyncFunctionConfiguration:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppSyncFunctionConfiguration not found", name)
} | go | func (t *Template) GetAWSAppSyncFunctionConfigurationWithName(name string) (*resources.AWSAppSyncFunctionConfiguration, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppSyncFunctionConfiguration:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppSyncFunctionConfiguration not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAppSyncFunctionConfigurationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAppSyncFunctionConfiguration",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[... | // GetAWSAppSyncFunctionConfigurationWithName retrieves all AWSAppSyncFunctionConfiguration items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSAppSyncFunctionConfigurationWithName",
"retrieves",
"all",
"AWSAppSyncFunctionConfiguration",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1496-L1504 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSAppSyncGraphQLApiResources | func (t *Template) GetAllAWSAppSyncGraphQLApiResources() map[string]*resources.AWSAppSyncGraphQLApi {
results := map[string]*resources.AWSAppSyncGraphQLApi{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppSyncGraphQLApi:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSAppSyncGraphQLApiResources() map[string]*resources.AWSAppSyncGraphQLApi {
results := map[string]*resources.AWSAppSyncGraphQLApi{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppSyncGraphQLApi:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAppSyncGraphQLApiResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppSyncGraphQLApi",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppSyncGraphQLApi",
"... | // GetAllAWSAppSyncGraphQLApiResources retrieves all AWSAppSyncGraphQLApi items from an AWS CloudFormation template | [
"GetAllAWSAppSyncGraphQLApiResources",
"retrieves",
"all",
"AWSAppSyncGraphQLApi",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1507-L1516 | train |
awslabs/goformation | cloudformation/all.go | GetAWSAppSyncGraphQLApiWithName | func (t *Template) GetAWSAppSyncGraphQLApiWithName(name string) (*resources.AWSAppSyncGraphQLApi, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppSyncGraphQLApi:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppSyncGraphQLApi not found", name)
} | go | func (t *Template) GetAWSAppSyncGraphQLApiWithName(name string) (*resources.AWSAppSyncGraphQLApi, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppSyncGraphQLApi:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppSyncGraphQLApi not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAppSyncGraphQLApiWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAppSyncGraphQLApi",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSAppSyncGraphQLApiWithName retrieves all AWSAppSyncGraphQLApi items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSAppSyncGraphQLApiWithName",
"retrieves",
"all",
"AWSAppSyncGraphQLApi",
"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#L1520-L1528 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSAppSyncGraphQLSchemaResources | func (t *Template) GetAllAWSAppSyncGraphQLSchemaResources() map[string]*resources.AWSAppSyncGraphQLSchema {
results := map[string]*resources.AWSAppSyncGraphQLSchema{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppSyncGraphQLSchema:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSAppSyncGraphQLSchemaResources() map[string]*resources.AWSAppSyncGraphQLSchema {
results := map[string]*resources.AWSAppSyncGraphQLSchema{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppSyncGraphQLSchema:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAppSyncGraphQLSchemaResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppSyncGraphQLSchema",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppSyncGraphQLSch... | // GetAllAWSAppSyncGraphQLSchemaResources retrieves all AWSAppSyncGraphQLSchema items from an AWS CloudFormation template | [
"GetAllAWSAppSyncGraphQLSchemaResources",
"retrieves",
"all",
"AWSAppSyncGraphQLSchema",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1531-L1540 | train |
awslabs/goformation | cloudformation/all.go | GetAWSAppSyncGraphQLSchemaWithName | func (t *Template) GetAWSAppSyncGraphQLSchemaWithName(name string) (*resources.AWSAppSyncGraphQLSchema, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppSyncGraphQLSchema:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppSyncGraphQLSchema not found", name)
} | go | func (t *Template) GetAWSAppSyncGraphQLSchemaWithName(name string) (*resources.AWSAppSyncGraphQLSchema, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppSyncGraphQLSchema:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppSyncGraphQLSchema not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAppSyncGraphQLSchemaWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAppSyncGraphQLSchema",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"... | // GetAWSAppSyncGraphQLSchemaWithName retrieves all AWSAppSyncGraphQLSchema items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSAppSyncGraphQLSchemaWithName",
"retrieves",
"all",
"AWSAppSyncGraphQLSchema",
"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#L1544-L1552 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSAppSyncResolverResources | func (t *Template) GetAllAWSAppSyncResolverResources() map[string]*resources.AWSAppSyncResolver {
results := map[string]*resources.AWSAppSyncResolver{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppSyncResolver:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSAppSyncResolverResources() map[string]*resources.AWSAppSyncResolver {
results := map[string]*resources.AWSAppSyncResolver{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSAppSyncResolver:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSAppSyncResolverResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppSyncResolver",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSAppSyncResolver",
"{",
... | // GetAllAWSAppSyncResolverResources retrieves all AWSAppSyncResolver items from an AWS CloudFormation template | [
"GetAllAWSAppSyncResolverResources",
"retrieves",
"all",
"AWSAppSyncResolver",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1555-L1564 | train |
awslabs/goformation | cloudformation/all.go | GetAWSAppSyncResolverWithName | func (t *Template) GetAWSAppSyncResolverWithName(name string) (*resources.AWSAppSyncResolver, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppSyncResolver:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppSyncResolver not found", name)
} | go | func (t *Template) GetAWSAppSyncResolverWithName(name string) (*resources.AWSAppSyncResolver, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSAppSyncResolver:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSAppSyncResolver not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSAppSyncResolverWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSAppSyncResolver",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",... | // GetAWSAppSyncResolverWithName retrieves all AWSAppSyncResolver items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSAppSyncResolverWithName",
"retrieves",
"all",
"AWSAppSyncResolver",
"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#L1568-L1576 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSApplicationAutoScalingScalableTargetResources | func (t *Template) GetAllAWSApplicationAutoScalingScalableTargetResources() map[string]*resources.AWSApplicationAutoScalingScalableTarget {
results := map[string]*resources.AWSApplicationAutoScalingScalableTarget{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSApplicationAutoScalingScalableTarget:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSApplicationAutoScalingScalableTargetResources() map[string]*resources.AWSApplicationAutoScalingScalableTarget {
results := map[string]*resources.AWSApplicationAutoScalingScalableTarget{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSApplicationAutoScalingScalableTarget:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSApplicationAutoScalingScalableTargetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSApplicationAutoScalingScalableTarget",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources"... | // GetAllAWSApplicationAutoScalingScalableTargetResources retrieves all AWSApplicationAutoScalingScalableTarget items from an AWS CloudFormation template | [
"GetAllAWSApplicationAutoScalingScalableTargetResources",
"retrieves",
"all",
"AWSApplicationAutoScalingScalableTarget",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1579-L1588 | train |
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",
".",
"... | // 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",
"i... | 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",
... | // 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",
".",
"Re... | // 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"... | 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",
"{",... | // 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",
"]",
";... | // 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",
".",
"AWSAut... | // 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",
"[",... | // 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",
"fo... | 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",
".",
"... | // 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",
... | // 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",... | 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",
".",
"AWSAutoScali... | // 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",
"[",
"na... | // 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",
".",
"AWSAutoScali... | // 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",
"[",
"na... | // 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",
".",
"AWSAutoS... | // 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",
"[",
... | // 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",
"foun... | 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",
".",
"AWSAut... | // 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",
"[",... | // 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",
"fo... | 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",
".",
"AWSBatchComput... | // 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... | // 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",
... | // 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",
"]",
... | // 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",
"{",
"}",
... | // 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",
"]",
";",
"... | // 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",
"{",
"}",
... | // 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",
"]",
";",
"... | // 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",
".",
"AW... | // 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",
... | // 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",
... | 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",
".",
"AWSCloud9Environment... | // 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",
"... | // 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",
".",
"AWSC... | // 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",
"[... | // 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",
"... | 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... | // 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",
"]"... | // 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... | // 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",
"]"... | // 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",
".",
"AWSClo... | // 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",
"[",... | // 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",
"fo... | 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",
".... | // 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",
".",
"Resour... | // 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",
... | 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",
"]",
"*",
"re... | // 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",
... | // 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",
"erro... | 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",
".",
"AWSCloudFrontDis... | // 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",... | // 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",
".",
... | // 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"... | // 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... | 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",
"{",
... | // 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",
"]",
";",... | // 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",
"{",
... | // 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",
"]",
";",... | // 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... | // 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",
"]"... | // 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",
"{",... | // 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",
"]",
";... | // 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",
".",
"AWSCodeCommitReposit... | // 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",
"... | // 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",
".",
"AWSCodeDeployAppli... | // 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",
... | // 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",
".",
"AWSCodeD... | // 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",
"[",
... | // 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",
"foun... | 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",
".",
"AWSCodeDep... | // 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",
"[",
"... | // 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",
".",
"AWSC... | // 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",
"[... | // 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",
"... | 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",
".",
"AWSCodePipelinePipel... | // 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",
"... | // 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... | // 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",
"]"... | // 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... | // 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",
"]"... | // 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",
".... | // 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",
".",
"Resour... | // 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",
... | 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",
"{",
... | // 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",
"]",
";",... | // 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",
".",
"AWSCognitoUserPool... | // 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",
... | // 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",
".",
"AWSCognitoUserPoolGr... | // 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",
"... | // 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... | // 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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.