repo stringlengths 5 67 | path stringlengths 4 218 | func_name stringlengths 0 151 | original_string stringlengths 52 373k | language stringclasses 6 values | code stringlengths 52 373k | code_tokens listlengths 10 512 | docstring stringlengths 3 47.2k | docstring_tokens listlengths 3 234 | sha stringlengths 40 40 | url stringlengths 85 339 | partition stringclasses 3 values |
|---|---|---|---|---|---|---|---|---|---|---|---|
awslabs/goformation | cloudformation/all.go | 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 AWSInspectorResourceGroup not found", name)
} | 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 AWSInspectorResourceGroup not found", name)
} | [
"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 results
} | 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 results
} | [
"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 found", name)
} | 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 found", name)
} | [
"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
}
}
return results
} | 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
}
}
return results
} | [
"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 AWSIoT1ClickPlacement not found", name)
} | 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 AWSIoT1ClickPlacement not found", name)
} | [
"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 results
} | 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 results
} | [
"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 not found", name)
} | 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 not found", name)
} | [
"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 found", name)
} | 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 found", name)
} | [
"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.AWSIoTPolicyPrincipalAttachment:
results[name] = resource
}
}
return results
} | 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.AWSIoTPolicyPrincipalAttachment:
results[name] = resource
}
}
return results
} | [
"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("resource %q of type AWSIoTPolicyPrincipalAttachment not found", name)
} | 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("resource %q of type AWSIoTPolicyPrincipalAttachment not found", name)
} | [
"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:
results[name] = resource
}
}
return results
} | 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:
results[name] = resource
}
}
return results
} | [
"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("resource %q of type AWSIoTThingPrincipalAttachment not found", name)
} | 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("resource %q of type AWSIoTThingPrincipalAttachment not found", name)
} | [
"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", name)
} | 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", name)
} | [
"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
}
}
return results
} | 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
}
}
return results
} | [
"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 AWSIoTAnalyticsChannel not found", name)
} | 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 AWSIoTAnalyticsChannel not found", name)
} | [
"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
}
}
return results
} | 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
}
}
return results
} | [
"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 |
awslabs/goformation | cloudformation/all.go | GetAWSIoTAnalyticsDatasetWithName | func (t *Template) GetAWSIoTAnalyticsDatasetWithName(name string) (*resources.AWSIoTAnalyticsDataset, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIoTAnalyticsDataset:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsDataset not found", name)
} | go | func (t *Template) GetAWSIoTAnalyticsDatasetWithName(name string) (*resources.AWSIoTAnalyticsDataset, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIoTAnalyticsDataset:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsDataset not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSIoTAnalyticsDatasetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSIoTAnalyticsDataset",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]"... | // GetAWSIoTAnalyticsDatasetWithName retrieves all AWSIoTAnalyticsDataset items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSIoTAnalyticsDatasetWithName",
"retrieves",
"all",
"AWSIoTAnalyticsDataset",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6392-L6400 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSIoTAnalyticsDatastoreResources | func (t *Template) GetAllAWSIoTAnalyticsDatastoreResources() map[string]*resources.AWSIoTAnalyticsDatastore {
results := map[string]*resources.AWSIoTAnalyticsDatastore{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIoTAnalyticsDatastore:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSIoTAnalyticsDatastoreResources() map[string]*resources.AWSIoTAnalyticsDatastore {
results := map[string]*resources.AWSIoTAnalyticsDatastore{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIoTAnalyticsDatastore:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSIoTAnalyticsDatastoreResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIoTAnalyticsDatastore",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIoTAnalyticsDat... | // GetAllAWSIoTAnalyticsDatastoreResources retrieves all AWSIoTAnalyticsDatastore items from an AWS CloudFormation template | [
"GetAllAWSIoTAnalyticsDatastoreResources",
"retrieves",
"all",
"AWSIoTAnalyticsDatastore",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6403-L6412 | train |
awslabs/goformation | cloudformation/all.go | GetAWSIoTAnalyticsDatastoreWithName | func (t *Template) GetAWSIoTAnalyticsDatastoreWithName(name string) (*resources.AWSIoTAnalyticsDatastore, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIoTAnalyticsDatastore:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsDatastore not found", name)
} | go | func (t *Template) GetAWSIoTAnalyticsDatastoreWithName(name string) (*resources.AWSIoTAnalyticsDatastore, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIoTAnalyticsDatastore:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsDatastore not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSIoTAnalyticsDatastoreWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSIoTAnalyticsDatastore",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
... | // GetAWSIoTAnalyticsDatastoreWithName retrieves all AWSIoTAnalyticsDatastore items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSIoTAnalyticsDatastoreWithName",
"retrieves",
"all",
"AWSIoTAnalyticsDatastore",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6416-L6424 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSIoTAnalyticsPipelineResources | func (t *Template) GetAllAWSIoTAnalyticsPipelineResources() map[string]*resources.AWSIoTAnalyticsPipeline {
results := map[string]*resources.AWSIoTAnalyticsPipeline{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIoTAnalyticsPipeline:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSIoTAnalyticsPipelineResources() map[string]*resources.AWSIoTAnalyticsPipeline {
results := map[string]*resources.AWSIoTAnalyticsPipeline{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSIoTAnalyticsPipeline:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSIoTAnalyticsPipelineResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIoTAnalyticsPipeline",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSIoTAnalyticsPipel... | // GetAllAWSIoTAnalyticsPipelineResources retrieves all AWSIoTAnalyticsPipeline items from an AWS CloudFormation template | [
"GetAllAWSIoTAnalyticsPipelineResources",
"retrieves",
"all",
"AWSIoTAnalyticsPipeline",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6427-L6436 | train |
awslabs/goformation | cloudformation/all.go | GetAWSIoTAnalyticsPipelineWithName | func (t *Template) GetAWSIoTAnalyticsPipelineWithName(name string) (*resources.AWSIoTAnalyticsPipeline, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIoTAnalyticsPipeline:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsPipeline not found", name)
} | go | func (t *Template) GetAWSIoTAnalyticsPipelineWithName(name string) (*resources.AWSIoTAnalyticsPipeline, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSIoTAnalyticsPipeline:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSIoTAnalyticsPipeline not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSIoTAnalyticsPipelineWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSIoTAnalyticsPipeline",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"... | // GetAWSIoTAnalyticsPipelineWithName retrieves all AWSIoTAnalyticsPipeline items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSIoTAnalyticsPipelineWithName",
"retrieves",
"all",
"AWSIoTAnalyticsPipeline",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6440-L6448 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSKMSAliasResources | func (t *Template) GetAllAWSKMSAliasResources() map[string]*resources.AWSKMSAlias {
results := map[string]*resources.AWSKMSAlias{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKMSAlias:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSKMSAliasResources() map[string]*resources.AWSKMSAlias {
results := map[string]*resources.AWSKMSAlias{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKMSAlias:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSKMSAliasResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKMSAlias",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKMSAlias",
"{",
"}",
"\n",
"for",... | // GetAllAWSKMSAliasResources retrieves all AWSKMSAlias items from an AWS CloudFormation template | [
"GetAllAWSKMSAliasResources",
"retrieves",
"all",
"AWSKMSAlias",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6451-L6460 | train |
awslabs/goformation | cloudformation/all.go | GetAWSKMSAliasWithName | func (t *Template) GetAWSKMSAliasWithName(name string) (*resources.AWSKMSAlias, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKMSAlias:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKMSAlias not found", name)
} | go | func (t *Template) GetAWSKMSAliasWithName(name string) (*resources.AWSKMSAlias, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKMSAlias:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKMSAlias not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSKMSAliasWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSKMSAlias",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{"... | // GetAWSKMSAliasWithName retrieves all AWSKMSAlias items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSKMSAliasWithName",
"retrieves",
"all",
"AWSKMSAlias",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6464-L6472 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSKMSKeyResources | func (t *Template) GetAllAWSKMSKeyResources() map[string]*resources.AWSKMSKey {
results := map[string]*resources.AWSKMSKey{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKMSKey:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSKMSKeyResources() map[string]*resources.AWSKMSKey {
results := map[string]*resources.AWSKMSKey{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKMSKey:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSKMSKeyResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKMSKey",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKMSKey",
"{",
"}",
"\n",
"for",
"na... | // GetAllAWSKMSKeyResources retrieves all AWSKMSKey items from an AWS CloudFormation template | [
"GetAllAWSKMSKeyResources",
"retrieves",
"all",
"AWSKMSKey",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6475-L6484 | train |
awslabs/goformation | cloudformation/all.go | GetAWSKMSKeyWithName | func (t *Template) GetAWSKMSKeyWithName(name string) (*resources.AWSKMSKey, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKMSKey:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKMSKey not found", name)
} | go | func (t *Template) GetAWSKMSKeyWithName(name string) (*resources.AWSKMSKey, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKMSKey:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKMSKey not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSKMSKeyWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSKMSKey",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
... | // GetAWSKMSKeyWithName retrieves all AWSKMSKey items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSKMSKeyWithName",
"retrieves",
"all",
"AWSKMSKey",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6488-L6496 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSKinesisStreamResources | func (t *Template) GetAllAWSKinesisStreamResources() map[string]*resources.AWSKinesisStream {
results := map[string]*resources.AWSKinesisStream{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisStream:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSKinesisStreamResources() map[string]*resources.AWSKinesisStream {
results := map[string]*resources.AWSKinesisStream{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisStream:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSKinesisStreamResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKinesisStream",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKinesisStream",
"{",
"}",
... | // GetAllAWSKinesisStreamResources retrieves all AWSKinesisStream items from an AWS CloudFormation template | [
"GetAllAWSKinesisStreamResources",
"retrieves",
"all",
"AWSKinesisStream",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6499-L6508 | train |
awslabs/goformation | cloudformation/all.go | GetAWSKinesisStreamWithName | func (t *Template) GetAWSKinesisStreamWithName(name string) (*resources.AWSKinesisStream, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisStream:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisStream not found", name)
} | go | func (t *Template) GetAWSKinesisStreamWithName(name string) (*resources.AWSKinesisStream, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisStream:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisStream not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSKinesisStreamWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSKinesisStream",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSKinesisStreamWithName retrieves all AWSKinesisStream items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSKinesisStreamWithName",
"retrieves",
"all",
"AWSKinesisStream",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6512-L6520 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSKinesisStreamConsumerResources | func (t *Template) GetAllAWSKinesisStreamConsumerResources() map[string]*resources.AWSKinesisStreamConsumer {
results := map[string]*resources.AWSKinesisStreamConsumer{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisStreamConsumer:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSKinesisStreamConsumerResources() map[string]*resources.AWSKinesisStreamConsumer {
results := map[string]*resources.AWSKinesisStreamConsumer{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisStreamConsumer:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSKinesisStreamConsumerResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKinesisStreamConsumer",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKinesisStreamCo... | // GetAllAWSKinesisStreamConsumerResources retrieves all AWSKinesisStreamConsumer items from an AWS CloudFormation template | [
"GetAllAWSKinesisStreamConsumerResources",
"retrieves",
"all",
"AWSKinesisStreamConsumer",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6523-L6532 | train |
awslabs/goformation | cloudformation/all.go | GetAWSKinesisStreamConsumerWithName | func (t *Template) GetAWSKinesisStreamConsumerWithName(name string) (*resources.AWSKinesisStreamConsumer, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisStreamConsumer:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisStreamConsumer not found", name)
} | go | func (t *Template) GetAWSKinesisStreamConsumerWithName(name string) (*resources.AWSKinesisStreamConsumer, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisStreamConsumer:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisStreamConsumer not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSKinesisStreamConsumerWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSKinesisStreamConsumer",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
... | // GetAWSKinesisStreamConsumerWithName retrieves all AWSKinesisStreamConsumer items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSKinesisStreamConsumerWithName",
"retrieves",
"all",
"AWSKinesisStreamConsumer",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6536-L6544 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSKinesisAnalyticsApplicationResources | func (t *Template) GetAllAWSKinesisAnalyticsApplicationResources() map[string]*resources.AWSKinesisAnalyticsApplication {
results := map[string]*resources.AWSKinesisAnalyticsApplication{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsApplication:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSKinesisAnalyticsApplicationResources() map[string]*resources.AWSKinesisAnalyticsApplication {
results := map[string]*resources.AWSKinesisAnalyticsApplication{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsApplication:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSKinesisAnalyticsApplicationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKinesisAnalyticsApplication",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKin... | // GetAllAWSKinesisAnalyticsApplicationResources retrieves all AWSKinesisAnalyticsApplication items from an AWS CloudFormation template | [
"GetAllAWSKinesisAnalyticsApplicationResources",
"retrieves",
"all",
"AWSKinesisAnalyticsApplication",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6547-L6556 | train |
awslabs/goformation | cloudformation/all.go | GetAWSKinesisAnalyticsApplicationWithName | func (t *Template) GetAWSKinesisAnalyticsApplicationWithName(name string) (*resources.AWSKinesisAnalyticsApplication, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsApplication:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsApplication not found", name)
} | go | func (t *Template) GetAWSKinesisAnalyticsApplicationWithName(name string) (*resources.AWSKinesisAnalyticsApplication, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsApplication:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsApplication not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSKinesisAnalyticsApplicationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSKinesisAnalyticsApplication",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",... | // GetAWSKinesisAnalyticsApplicationWithName retrieves all AWSKinesisAnalyticsApplication items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSKinesisAnalyticsApplicationWithName",
"retrieves",
"all",
"AWSKinesisAnalyticsApplication",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"fo... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6560-L6568 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSKinesisAnalyticsApplicationOutputResources | func (t *Template) GetAllAWSKinesisAnalyticsApplicationOutputResources() map[string]*resources.AWSKinesisAnalyticsApplicationOutput {
results := map[string]*resources.AWSKinesisAnalyticsApplicationOutput{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsApplicationOutput:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSKinesisAnalyticsApplicationOutputResources() map[string]*resources.AWSKinesisAnalyticsApplicationOutput {
results := map[string]*resources.AWSKinesisAnalyticsApplicationOutput{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsApplicationOutput:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSKinesisAnalyticsApplicationOutputResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKinesisAnalyticsApplicationOutput",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".... | // GetAllAWSKinesisAnalyticsApplicationOutputResources retrieves all AWSKinesisAnalyticsApplicationOutput items from an AWS CloudFormation template | [
"GetAllAWSKinesisAnalyticsApplicationOutputResources",
"retrieves",
"all",
"AWSKinesisAnalyticsApplicationOutput",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6571-L6580 | train |
awslabs/goformation | cloudformation/all.go | GetAWSKinesisAnalyticsApplicationOutputWithName | func (t *Template) GetAWSKinesisAnalyticsApplicationOutputWithName(name string) (*resources.AWSKinesisAnalyticsApplicationOutput, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsApplicationOutput:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsApplicationOutput not found", name)
} | go | func (t *Template) GetAWSKinesisAnalyticsApplicationOutputWithName(name string) (*resources.AWSKinesisAnalyticsApplicationOutput, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsApplicationOutput:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsApplicationOutput not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSKinesisAnalyticsApplicationOutputWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSKinesisAnalyticsApplicationOutput",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resour... | // GetAWSKinesisAnalyticsApplicationOutputWithName retrieves all AWSKinesisAnalyticsApplicationOutput items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSKinesisAnalyticsApplicationOutputWithName",
"retrieves",
"all",
"AWSKinesisAnalyticsApplicationOutput",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6584-L6592 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources | func (t *Template) GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources() map[string]*resources.AWSKinesisAnalyticsApplicationReferenceDataSource {
results := map[string]*resources.AWSKinesisAnalyticsApplicationReferenceDataSource{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsApplicationReferenceDataSource:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources() map[string]*resources.AWSKinesisAnalyticsApplicationReferenceDataSource {
results := map[string]*resources.AWSKinesisAnalyticsApplicationReferenceDataSource{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsApplicationReferenceDataSource:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKinesisAnalyticsApplicationReferenceDataSource",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
... | // GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources retrieves all AWSKinesisAnalyticsApplicationReferenceDataSource items from an AWS CloudFormation template | [
"GetAllAWSKinesisAnalyticsApplicationReferenceDataSourceResources",
"retrieves",
"all",
"AWSKinesisAnalyticsApplicationReferenceDataSource",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6595-L6604 | train |
awslabs/goformation | cloudformation/all.go | GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName | func (t *Template) GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName(name string) (*resources.AWSKinesisAnalyticsApplicationReferenceDataSource, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsApplicationReferenceDataSource:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsApplicationReferenceDataSource not found", name)
} | go | func (t *Template) GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName(name string) (*resources.AWSKinesisAnalyticsApplicationReferenceDataSource, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsApplicationReferenceDataSource:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsApplicationReferenceDataSource not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSKinesisAnalyticsApplicationReferenceDataSource",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=... | // GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName retrieves all AWSKinesisAnalyticsApplicationReferenceDataSource items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSKinesisAnalyticsApplicationReferenceDataSourceWithName",
"retrieves",
"all",
"AWSKinesisAnalyticsApplicationReferenceDataSource",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6608-L6616 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSKinesisAnalyticsV2ApplicationResources | func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationResources() map[string]*resources.AWSKinesisAnalyticsV2Application {
results := map[string]*resources.AWSKinesisAnalyticsV2Application{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2Application:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationResources() map[string]*resources.AWSKinesisAnalyticsV2Application {
results := map[string]*resources.AWSKinesisAnalyticsV2Application{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2Application:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSKinesisAnalyticsV2ApplicationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKinesisAnalyticsV2Application",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AW... | // GetAllAWSKinesisAnalyticsV2ApplicationResources retrieves all AWSKinesisAnalyticsV2Application items from an AWS CloudFormation template | [
"GetAllAWSKinesisAnalyticsV2ApplicationResources",
"retrieves",
"all",
"AWSKinesisAnalyticsV2Application",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6619-L6628 | train |
awslabs/goformation | cloudformation/all.go | GetAWSKinesisAnalyticsV2ApplicationWithName | func (t *Template) GetAWSKinesisAnalyticsV2ApplicationWithName(name string) (*resources.AWSKinesisAnalyticsV2Application, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2Application:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2Application not found", name)
} | go | func (t *Template) GetAWSKinesisAnalyticsV2ApplicationWithName(name string) (*resources.AWSKinesisAnalyticsV2Application, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2Application:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2Application not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSKinesisAnalyticsV2ApplicationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSKinesisAnalyticsV2Application",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSKinesisAnalyticsV2ApplicationWithName retrieves all AWSKinesisAnalyticsV2Application items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSKinesisAnalyticsV2ApplicationWithName",
"retrieves",
"all",
"AWSKinesisAnalyticsV2Application",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6632-L6640 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources | func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption {
results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption {
results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption",
"{",
"results",
":=",
"map",
"[",
"stri... | // GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources retrieves all AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption items from an AWS CloudFormation template | [
"GetAllAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionResources",
"retrieves",
"all",
"AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6643-L6652 | train |
awslabs/goformation | cloudformation/all.go | GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName | func (t *Template) GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption not found", name)
} | go | func (t *Template) GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption",
",",
"error",
")",
"{",
"if",
"untyped",
",",
... | // GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName retrieves all AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOptionWithName",
"retrieves",
"all",
"AWSKinesisAnalyticsV2ApplicationCloudWatchLoggingOption",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"R... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6656-L6664 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSKinesisAnalyticsV2ApplicationOutputResources | func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationOutputResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationOutput {
results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationOutput{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2ApplicationOutput:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationOutputResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationOutput {
results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationOutput{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2ApplicationOutput:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSKinesisAnalyticsV2ApplicationOutputResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKinesisAnalyticsV2ApplicationOutput",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
... | // GetAllAWSKinesisAnalyticsV2ApplicationOutputResources retrieves all AWSKinesisAnalyticsV2ApplicationOutput items from an AWS CloudFormation template | [
"GetAllAWSKinesisAnalyticsV2ApplicationOutputResources",
"retrieves",
"all",
"AWSKinesisAnalyticsV2ApplicationOutput",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6667-L6676 | train |
awslabs/goformation | cloudformation/all.go | GetAWSKinesisAnalyticsV2ApplicationOutputWithName | func (t *Template) GetAWSKinesisAnalyticsV2ApplicationOutputWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationOutput, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2ApplicationOutput:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2ApplicationOutput not found", name)
} | go | func (t *Template) GetAWSKinesisAnalyticsV2ApplicationOutputWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationOutput, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2ApplicationOutput:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2ApplicationOutput not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSKinesisAnalyticsV2ApplicationOutputWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSKinesisAnalyticsV2ApplicationOutput",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Re... | // GetAWSKinesisAnalyticsV2ApplicationOutputWithName retrieves all AWSKinesisAnalyticsV2ApplicationOutput items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSKinesisAnalyticsV2ApplicationOutputWithName",
"retrieves",
"all",
"AWSKinesisAnalyticsV2ApplicationOutput",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if"... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6680-L6688 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources | func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource {
results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources() map[string]*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource {
results := map[string]*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKinesisAnalyticsV2ApplicationReferenceDataSource",
"{",
"results",
":=",
"map",
"[",
"string",
"... | // GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources retrieves all AWSKinesisAnalyticsV2ApplicationReferenceDataSource items from an AWS CloudFormation template | [
"GetAllAWSKinesisAnalyticsV2ApplicationReferenceDataSourceResources",
"retrieves",
"all",
"AWSKinesisAnalyticsV2ApplicationReferenceDataSource",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6691-L6700 | train |
awslabs/goformation | cloudformation/all.go | GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName | func (t *Template) GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2ApplicationReferenceDataSource not found", name)
} | go | func (t *Template) GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName(name string) (*resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisAnalyticsV2ApplicationReferenceDataSource:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisAnalyticsV2ApplicationReferenceDataSource not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSKinesisAnalyticsV2ApplicationReferenceDataSource",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
... | // GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName retrieves all AWSKinesisAnalyticsV2ApplicationReferenceDataSource items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSKinesisAnalyticsV2ApplicationReferenceDataSourceWithName",
"retrieves",
"all",
"AWSKinesisAnalyticsV2ApplicationReferenceDataSource",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6704-L6712 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSKinesisFirehoseDeliveryStreamResources | func (t *Template) GetAllAWSKinesisFirehoseDeliveryStreamResources() map[string]*resources.AWSKinesisFirehoseDeliveryStream {
results := map[string]*resources.AWSKinesisFirehoseDeliveryStream{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisFirehoseDeliveryStream:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSKinesisFirehoseDeliveryStreamResources() map[string]*resources.AWSKinesisFirehoseDeliveryStream {
results := map[string]*resources.AWSKinesisFirehoseDeliveryStream{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSKinesisFirehoseDeliveryStream:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSKinesisFirehoseDeliveryStreamResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSKinesisFirehoseDeliveryStream",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AW... | // GetAllAWSKinesisFirehoseDeliveryStreamResources retrieves all AWSKinesisFirehoseDeliveryStream items from an AWS CloudFormation template | [
"GetAllAWSKinesisFirehoseDeliveryStreamResources",
"retrieves",
"all",
"AWSKinesisFirehoseDeliveryStream",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6715-L6724 | train |
awslabs/goformation | cloudformation/all.go | GetAWSKinesisFirehoseDeliveryStreamWithName | func (t *Template) GetAWSKinesisFirehoseDeliveryStreamWithName(name string) (*resources.AWSKinesisFirehoseDeliveryStream, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisFirehoseDeliveryStream:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisFirehoseDeliveryStream not found", name)
} | go | func (t *Template) GetAWSKinesisFirehoseDeliveryStreamWithName(name string) (*resources.AWSKinesisFirehoseDeliveryStream, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSKinesisFirehoseDeliveryStream:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSKinesisFirehoseDeliveryStream not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSKinesisFirehoseDeliveryStreamWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSKinesisFirehoseDeliveryStream",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSKinesisFirehoseDeliveryStreamWithName retrieves all AWSKinesisFirehoseDeliveryStream items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSKinesisFirehoseDeliveryStreamWithName",
"retrieves",
"all",
"AWSKinesisFirehoseDeliveryStream",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6728-L6736 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSLambdaAliasResources | func (t *Template) GetAllAWSLambdaAliasResources() map[string]*resources.AWSLambdaAlias {
results := map[string]*resources.AWSLambdaAlias{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaAlias:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSLambdaAliasResources() map[string]*resources.AWSLambdaAlias {
results := map[string]*resources.AWSLambdaAlias{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaAlias:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSLambdaAliasResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLambdaAlias",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLambdaAlias",
"{",
"}",
"\n",... | // GetAllAWSLambdaAliasResources retrieves all AWSLambdaAlias items from an AWS CloudFormation template | [
"GetAllAWSLambdaAliasResources",
"retrieves",
"all",
"AWSLambdaAlias",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6739-L6748 | train |
awslabs/goformation | cloudformation/all.go | GetAWSLambdaAliasWithName | func (t *Template) GetAWSLambdaAliasWithName(name string) (*resources.AWSLambdaAlias, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaAlias:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaAlias not found", name)
} | go | func (t *Template) GetAWSLambdaAliasWithName(name string) (*resources.AWSLambdaAlias, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaAlias:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaAlias not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSLambdaAliasWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSLambdaAlias",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",... | // GetAWSLambdaAliasWithName retrieves all AWSLambdaAlias items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSLambdaAliasWithName",
"retrieves",
"all",
"AWSLambdaAlias",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6752-L6760 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSLambdaEventSourceMappingResources | func (t *Template) GetAllAWSLambdaEventSourceMappingResources() map[string]*resources.AWSLambdaEventSourceMapping {
results := map[string]*resources.AWSLambdaEventSourceMapping{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaEventSourceMapping:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSLambdaEventSourceMappingResources() map[string]*resources.AWSLambdaEventSourceMapping {
results := map[string]*resources.AWSLambdaEventSourceMapping{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaEventSourceMapping:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSLambdaEventSourceMappingResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLambdaEventSourceMapping",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLambdaEve... | // GetAllAWSLambdaEventSourceMappingResources retrieves all AWSLambdaEventSourceMapping items from an AWS CloudFormation template | [
"GetAllAWSLambdaEventSourceMappingResources",
"retrieves",
"all",
"AWSLambdaEventSourceMapping",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6763-L6772 | train |
awslabs/goformation | cloudformation/all.go | GetAWSLambdaEventSourceMappingWithName | func (t *Template) GetAWSLambdaEventSourceMappingWithName(name string) (*resources.AWSLambdaEventSourceMapping, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaEventSourceMapping:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaEventSourceMapping not found", name)
} | go | func (t *Template) GetAWSLambdaEventSourceMappingWithName(name string) (*resources.AWSLambdaEventSourceMapping, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaEventSourceMapping:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaEventSourceMapping not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSLambdaEventSourceMappingWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSLambdaEventSourceMapping",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"na... | // GetAWSLambdaEventSourceMappingWithName retrieves all AWSLambdaEventSourceMapping items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSLambdaEventSourceMappingWithName",
"retrieves",
"all",
"AWSLambdaEventSourceMapping",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6776-L6784 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSLambdaFunctionResources | func (t *Template) GetAllAWSLambdaFunctionResources() map[string]*resources.AWSLambdaFunction {
results := map[string]*resources.AWSLambdaFunction{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaFunction:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSLambdaFunctionResources() map[string]*resources.AWSLambdaFunction {
results := map[string]*resources.AWSLambdaFunction{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaFunction:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSLambdaFunctionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLambdaFunction",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLambdaFunction",
"{",
"}"... | // GetAllAWSLambdaFunctionResources retrieves all AWSLambdaFunction items from an AWS CloudFormation template | [
"GetAllAWSLambdaFunctionResources",
"retrieves",
"all",
"AWSLambdaFunction",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6787-L6796 | train |
awslabs/goformation | cloudformation/all.go | GetAWSLambdaFunctionWithName | func (t *Template) GetAWSLambdaFunctionWithName(name string) (*resources.AWSLambdaFunction, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaFunction:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaFunction not found", name)
} | go | func (t *Template) GetAWSLambdaFunctionWithName(name string) (*resources.AWSLambdaFunction, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaFunction:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaFunction not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSLambdaFunctionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSLambdaFunction",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSLambdaFunctionWithName retrieves all AWSLambdaFunction items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSLambdaFunctionWithName",
"retrieves",
"all",
"AWSLambdaFunction",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6800-L6808 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSLambdaLayerVersionResources | func (t *Template) GetAllAWSLambdaLayerVersionResources() map[string]*resources.AWSLambdaLayerVersion {
results := map[string]*resources.AWSLambdaLayerVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaLayerVersion:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSLambdaLayerVersionResources() map[string]*resources.AWSLambdaLayerVersion {
results := map[string]*resources.AWSLambdaLayerVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaLayerVersion:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSLambdaLayerVersionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLambdaLayerVersion",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLambdaLayerVersion",
... | // GetAllAWSLambdaLayerVersionResources retrieves all AWSLambdaLayerVersion items from an AWS CloudFormation template | [
"GetAllAWSLambdaLayerVersionResources",
"retrieves",
"all",
"AWSLambdaLayerVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6811-L6820 | train |
awslabs/goformation | cloudformation/all.go | GetAWSLambdaLayerVersionWithName | func (t *Template) GetAWSLambdaLayerVersionWithName(name string) (*resources.AWSLambdaLayerVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaLayerVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaLayerVersion not found", name)
} | go | func (t *Template) GetAWSLambdaLayerVersionWithName(name string) (*resources.AWSLambdaLayerVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaLayerVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaLayerVersion not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSLambdaLayerVersionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSLambdaLayerVersion",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSLambdaLayerVersionWithName retrieves all AWSLambdaLayerVersion items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSLambdaLayerVersionWithName",
"retrieves",
"all",
"AWSLambdaLayerVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6824-L6832 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSLambdaLayerVersionPermissionResources | func (t *Template) GetAllAWSLambdaLayerVersionPermissionResources() map[string]*resources.AWSLambdaLayerVersionPermission {
results := map[string]*resources.AWSLambdaLayerVersionPermission{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaLayerVersionPermission:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSLambdaLayerVersionPermissionResources() map[string]*resources.AWSLambdaLayerVersionPermission {
results := map[string]*resources.AWSLambdaLayerVersionPermission{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaLayerVersionPermission:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSLambdaLayerVersionPermissionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLambdaLayerVersionPermission",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSL... | // GetAllAWSLambdaLayerVersionPermissionResources retrieves all AWSLambdaLayerVersionPermission items from an AWS CloudFormation template | [
"GetAllAWSLambdaLayerVersionPermissionResources",
"retrieves",
"all",
"AWSLambdaLayerVersionPermission",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6835-L6844 | train |
awslabs/goformation | cloudformation/all.go | GetAWSLambdaLayerVersionPermissionWithName | func (t *Template) GetAWSLambdaLayerVersionPermissionWithName(name string) (*resources.AWSLambdaLayerVersionPermission, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaLayerVersionPermission:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaLayerVersionPermission not found", name)
} | go | func (t *Template) GetAWSLambdaLayerVersionPermissionWithName(name string) (*resources.AWSLambdaLayerVersionPermission, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaLayerVersionPermission:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaLayerVersionPermission not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSLambdaLayerVersionPermissionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSLambdaLayerVersionPermission",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[... | // GetAWSLambdaLayerVersionPermissionWithName retrieves all AWSLambdaLayerVersionPermission items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSLambdaLayerVersionPermissionWithName",
"retrieves",
"all",
"AWSLambdaLayerVersionPermission",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6848-L6856 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSLambdaPermissionResources | func (t *Template) GetAllAWSLambdaPermissionResources() map[string]*resources.AWSLambdaPermission {
results := map[string]*resources.AWSLambdaPermission{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaPermission:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSLambdaPermissionResources() map[string]*resources.AWSLambdaPermission {
results := map[string]*resources.AWSLambdaPermission{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaPermission:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSLambdaPermissionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLambdaPermission",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLambdaPermission",
"{",... | // GetAllAWSLambdaPermissionResources retrieves all AWSLambdaPermission items from an AWS CloudFormation template | [
"GetAllAWSLambdaPermissionResources",
"retrieves",
"all",
"AWSLambdaPermission",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6859-L6868 | train |
awslabs/goformation | cloudformation/all.go | GetAWSLambdaPermissionWithName | func (t *Template) GetAWSLambdaPermissionWithName(name string) (*resources.AWSLambdaPermission, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaPermission:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaPermission not found", name)
} | go | func (t *Template) GetAWSLambdaPermissionWithName(name string) (*resources.AWSLambdaPermission, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaPermission:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaPermission not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSLambdaPermissionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSLambdaPermission",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";... | // GetAWSLambdaPermissionWithName retrieves all AWSLambdaPermission items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSLambdaPermissionWithName",
"retrieves",
"all",
"AWSLambdaPermission",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6872-L6880 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSLambdaVersionResources | func (t *Template) GetAllAWSLambdaVersionResources() map[string]*resources.AWSLambdaVersion {
results := map[string]*resources.AWSLambdaVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaVersion:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSLambdaVersionResources() map[string]*resources.AWSLambdaVersion {
results := map[string]*resources.AWSLambdaVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLambdaVersion:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSLambdaVersionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLambdaVersion",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLambdaVersion",
"{",
"}",
... | // GetAllAWSLambdaVersionResources retrieves all AWSLambdaVersion items from an AWS CloudFormation template | [
"GetAllAWSLambdaVersionResources",
"retrieves",
"all",
"AWSLambdaVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6883-L6892 | train |
awslabs/goformation | cloudformation/all.go | GetAWSLambdaVersionWithName | func (t *Template) GetAWSLambdaVersionWithName(name string) (*resources.AWSLambdaVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaVersion not found", name)
} | go | func (t *Template) GetAWSLambdaVersionWithName(name string) (*resources.AWSLambdaVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLambdaVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLambdaVersion not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSLambdaVersionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSLambdaVersion",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSLambdaVersionWithName retrieves all AWSLambdaVersion items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSLambdaVersionWithName",
"retrieves",
"all",
"AWSLambdaVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6896-L6904 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSLogsDestinationResources | func (t *Template) GetAllAWSLogsDestinationResources() map[string]*resources.AWSLogsDestination {
results := map[string]*resources.AWSLogsDestination{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLogsDestination:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSLogsDestinationResources() map[string]*resources.AWSLogsDestination {
results := map[string]*resources.AWSLogsDestination{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLogsDestination:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSLogsDestinationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLogsDestination",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLogsDestination",
"{",
... | // GetAllAWSLogsDestinationResources retrieves all AWSLogsDestination items from an AWS CloudFormation template | [
"GetAllAWSLogsDestinationResources",
"retrieves",
"all",
"AWSLogsDestination",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6907-L6916 | train |
awslabs/goformation | cloudformation/all.go | GetAWSLogsDestinationWithName | func (t *Template) GetAWSLogsDestinationWithName(name string) (*resources.AWSLogsDestination, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLogsDestination:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLogsDestination not found", name)
} | go | func (t *Template) GetAWSLogsDestinationWithName(name string) (*resources.AWSLogsDestination, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLogsDestination:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLogsDestination not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSLogsDestinationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSLogsDestination",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",... | // GetAWSLogsDestinationWithName retrieves all AWSLogsDestination items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSLogsDestinationWithName",
"retrieves",
"all",
"AWSLogsDestination",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6920-L6928 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSLogsLogGroupResources | func (t *Template) GetAllAWSLogsLogGroupResources() map[string]*resources.AWSLogsLogGroup {
results := map[string]*resources.AWSLogsLogGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLogsLogGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSLogsLogGroupResources() map[string]*resources.AWSLogsLogGroup {
results := map[string]*resources.AWSLogsLogGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLogsLogGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSLogsLogGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLogsLogGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLogsLogGroup",
"{",
"}",
"\... | // GetAllAWSLogsLogGroupResources retrieves all AWSLogsLogGroup items from an AWS CloudFormation template | [
"GetAllAWSLogsLogGroupResources",
"retrieves",
"all",
"AWSLogsLogGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6931-L6940 | train |
awslabs/goformation | cloudformation/all.go | GetAWSLogsLogGroupWithName | func (t *Template) GetAWSLogsLogGroupWithName(name string) (*resources.AWSLogsLogGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLogsLogGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLogsLogGroup not found", name)
} | go | func (t *Template) GetAWSLogsLogGroupWithName(name string) (*resources.AWSLogsLogGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLogsLogGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLogsLogGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSLogsLogGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSLogsLogGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok... | // GetAWSLogsLogGroupWithName retrieves all AWSLogsLogGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSLogsLogGroupWithName",
"retrieves",
"all",
"AWSLogsLogGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6944-L6952 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSLogsLogStreamResources | func (t *Template) GetAllAWSLogsLogStreamResources() map[string]*resources.AWSLogsLogStream {
results := map[string]*resources.AWSLogsLogStream{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLogsLogStream:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSLogsLogStreamResources() map[string]*resources.AWSLogsLogStream {
results := map[string]*resources.AWSLogsLogStream{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLogsLogStream:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSLogsLogStreamResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLogsLogStream",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLogsLogStream",
"{",
"}",
... | // GetAllAWSLogsLogStreamResources retrieves all AWSLogsLogStream items from an AWS CloudFormation template | [
"GetAllAWSLogsLogStreamResources",
"retrieves",
"all",
"AWSLogsLogStream",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6955-L6964 | train |
awslabs/goformation | cloudformation/all.go | GetAWSLogsLogStreamWithName | func (t *Template) GetAWSLogsLogStreamWithName(name string) (*resources.AWSLogsLogStream, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLogsLogStream:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLogsLogStream not found", name)
} | go | func (t *Template) GetAWSLogsLogStreamWithName(name string) (*resources.AWSLogsLogStream, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLogsLogStream:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLogsLogStream not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSLogsLogStreamWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSLogsLogStream",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSLogsLogStreamWithName retrieves all AWSLogsLogStream items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSLogsLogStreamWithName",
"retrieves",
"all",
"AWSLogsLogStream",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6968-L6976 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSLogsMetricFilterResources | func (t *Template) GetAllAWSLogsMetricFilterResources() map[string]*resources.AWSLogsMetricFilter {
results := map[string]*resources.AWSLogsMetricFilter{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLogsMetricFilter:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSLogsMetricFilterResources() map[string]*resources.AWSLogsMetricFilter {
results := map[string]*resources.AWSLogsMetricFilter{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLogsMetricFilter:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSLogsMetricFilterResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLogsMetricFilter",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLogsMetricFilter",
"{",... | // GetAllAWSLogsMetricFilterResources retrieves all AWSLogsMetricFilter items from an AWS CloudFormation template | [
"GetAllAWSLogsMetricFilterResources",
"retrieves",
"all",
"AWSLogsMetricFilter",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6979-L6988 | train |
awslabs/goformation | cloudformation/all.go | GetAWSLogsMetricFilterWithName | func (t *Template) GetAWSLogsMetricFilterWithName(name string) (*resources.AWSLogsMetricFilter, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLogsMetricFilter:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLogsMetricFilter not found", name)
} | go | func (t *Template) GetAWSLogsMetricFilterWithName(name string) (*resources.AWSLogsMetricFilter, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLogsMetricFilter:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLogsMetricFilter not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSLogsMetricFilterWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSLogsMetricFilter",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";... | // GetAWSLogsMetricFilterWithName retrieves all AWSLogsMetricFilter items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSLogsMetricFilterWithName",
"retrieves",
"all",
"AWSLogsMetricFilter",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L6992-L7000 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSLogsSubscriptionFilterResources | func (t *Template) GetAllAWSLogsSubscriptionFilterResources() map[string]*resources.AWSLogsSubscriptionFilter {
results := map[string]*resources.AWSLogsSubscriptionFilter{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLogsSubscriptionFilter:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSLogsSubscriptionFilterResources() map[string]*resources.AWSLogsSubscriptionFilter {
results := map[string]*resources.AWSLogsSubscriptionFilter{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSLogsSubscriptionFilter:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSLogsSubscriptionFilterResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLogsSubscriptionFilter",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSLogsSubscript... | // GetAllAWSLogsSubscriptionFilterResources retrieves all AWSLogsSubscriptionFilter items from an AWS CloudFormation template | [
"GetAllAWSLogsSubscriptionFilterResources",
"retrieves",
"all",
"AWSLogsSubscriptionFilter",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7003-L7012 | train |
awslabs/goformation | cloudformation/all.go | GetAWSLogsSubscriptionFilterWithName | func (t *Template) GetAWSLogsSubscriptionFilterWithName(name string) (*resources.AWSLogsSubscriptionFilter, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLogsSubscriptionFilter:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLogsSubscriptionFilter not found", name)
} | go | func (t *Template) GetAWSLogsSubscriptionFilterWithName(name string) (*resources.AWSLogsSubscriptionFilter, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSLogsSubscriptionFilter:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSLogsSubscriptionFilter not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSLogsSubscriptionFilterWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSLogsSubscriptionFilter",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",... | // GetAWSLogsSubscriptionFilterWithName retrieves all AWSLogsSubscriptionFilter items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSLogsSubscriptionFilterWithName",
"retrieves",
"all",
"AWSLogsSubscriptionFilter",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
".... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7016-L7024 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSNeptuneDBClusterResources | func (t *Template) GetAllAWSNeptuneDBClusterResources() map[string]*resources.AWSNeptuneDBCluster {
results := map[string]*resources.AWSNeptuneDBCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBCluster:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSNeptuneDBClusterResources() map[string]*resources.AWSNeptuneDBCluster {
results := map[string]*resources.AWSNeptuneDBCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBCluster:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSNeptuneDBClusterResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSNeptuneDBCluster",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSNeptuneDBCluster",
"{",... | // GetAllAWSNeptuneDBClusterResources retrieves all AWSNeptuneDBCluster items from an AWS CloudFormation template | [
"GetAllAWSNeptuneDBClusterResources",
"retrieves",
"all",
"AWSNeptuneDBCluster",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7027-L7036 | train |
awslabs/goformation | cloudformation/all.go | GetAWSNeptuneDBClusterWithName | func (t *Template) GetAWSNeptuneDBClusterWithName(name string) (*resources.AWSNeptuneDBCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSNeptuneDBCluster not found", name)
} | go | func (t *Template) GetAWSNeptuneDBClusterWithName(name string) (*resources.AWSNeptuneDBCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSNeptuneDBCluster not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSNeptuneDBClusterWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSNeptuneDBCluster",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";... | // GetAWSNeptuneDBClusterWithName retrieves all AWSNeptuneDBCluster items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSNeptuneDBClusterWithName",
"retrieves",
"all",
"AWSNeptuneDBCluster",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7040-L7048 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSNeptuneDBClusterParameterGroupResources | func (t *Template) GetAllAWSNeptuneDBClusterParameterGroupResources() map[string]*resources.AWSNeptuneDBClusterParameterGroup {
results := map[string]*resources.AWSNeptuneDBClusterParameterGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBClusterParameterGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSNeptuneDBClusterParameterGroupResources() map[string]*resources.AWSNeptuneDBClusterParameterGroup {
results := map[string]*resources.AWSNeptuneDBClusterParameterGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBClusterParameterGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSNeptuneDBClusterParameterGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSNeptuneDBClusterParameterGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"... | // GetAllAWSNeptuneDBClusterParameterGroupResources retrieves all AWSNeptuneDBClusterParameterGroup items from an AWS CloudFormation template | [
"GetAllAWSNeptuneDBClusterParameterGroupResources",
"retrieves",
"all",
"AWSNeptuneDBClusterParameterGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7051-L7060 | train |
awslabs/goformation | cloudformation/all.go | GetAWSNeptuneDBClusterParameterGroupWithName | func (t *Template) GetAWSNeptuneDBClusterParameterGroupWithName(name string) (*resources.AWSNeptuneDBClusterParameterGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBClusterParameterGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSNeptuneDBClusterParameterGroup not found", name)
} | go | func (t *Template) GetAWSNeptuneDBClusterParameterGroupWithName(name string) (*resources.AWSNeptuneDBClusterParameterGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBClusterParameterGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSNeptuneDBClusterParameterGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSNeptuneDBClusterParameterGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSNeptuneDBClusterParameterGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSNeptuneDBClusterParameterGroupWithName retrieves all AWSNeptuneDBClusterParameterGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSNeptuneDBClusterParameterGroupWithName",
"retrieves",
"all",
"AWSNeptuneDBClusterParameterGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7064-L7072 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSNeptuneDBInstanceResources | func (t *Template) GetAllAWSNeptuneDBInstanceResources() map[string]*resources.AWSNeptuneDBInstance {
results := map[string]*resources.AWSNeptuneDBInstance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBInstance:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSNeptuneDBInstanceResources() map[string]*resources.AWSNeptuneDBInstance {
results := map[string]*resources.AWSNeptuneDBInstance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBInstance:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSNeptuneDBInstanceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSNeptuneDBInstance",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSNeptuneDBInstance",
"... | // GetAllAWSNeptuneDBInstanceResources retrieves all AWSNeptuneDBInstance items from an AWS CloudFormation template | [
"GetAllAWSNeptuneDBInstanceResources",
"retrieves",
"all",
"AWSNeptuneDBInstance",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7075-L7084 | train |
awslabs/goformation | cloudformation/all.go | GetAWSNeptuneDBInstanceWithName | func (t *Template) GetAWSNeptuneDBInstanceWithName(name string) (*resources.AWSNeptuneDBInstance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBInstance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSNeptuneDBInstance not found", name)
} | go | func (t *Template) GetAWSNeptuneDBInstanceWithName(name string) (*resources.AWSNeptuneDBInstance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBInstance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSNeptuneDBInstance not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSNeptuneDBInstanceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSNeptuneDBInstance",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSNeptuneDBInstanceWithName retrieves all AWSNeptuneDBInstance items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSNeptuneDBInstanceWithName",
"retrieves",
"all",
"AWSNeptuneDBInstance",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7088-L7096 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSNeptuneDBParameterGroupResources | func (t *Template) GetAllAWSNeptuneDBParameterGroupResources() map[string]*resources.AWSNeptuneDBParameterGroup {
results := map[string]*resources.AWSNeptuneDBParameterGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBParameterGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSNeptuneDBParameterGroupResources() map[string]*resources.AWSNeptuneDBParameterGroup {
results := map[string]*resources.AWSNeptuneDBParameterGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBParameterGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSNeptuneDBParameterGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSNeptuneDBParameterGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSNeptuneDBPa... | // GetAllAWSNeptuneDBParameterGroupResources retrieves all AWSNeptuneDBParameterGroup items from an AWS CloudFormation template | [
"GetAllAWSNeptuneDBParameterGroupResources",
"retrieves",
"all",
"AWSNeptuneDBParameterGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7099-L7108 | train |
awslabs/goformation | cloudformation/all.go | GetAWSNeptuneDBParameterGroupWithName | func (t *Template) GetAWSNeptuneDBParameterGroupWithName(name string) (*resources.AWSNeptuneDBParameterGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBParameterGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSNeptuneDBParameterGroup not found", name)
} | go | func (t *Template) GetAWSNeptuneDBParameterGroupWithName(name string) (*resources.AWSNeptuneDBParameterGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBParameterGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSNeptuneDBParameterGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSNeptuneDBParameterGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSNeptuneDBParameterGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name... | // GetAWSNeptuneDBParameterGroupWithName retrieves all AWSNeptuneDBParameterGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSNeptuneDBParameterGroupWithName",
"retrieves",
"all",
"AWSNeptuneDBParameterGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7112-L7120 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSNeptuneDBSubnetGroupResources | func (t *Template) GetAllAWSNeptuneDBSubnetGroupResources() map[string]*resources.AWSNeptuneDBSubnetGroup {
results := map[string]*resources.AWSNeptuneDBSubnetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBSubnetGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSNeptuneDBSubnetGroupResources() map[string]*resources.AWSNeptuneDBSubnetGroup {
results := map[string]*resources.AWSNeptuneDBSubnetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBSubnetGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSNeptuneDBSubnetGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSNeptuneDBSubnetGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSNeptuneDBSubnetGr... | // GetAllAWSNeptuneDBSubnetGroupResources retrieves all AWSNeptuneDBSubnetGroup items from an AWS CloudFormation template | [
"GetAllAWSNeptuneDBSubnetGroupResources",
"retrieves",
"all",
"AWSNeptuneDBSubnetGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7123-L7132 | train |
awslabs/goformation | cloudformation/all.go | GetAWSNeptuneDBSubnetGroupWithName | func (t *Template) GetAWSNeptuneDBSubnetGroupWithName(name string) (*resources.AWSNeptuneDBSubnetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBSubnetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSNeptuneDBSubnetGroup not found", name)
} | go | func (t *Template) GetAWSNeptuneDBSubnetGroupWithName(name string) (*resources.AWSNeptuneDBSubnetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSNeptuneDBSubnetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSNeptuneDBSubnetGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSNeptuneDBSubnetGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSNeptuneDBSubnetGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"... | // GetAWSNeptuneDBSubnetGroupWithName retrieves all AWSNeptuneDBSubnetGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSNeptuneDBSubnetGroupWithName",
"retrieves",
"all",
"AWSNeptuneDBSubnetGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7136-L7144 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSOpsWorksAppResources | func (t *Template) GetAllAWSOpsWorksAppResources() map[string]*resources.AWSOpsWorksApp {
results := map[string]*resources.AWSOpsWorksApp{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksApp:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSOpsWorksAppResources() map[string]*resources.AWSOpsWorksApp {
results := map[string]*resources.AWSOpsWorksApp{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksApp:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSOpsWorksAppResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksApp",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksApp",
"{",
"}",
"\n",... | // GetAllAWSOpsWorksAppResources retrieves all AWSOpsWorksApp items from an AWS CloudFormation template | [
"GetAllAWSOpsWorksAppResources",
"retrieves",
"all",
"AWSOpsWorksApp",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7147-L7156 | train |
awslabs/goformation | cloudformation/all.go | GetAWSOpsWorksAppWithName | func (t *Template) GetAWSOpsWorksAppWithName(name string) (*resources.AWSOpsWorksApp, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksApp:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksApp not found", name)
} | go | func (t *Template) GetAWSOpsWorksAppWithName(name string) (*resources.AWSOpsWorksApp, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksApp:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksApp not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSOpsWorksAppWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSOpsWorksApp",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",... | // GetAWSOpsWorksAppWithName retrieves all AWSOpsWorksApp items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSOpsWorksAppWithName",
"retrieves",
"all",
"AWSOpsWorksApp",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7160-L7168 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources | func (t *Template) GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources() map[string]*resources.AWSOpsWorksElasticLoadBalancerAttachment {
results := map[string]*resources.AWSOpsWorksElasticLoadBalancerAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksElasticLoadBalancerAttachment:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources() map[string]*resources.AWSOpsWorksElasticLoadBalancerAttachment {
results := map[string]*resources.AWSOpsWorksElasticLoadBalancerAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksElasticLoadBalancerAttachment:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksElasticLoadBalancerAttachment",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resource... | // GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources retrieves all AWSOpsWorksElasticLoadBalancerAttachment items from an AWS CloudFormation template | [
"GetAllAWSOpsWorksElasticLoadBalancerAttachmentResources",
"retrieves",
"all",
"AWSOpsWorksElasticLoadBalancerAttachment",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7171-L7180 | train |
awslabs/goformation | cloudformation/all.go | GetAWSOpsWorksElasticLoadBalancerAttachmentWithName | func (t *Template) GetAWSOpsWorksElasticLoadBalancerAttachmentWithName(name string) (*resources.AWSOpsWorksElasticLoadBalancerAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksElasticLoadBalancerAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksElasticLoadBalancerAttachment not found", name)
} | go | func (t *Template) GetAWSOpsWorksElasticLoadBalancerAttachmentWithName(name string) (*resources.AWSOpsWorksElasticLoadBalancerAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksElasticLoadBalancerAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksElasticLoadBalancerAttachment not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSOpsWorksElasticLoadBalancerAttachmentWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSOpsWorksElasticLoadBalancerAttachment",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
... | // GetAWSOpsWorksElasticLoadBalancerAttachmentWithName retrieves all AWSOpsWorksElasticLoadBalancerAttachment items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSOpsWorksElasticLoadBalancerAttachmentWithName",
"retrieves",
"all",
"AWSOpsWorksElasticLoadBalancerAttachment",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7184-L7192 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSOpsWorksInstanceResources | func (t *Template) GetAllAWSOpsWorksInstanceResources() map[string]*resources.AWSOpsWorksInstance {
results := map[string]*resources.AWSOpsWorksInstance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksInstance:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSOpsWorksInstanceResources() map[string]*resources.AWSOpsWorksInstance {
results := map[string]*resources.AWSOpsWorksInstance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksInstance:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSOpsWorksInstanceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksInstance",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksInstance",
"{",... | // GetAllAWSOpsWorksInstanceResources retrieves all AWSOpsWorksInstance items from an AWS CloudFormation template | [
"GetAllAWSOpsWorksInstanceResources",
"retrieves",
"all",
"AWSOpsWorksInstance",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7195-L7204 | train |
awslabs/goformation | cloudformation/all.go | GetAWSOpsWorksInstanceWithName | func (t *Template) GetAWSOpsWorksInstanceWithName(name string) (*resources.AWSOpsWorksInstance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksInstance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksInstance not found", name)
} | go | func (t *Template) GetAWSOpsWorksInstanceWithName(name string) (*resources.AWSOpsWorksInstance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksInstance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksInstance not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSOpsWorksInstanceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSOpsWorksInstance",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";... | // GetAWSOpsWorksInstanceWithName retrieves all AWSOpsWorksInstance items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSOpsWorksInstanceWithName",
"retrieves",
"all",
"AWSOpsWorksInstance",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7208-L7216 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSOpsWorksLayerResources | func (t *Template) GetAllAWSOpsWorksLayerResources() map[string]*resources.AWSOpsWorksLayer {
results := map[string]*resources.AWSOpsWorksLayer{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksLayer:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSOpsWorksLayerResources() map[string]*resources.AWSOpsWorksLayer {
results := map[string]*resources.AWSOpsWorksLayer{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksLayer:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSOpsWorksLayerResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksLayer",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksLayer",
"{",
"}",
... | // GetAllAWSOpsWorksLayerResources retrieves all AWSOpsWorksLayer items from an AWS CloudFormation template | [
"GetAllAWSOpsWorksLayerResources",
"retrieves",
"all",
"AWSOpsWorksLayer",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7219-L7228 | train |
awslabs/goformation | cloudformation/all.go | GetAWSOpsWorksLayerWithName | func (t *Template) GetAWSOpsWorksLayerWithName(name string) (*resources.AWSOpsWorksLayer, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksLayer:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksLayer not found", name)
} | go | func (t *Template) GetAWSOpsWorksLayerWithName(name string) (*resources.AWSOpsWorksLayer, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksLayer:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksLayer not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSOpsWorksLayerWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSOpsWorksLayer",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSOpsWorksLayerWithName retrieves all AWSOpsWorksLayer items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSOpsWorksLayerWithName",
"retrieves",
"all",
"AWSOpsWorksLayer",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7232-L7240 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSOpsWorksStackResources | func (t *Template) GetAllAWSOpsWorksStackResources() map[string]*resources.AWSOpsWorksStack {
results := map[string]*resources.AWSOpsWorksStack{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksStack:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSOpsWorksStackResources() map[string]*resources.AWSOpsWorksStack {
results := map[string]*resources.AWSOpsWorksStack{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksStack:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSOpsWorksStackResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksStack",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksStack",
"{",
"}",
... | // GetAllAWSOpsWorksStackResources retrieves all AWSOpsWorksStack items from an AWS CloudFormation template | [
"GetAllAWSOpsWorksStackResources",
"retrieves",
"all",
"AWSOpsWorksStack",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7243-L7252 | train |
awslabs/goformation | cloudformation/all.go | GetAWSOpsWorksStackWithName | func (t *Template) GetAWSOpsWorksStackWithName(name string) (*resources.AWSOpsWorksStack, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksStack:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksStack not found", name)
} | go | func (t *Template) GetAWSOpsWorksStackWithName(name string) (*resources.AWSOpsWorksStack, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksStack:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksStack not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSOpsWorksStackWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSOpsWorksStack",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSOpsWorksStackWithName retrieves all AWSOpsWorksStack items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSOpsWorksStackWithName",
"retrieves",
"all",
"AWSOpsWorksStack",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7256-L7264 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSOpsWorksUserProfileResources | func (t *Template) GetAllAWSOpsWorksUserProfileResources() map[string]*resources.AWSOpsWorksUserProfile {
results := map[string]*resources.AWSOpsWorksUserProfile{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksUserProfile:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSOpsWorksUserProfileResources() map[string]*resources.AWSOpsWorksUserProfile {
results := map[string]*resources.AWSOpsWorksUserProfile{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksUserProfile:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSOpsWorksUserProfileResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksUserProfile",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksUserProfile... | // GetAllAWSOpsWorksUserProfileResources retrieves all AWSOpsWorksUserProfile items from an AWS CloudFormation template | [
"GetAllAWSOpsWorksUserProfileResources",
"retrieves",
"all",
"AWSOpsWorksUserProfile",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7267-L7276 | train |
awslabs/goformation | cloudformation/all.go | GetAWSOpsWorksUserProfileWithName | func (t *Template) GetAWSOpsWorksUserProfileWithName(name string) (*resources.AWSOpsWorksUserProfile, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksUserProfile:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksUserProfile not found", name)
} | go | func (t *Template) GetAWSOpsWorksUserProfileWithName(name string) (*resources.AWSOpsWorksUserProfile, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksUserProfile:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksUserProfile not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSOpsWorksUserProfileWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSOpsWorksUserProfile",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]"... | // GetAWSOpsWorksUserProfileWithName retrieves all AWSOpsWorksUserProfile items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSOpsWorksUserProfileWithName",
"retrieves",
"all",
"AWSOpsWorksUserProfile",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7280-L7288 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSOpsWorksVolumeResources | func (t *Template) GetAllAWSOpsWorksVolumeResources() map[string]*resources.AWSOpsWorksVolume {
results := map[string]*resources.AWSOpsWorksVolume{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksVolume:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSOpsWorksVolumeResources() map[string]*resources.AWSOpsWorksVolume {
results := map[string]*resources.AWSOpsWorksVolume{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksVolume:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSOpsWorksVolumeResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksVolume",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksVolume",
"{",
"}"... | // GetAllAWSOpsWorksVolumeResources retrieves all AWSOpsWorksVolume items from an AWS CloudFormation template | [
"GetAllAWSOpsWorksVolumeResources",
"retrieves",
"all",
"AWSOpsWorksVolume",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7291-L7300 | train |
awslabs/goformation | cloudformation/all.go | GetAWSOpsWorksVolumeWithName | func (t *Template) GetAWSOpsWorksVolumeWithName(name string) (*resources.AWSOpsWorksVolume, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksVolume:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksVolume not found", name)
} | go | func (t *Template) GetAWSOpsWorksVolumeWithName(name string) (*resources.AWSOpsWorksVolume, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksVolume:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSOpsWorksVolume not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSOpsWorksVolumeWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSOpsWorksVolume",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSOpsWorksVolumeWithName retrieves all AWSOpsWorksVolume items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSOpsWorksVolumeWithName",
"retrieves",
"all",
"AWSOpsWorksVolume",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7304-L7312 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSOpsWorksCMServerResources | func (t *Template) GetAllAWSOpsWorksCMServerResources() map[string]*resources.AWSOpsWorksCMServer {
results := map[string]*resources.AWSOpsWorksCMServer{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksCMServer:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSOpsWorksCMServerResources() map[string]*resources.AWSOpsWorksCMServer {
results := map[string]*resources.AWSOpsWorksCMServer{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSOpsWorksCMServer:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSOpsWorksCMServerResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksCMServer",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSOpsWorksCMServer",
"{",... | // GetAllAWSOpsWorksCMServerResources retrieves all AWSOpsWorksCMServer items from an AWS CloudFormation template | [
"GetAllAWSOpsWorksCMServerResources",
"retrieves",
"all",
"AWSOpsWorksCMServer",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L7315-L7324 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.