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 | GetAWSCognitoUserPoolUserWithName | func (t *Template) GetAWSCognitoUserPoolUserWithName(name string) (*resources.AWSCognitoUserPoolUser, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUser:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPoolUser not found", name)
} | go | func (t *Template) GetAWSCognitoUserPoolUserWithName(name string) (*resources.AWSCognitoUserPoolUser, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUser:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPoolUser not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCognitoUserPoolUserWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCognitoUserPoolUser",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]"... | // GetAWSCognitoUserPoolUserWithName retrieves all AWSCognitoUserPoolUser items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSCognitoUserPoolUserWithName",
"retrieves",
"all",
"AWSCognitoUserPoolUser",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2528-L2536 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSCognitoUserPoolUserToGroupAttachmentResources | func (t *Template) GetAllAWSCognitoUserPoolUserToGroupAttachmentResources() map[string]*resources.AWSCognitoUserPoolUserToGroupAttachment {
results := map[string]*resources.AWSCognitoUserPoolUserToGroupAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUserToGroupAttachment:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSCognitoUserPoolUserToGroupAttachmentResources() map[string]*resources.AWSCognitoUserPoolUserToGroupAttachment {
results := map[string]*resources.AWSCognitoUserPoolUserToGroupAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUserToGroupAttachment:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSCognitoUserPoolUserToGroupAttachmentResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCognitoUserPoolUserToGroupAttachment",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources"... | // GetAllAWSCognitoUserPoolUserToGroupAttachmentResources retrieves all AWSCognitoUserPoolUserToGroupAttachment items from an AWS CloudFormation template | [
"GetAllAWSCognitoUserPoolUserToGroupAttachmentResources",
"retrieves",
"all",
"AWSCognitoUserPoolUserToGroupAttachment",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2539-L2548 | train |
awslabs/goformation | cloudformation/all.go | GetAWSCognitoUserPoolUserToGroupAttachmentWithName | func (t *Template) GetAWSCognitoUserPoolUserToGroupAttachmentWithName(name string) (*resources.AWSCognitoUserPoolUserToGroupAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUserToGroupAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPoolUserToGroupAttachment not found", name)
} | go | func (t *Template) GetAWSCognitoUserPoolUserToGroupAttachmentWithName(name string) (*resources.AWSCognitoUserPoolUserToGroupAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSCognitoUserPoolUserToGroupAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSCognitoUserPoolUserToGroupAttachment not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSCognitoUserPoolUserToGroupAttachmentWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSCognitoUserPoolUserToGroupAttachment",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"... | // GetAWSCognitoUserPoolUserToGroupAttachmentWithName retrieves all AWSCognitoUserPoolUserToGroupAttachment items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSCognitoUserPoolUserToGroupAttachmentWithName",
"retrieves",
"all",
"AWSCognitoUserPoolUserToGroupAttachment",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"i... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2552-L2560 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSConfigAggregationAuthorizationResources | func (t *Template) GetAllAWSConfigAggregationAuthorizationResources() map[string]*resources.AWSConfigAggregationAuthorization {
results := map[string]*resources.AWSConfigAggregationAuthorization{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigAggregationAuthorization:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSConfigAggregationAuthorizationResources() map[string]*resources.AWSConfigAggregationAuthorization {
results := map[string]*resources.AWSConfigAggregationAuthorization{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigAggregationAuthorization:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSConfigAggregationAuthorizationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigAggregationAuthorization",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"... | // GetAllAWSConfigAggregationAuthorizationResources retrieves all AWSConfigAggregationAuthorization items from an AWS CloudFormation template | [
"GetAllAWSConfigAggregationAuthorizationResources",
"retrieves",
"all",
"AWSConfigAggregationAuthorization",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2563-L2572 | train |
awslabs/goformation | cloudformation/all.go | GetAWSConfigAggregationAuthorizationWithName | func (t *Template) GetAWSConfigAggregationAuthorizationWithName(name string) (*resources.AWSConfigAggregationAuthorization, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigAggregationAuthorization:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigAggregationAuthorization not found", name)
} | go | func (t *Template) GetAWSConfigAggregationAuthorizationWithName(name string) (*resources.AWSConfigAggregationAuthorization, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigAggregationAuthorization:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigAggregationAuthorization not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSConfigAggregationAuthorizationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSConfigAggregationAuthorization",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSConfigAggregationAuthorizationWithName retrieves all AWSConfigAggregationAuthorization items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSConfigAggregationAuthorizationWithName",
"retrieves",
"all",
"AWSConfigAggregationAuthorization",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2576-L2584 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSConfigConfigRuleResources | func (t *Template) GetAllAWSConfigConfigRuleResources() map[string]*resources.AWSConfigConfigRule {
results := map[string]*resources.AWSConfigConfigRule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigRule:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSConfigConfigRuleResources() map[string]*resources.AWSConfigConfigRule {
results := map[string]*resources.AWSConfigConfigRule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigRule:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSConfigConfigRuleResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigConfigRule",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigConfigRule",
"{",... | // GetAllAWSConfigConfigRuleResources retrieves all AWSConfigConfigRule items from an AWS CloudFormation template | [
"GetAllAWSConfigConfigRuleResources",
"retrieves",
"all",
"AWSConfigConfigRule",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2587-L2596 | train |
awslabs/goformation | cloudformation/all.go | GetAWSConfigConfigRuleWithName | func (t *Template) GetAWSConfigConfigRuleWithName(name string) (*resources.AWSConfigConfigRule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigRule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigConfigRule not found", name)
} | go | func (t *Template) GetAWSConfigConfigRuleWithName(name string) (*resources.AWSConfigConfigRule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigRule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigConfigRule not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSConfigConfigRuleWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSConfigConfigRule",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";... | // GetAWSConfigConfigRuleWithName retrieves all AWSConfigConfigRule items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSConfigConfigRuleWithName",
"retrieves",
"all",
"AWSConfigConfigRule",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2600-L2608 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSConfigConfigurationAggregatorResources | func (t *Template) GetAllAWSConfigConfigurationAggregatorResources() map[string]*resources.AWSConfigConfigurationAggregator {
results := map[string]*resources.AWSConfigConfigurationAggregator{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationAggregator:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSConfigConfigurationAggregatorResources() map[string]*resources.AWSConfigConfigurationAggregator {
results := map[string]*resources.AWSConfigConfigurationAggregator{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationAggregator:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSConfigConfigurationAggregatorResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigConfigurationAggregator",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AW... | // GetAllAWSConfigConfigurationAggregatorResources retrieves all AWSConfigConfigurationAggregator items from an AWS CloudFormation template | [
"GetAllAWSConfigConfigurationAggregatorResources",
"retrieves",
"all",
"AWSConfigConfigurationAggregator",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2611-L2620 | train |
awslabs/goformation | cloudformation/all.go | GetAWSConfigConfigurationAggregatorWithName | func (t *Template) GetAWSConfigConfigurationAggregatorWithName(name string) (*resources.AWSConfigConfigurationAggregator, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationAggregator:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigConfigurationAggregator not found", name)
} | go | func (t *Template) GetAWSConfigConfigurationAggregatorWithName(name string) (*resources.AWSConfigConfigurationAggregator, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationAggregator:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigConfigurationAggregator not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSConfigConfigurationAggregatorWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSConfigConfigurationAggregator",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSConfigConfigurationAggregatorWithName retrieves all AWSConfigConfigurationAggregator items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSConfigConfigurationAggregatorWithName",
"retrieves",
"all",
"AWSConfigConfigurationAggregator",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2624-L2632 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSConfigConfigurationRecorderResources | func (t *Template) GetAllAWSConfigConfigurationRecorderResources() map[string]*resources.AWSConfigConfigurationRecorder {
results := map[string]*resources.AWSConfigConfigurationRecorder{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationRecorder:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSConfigConfigurationRecorderResources() map[string]*resources.AWSConfigConfigurationRecorder {
results := map[string]*resources.AWSConfigConfigurationRecorder{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationRecorder:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSConfigConfigurationRecorderResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigConfigurationRecorder",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSCon... | // GetAllAWSConfigConfigurationRecorderResources retrieves all AWSConfigConfigurationRecorder items from an AWS CloudFormation template | [
"GetAllAWSConfigConfigurationRecorderResources",
"retrieves",
"all",
"AWSConfigConfigurationRecorder",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2635-L2644 | train |
awslabs/goformation | cloudformation/all.go | GetAWSConfigConfigurationRecorderWithName | func (t *Template) GetAWSConfigConfigurationRecorderWithName(name string) (*resources.AWSConfigConfigurationRecorder, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationRecorder:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigConfigurationRecorder not found", name)
} | go | func (t *Template) GetAWSConfigConfigurationRecorderWithName(name string) (*resources.AWSConfigConfigurationRecorder, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigConfigurationRecorder:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigConfigurationRecorder not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSConfigConfigurationRecorderWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSConfigConfigurationRecorder",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",... | // GetAWSConfigConfigurationRecorderWithName retrieves all AWSConfigConfigurationRecorder items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSConfigConfigurationRecorderWithName",
"retrieves",
"all",
"AWSConfigConfigurationRecorder",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"fo... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2648-L2656 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSConfigDeliveryChannelResources | func (t *Template) GetAllAWSConfigDeliveryChannelResources() map[string]*resources.AWSConfigDeliveryChannel {
results := map[string]*resources.AWSConfigDeliveryChannel{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigDeliveryChannel:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSConfigDeliveryChannelResources() map[string]*resources.AWSConfigDeliveryChannel {
results := map[string]*resources.AWSConfigDeliveryChannel{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSConfigDeliveryChannel:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSConfigDeliveryChannelResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigDeliveryChannel",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSConfigDeliveryC... | // GetAllAWSConfigDeliveryChannelResources retrieves all AWSConfigDeliveryChannel items from an AWS CloudFormation template | [
"GetAllAWSConfigDeliveryChannelResources",
"retrieves",
"all",
"AWSConfigDeliveryChannel",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2659-L2668 | train |
awslabs/goformation | cloudformation/all.go | GetAWSConfigDeliveryChannelWithName | func (t *Template) GetAWSConfigDeliveryChannelWithName(name string) (*resources.AWSConfigDeliveryChannel, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigDeliveryChannel:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigDeliveryChannel not found", name)
} | go | func (t *Template) GetAWSConfigDeliveryChannelWithName(name string) (*resources.AWSConfigDeliveryChannel, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSConfigDeliveryChannel:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSConfigDeliveryChannel not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSConfigDeliveryChannelWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSConfigDeliveryChannel",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
... | // GetAWSConfigDeliveryChannelWithName retrieves all AWSConfigDeliveryChannel items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSConfigDeliveryChannelWithName",
"retrieves",
"all",
"AWSConfigDeliveryChannel",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2672-L2680 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDAXClusterResources | func (t *Template) GetAllAWSDAXClusterResources() map[string]*resources.AWSDAXCluster {
results := map[string]*resources.AWSDAXCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDAXCluster:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDAXClusterResources() map[string]*resources.AWSDAXCluster {
results := map[string]*resources.AWSDAXCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDAXCluster:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDAXClusterResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDAXCluster",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDAXCluster",
"{",
"}",
"\n",
... | // GetAllAWSDAXClusterResources retrieves all AWSDAXCluster items from an AWS CloudFormation template | [
"GetAllAWSDAXClusterResources",
"retrieves",
"all",
"AWSDAXCluster",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2683-L2692 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDAXClusterWithName | func (t *Template) GetAWSDAXClusterWithName(name string) (*resources.AWSDAXCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDAXCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDAXCluster not found", name)
} | go | func (t *Template) GetAWSDAXClusterWithName(name string) (*resources.AWSDAXCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDAXCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDAXCluster not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDAXClusterWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDAXCluster",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
... | // GetAWSDAXClusterWithName retrieves all AWSDAXCluster items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDAXClusterWithName",
"retrieves",
"all",
"AWSDAXCluster",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2696-L2704 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDAXParameterGroupResources | func (t *Template) GetAllAWSDAXParameterGroupResources() map[string]*resources.AWSDAXParameterGroup {
results := map[string]*resources.AWSDAXParameterGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDAXParameterGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDAXParameterGroupResources() map[string]*resources.AWSDAXParameterGroup {
results := map[string]*resources.AWSDAXParameterGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDAXParameterGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDAXParameterGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDAXParameterGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDAXParameterGroup",
"... | // GetAllAWSDAXParameterGroupResources retrieves all AWSDAXParameterGroup items from an AWS CloudFormation template | [
"GetAllAWSDAXParameterGroupResources",
"retrieves",
"all",
"AWSDAXParameterGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2707-L2716 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDAXParameterGroupWithName | func (t *Template) GetAWSDAXParameterGroupWithName(name string) (*resources.AWSDAXParameterGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDAXParameterGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDAXParameterGroup not found", name)
} | go | func (t *Template) GetAWSDAXParameterGroupWithName(name string) (*resources.AWSDAXParameterGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDAXParameterGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDAXParameterGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDAXParameterGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDAXParameterGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSDAXParameterGroupWithName retrieves all AWSDAXParameterGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDAXParameterGroupWithName",
"retrieves",
"all",
"AWSDAXParameterGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2720-L2728 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDAXSubnetGroupResources | func (t *Template) GetAllAWSDAXSubnetGroupResources() map[string]*resources.AWSDAXSubnetGroup {
results := map[string]*resources.AWSDAXSubnetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDAXSubnetGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDAXSubnetGroupResources() map[string]*resources.AWSDAXSubnetGroup {
results := map[string]*resources.AWSDAXSubnetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDAXSubnetGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDAXSubnetGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDAXSubnetGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDAXSubnetGroup",
"{",
"}"... | // GetAllAWSDAXSubnetGroupResources retrieves all AWSDAXSubnetGroup items from an AWS CloudFormation template | [
"GetAllAWSDAXSubnetGroupResources",
"retrieves",
"all",
"AWSDAXSubnetGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2731-L2740 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDAXSubnetGroupWithName | func (t *Template) GetAWSDAXSubnetGroupWithName(name string) (*resources.AWSDAXSubnetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDAXSubnetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDAXSubnetGroup not found", name)
} | go | func (t *Template) GetAWSDAXSubnetGroupWithName(name string) (*resources.AWSDAXSubnetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDAXSubnetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDAXSubnetGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDAXSubnetGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDAXSubnetGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSDAXSubnetGroupWithName retrieves all AWSDAXSubnetGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDAXSubnetGroupWithName",
"retrieves",
"all",
"AWSDAXSubnetGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2744-L2752 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDLMLifecyclePolicyResources | func (t *Template) GetAllAWSDLMLifecyclePolicyResources() map[string]*resources.AWSDLMLifecyclePolicy {
results := map[string]*resources.AWSDLMLifecyclePolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDLMLifecyclePolicy:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDLMLifecyclePolicyResources() map[string]*resources.AWSDLMLifecyclePolicy {
results := map[string]*resources.AWSDLMLifecyclePolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDLMLifecyclePolicy:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDLMLifecyclePolicyResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDLMLifecyclePolicy",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDLMLifecyclePolicy",
... | // GetAllAWSDLMLifecyclePolicyResources retrieves all AWSDLMLifecyclePolicy items from an AWS CloudFormation template | [
"GetAllAWSDLMLifecyclePolicyResources",
"retrieves",
"all",
"AWSDLMLifecyclePolicy",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2755-L2764 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDLMLifecyclePolicyWithName | func (t *Template) GetAWSDLMLifecyclePolicyWithName(name string) (*resources.AWSDLMLifecyclePolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDLMLifecyclePolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDLMLifecyclePolicy not found", name)
} | go | func (t *Template) GetAWSDLMLifecyclePolicyWithName(name string) (*resources.AWSDLMLifecyclePolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDLMLifecyclePolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDLMLifecyclePolicy not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDLMLifecyclePolicyWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDLMLifecyclePolicy",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSDLMLifecyclePolicyWithName retrieves all AWSDLMLifecyclePolicy items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDLMLifecyclePolicyWithName",
"retrieves",
"all",
"AWSDLMLifecyclePolicy",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"not",
"found",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2768-L2776 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDMSCertificateResources | func (t *Template) GetAllAWSDMSCertificateResources() map[string]*resources.AWSDMSCertificate {
results := map[string]*resources.AWSDMSCertificate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSCertificate:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDMSCertificateResources() map[string]*resources.AWSDMSCertificate {
results := map[string]*resources.AWSDMSCertificate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSCertificate:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDMSCertificateResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSCertificate",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSCertificate",
"{",
"}"... | // GetAllAWSDMSCertificateResources retrieves all AWSDMSCertificate items from an AWS CloudFormation template | [
"GetAllAWSDMSCertificateResources",
"retrieves",
"all",
"AWSDMSCertificate",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2779-L2788 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDMSCertificateWithName | func (t *Template) GetAWSDMSCertificateWithName(name string) (*resources.AWSDMSCertificate, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDMSCertificate:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDMSCertificate not found", name)
} | go | func (t *Template) GetAWSDMSCertificateWithName(name string) (*resources.AWSDMSCertificate, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDMSCertificate:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDMSCertificate not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDMSCertificateWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDMSCertificate",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSDMSCertificateWithName retrieves all AWSDMSCertificate items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDMSCertificateWithName",
"retrieves",
"all",
"AWSDMSCertificate",
"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#L2792-L2800 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDMSEndpointResources | func (t *Template) GetAllAWSDMSEndpointResources() map[string]*resources.AWSDMSEndpoint {
results := map[string]*resources.AWSDMSEndpoint{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSEndpoint:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDMSEndpointResources() map[string]*resources.AWSDMSEndpoint {
results := map[string]*resources.AWSDMSEndpoint{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSEndpoint:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDMSEndpointResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSEndpoint",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSEndpoint",
"{",
"}",
"\n",... | // GetAllAWSDMSEndpointResources retrieves all AWSDMSEndpoint items from an AWS CloudFormation template | [
"GetAllAWSDMSEndpointResources",
"retrieves",
"all",
"AWSDMSEndpoint",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2803-L2812 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDMSEndpointWithName | func (t *Template) GetAWSDMSEndpointWithName(name string) (*resources.AWSDMSEndpoint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDMSEndpoint:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDMSEndpoint not found", name)
} | go | func (t *Template) GetAWSDMSEndpointWithName(name string) (*resources.AWSDMSEndpoint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDMSEndpoint:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDMSEndpoint not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDMSEndpointWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDMSEndpoint",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",... | // GetAWSDMSEndpointWithName retrieves all AWSDMSEndpoint items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDMSEndpointWithName",
"retrieves",
"all",
"AWSDMSEndpoint",
"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#L2816-L2824 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDMSEventSubscriptionResources | func (t *Template) GetAllAWSDMSEventSubscriptionResources() map[string]*resources.AWSDMSEventSubscription {
results := map[string]*resources.AWSDMSEventSubscription{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSEventSubscription:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDMSEventSubscriptionResources() map[string]*resources.AWSDMSEventSubscription {
results := map[string]*resources.AWSDMSEventSubscription{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSEventSubscription:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDMSEventSubscriptionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSEventSubscription",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSEventSubscript... | // GetAllAWSDMSEventSubscriptionResources retrieves all AWSDMSEventSubscription items from an AWS CloudFormation template | [
"GetAllAWSDMSEventSubscriptionResources",
"retrieves",
"all",
"AWSDMSEventSubscription",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2827-L2836 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDMSEventSubscriptionWithName | func (t *Template) GetAWSDMSEventSubscriptionWithName(name string) (*resources.AWSDMSEventSubscription, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDMSEventSubscription:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDMSEventSubscription not found", name)
} | go | func (t *Template) GetAWSDMSEventSubscriptionWithName(name string) (*resources.AWSDMSEventSubscription, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDMSEventSubscription:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDMSEventSubscription not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDMSEventSubscriptionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDMSEventSubscription",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"... | // GetAWSDMSEventSubscriptionWithName retrieves all AWSDMSEventSubscription items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDMSEventSubscriptionWithName",
"retrieves",
"all",
"AWSDMSEventSubscription",
"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#L2840-L2848 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDMSReplicationInstanceResources | func (t *Template) GetAllAWSDMSReplicationInstanceResources() map[string]*resources.AWSDMSReplicationInstance {
results := map[string]*resources.AWSDMSReplicationInstance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSReplicationInstance:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDMSReplicationInstanceResources() map[string]*resources.AWSDMSReplicationInstance {
results := map[string]*resources.AWSDMSReplicationInstance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSReplicationInstance:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDMSReplicationInstanceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSReplicationInstance",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSReplicatio... | // GetAllAWSDMSReplicationInstanceResources retrieves all AWSDMSReplicationInstance items from an AWS CloudFormation template | [
"GetAllAWSDMSReplicationInstanceResources",
"retrieves",
"all",
"AWSDMSReplicationInstance",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2851-L2860 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDMSReplicationInstanceWithName | func (t *Template) GetAWSDMSReplicationInstanceWithName(name string) (*resources.AWSDMSReplicationInstance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDMSReplicationInstance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDMSReplicationInstance not found", name)
} | go | func (t *Template) GetAWSDMSReplicationInstanceWithName(name string) (*resources.AWSDMSReplicationInstance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDMSReplicationInstance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDMSReplicationInstance not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDMSReplicationInstanceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDMSReplicationInstance",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",... | // GetAWSDMSReplicationInstanceWithName retrieves all AWSDMSReplicationInstance items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDMSReplicationInstanceWithName",
"retrieves",
"all",
"AWSDMSReplicationInstance",
"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#L2864-L2872 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDMSReplicationSubnetGroupResources | func (t *Template) GetAllAWSDMSReplicationSubnetGroupResources() map[string]*resources.AWSDMSReplicationSubnetGroup {
results := map[string]*resources.AWSDMSReplicationSubnetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSReplicationSubnetGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDMSReplicationSubnetGroupResources() map[string]*resources.AWSDMSReplicationSubnetGroup {
results := map[string]*resources.AWSDMSReplicationSubnetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSReplicationSubnetGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDMSReplicationSubnetGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSReplicationSubnetGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSRepl... | // GetAllAWSDMSReplicationSubnetGroupResources retrieves all AWSDMSReplicationSubnetGroup items from an AWS CloudFormation template | [
"GetAllAWSDMSReplicationSubnetGroupResources",
"retrieves",
"all",
"AWSDMSReplicationSubnetGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2875-L2884 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDMSReplicationSubnetGroupWithName | func (t *Template) GetAWSDMSReplicationSubnetGroupWithName(name string) (*resources.AWSDMSReplicationSubnetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDMSReplicationSubnetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDMSReplicationSubnetGroup not found", name)
} | go | func (t *Template) GetAWSDMSReplicationSubnetGroupWithName(name string) (*resources.AWSDMSReplicationSubnetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDMSReplicationSubnetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDMSReplicationSubnetGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDMSReplicationSubnetGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDMSReplicationSubnetGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"... | // GetAWSDMSReplicationSubnetGroupWithName retrieves all AWSDMSReplicationSubnetGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDMSReplicationSubnetGroupWithName",
"retrieves",
"all",
"AWSDMSReplicationSubnetGroup",
"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#L2888-L2896 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDMSReplicationTaskResources | func (t *Template) GetAllAWSDMSReplicationTaskResources() map[string]*resources.AWSDMSReplicationTask {
results := map[string]*resources.AWSDMSReplicationTask{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSReplicationTask:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDMSReplicationTaskResources() map[string]*resources.AWSDMSReplicationTask {
results := map[string]*resources.AWSDMSReplicationTask{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDMSReplicationTask:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDMSReplicationTaskResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSReplicationTask",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDMSReplicationTask",
... | // GetAllAWSDMSReplicationTaskResources retrieves all AWSDMSReplicationTask items from an AWS CloudFormation template | [
"GetAllAWSDMSReplicationTaskResources",
"retrieves",
"all",
"AWSDMSReplicationTask",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2899-L2908 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDMSReplicationTaskWithName | func (t *Template) GetAWSDMSReplicationTaskWithName(name string) (*resources.AWSDMSReplicationTask, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDMSReplicationTask:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDMSReplicationTask not found", name)
} | go | func (t *Template) GetAWSDMSReplicationTaskWithName(name string) (*resources.AWSDMSReplicationTask, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDMSReplicationTask:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDMSReplicationTask not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDMSReplicationTaskWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDMSReplicationTask",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSDMSReplicationTaskWithName retrieves all AWSDMSReplicationTask items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDMSReplicationTaskWithName",
"retrieves",
"all",
"AWSDMSReplicationTask",
"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#L2912-L2920 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDataPipelinePipelineResources | func (t *Template) GetAllAWSDataPipelinePipelineResources() map[string]*resources.AWSDataPipelinePipeline {
results := map[string]*resources.AWSDataPipelinePipeline{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDataPipelinePipeline:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDataPipelinePipelineResources() map[string]*resources.AWSDataPipelinePipeline {
results := map[string]*resources.AWSDataPipelinePipeline{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDataPipelinePipeline:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDataPipelinePipelineResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDataPipelinePipeline",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDataPipelinePipel... | // GetAllAWSDataPipelinePipelineResources retrieves all AWSDataPipelinePipeline items from an AWS CloudFormation template | [
"GetAllAWSDataPipelinePipelineResources",
"retrieves",
"all",
"AWSDataPipelinePipeline",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2923-L2932 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDataPipelinePipelineWithName | func (t *Template) GetAWSDataPipelinePipelineWithName(name string) (*resources.AWSDataPipelinePipeline, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDataPipelinePipeline:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDataPipelinePipeline not found", name)
} | go | func (t *Template) GetAWSDataPipelinePipelineWithName(name string) (*resources.AWSDataPipelinePipeline, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDataPipelinePipeline:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDataPipelinePipeline not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDataPipelinePipelineWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDataPipelinePipeline",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"... | // GetAWSDataPipelinePipelineWithName retrieves all AWSDataPipelinePipeline items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDataPipelinePipelineWithName",
"retrieves",
"all",
"AWSDataPipelinePipeline",
"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#L2936-L2944 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDirectoryServiceMicrosoftADResources | func (t *Template) GetAllAWSDirectoryServiceMicrosoftADResources() map[string]*resources.AWSDirectoryServiceMicrosoftAD {
results := map[string]*resources.AWSDirectoryServiceMicrosoftAD{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDirectoryServiceMicrosoftAD:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDirectoryServiceMicrosoftADResources() map[string]*resources.AWSDirectoryServiceMicrosoftAD {
results := map[string]*resources.AWSDirectoryServiceMicrosoftAD{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDirectoryServiceMicrosoftAD:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDirectoryServiceMicrosoftADResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDirectoryServiceMicrosoftAD",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDir... | // GetAllAWSDirectoryServiceMicrosoftADResources retrieves all AWSDirectoryServiceMicrosoftAD items from an AWS CloudFormation template | [
"GetAllAWSDirectoryServiceMicrosoftADResources",
"retrieves",
"all",
"AWSDirectoryServiceMicrosoftAD",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2947-L2956 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDirectoryServiceMicrosoftADWithName | func (t *Template) GetAWSDirectoryServiceMicrosoftADWithName(name string) (*resources.AWSDirectoryServiceMicrosoftAD, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDirectoryServiceMicrosoftAD:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDirectoryServiceMicrosoftAD not found", name)
} | go | func (t *Template) GetAWSDirectoryServiceMicrosoftADWithName(name string) (*resources.AWSDirectoryServiceMicrosoftAD, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDirectoryServiceMicrosoftAD:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDirectoryServiceMicrosoftAD not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDirectoryServiceMicrosoftADWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDirectoryServiceMicrosoftAD",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",... | // GetAWSDirectoryServiceMicrosoftADWithName retrieves all AWSDirectoryServiceMicrosoftAD items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDirectoryServiceMicrosoftADWithName",
"retrieves",
"all",
"AWSDirectoryServiceMicrosoftAD",
"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#L2960-L2968 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDirectoryServiceSimpleADResources | func (t *Template) GetAllAWSDirectoryServiceSimpleADResources() map[string]*resources.AWSDirectoryServiceSimpleAD {
results := map[string]*resources.AWSDirectoryServiceSimpleAD{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDirectoryServiceSimpleAD:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDirectoryServiceSimpleADResources() map[string]*resources.AWSDirectoryServiceSimpleAD {
results := map[string]*resources.AWSDirectoryServiceSimpleAD{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDirectoryServiceSimpleAD:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDirectoryServiceSimpleADResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDirectoryServiceSimpleAD",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDirectory... | // GetAllAWSDirectoryServiceSimpleADResources retrieves all AWSDirectoryServiceSimpleAD items from an AWS CloudFormation template | [
"GetAllAWSDirectoryServiceSimpleADResources",
"retrieves",
"all",
"AWSDirectoryServiceSimpleAD",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2971-L2980 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDirectoryServiceSimpleADWithName | func (t *Template) GetAWSDirectoryServiceSimpleADWithName(name string) (*resources.AWSDirectoryServiceSimpleAD, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDirectoryServiceSimpleAD:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDirectoryServiceSimpleAD not found", name)
} | go | func (t *Template) GetAWSDirectoryServiceSimpleADWithName(name string) (*resources.AWSDirectoryServiceSimpleAD, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDirectoryServiceSimpleAD:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDirectoryServiceSimpleAD not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDirectoryServiceSimpleADWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDirectoryServiceSimpleAD",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"na... | // GetAWSDirectoryServiceSimpleADWithName retrieves all AWSDirectoryServiceSimpleAD items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDirectoryServiceSimpleADWithName",
"retrieves",
"all",
"AWSDirectoryServiceSimpleAD",
"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#L2984-L2992 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDocDBDBClusterResources | func (t *Template) GetAllAWSDocDBDBClusterResources() map[string]*resources.AWSDocDBDBCluster {
results := map[string]*resources.AWSDocDBDBCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBCluster:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDocDBDBClusterResources() map[string]*resources.AWSDocDBDBCluster {
results := map[string]*resources.AWSDocDBDBCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBCluster:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDocDBDBClusterResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDocDBDBCluster",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDocDBDBCluster",
"{",
"}"... | // GetAllAWSDocDBDBClusterResources retrieves all AWSDocDBDBCluster items from an AWS CloudFormation template | [
"GetAllAWSDocDBDBClusterResources",
"retrieves",
"all",
"AWSDocDBDBCluster",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L2995-L3004 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDocDBDBClusterWithName | func (t *Template) GetAWSDocDBDBClusterWithName(name string) (*resources.AWSDocDBDBCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDocDBDBCluster not found", name)
} | go | func (t *Template) GetAWSDocDBDBClusterWithName(name string) (*resources.AWSDocDBDBCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDocDBDBCluster not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDocDBDBClusterWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDocDBDBCluster",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSDocDBDBClusterWithName retrieves all AWSDocDBDBCluster items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDocDBDBClusterWithName",
"retrieves",
"all",
"AWSDocDBDBCluster",
"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#L3008-L3016 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDocDBDBClusterParameterGroupResources | func (t *Template) GetAllAWSDocDBDBClusterParameterGroupResources() map[string]*resources.AWSDocDBDBClusterParameterGroup {
results := map[string]*resources.AWSDocDBDBClusterParameterGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBClusterParameterGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDocDBDBClusterParameterGroupResources() map[string]*resources.AWSDocDBDBClusterParameterGroup {
results := map[string]*resources.AWSDocDBDBClusterParameterGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBClusterParameterGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDocDBDBClusterParameterGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDocDBDBClusterParameterGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSD... | // GetAllAWSDocDBDBClusterParameterGroupResources retrieves all AWSDocDBDBClusterParameterGroup items from an AWS CloudFormation template | [
"GetAllAWSDocDBDBClusterParameterGroupResources",
"retrieves",
"all",
"AWSDocDBDBClusterParameterGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3019-L3028 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDocDBDBClusterParameterGroupWithName | func (t *Template) GetAWSDocDBDBClusterParameterGroupWithName(name string) (*resources.AWSDocDBDBClusterParameterGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBClusterParameterGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDocDBDBClusterParameterGroup not found", name)
} | go | func (t *Template) GetAWSDocDBDBClusterParameterGroupWithName(name string) (*resources.AWSDocDBDBClusterParameterGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBClusterParameterGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDocDBDBClusterParameterGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDocDBDBClusterParameterGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDocDBDBClusterParameterGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[... | // GetAWSDocDBDBClusterParameterGroupWithName retrieves all AWSDocDBDBClusterParameterGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDocDBDBClusterParameterGroupWithName",
"retrieves",
"all",
"AWSDocDBDBClusterParameterGroup",
"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#L3032-L3040 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDocDBDBInstanceResources | func (t *Template) GetAllAWSDocDBDBInstanceResources() map[string]*resources.AWSDocDBDBInstance {
results := map[string]*resources.AWSDocDBDBInstance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBInstance:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDocDBDBInstanceResources() map[string]*resources.AWSDocDBDBInstance {
results := map[string]*resources.AWSDocDBDBInstance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBInstance:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDocDBDBInstanceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDocDBDBInstance",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDocDBDBInstance",
"{",
... | // GetAllAWSDocDBDBInstanceResources retrieves all AWSDocDBDBInstance items from an AWS CloudFormation template | [
"GetAllAWSDocDBDBInstanceResources",
"retrieves",
"all",
"AWSDocDBDBInstance",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3043-L3052 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDocDBDBInstanceWithName | func (t *Template) GetAWSDocDBDBInstanceWithName(name string) (*resources.AWSDocDBDBInstance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBInstance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDocDBDBInstance not found", name)
} | go | func (t *Template) GetAWSDocDBDBInstanceWithName(name string) (*resources.AWSDocDBDBInstance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBInstance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDocDBDBInstance not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDocDBDBInstanceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDocDBDBInstance",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",... | // GetAWSDocDBDBInstanceWithName retrieves all AWSDocDBDBInstance items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDocDBDBInstanceWithName",
"retrieves",
"all",
"AWSDocDBDBInstance",
"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#L3056-L3064 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDocDBDBSubnetGroupResources | func (t *Template) GetAllAWSDocDBDBSubnetGroupResources() map[string]*resources.AWSDocDBDBSubnetGroup {
results := map[string]*resources.AWSDocDBDBSubnetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBSubnetGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDocDBDBSubnetGroupResources() map[string]*resources.AWSDocDBDBSubnetGroup {
results := map[string]*resources.AWSDocDBDBSubnetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBSubnetGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDocDBDBSubnetGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDocDBDBSubnetGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDocDBDBSubnetGroup",
... | // GetAllAWSDocDBDBSubnetGroupResources retrieves all AWSDocDBDBSubnetGroup items from an AWS CloudFormation template | [
"GetAllAWSDocDBDBSubnetGroupResources",
"retrieves",
"all",
"AWSDocDBDBSubnetGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3067-L3076 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDocDBDBSubnetGroupWithName | func (t *Template) GetAWSDocDBDBSubnetGroupWithName(name string) (*resources.AWSDocDBDBSubnetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBSubnetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDocDBDBSubnetGroup not found", name)
} | go | func (t *Template) GetAWSDocDBDBSubnetGroupWithName(name string) (*resources.AWSDocDBDBSubnetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDocDBDBSubnetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDocDBDBSubnetGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDocDBDBSubnetGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDocDBDBSubnetGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSDocDBDBSubnetGroupWithName retrieves all AWSDocDBDBSubnetGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDocDBDBSubnetGroupWithName",
"retrieves",
"all",
"AWSDocDBDBSubnetGroup",
"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#L3080-L3088 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSDynamoDBTableResources | func (t *Template) GetAllAWSDynamoDBTableResources() map[string]*resources.AWSDynamoDBTable {
results := map[string]*resources.AWSDynamoDBTable{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDynamoDBTable:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSDynamoDBTableResources() map[string]*resources.AWSDynamoDBTable {
results := map[string]*resources.AWSDynamoDBTable{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSDynamoDBTable:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSDynamoDBTableResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDynamoDBTable",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSDynamoDBTable",
"{",
"}",
... | // GetAllAWSDynamoDBTableResources retrieves all AWSDynamoDBTable items from an AWS CloudFormation template | [
"GetAllAWSDynamoDBTableResources",
"retrieves",
"all",
"AWSDynamoDBTable",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3091-L3100 | train |
awslabs/goformation | cloudformation/all.go | GetAWSDynamoDBTableWithName | func (t *Template) GetAWSDynamoDBTableWithName(name string) (*resources.AWSDynamoDBTable, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDynamoDBTable:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDynamoDBTable not found", name)
} | go | func (t *Template) GetAWSDynamoDBTableWithName(name string) (*resources.AWSDynamoDBTable, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSDynamoDBTable:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSDynamoDBTable not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSDynamoDBTableWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSDynamoDBTable",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSDynamoDBTableWithName retrieves all AWSDynamoDBTable items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSDynamoDBTableWithName",
"retrieves",
"all",
"AWSDynamoDBTable",
"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#L3104-L3112 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2CustomerGatewayResources | func (t *Template) GetAllAWSEC2CustomerGatewayResources() map[string]*resources.AWSEC2CustomerGateway {
results := map[string]*resources.AWSEC2CustomerGateway{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2CustomerGateway:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2CustomerGatewayResources() map[string]*resources.AWSEC2CustomerGateway {
results := map[string]*resources.AWSEC2CustomerGateway{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2CustomerGateway:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2CustomerGatewayResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2CustomerGateway",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2CustomerGateway",
... | // GetAllAWSEC2CustomerGatewayResources retrieves all AWSEC2CustomerGateway items from an AWS CloudFormation template | [
"GetAllAWSEC2CustomerGatewayResources",
"retrieves",
"all",
"AWSEC2CustomerGateway",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3115-L3124 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2CustomerGatewayWithName | func (t *Template) GetAWSEC2CustomerGatewayWithName(name string) (*resources.AWSEC2CustomerGateway, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2CustomerGateway:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2CustomerGateway not found", name)
} | go | func (t *Template) GetAWSEC2CustomerGatewayWithName(name string) (*resources.AWSEC2CustomerGateway, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2CustomerGateway:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2CustomerGateway not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2CustomerGatewayWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2CustomerGateway",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSEC2CustomerGatewayWithName retrieves all AWSEC2CustomerGateway items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2CustomerGatewayWithName",
"retrieves",
"all",
"AWSEC2CustomerGateway",
"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#L3128-L3136 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2DHCPOptionsResources | func (t *Template) GetAllAWSEC2DHCPOptionsResources() map[string]*resources.AWSEC2DHCPOptions {
results := map[string]*resources.AWSEC2DHCPOptions{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2DHCPOptions:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2DHCPOptionsResources() map[string]*resources.AWSEC2DHCPOptions {
results := map[string]*resources.AWSEC2DHCPOptions{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2DHCPOptions:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2DHCPOptionsResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2DHCPOptions",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2DHCPOptions",
"{",
"}"... | // GetAllAWSEC2DHCPOptionsResources retrieves all AWSEC2DHCPOptions items from an AWS CloudFormation template | [
"GetAllAWSEC2DHCPOptionsResources",
"retrieves",
"all",
"AWSEC2DHCPOptions",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3139-L3148 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2DHCPOptionsWithName | func (t *Template) GetAWSEC2DHCPOptionsWithName(name string) (*resources.AWSEC2DHCPOptions, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2DHCPOptions:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2DHCPOptions not found", name)
} | go | func (t *Template) GetAWSEC2DHCPOptionsWithName(name string) (*resources.AWSEC2DHCPOptions, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2DHCPOptions:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2DHCPOptions not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2DHCPOptionsWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2DHCPOptions",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSEC2DHCPOptionsWithName retrieves all AWSEC2DHCPOptions items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2DHCPOptionsWithName",
"retrieves",
"all",
"AWSEC2DHCPOptions",
"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#L3152-L3160 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2EC2FleetResources | func (t *Template) GetAllAWSEC2EC2FleetResources() map[string]*resources.AWSEC2EC2Fleet {
results := map[string]*resources.AWSEC2EC2Fleet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2EC2Fleet:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2EC2FleetResources() map[string]*resources.AWSEC2EC2Fleet {
results := map[string]*resources.AWSEC2EC2Fleet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2EC2Fleet:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2EC2FleetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2EC2Fleet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2EC2Fleet",
"{",
"}",
"\n",... | // GetAllAWSEC2EC2FleetResources retrieves all AWSEC2EC2Fleet items from an AWS CloudFormation template | [
"GetAllAWSEC2EC2FleetResources",
"retrieves",
"all",
"AWSEC2EC2Fleet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3163-L3172 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2EC2FleetWithName | func (t *Template) GetAWSEC2EC2FleetWithName(name string) (*resources.AWSEC2EC2Fleet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2EC2Fleet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2EC2Fleet not found", name)
} | go | func (t *Template) GetAWSEC2EC2FleetWithName(name string) (*resources.AWSEC2EC2Fleet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2EC2Fleet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2EC2Fleet not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2EC2FleetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2EC2Fleet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",... | // GetAWSEC2EC2FleetWithName retrieves all AWSEC2EC2Fleet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2EC2FleetWithName",
"retrieves",
"all",
"AWSEC2EC2Fleet",
"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#L3176-L3184 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2EIPResources | func (t *Template) GetAllAWSEC2EIPResources() map[string]*resources.AWSEC2EIP {
results := map[string]*resources.AWSEC2EIP{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2EIP:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2EIPResources() map[string]*resources.AWSEC2EIP {
results := map[string]*resources.AWSEC2EIP{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2EIP:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2EIPResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2EIP",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2EIP",
"{",
"}",
"\n",
"for",
"na... | // GetAllAWSEC2EIPResources retrieves all AWSEC2EIP items from an AWS CloudFormation template | [
"GetAllAWSEC2EIPResources",
"retrieves",
"all",
"AWSEC2EIP",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3187-L3196 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2EIPWithName | func (t *Template) GetAWSEC2EIPWithName(name string) (*resources.AWSEC2EIP, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2EIP:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2EIP not found", name)
} | go | func (t *Template) GetAWSEC2EIPWithName(name string) (*resources.AWSEC2EIP, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2EIP:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2EIP not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2EIPWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2EIP",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
... | // GetAWSEC2EIPWithName retrieves all AWSEC2EIP items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2EIPWithName",
"retrieves",
"all",
"AWSEC2EIP",
"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#L3200-L3208 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2EIPAssociationResources | func (t *Template) GetAllAWSEC2EIPAssociationResources() map[string]*resources.AWSEC2EIPAssociation {
results := map[string]*resources.AWSEC2EIPAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2EIPAssociation:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2EIPAssociationResources() map[string]*resources.AWSEC2EIPAssociation {
results := map[string]*resources.AWSEC2EIPAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2EIPAssociation:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2EIPAssociationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2EIPAssociation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2EIPAssociation",
"... | // GetAllAWSEC2EIPAssociationResources retrieves all AWSEC2EIPAssociation items from an AWS CloudFormation template | [
"GetAllAWSEC2EIPAssociationResources",
"retrieves",
"all",
"AWSEC2EIPAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3211-L3220 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2EIPAssociationWithName | func (t *Template) GetAWSEC2EIPAssociationWithName(name string) (*resources.AWSEC2EIPAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2EIPAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2EIPAssociation not found", name)
} | go | func (t *Template) GetAWSEC2EIPAssociationWithName(name string) (*resources.AWSEC2EIPAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2EIPAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2EIPAssociation not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2EIPAssociationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2EIPAssociation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSEC2EIPAssociationWithName retrieves all AWSEC2EIPAssociation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2EIPAssociationWithName",
"retrieves",
"all",
"AWSEC2EIPAssociation",
"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#L3224-L3232 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2EgressOnlyInternetGatewayResources | func (t *Template) GetAllAWSEC2EgressOnlyInternetGatewayResources() map[string]*resources.AWSEC2EgressOnlyInternetGateway {
results := map[string]*resources.AWSEC2EgressOnlyInternetGateway{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2EgressOnlyInternetGateway:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2EgressOnlyInternetGatewayResources() map[string]*resources.AWSEC2EgressOnlyInternetGateway {
results := map[string]*resources.AWSEC2EgressOnlyInternetGateway{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2EgressOnlyInternetGateway:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2EgressOnlyInternetGatewayResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2EgressOnlyInternetGateway",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSE... | // GetAllAWSEC2EgressOnlyInternetGatewayResources retrieves all AWSEC2EgressOnlyInternetGateway items from an AWS CloudFormation template | [
"GetAllAWSEC2EgressOnlyInternetGatewayResources",
"retrieves",
"all",
"AWSEC2EgressOnlyInternetGateway",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3235-L3244 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2EgressOnlyInternetGatewayWithName | func (t *Template) GetAWSEC2EgressOnlyInternetGatewayWithName(name string) (*resources.AWSEC2EgressOnlyInternetGateway, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2EgressOnlyInternetGateway:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2EgressOnlyInternetGateway not found", name)
} | go | func (t *Template) GetAWSEC2EgressOnlyInternetGatewayWithName(name string) (*resources.AWSEC2EgressOnlyInternetGateway, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2EgressOnlyInternetGateway:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2EgressOnlyInternetGateway not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2EgressOnlyInternetGatewayWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2EgressOnlyInternetGateway",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[... | // GetAWSEC2EgressOnlyInternetGatewayWithName retrieves all AWSEC2EgressOnlyInternetGateway items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2EgressOnlyInternetGatewayWithName",
"retrieves",
"all",
"AWSEC2EgressOnlyInternetGateway",
"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#L3248-L3256 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2FlowLogResources | func (t *Template) GetAllAWSEC2FlowLogResources() map[string]*resources.AWSEC2FlowLog {
results := map[string]*resources.AWSEC2FlowLog{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2FlowLog:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2FlowLogResources() map[string]*resources.AWSEC2FlowLog {
results := map[string]*resources.AWSEC2FlowLog{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2FlowLog:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2FlowLogResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2FlowLog",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2FlowLog",
"{",
"}",
"\n",
... | // GetAllAWSEC2FlowLogResources retrieves all AWSEC2FlowLog items from an AWS CloudFormation template | [
"GetAllAWSEC2FlowLogResources",
"retrieves",
"all",
"AWSEC2FlowLog",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3259-L3268 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2FlowLogWithName | func (t *Template) GetAWSEC2FlowLogWithName(name string) (*resources.AWSEC2FlowLog, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2FlowLog:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2FlowLog not found", name)
} | go | func (t *Template) GetAWSEC2FlowLogWithName(name string) (*resources.AWSEC2FlowLog, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2FlowLog:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2FlowLog not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2FlowLogWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2FlowLog",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
... | // GetAWSEC2FlowLogWithName retrieves all AWSEC2FlowLog items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2FlowLogWithName",
"retrieves",
"all",
"AWSEC2FlowLog",
"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#L3272-L3280 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2HostResources | func (t *Template) GetAllAWSEC2HostResources() map[string]*resources.AWSEC2Host {
results := map[string]*resources.AWSEC2Host{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2Host:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2HostResources() map[string]*resources.AWSEC2Host {
results := map[string]*resources.AWSEC2Host{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2Host:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2HostResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2Host",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2Host",
"{",
"}",
"\n",
"for",
... | // GetAllAWSEC2HostResources retrieves all AWSEC2Host items from an AWS CloudFormation template | [
"GetAllAWSEC2HostResources",
"retrieves",
"all",
"AWSEC2Host",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3283-L3292 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2HostWithName | func (t *Template) GetAWSEC2HostWithName(name string) (*resources.AWSEC2Host, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2Host:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2Host not found", name)
} | go | func (t *Template) GetAWSEC2HostWithName(name string) (*resources.AWSEC2Host, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2Host:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2Host not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2HostWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2Host",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
... | // GetAWSEC2HostWithName retrieves all AWSEC2Host items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2HostWithName",
"retrieves",
"all",
"AWSEC2Host",
"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#L3296-L3304 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2InstanceResources | func (t *Template) GetAllAWSEC2InstanceResources() map[string]*resources.AWSEC2Instance {
results := map[string]*resources.AWSEC2Instance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2Instance:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2InstanceResources() map[string]*resources.AWSEC2Instance {
results := map[string]*resources.AWSEC2Instance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2Instance:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2InstanceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2Instance",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2Instance",
"{",
"}",
"\n",... | // GetAllAWSEC2InstanceResources retrieves all AWSEC2Instance items from an AWS CloudFormation template | [
"GetAllAWSEC2InstanceResources",
"retrieves",
"all",
"AWSEC2Instance",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3307-L3316 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2InstanceWithName | func (t *Template) GetAWSEC2InstanceWithName(name string) (*resources.AWSEC2Instance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2Instance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2Instance not found", name)
} | go | func (t *Template) GetAWSEC2InstanceWithName(name string) (*resources.AWSEC2Instance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2Instance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2Instance not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2InstanceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2Instance",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",... | // GetAWSEC2InstanceWithName retrieves all AWSEC2Instance items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2InstanceWithName",
"retrieves",
"all",
"AWSEC2Instance",
"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#L3320-L3328 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2InternetGatewayResources | func (t *Template) GetAllAWSEC2InternetGatewayResources() map[string]*resources.AWSEC2InternetGateway {
results := map[string]*resources.AWSEC2InternetGateway{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2InternetGateway:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2InternetGatewayResources() map[string]*resources.AWSEC2InternetGateway {
results := map[string]*resources.AWSEC2InternetGateway{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2InternetGateway:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2InternetGatewayResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2InternetGateway",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2InternetGateway",
... | // GetAllAWSEC2InternetGatewayResources retrieves all AWSEC2InternetGateway items from an AWS CloudFormation template | [
"GetAllAWSEC2InternetGatewayResources",
"retrieves",
"all",
"AWSEC2InternetGateway",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3331-L3340 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2InternetGatewayWithName | func (t *Template) GetAWSEC2InternetGatewayWithName(name string) (*resources.AWSEC2InternetGateway, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2InternetGateway:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2InternetGateway not found", name)
} | go | func (t *Template) GetAWSEC2InternetGatewayWithName(name string) (*resources.AWSEC2InternetGateway, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2InternetGateway:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2InternetGateway not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2InternetGatewayWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2InternetGateway",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSEC2InternetGatewayWithName retrieves all AWSEC2InternetGateway items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2InternetGatewayWithName",
"retrieves",
"all",
"AWSEC2InternetGateway",
"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#L3344-L3352 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2LaunchTemplateResources | func (t *Template) GetAllAWSEC2LaunchTemplateResources() map[string]*resources.AWSEC2LaunchTemplate {
results := map[string]*resources.AWSEC2LaunchTemplate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2LaunchTemplate:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2LaunchTemplateResources() map[string]*resources.AWSEC2LaunchTemplate {
results := map[string]*resources.AWSEC2LaunchTemplate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2LaunchTemplate:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2LaunchTemplateResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2LaunchTemplate",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2LaunchTemplate",
"... | // GetAllAWSEC2LaunchTemplateResources retrieves all AWSEC2LaunchTemplate items from an AWS CloudFormation template | [
"GetAllAWSEC2LaunchTemplateResources",
"retrieves",
"all",
"AWSEC2LaunchTemplate",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3355-L3364 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2LaunchTemplateWithName | func (t *Template) GetAWSEC2LaunchTemplateWithName(name string) (*resources.AWSEC2LaunchTemplate, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2LaunchTemplate:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2LaunchTemplate not found", name)
} | go | func (t *Template) GetAWSEC2LaunchTemplateWithName(name string) (*resources.AWSEC2LaunchTemplate, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2LaunchTemplate:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2LaunchTemplate not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2LaunchTemplateWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2LaunchTemplate",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSEC2LaunchTemplateWithName retrieves all AWSEC2LaunchTemplate items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2LaunchTemplateWithName",
"retrieves",
"all",
"AWSEC2LaunchTemplate",
"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#L3368-L3376 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2NatGatewayResources | func (t *Template) GetAllAWSEC2NatGatewayResources() map[string]*resources.AWSEC2NatGateway {
results := map[string]*resources.AWSEC2NatGateway{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2NatGateway:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2NatGatewayResources() map[string]*resources.AWSEC2NatGateway {
results := map[string]*resources.AWSEC2NatGateway{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2NatGateway:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2NatGatewayResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2NatGateway",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2NatGateway",
"{",
"}",
... | // GetAllAWSEC2NatGatewayResources retrieves all AWSEC2NatGateway items from an AWS CloudFormation template | [
"GetAllAWSEC2NatGatewayResources",
"retrieves",
"all",
"AWSEC2NatGateway",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3379-L3388 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2NatGatewayWithName | func (t *Template) GetAWSEC2NatGatewayWithName(name string) (*resources.AWSEC2NatGateway, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2NatGateway:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2NatGateway not found", name)
} | go | func (t *Template) GetAWSEC2NatGatewayWithName(name string) (*resources.AWSEC2NatGateway, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2NatGateway:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2NatGateway not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2NatGatewayWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2NatGateway",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSEC2NatGatewayWithName retrieves all AWSEC2NatGateway items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2NatGatewayWithName",
"retrieves",
"all",
"AWSEC2NatGateway",
"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#L3392-L3400 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2NetworkAclResources | func (t *Template) GetAllAWSEC2NetworkAclResources() map[string]*resources.AWSEC2NetworkAcl {
results := map[string]*resources.AWSEC2NetworkAcl{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkAcl:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2NetworkAclResources() map[string]*resources.AWSEC2NetworkAcl {
results := map[string]*resources.AWSEC2NetworkAcl{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkAcl:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2NetworkAclResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2NetworkAcl",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2NetworkAcl",
"{",
"}",
... | // GetAllAWSEC2NetworkAclResources retrieves all AWSEC2NetworkAcl items from an AWS CloudFormation template | [
"GetAllAWSEC2NetworkAclResources",
"retrieves",
"all",
"AWSEC2NetworkAcl",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3403-L3412 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2NetworkAclWithName | func (t *Template) GetAWSEC2NetworkAclWithName(name string) (*resources.AWSEC2NetworkAcl, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkAcl:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2NetworkAcl not found", name)
} | go | func (t *Template) GetAWSEC2NetworkAclWithName(name string) (*resources.AWSEC2NetworkAcl, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkAcl:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2NetworkAcl not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2NetworkAclWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2NetworkAcl",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSEC2NetworkAclWithName retrieves all AWSEC2NetworkAcl items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2NetworkAclWithName",
"retrieves",
"all",
"AWSEC2NetworkAcl",
"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#L3416-L3424 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2NetworkAclEntryResources | func (t *Template) GetAllAWSEC2NetworkAclEntryResources() map[string]*resources.AWSEC2NetworkAclEntry {
results := map[string]*resources.AWSEC2NetworkAclEntry{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkAclEntry:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2NetworkAclEntryResources() map[string]*resources.AWSEC2NetworkAclEntry {
results := map[string]*resources.AWSEC2NetworkAclEntry{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkAclEntry:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2NetworkAclEntryResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2NetworkAclEntry",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2NetworkAclEntry",
... | // GetAllAWSEC2NetworkAclEntryResources retrieves all AWSEC2NetworkAclEntry items from an AWS CloudFormation template | [
"GetAllAWSEC2NetworkAclEntryResources",
"retrieves",
"all",
"AWSEC2NetworkAclEntry",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3427-L3436 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2NetworkAclEntryWithName | func (t *Template) GetAWSEC2NetworkAclEntryWithName(name string) (*resources.AWSEC2NetworkAclEntry, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkAclEntry:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2NetworkAclEntry not found", name)
} | go | func (t *Template) GetAWSEC2NetworkAclEntryWithName(name string) (*resources.AWSEC2NetworkAclEntry, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkAclEntry:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2NetworkAclEntry not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2NetworkAclEntryWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2NetworkAclEntry",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSEC2NetworkAclEntryWithName retrieves all AWSEC2NetworkAclEntry items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2NetworkAclEntryWithName",
"retrieves",
"all",
"AWSEC2NetworkAclEntry",
"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#L3440-L3448 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2NetworkInterfaceResources | func (t *Template) GetAllAWSEC2NetworkInterfaceResources() map[string]*resources.AWSEC2NetworkInterface {
results := map[string]*resources.AWSEC2NetworkInterface{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkInterface:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2NetworkInterfaceResources() map[string]*resources.AWSEC2NetworkInterface {
results := map[string]*resources.AWSEC2NetworkInterface{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkInterface:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2NetworkInterfaceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2NetworkInterface",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2NetworkInterface... | // GetAllAWSEC2NetworkInterfaceResources retrieves all AWSEC2NetworkInterface items from an AWS CloudFormation template | [
"GetAllAWSEC2NetworkInterfaceResources",
"retrieves",
"all",
"AWSEC2NetworkInterface",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3451-L3460 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2NetworkInterfaceWithName | func (t *Template) GetAWSEC2NetworkInterfaceWithName(name string) (*resources.AWSEC2NetworkInterface, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkInterface:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2NetworkInterface not found", name)
} | go | func (t *Template) GetAWSEC2NetworkInterfaceWithName(name string) (*resources.AWSEC2NetworkInterface, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkInterface:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2NetworkInterface not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2NetworkInterfaceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2NetworkInterface",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]"... | // GetAWSEC2NetworkInterfaceWithName retrieves all AWSEC2NetworkInterface items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2NetworkInterfaceWithName",
"retrieves",
"all",
"AWSEC2NetworkInterface",
"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#L3464-L3472 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2NetworkInterfaceAttachmentResources | func (t *Template) GetAllAWSEC2NetworkInterfaceAttachmentResources() map[string]*resources.AWSEC2NetworkInterfaceAttachment {
results := map[string]*resources.AWSEC2NetworkInterfaceAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkInterfaceAttachment:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2NetworkInterfaceAttachmentResources() map[string]*resources.AWSEC2NetworkInterfaceAttachment {
results := map[string]*resources.AWSEC2NetworkInterfaceAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkInterfaceAttachment:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2NetworkInterfaceAttachmentResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2NetworkInterfaceAttachment",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AW... | // GetAllAWSEC2NetworkInterfaceAttachmentResources retrieves all AWSEC2NetworkInterfaceAttachment items from an AWS CloudFormation template | [
"GetAllAWSEC2NetworkInterfaceAttachmentResources",
"retrieves",
"all",
"AWSEC2NetworkInterfaceAttachment",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3475-L3484 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2NetworkInterfaceAttachmentWithName | func (t *Template) GetAWSEC2NetworkInterfaceAttachmentWithName(name string) (*resources.AWSEC2NetworkInterfaceAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkInterfaceAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2NetworkInterfaceAttachment not found", name)
} | go | func (t *Template) GetAWSEC2NetworkInterfaceAttachmentWithName(name string) (*resources.AWSEC2NetworkInterfaceAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkInterfaceAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2NetworkInterfaceAttachment not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2NetworkInterfaceAttachmentWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2NetworkInterfaceAttachment",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSEC2NetworkInterfaceAttachmentWithName retrieves all AWSEC2NetworkInterfaceAttachment items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2NetworkInterfaceAttachmentWithName",
"retrieves",
"all",
"AWSEC2NetworkInterfaceAttachment",
"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#L3488-L3496 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2NetworkInterfacePermissionResources | func (t *Template) GetAllAWSEC2NetworkInterfacePermissionResources() map[string]*resources.AWSEC2NetworkInterfacePermission {
results := map[string]*resources.AWSEC2NetworkInterfacePermission{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkInterfacePermission:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2NetworkInterfacePermissionResources() map[string]*resources.AWSEC2NetworkInterfacePermission {
results := map[string]*resources.AWSEC2NetworkInterfacePermission{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkInterfacePermission:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2NetworkInterfacePermissionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2NetworkInterfacePermission",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AW... | // GetAllAWSEC2NetworkInterfacePermissionResources retrieves all AWSEC2NetworkInterfacePermission items from an AWS CloudFormation template | [
"GetAllAWSEC2NetworkInterfacePermissionResources",
"retrieves",
"all",
"AWSEC2NetworkInterfacePermission",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3499-L3508 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2NetworkInterfacePermissionWithName | func (t *Template) GetAWSEC2NetworkInterfacePermissionWithName(name string) (*resources.AWSEC2NetworkInterfacePermission, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkInterfacePermission:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2NetworkInterfacePermission not found", name)
} | go | func (t *Template) GetAWSEC2NetworkInterfacePermissionWithName(name string) (*resources.AWSEC2NetworkInterfacePermission, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2NetworkInterfacePermission:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2NetworkInterfacePermission not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2NetworkInterfacePermissionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2NetworkInterfacePermission",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSEC2NetworkInterfacePermissionWithName retrieves all AWSEC2NetworkInterfacePermission items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2NetworkInterfacePermissionWithName",
"retrieves",
"all",
"AWSEC2NetworkInterfacePermission",
"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#L3512-L3520 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2PlacementGroupResources | func (t *Template) GetAllAWSEC2PlacementGroupResources() map[string]*resources.AWSEC2PlacementGroup {
results := map[string]*resources.AWSEC2PlacementGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2PlacementGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2PlacementGroupResources() map[string]*resources.AWSEC2PlacementGroup {
results := map[string]*resources.AWSEC2PlacementGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2PlacementGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2PlacementGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2PlacementGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2PlacementGroup",
"... | // GetAllAWSEC2PlacementGroupResources retrieves all AWSEC2PlacementGroup items from an AWS CloudFormation template | [
"GetAllAWSEC2PlacementGroupResources",
"retrieves",
"all",
"AWSEC2PlacementGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3523-L3532 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2PlacementGroupWithName | func (t *Template) GetAWSEC2PlacementGroupWithName(name string) (*resources.AWSEC2PlacementGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2PlacementGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2PlacementGroup not found", name)
} | go | func (t *Template) GetAWSEC2PlacementGroupWithName(name string) (*resources.AWSEC2PlacementGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2PlacementGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2PlacementGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2PlacementGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2PlacementGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSEC2PlacementGroupWithName retrieves all AWSEC2PlacementGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2PlacementGroupWithName",
"retrieves",
"all",
"AWSEC2PlacementGroup",
"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#L3536-L3544 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2RouteResources | func (t *Template) GetAllAWSEC2RouteResources() map[string]*resources.AWSEC2Route {
results := map[string]*resources.AWSEC2Route{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2Route:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2RouteResources() map[string]*resources.AWSEC2Route {
results := map[string]*resources.AWSEC2Route{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2Route:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2RouteResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2Route",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2Route",
"{",
"}",
"\n",
"for",... | // GetAllAWSEC2RouteResources retrieves all AWSEC2Route items from an AWS CloudFormation template | [
"GetAllAWSEC2RouteResources",
"retrieves",
"all",
"AWSEC2Route",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3547-L3556 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2RouteWithName | func (t *Template) GetAWSEC2RouteWithName(name string) (*resources.AWSEC2Route, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2Route:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2Route not found", name)
} | go | func (t *Template) GetAWSEC2RouteWithName(name string) (*resources.AWSEC2Route, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2Route:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2Route not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2RouteWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2Route",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{"... | // GetAWSEC2RouteWithName retrieves all AWSEC2Route items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2RouteWithName",
"retrieves",
"all",
"AWSEC2Route",
"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#L3560-L3568 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2RouteTableResources | func (t *Template) GetAllAWSEC2RouteTableResources() map[string]*resources.AWSEC2RouteTable {
results := map[string]*resources.AWSEC2RouteTable{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2RouteTable:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2RouteTableResources() map[string]*resources.AWSEC2RouteTable {
results := map[string]*resources.AWSEC2RouteTable{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2RouteTable:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2RouteTableResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2RouteTable",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2RouteTable",
"{",
"}",
... | // GetAllAWSEC2RouteTableResources retrieves all AWSEC2RouteTable items from an AWS CloudFormation template | [
"GetAllAWSEC2RouteTableResources",
"retrieves",
"all",
"AWSEC2RouteTable",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3571-L3580 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2RouteTableWithName | func (t *Template) GetAWSEC2RouteTableWithName(name string) (*resources.AWSEC2RouteTable, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2RouteTable:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2RouteTable not found", name)
} | go | func (t *Template) GetAWSEC2RouteTableWithName(name string) (*resources.AWSEC2RouteTable, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2RouteTable:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2RouteTable not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2RouteTableWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2RouteTable",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSEC2RouteTableWithName retrieves all AWSEC2RouteTable items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2RouteTableWithName",
"retrieves",
"all",
"AWSEC2RouteTable",
"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#L3584-L3592 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2SecurityGroupResources | func (t *Template) GetAllAWSEC2SecurityGroupResources() map[string]*resources.AWSEC2SecurityGroup {
results := map[string]*resources.AWSEC2SecurityGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SecurityGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2SecurityGroupResources() map[string]*resources.AWSEC2SecurityGroup {
results := map[string]*resources.AWSEC2SecurityGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SecurityGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2SecurityGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2SecurityGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2SecurityGroup",
"{",... | // GetAllAWSEC2SecurityGroupResources retrieves all AWSEC2SecurityGroup items from an AWS CloudFormation template | [
"GetAllAWSEC2SecurityGroupResources",
"retrieves",
"all",
"AWSEC2SecurityGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3595-L3604 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2SecurityGroupWithName | func (t *Template) GetAWSEC2SecurityGroupWithName(name string) (*resources.AWSEC2SecurityGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SecurityGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SecurityGroup not found", name)
} | go | func (t *Template) GetAWSEC2SecurityGroupWithName(name string) (*resources.AWSEC2SecurityGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SecurityGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SecurityGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2SecurityGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2SecurityGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";... | // GetAWSEC2SecurityGroupWithName retrieves all AWSEC2SecurityGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2SecurityGroupWithName",
"retrieves",
"all",
"AWSEC2SecurityGroup",
"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#L3608-L3616 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2SecurityGroupEgressResources | func (t *Template) GetAllAWSEC2SecurityGroupEgressResources() map[string]*resources.AWSEC2SecurityGroupEgress {
results := map[string]*resources.AWSEC2SecurityGroupEgress{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SecurityGroupEgress:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2SecurityGroupEgressResources() map[string]*resources.AWSEC2SecurityGroupEgress {
results := map[string]*resources.AWSEC2SecurityGroupEgress{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SecurityGroupEgress:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2SecurityGroupEgressResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2SecurityGroupEgress",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2SecurityGr... | // GetAllAWSEC2SecurityGroupEgressResources retrieves all AWSEC2SecurityGroupEgress items from an AWS CloudFormation template | [
"GetAllAWSEC2SecurityGroupEgressResources",
"retrieves",
"all",
"AWSEC2SecurityGroupEgress",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3619-L3628 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2SecurityGroupEgressWithName | func (t *Template) GetAWSEC2SecurityGroupEgressWithName(name string) (*resources.AWSEC2SecurityGroupEgress, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SecurityGroupEgress:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SecurityGroupEgress not found", name)
} | go | func (t *Template) GetAWSEC2SecurityGroupEgressWithName(name string) (*resources.AWSEC2SecurityGroupEgress, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SecurityGroupEgress:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SecurityGroupEgress not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2SecurityGroupEgressWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2SecurityGroupEgress",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",... | // GetAWSEC2SecurityGroupEgressWithName retrieves all AWSEC2SecurityGroupEgress items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2SecurityGroupEgressWithName",
"retrieves",
"all",
"AWSEC2SecurityGroupEgress",
"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#L3632-L3640 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2SecurityGroupIngressResources | func (t *Template) GetAllAWSEC2SecurityGroupIngressResources() map[string]*resources.AWSEC2SecurityGroupIngress {
results := map[string]*resources.AWSEC2SecurityGroupIngress{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SecurityGroupIngress:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2SecurityGroupIngressResources() map[string]*resources.AWSEC2SecurityGroupIngress {
results := map[string]*resources.AWSEC2SecurityGroupIngress{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SecurityGroupIngress:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2SecurityGroupIngressResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2SecurityGroupIngress",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2Security... | // GetAllAWSEC2SecurityGroupIngressResources retrieves all AWSEC2SecurityGroupIngress items from an AWS CloudFormation template | [
"GetAllAWSEC2SecurityGroupIngressResources",
"retrieves",
"all",
"AWSEC2SecurityGroupIngress",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3643-L3652 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2SecurityGroupIngressWithName | func (t *Template) GetAWSEC2SecurityGroupIngressWithName(name string) (*resources.AWSEC2SecurityGroupIngress, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SecurityGroupIngress:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SecurityGroupIngress not found", name)
} | go | func (t *Template) GetAWSEC2SecurityGroupIngressWithName(name string) (*resources.AWSEC2SecurityGroupIngress, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SecurityGroupIngress:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SecurityGroupIngress not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2SecurityGroupIngressWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2SecurityGroupIngress",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name... | // GetAWSEC2SecurityGroupIngressWithName retrieves all AWSEC2SecurityGroupIngress items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2SecurityGroupIngressWithName",
"retrieves",
"all",
"AWSEC2SecurityGroupIngress",
"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#L3656-L3664 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2SpotFleetResources | func (t *Template) GetAllAWSEC2SpotFleetResources() map[string]*resources.AWSEC2SpotFleet {
results := map[string]*resources.AWSEC2SpotFleet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SpotFleet:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2SpotFleetResources() map[string]*resources.AWSEC2SpotFleet {
results := map[string]*resources.AWSEC2SpotFleet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SpotFleet:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2SpotFleetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2SpotFleet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2SpotFleet",
"{",
"}",
"\... | // GetAllAWSEC2SpotFleetResources retrieves all AWSEC2SpotFleet items from an AWS CloudFormation template | [
"GetAllAWSEC2SpotFleetResources",
"retrieves",
"all",
"AWSEC2SpotFleet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3667-L3676 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2SpotFleetWithName | func (t *Template) GetAWSEC2SpotFleetWithName(name string) (*resources.AWSEC2SpotFleet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SpotFleet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SpotFleet not found", name)
} | go | func (t *Template) GetAWSEC2SpotFleetWithName(name string) (*resources.AWSEC2SpotFleet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SpotFleet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SpotFleet not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2SpotFleetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2SpotFleet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok... | // GetAWSEC2SpotFleetWithName retrieves all AWSEC2SpotFleet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2SpotFleetWithName",
"retrieves",
"all",
"AWSEC2SpotFleet",
"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#L3680-L3688 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2SubnetResources | func (t *Template) GetAllAWSEC2SubnetResources() map[string]*resources.AWSEC2Subnet {
results := map[string]*resources.AWSEC2Subnet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2Subnet:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2SubnetResources() map[string]*resources.AWSEC2Subnet {
results := map[string]*resources.AWSEC2Subnet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2Subnet:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2SubnetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2Subnet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2Subnet",
"{",
"}",
"\n",
"fo... | // GetAllAWSEC2SubnetResources retrieves all AWSEC2Subnet items from an AWS CloudFormation template | [
"GetAllAWSEC2SubnetResources",
"retrieves",
"all",
"AWSEC2Subnet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3691-L3700 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2SubnetWithName | func (t *Template) GetAWSEC2SubnetWithName(name string) (*resources.AWSEC2Subnet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2Subnet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2Subnet not found", name)
} | go | func (t *Template) GetAWSEC2SubnetWithName(name string) (*resources.AWSEC2Subnet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2Subnet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2Subnet not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2SubnetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2Subnet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"... | // GetAWSEC2SubnetWithName retrieves all AWSEC2Subnet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2SubnetWithName",
"retrieves",
"all",
"AWSEC2Subnet",
"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#L3704-L3712 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2SubnetCidrBlockResources | func (t *Template) GetAllAWSEC2SubnetCidrBlockResources() map[string]*resources.AWSEC2SubnetCidrBlock {
results := map[string]*resources.AWSEC2SubnetCidrBlock{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SubnetCidrBlock:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2SubnetCidrBlockResources() map[string]*resources.AWSEC2SubnetCidrBlock {
results := map[string]*resources.AWSEC2SubnetCidrBlock{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SubnetCidrBlock:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2SubnetCidrBlockResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2SubnetCidrBlock",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2SubnetCidrBlock",
... | // GetAllAWSEC2SubnetCidrBlockResources retrieves all AWSEC2SubnetCidrBlock items from an AWS CloudFormation template | [
"GetAllAWSEC2SubnetCidrBlockResources",
"retrieves",
"all",
"AWSEC2SubnetCidrBlock",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3715-L3724 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.