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