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 | GetAWSEC2SubnetCidrBlockWithName | func (t *Template) GetAWSEC2SubnetCidrBlockWithName(name string) (*resources.AWSEC2SubnetCidrBlock, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SubnetCidrBlock:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SubnetCidrBlock not found", name)
} | go | func (t *Template) GetAWSEC2SubnetCidrBlockWithName(name string) (*resources.AWSEC2SubnetCidrBlock, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SubnetCidrBlock:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SubnetCidrBlock not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2SubnetCidrBlockWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2SubnetCidrBlock",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSEC2SubnetCidrBlockWithName retrieves all AWSEC2SubnetCidrBlock items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2SubnetCidrBlockWithName",
"retrieves",
"all",
"AWSEC2SubnetCidrBlock",
"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#L3728-L3736 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2SubnetNetworkAclAssociationResources | func (t *Template) GetAllAWSEC2SubnetNetworkAclAssociationResources() map[string]*resources.AWSEC2SubnetNetworkAclAssociation {
results := map[string]*resources.AWSEC2SubnetNetworkAclAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SubnetNetworkAclAssociation:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2SubnetNetworkAclAssociationResources() map[string]*resources.AWSEC2SubnetNetworkAclAssociation {
results := map[string]*resources.AWSEC2SubnetNetworkAclAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SubnetNetworkAclAssociation:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2SubnetNetworkAclAssociationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2SubnetNetworkAclAssociation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"... | // GetAllAWSEC2SubnetNetworkAclAssociationResources retrieves all AWSEC2SubnetNetworkAclAssociation items from an AWS CloudFormation template | [
"GetAllAWSEC2SubnetNetworkAclAssociationResources",
"retrieves",
"all",
"AWSEC2SubnetNetworkAclAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3739-L3748 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2SubnetNetworkAclAssociationWithName | func (t *Template) GetAWSEC2SubnetNetworkAclAssociationWithName(name string) (*resources.AWSEC2SubnetNetworkAclAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SubnetNetworkAclAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SubnetNetworkAclAssociation not found", name)
} | go | func (t *Template) GetAWSEC2SubnetNetworkAclAssociationWithName(name string) (*resources.AWSEC2SubnetNetworkAclAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SubnetNetworkAclAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SubnetNetworkAclAssociation not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2SubnetNetworkAclAssociationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2SubnetNetworkAclAssociation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSEC2SubnetNetworkAclAssociationWithName retrieves all AWSEC2SubnetNetworkAclAssociation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2SubnetNetworkAclAssociationWithName",
"retrieves",
"all",
"AWSEC2SubnetNetworkAclAssociation",
"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#L3752-L3760 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2SubnetRouteTableAssociationResources | func (t *Template) GetAllAWSEC2SubnetRouteTableAssociationResources() map[string]*resources.AWSEC2SubnetRouteTableAssociation {
results := map[string]*resources.AWSEC2SubnetRouteTableAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SubnetRouteTableAssociation:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2SubnetRouteTableAssociationResources() map[string]*resources.AWSEC2SubnetRouteTableAssociation {
results := map[string]*resources.AWSEC2SubnetRouteTableAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2SubnetRouteTableAssociation:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2SubnetRouteTableAssociationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2SubnetRouteTableAssociation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"... | // GetAllAWSEC2SubnetRouteTableAssociationResources retrieves all AWSEC2SubnetRouteTableAssociation items from an AWS CloudFormation template | [
"GetAllAWSEC2SubnetRouteTableAssociationResources",
"retrieves",
"all",
"AWSEC2SubnetRouteTableAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3763-L3772 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2SubnetRouteTableAssociationWithName | func (t *Template) GetAWSEC2SubnetRouteTableAssociationWithName(name string) (*resources.AWSEC2SubnetRouteTableAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SubnetRouteTableAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SubnetRouteTableAssociation not found", name)
} | go | func (t *Template) GetAWSEC2SubnetRouteTableAssociationWithName(name string) (*resources.AWSEC2SubnetRouteTableAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2SubnetRouteTableAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2SubnetRouteTableAssociation not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2SubnetRouteTableAssociationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2SubnetRouteTableAssociation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSEC2SubnetRouteTableAssociationWithName retrieves all AWSEC2SubnetRouteTableAssociation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2SubnetRouteTableAssociationWithName",
"retrieves",
"all",
"AWSEC2SubnetRouteTableAssociation",
"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#L3776-L3784 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2TransitGatewayResources | func (t *Template) GetAllAWSEC2TransitGatewayResources() map[string]*resources.AWSEC2TransitGateway {
results := map[string]*resources.AWSEC2TransitGateway{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGateway:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2TransitGatewayResources() map[string]*resources.AWSEC2TransitGateway {
results := map[string]*resources.AWSEC2TransitGateway{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGateway:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2TransitGatewayResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2TransitGateway",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2TransitGateway",
"... | // GetAllAWSEC2TransitGatewayResources retrieves all AWSEC2TransitGateway items from an AWS CloudFormation template | [
"GetAllAWSEC2TransitGatewayResources",
"retrieves",
"all",
"AWSEC2TransitGateway",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3787-L3796 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2TransitGatewayWithName | func (t *Template) GetAWSEC2TransitGatewayWithName(name string) (*resources.AWSEC2TransitGateway, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGateway:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TransitGateway not found", name)
} | go | func (t *Template) GetAWSEC2TransitGatewayWithName(name string) (*resources.AWSEC2TransitGateway, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGateway:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TransitGateway not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2TransitGatewayWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2TransitGateway",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSEC2TransitGatewayWithName retrieves all AWSEC2TransitGateway items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2TransitGatewayWithName",
"retrieves",
"all",
"AWSEC2TransitGateway",
"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#L3800-L3808 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2TransitGatewayAttachmentResources | func (t *Template) GetAllAWSEC2TransitGatewayAttachmentResources() map[string]*resources.AWSEC2TransitGatewayAttachment {
results := map[string]*resources.AWSEC2TransitGatewayAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayAttachment:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2TransitGatewayAttachmentResources() map[string]*resources.AWSEC2TransitGatewayAttachment {
results := map[string]*resources.AWSEC2TransitGatewayAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayAttachment:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2TransitGatewayAttachmentResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2TransitGatewayAttachment",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2... | // GetAllAWSEC2TransitGatewayAttachmentResources retrieves all AWSEC2TransitGatewayAttachment items from an AWS CloudFormation template | [
"GetAllAWSEC2TransitGatewayAttachmentResources",
"retrieves",
"all",
"AWSEC2TransitGatewayAttachment",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3811-L3820 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2TransitGatewayAttachmentWithName | func (t *Template) GetAWSEC2TransitGatewayAttachmentWithName(name string) (*resources.AWSEC2TransitGatewayAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayAttachment not found", name)
} | go | func (t *Template) GetAWSEC2TransitGatewayAttachmentWithName(name string) (*resources.AWSEC2TransitGatewayAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayAttachment not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2TransitGatewayAttachmentWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2TransitGatewayAttachment",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",... | // GetAWSEC2TransitGatewayAttachmentWithName retrieves all AWSEC2TransitGatewayAttachment items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2TransitGatewayAttachmentWithName",
"retrieves",
"all",
"AWSEC2TransitGatewayAttachment",
"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#L3824-L3832 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2TransitGatewayRouteResources | func (t *Template) GetAllAWSEC2TransitGatewayRouteResources() map[string]*resources.AWSEC2TransitGatewayRoute {
results := map[string]*resources.AWSEC2TransitGatewayRoute{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRoute:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2TransitGatewayRouteResources() map[string]*resources.AWSEC2TransitGatewayRoute {
results := map[string]*resources.AWSEC2TransitGatewayRoute{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRoute:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2TransitGatewayRouteResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2TransitGatewayRoute",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2TransitGat... | // GetAllAWSEC2TransitGatewayRouteResources retrieves all AWSEC2TransitGatewayRoute items from an AWS CloudFormation template | [
"GetAllAWSEC2TransitGatewayRouteResources",
"retrieves",
"all",
"AWSEC2TransitGatewayRoute",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3835-L3844 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2TransitGatewayRouteWithName | func (t *Template) GetAWSEC2TransitGatewayRouteWithName(name string) (*resources.AWSEC2TransitGatewayRoute, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRoute:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRoute not found", name)
} | go | func (t *Template) GetAWSEC2TransitGatewayRouteWithName(name string) (*resources.AWSEC2TransitGatewayRoute, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRoute:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRoute not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2TransitGatewayRouteWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2TransitGatewayRoute",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",... | // GetAWSEC2TransitGatewayRouteWithName retrieves all AWSEC2TransitGatewayRoute items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2TransitGatewayRouteWithName",
"retrieves",
"all",
"AWSEC2TransitGatewayRoute",
"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#L3848-L3856 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2TransitGatewayRouteTableResources | func (t *Template) GetAllAWSEC2TransitGatewayRouteTableResources() map[string]*resources.AWSEC2TransitGatewayRouteTable {
results := map[string]*resources.AWSEC2TransitGatewayRouteTable{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRouteTable:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2TransitGatewayRouteTableResources() map[string]*resources.AWSEC2TransitGatewayRouteTable {
results := map[string]*resources.AWSEC2TransitGatewayRouteTable{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRouteTable:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2TransitGatewayRouteTableResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2TransitGatewayRouteTable",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2... | // GetAllAWSEC2TransitGatewayRouteTableResources retrieves all AWSEC2TransitGatewayRouteTable items from an AWS CloudFormation template | [
"GetAllAWSEC2TransitGatewayRouteTableResources",
"retrieves",
"all",
"AWSEC2TransitGatewayRouteTable",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3859-L3868 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2TransitGatewayRouteTableWithName | func (t *Template) GetAWSEC2TransitGatewayRouteTableWithName(name string) (*resources.AWSEC2TransitGatewayRouteTable, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRouteTable:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRouteTable not found", name)
} | go | func (t *Template) GetAWSEC2TransitGatewayRouteTableWithName(name string) (*resources.AWSEC2TransitGatewayRouteTable, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRouteTable:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRouteTable not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2TransitGatewayRouteTableWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2TransitGatewayRouteTable",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",... | // GetAWSEC2TransitGatewayRouteTableWithName retrieves all AWSEC2TransitGatewayRouteTable items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2TransitGatewayRouteTableWithName",
"retrieves",
"all",
"AWSEC2TransitGatewayRouteTable",
"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#L3872-L3880 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2TransitGatewayRouteTableAssociationResources | func (t *Template) GetAllAWSEC2TransitGatewayRouteTableAssociationResources() map[string]*resources.AWSEC2TransitGatewayRouteTableAssociation {
results := map[string]*resources.AWSEC2TransitGatewayRouteTableAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRouteTableAssociation:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2TransitGatewayRouteTableAssociationResources() map[string]*resources.AWSEC2TransitGatewayRouteTableAssociation {
results := map[string]*resources.AWSEC2TransitGatewayRouteTableAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRouteTableAssociation:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2TransitGatewayRouteTableAssociationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2TransitGatewayRouteTableAssociation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resour... | // GetAllAWSEC2TransitGatewayRouteTableAssociationResources retrieves all AWSEC2TransitGatewayRouteTableAssociation items from an AWS CloudFormation template | [
"GetAllAWSEC2TransitGatewayRouteTableAssociationResources",
"retrieves",
"all",
"AWSEC2TransitGatewayRouteTableAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3883-L3892 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2TransitGatewayRouteTableAssociationWithName | func (t *Template) GetAWSEC2TransitGatewayRouteTableAssociationWithName(name string) (*resources.AWSEC2TransitGatewayRouteTableAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRouteTableAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRouteTableAssociation not found", name)
} | go | func (t *Template) GetAWSEC2TransitGatewayRouteTableAssociationWithName(name string) (*resources.AWSEC2TransitGatewayRouteTableAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRouteTableAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRouteTableAssociation not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2TransitGatewayRouteTableAssociationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2TransitGatewayRouteTableAssociation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",... | // GetAWSEC2TransitGatewayRouteTableAssociationWithName retrieves all AWSEC2TransitGatewayRouteTableAssociation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2TransitGatewayRouteTableAssociationWithName",
"retrieves",
"all",
"AWSEC2TransitGatewayRouteTableAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3896-L3904 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2TransitGatewayRouteTablePropagationResources | func (t *Template) GetAllAWSEC2TransitGatewayRouteTablePropagationResources() map[string]*resources.AWSEC2TransitGatewayRouteTablePropagation {
results := map[string]*resources.AWSEC2TransitGatewayRouteTablePropagation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRouteTablePropagation:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2TransitGatewayRouteTablePropagationResources() map[string]*resources.AWSEC2TransitGatewayRouteTablePropagation {
results := map[string]*resources.AWSEC2TransitGatewayRouteTablePropagation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRouteTablePropagation:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2TransitGatewayRouteTablePropagationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2TransitGatewayRouteTablePropagation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resour... | // GetAllAWSEC2TransitGatewayRouteTablePropagationResources retrieves all AWSEC2TransitGatewayRouteTablePropagation items from an AWS CloudFormation template | [
"GetAllAWSEC2TransitGatewayRouteTablePropagationResources",
"retrieves",
"all",
"AWSEC2TransitGatewayRouteTablePropagation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3907-L3916 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2TransitGatewayRouteTablePropagationWithName | func (t *Template) GetAWSEC2TransitGatewayRouteTablePropagationWithName(name string) (*resources.AWSEC2TransitGatewayRouteTablePropagation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRouteTablePropagation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRouteTablePropagation not found", name)
} | go | func (t *Template) GetAWSEC2TransitGatewayRouteTablePropagationWithName(name string) (*resources.AWSEC2TransitGatewayRouteTablePropagation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TransitGatewayRouteTablePropagation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TransitGatewayRouteTablePropagation not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2TransitGatewayRouteTablePropagationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2TransitGatewayRouteTablePropagation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",... | // GetAWSEC2TransitGatewayRouteTablePropagationWithName retrieves all AWSEC2TransitGatewayRouteTablePropagation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2TransitGatewayRouteTablePropagationWithName",
"retrieves",
"all",
"AWSEC2TransitGatewayRouteTablePropagation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3920-L3928 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2TrunkInterfaceAssociationResources | func (t *Template) GetAllAWSEC2TrunkInterfaceAssociationResources() map[string]*resources.AWSEC2TrunkInterfaceAssociation {
results := map[string]*resources.AWSEC2TrunkInterfaceAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TrunkInterfaceAssociation:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2TrunkInterfaceAssociationResources() map[string]*resources.AWSEC2TrunkInterfaceAssociation {
results := map[string]*resources.AWSEC2TrunkInterfaceAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2TrunkInterfaceAssociation:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2TrunkInterfaceAssociationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2TrunkInterfaceAssociation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSE... | // GetAllAWSEC2TrunkInterfaceAssociationResources retrieves all AWSEC2TrunkInterfaceAssociation items from an AWS CloudFormation template | [
"GetAllAWSEC2TrunkInterfaceAssociationResources",
"retrieves",
"all",
"AWSEC2TrunkInterfaceAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3931-L3940 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2TrunkInterfaceAssociationWithName | func (t *Template) GetAWSEC2TrunkInterfaceAssociationWithName(name string) (*resources.AWSEC2TrunkInterfaceAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TrunkInterfaceAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TrunkInterfaceAssociation not found", name)
} | go | func (t *Template) GetAWSEC2TrunkInterfaceAssociationWithName(name string) (*resources.AWSEC2TrunkInterfaceAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2TrunkInterfaceAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2TrunkInterfaceAssociation not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2TrunkInterfaceAssociationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2TrunkInterfaceAssociation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[... | // GetAWSEC2TrunkInterfaceAssociationWithName retrieves all AWSEC2TrunkInterfaceAssociation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2TrunkInterfaceAssociationWithName",
"retrieves",
"all",
"AWSEC2TrunkInterfaceAssociation",
"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#L3944-L3952 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VPCResources | func (t *Template) GetAllAWSEC2VPCResources() map[string]*resources.AWSEC2VPC {
results := map[string]*resources.AWSEC2VPC{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPC:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VPCResources() map[string]*resources.AWSEC2VPC {
results := map[string]*resources.AWSEC2VPC{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPC:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VPCResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPC",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPC",
"{",
"}",
"\n",
"for",
"na... | // GetAllAWSEC2VPCResources retrieves all AWSEC2VPC items from an AWS CloudFormation template | [
"GetAllAWSEC2VPCResources",
"retrieves",
"all",
"AWSEC2VPC",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3955-L3964 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VPCWithName | func (t *Template) GetAWSEC2VPCWithName(name string) (*resources.AWSEC2VPC, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPC:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPC not found", name)
} | go | func (t *Template) GetAWSEC2VPCWithName(name string) (*resources.AWSEC2VPC, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPC:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPC not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VPCWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2VPC",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
... | // GetAWSEC2VPCWithName retrieves all AWSEC2VPC items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VPCWithName",
"retrieves",
"all",
"AWSEC2VPC",
"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#L3968-L3976 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VPCCidrBlockResources | func (t *Template) GetAllAWSEC2VPCCidrBlockResources() map[string]*resources.AWSEC2VPCCidrBlock {
results := map[string]*resources.AWSEC2VPCCidrBlock{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCCidrBlock:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VPCCidrBlockResources() map[string]*resources.AWSEC2VPCCidrBlock {
results := map[string]*resources.AWSEC2VPCCidrBlock{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCCidrBlock:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VPCCidrBlockResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPCCidrBlock",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPCCidrBlock",
"{",
... | // GetAllAWSEC2VPCCidrBlockResources retrieves all AWSEC2VPCCidrBlock items from an AWS CloudFormation template | [
"GetAllAWSEC2VPCCidrBlockResources",
"retrieves",
"all",
"AWSEC2VPCCidrBlock",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L3979-L3988 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VPCCidrBlockWithName | func (t *Template) GetAWSEC2VPCCidrBlockWithName(name string) (*resources.AWSEC2VPCCidrBlock, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCCidrBlock:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCCidrBlock not found", name)
} | go | func (t *Template) GetAWSEC2VPCCidrBlockWithName(name string) (*resources.AWSEC2VPCCidrBlock, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCCidrBlock:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCCidrBlock not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VPCCidrBlockWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2VPCCidrBlock",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",... | // GetAWSEC2VPCCidrBlockWithName retrieves all AWSEC2VPCCidrBlock items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VPCCidrBlockWithName",
"retrieves",
"all",
"AWSEC2VPCCidrBlock",
"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#L3992-L4000 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VPCDHCPOptionsAssociationResources | func (t *Template) GetAllAWSEC2VPCDHCPOptionsAssociationResources() map[string]*resources.AWSEC2VPCDHCPOptionsAssociation {
results := map[string]*resources.AWSEC2VPCDHCPOptionsAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCDHCPOptionsAssociation:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VPCDHCPOptionsAssociationResources() map[string]*resources.AWSEC2VPCDHCPOptionsAssociation {
results := map[string]*resources.AWSEC2VPCDHCPOptionsAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCDHCPOptionsAssociation:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VPCDHCPOptionsAssociationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPCDHCPOptionsAssociation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSE... | // GetAllAWSEC2VPCDHCPOptionsAssociationResources retrieves all AWSEC2VPCDHCPOptionsAssociation items from an AWS CloudFormation template | [
"GetAllAWSEC2VPCDHCPOptionsAssociationResources",
"retrieves",
"all",
"AWSEC2VPCDHCPOptionsAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4003-L4012 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VPCDHCPOptionsAssociationWithName | func (t *Template) GetAWSEC2VPCDHCPOptionsAssociationWithName(name string) (*resources.AWSEC2VPCDHCPOptionsAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCDHCPOptionsAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCDHCPOptionsAssociation not found", name)
} | go | func (t *Template) GetAWSEC2VPCDHCPOptionsAssociationWithName(name string) (*resources.AWSEC2VPCDHCPOptionsAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCDHCPOptionsAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCDHCPOptionsAssociation not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VPCDHCPOptionsAssociationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2VPCDHCPOptionsAssociation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[... | // GetAWSEC2VPCDHCPOptionsAssociationWithName retrieves all AWSEC2VPCDHCPOptionsAssociation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VPCDHCPOptionsAssociationWithName",
"retrieves",
"all",
"AWSEC2VPCDHCPOptionsAssociation",
"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#L4016-L4024 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VPCEndpointResources | func (t *Template) GetAllAWSEC2VPCEndpointResources() map[string]*resources.AWSEC2VPCEndpoint {
results := map[string]*resources.AWSEC2VPCEndpoint{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCEndpoint:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VPCEndpointResources() map[string]*resources.AWSEC2VPCEndpoint {
results := map[string]*resources.AWSEC2VPCEndpoint{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCEndpoint:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VPCEndpointResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPCEndpoint",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPCEndpoint",
"{",
"}"... | // GetAllAWSEC2VPCEndpointResources retrieves all AWSEC2VPCEndpoint items from an AWS CloudFormation template | [
"GetAllAWSEC2VPCEndpointResources",
"retrieves",
"all",
"AWSEC2VPCEndpoint",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4027-L4036 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VPCEndpointWithName | func (t *Template) GetAWSEC2VPCEndpointWithName(name string) (*resources.AWSEC2VPCEndpoint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCEndpoint:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCEndpoint not found", name)
} | go | func (t *Template) GetAWSEC2VPCEndpointWithName(name string) (*resources.AWSEC2VPCEndpoint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCEndpoint:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCEndpoint not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VPCEndpointWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2VPCEndpoint",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSEC2VPCEndpointWithName retrieves all AWSEC2VPCEndpoint items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VPCEndpointWithName",
"retrieves",
"all",
"AWSEC2VPCEndpoint",
"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#L4040-L4048 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VPCEndpointConnectionNotificationResources | func (t *Template) GetAllAWSEC2VPCEndpointConnectionNotificationResources() map[string]*resources.AWSEC2VPCEndpointConnectionNotification {
results := map[string]*resources.AWSEC2VPCEndpointConnectionNotification{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCEndpointConnectionNotification:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VPCEndpointConnectionNotificationResources() map[string]*resources.AWSEC2VPCEndpointConnectionNotification {
results := map[string]*resources.AWSEC2VPCEndpointConnectionNotification{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCEndpointConnectionNotification:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VPCEndpointConnectionNotificationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPCEndpointConnectionNotification",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources"... | // GetAllAWSEC2VPCEndpointConnectionNotificationResources retrieves all AWSEC2VPCEndpointConnectionNotification items from an AWS CloudFormation template | [
"GetAllAWSEC2VPCEndpointConnectionNotificationResources",
"retrieves",
"all",
"AWSEC2VPCEndpointConnectionNotification",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4051-L4060 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VPCEndpointConnectionNotificationWithName | func (t *Template) GetAWSEC2VPCEndpointConnectionNotificationWithName(name string) (*resources.AWSEC2VPCEndpointConnectionNotification, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCEndpointConnectionNotification:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCEndpointConnectionNotification not found", name)
} | go | func (t *Template) GetAWSEC2VPCEndpointConnectionNotificationWithName(name string) (*resources.AWSEC2VPCEndpointConnectionNotification, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCEndpointConnectionNotification:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCEndpointConnectionNotification not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VPCEndpointConnectionNotificationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2VPCEndpointConnectionNotification",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"... | // GetAWSEC2VPCEndpointConnectionNotificationWithName retrieves all AWSEC2VPCEndpointConnectionNotification items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VPCEndpointConnectionNotificationWithName",
"retrieves",
"all",
"AWSEC2VPCEndpointConnectionNotification",
"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#L4064-L4072 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VPCEndpointServicePermissionsResources | func (t *Template) GetAllAWSEC2VPCEndpointServicePermissionsResources() map[string]*resources.AWSEC2VPCEndpointServicePermissions {
results := map[string]*resources.AWSEC2VPCEndpointServicePermissions{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCEndpointServicePermissions:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VPCEndpointServicePermissionsResources() map[string]*resources.AWSEC2VPCEndpointServicePermissions {
results := map[string]*resources.AWSEC2VPCEndpointServicePermissions{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCEndpointServicePermissions:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VPCEndpointServicePermissionsResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPCEndpointServicePermissions",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",... | // GetAllAWSEC2VPCEndpointServicePermissionsResources retrieves all AWSEC2VPCEndpointServicePermissions items from an AWS CloudFormation template | [
"GetAllAWSEC2VPCEndpointServicePermissionsResources",
"retrieves",
"all",
"AWSEC2VPCEndpointServicePermissions",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4075-L4084 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VPCEndpointServicePermissionsWithName | func (t *Template) GetAWSEC2VPCEndpointServicePermissionsWithName(name string) (*resources.AWSEC2VPCEndpointServicePermissions, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCEndpointServicePermissions:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCEndpointServicePermissions not found", name)
} | go | func (t *Template) GetAWSEC2VPCEndpointServicePermissionsWithName(name string) (*resources.AWSEC2VPCEndpointServicePermissions, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCEndpointServicePermissions:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCEndpointServicePermissions not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VPCEndpointServicePermissionsWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2VPCEndpointServicePermissions",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resource... | // GetAWSEC2VPCEndpointServicePermissionsWithName retrieves all AWSEC2VPCEndpointServicePermissions items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VPCEndpointServicePermissionsWithName",
"retrieves",
"all",
"AWSEC2VPCEndpointServicePermissions",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"n... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4088-L4096 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VPCGatewayAttachmentResources | func (t *Template) GetAllAWSEC2VPCGatewayAttachmentResources() map[string]*resources.AWSEC2VPCGatewayAttachment {
results := map[string]*resources.AWSEC2VPCGatewayAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCGatewayAttachment:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VPCGatewayAttachmentResources() map[string]*resources.AWSEC2VPCGatewayAttachment {
results := map[string]*resources.AWSEC2VPCGatewayAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCGatewayAttachment:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VPCGatewayAttachmentResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPCGatewayAttachment",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPCGatew... | // GetAllAWSEC2VPCGatewayAttachmentResources retrieves all AWSEC2VPCGatewayAttachment items from an AWS CloudFormation template | [
"GetAllAWSEC2VPCGatewayAttachmentResources",
"retrieves",
"all",
"AWSEC2VPCGatewayAttachment",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4099-L4108 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VPCGatewayAttachmentWithName | func (t *Template) GetAWSEC2VPCGatewayAttachmentWithName(name string) (*resources.AWSEC2VPCGatewayAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCGatewayAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCGatewayAttachment not found", name)
} | go | func (t *Template) GetAWSEC2VPCGatewayAttachmentWithName(name string) (*resources.AWSEC2VPCGatewayAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCGatewayAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCGatewayAttachment not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VPCGatewayAttachmentWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2VPCGatewayAttachment",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name... | // GetAWSEC2VPCGatewayAttachmentWithName retrieves all AWSEC2VPCGatewayAttachment items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VPCGatewayAttachmentWithName",
"retrieves",
"all",
"AWSEC2VPCGatewayAttachment",
"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#L4112-L4120 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VPCPeeringConnectionResources | func (t *Template) GetAllAWSEC2VPCPeeringConnectionResources() map[string]*resources.AWSEC2VPCPeeringConnection {
results := map[string]*resources.AWSEC2VPCPeeringConnection{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCPeeringConnection:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VPCPeeringConnectionResources() map[string]*resources.AWSEC2VPCPeeringConnection {
results := map[string]*resources.AWSEC2VPCPeeringConnection{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCPeeringConnection:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VPCPeeringConnectionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPCPeeringConnection",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPCPeeri... | // GetAllAWSEC2VPCPeeringConnectionResources retrieves all AWSEC2VPCPeeringConnection items from an AWS CloudFormation template | [
"GetAllAWSEC2VPCPeeringConnectionResources",
"retrieves",
"all",
"AWSEC2VPCPeeringConnection",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4123-L4132 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VPCPeeringConnectionWithName | func (t *Template) GetAWSEC2VPCPeeringConnectionWithName(name string) (*resources.AWSEC2VPCPeeringConnection, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCPeeringConnection:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCPeeringConnection not found", name)
} | go | func (t *Template) GetAWSEC2VPCPeeringConnectionWithName(name string) (*resources.AWSEC2VPCPeeringConnection, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPCPeeringConnection:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPCPeeringConnection not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VPCPeeringConnectionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2VPCPeeringConnection",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name... | // GetAWSEC2VPCPeeringConnectionWithName retrieves all AWSEC2VPCPeeringConnection items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VPCPeeringConnectionWithName",
"retrieves",
"all",
"AWSEC2VPCPeeringConnection",
"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#L4136-L4144 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VPNConnectionResources | func (t *Template) GetAllAWSEC2VPNConnectionResources() map[string]*resources.AWSEC2VPNConnection {
results := map[string]*resources.AWSEC2VPNConnection{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNConnection:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VPNConnectionResources() map[string]*resources.AWSEC2VPNConnection {
results := map[string]*resources.AWSEC2VPNConnection{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNConnection:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VPNConnectionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPNConnection",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPNConnection",
"{",... | // GetAllAWSEC2VPNConnectionResources retrieves all AWSEC2VPNConnection items from an AWS CloudFormation template | [
"GetAllAWSEC2VPNConnectionResources",
"retrieves",
"all",
"AWSEC2VPNConnection",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4147-L4156 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VPNConnectionWithName | func (t *Template) GetAWSEC2VPNConnectionWithName(name string) (*resources.AWSEC2VPNConnection, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNConnection:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPNConnection not found", name)
} | go | func (t *Template) GetAWSEC2VPNConnectionWithName(name string) (*resources.AWSEC2VPNConnection, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNConnection:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPNConnection not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VPNConnectionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2VPNConnection",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";... | // GetAWSEC2VPNConnectionWithName retrieves all AWSEC2VPNConnection items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VPNConnectionWithName",
"retrieves",
"all",
"AWSEC2VPNConnection",
"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#L4160-L4168 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VPNConnectionRouteResources | func (t *Template) GetAllAWSEC2VPNConnectionRouteResources() map[string]*resources.AWSEC2VPNConnectionRoute {
results := map[string]*resources.AWSEC2VPNConnectionRoute{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNConnectionRoute:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VPNConnectionRouteResources() map[string]*resources.AWSEC2VPNConnectionRoute {
results := map[string]*resources.AWSEC2VPNConnectionRoute{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNConnectionRoute:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VPNConnectionRouteResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPNConnectionRoute",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPNConnectio... | // GetAllAWSEC2VPNConnectionRouteResources retrieves all AWSEC2VPNConnectionRoute items from an AWS CloudFormation template | [
"GetAllAWSEC2VPNConnectionRouteResources",
"retrieves",
"all",
"AWSEC2VPNConnectionRoute",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4171-L4180 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VPNConnectionRouteWithName | func (t *Template) GetAWSEC2VPNConnectionRouteWithName(name string) (*resources.AWSEC2VPNConnectionRoute, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNConnectionRoute:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPNConnectionRoute not found", name)
} | go | func (t *Template) GetAWSEC2VPNConnectionRouteWithName(name string) (*resources.AWSEC2VPNConnectionRoute, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNConnectionRoute:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPNConnectionRoute not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VPNConnectionRouteWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2VPNConnectionRoute",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
... | // GetAWSEC2VPNConnectionRouteWithName retrieves all AWSEC2VPNConnectionRoute items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VPNConnectionRouteWithName",
"retrieves",
"all",
"AWSEC2VPNConnectionRoute",
"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#L4184-L4192 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VPNGatewayResources | func (t *Template) GetAllAWSEC2VPNGatewayResources() map[string]*resources.AWSEC2VPNGateway {
results := map[string]*resources.AWSEC2VPNGateway{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNGateway:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VPNGatewayResources() map[string]*resources.AWSEC2VPNGateway {
results := map[string]*resources.AWSEC2VPNGateway{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNGateway:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VPNGatewayResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPNGateway",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPNGateway",
"{",
"}",
... | // GetAllAWSEC2VPNGatewayResources retrieves all AWSEC2VPNGateway items from an AWS CloudFormation template | [
"GetAllAWSEC2VPNGatewayResources",
"retrieves",
"all",
"AWSEC2VPNGateway",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4195-L4204 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VPNGatewayWithName | func (t *Template) GetAWSEC2VPNGatewayWithName(name string) (*resources.AWSEC2VPNGateway, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNGateway:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPNGateway not found", name)
} | go | func (t *Template) GetAWSEC2VPNGatewayWithName(name string) (*resources.AWSEC2VPNGateway, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNGateway:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPNGateway not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VPNGatewayWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2VPNGateway",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSEC2VPNGatewayWithName retrieves all AWSEC2VPNGateway items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VPNGatewayWithName",
"retrieves",
"all",
"AWSEC2VPNGateway",
"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#L4208-L4216 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VPNGatewayRoutePropagationResources | func (t *Template) GetAllAWSEC2VPNGatewayRoutePropagationResources() map[string]*resources.AWSEC2VPNGatewayRoutePropagation {
results := map[string]*resources.AWSEC2VPNGatewayRoutePropagation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNGatewayRoutePropagation:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VPNGatewayRoutePropagationResources() map[string]*resources.AWSEC2VPNGatewayRoutePropagation {
results := map[string]*resources.AWSEC2VPNGatewayRoutePropagation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNGatewayRoutePropagation:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VPNGatewayRoutePropagationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VPNGatewayRoutePropagation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AW... | // GetAllAWSEC2VPNGatewayRoutePropagationResources retrieves all AWSEC2VPNGatewayRoutePropagation items from an AWS CloudFormation template | [
"GetAllAWSEC2VPNGatewayRoutePropagationResources",
"retrieves",
"all",
"AWSEC2VPNGatewayRoutePropagation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4219-L4228 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VPNGatewayRoutePropagationWithName | func (t *Template) GetAWSEC2VPNGatewayRoutePropagationWithName(name string) (*resources.AWSEC2VPNGatewayRoutePropagation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNGatewayRoutePropagation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPNGatewayRoutePropagation not found", name)
} | go | func (t *Template) GetAWSEC2VPNGatewayRoutePropagationWithName(name string) (*resources.AWSEC2VPNGatewayRoutePropagation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VPNGatewayRoutePropagation:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VPNGatewayRoutePropagation not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VPNGatewayRoutePropagationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2VPNGatewayRoutePropagation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSEC2VPNGatewayRoutePropagationWithName retrieves all AWSEC2VPNGatewayRoutePropagation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VPNGatewayRoutePropagationWithName",
"retrieves",
"all",
"AWSEC2VPNGatewayRoutePropagation",
"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#L4232-L4240 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VolumeResources | func (t *Template) GetAllAWSEC2VolumeResources() map[string]*resources.AWSEC2Volume {
results := map[string]*resources.AWSEC2Volume{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2Volume:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VolumeResources() map[string]*resources.AWSEC2Volume {
results := map[string]*resources.AWSEC2Volume{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2Volume:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VolumeResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2Volume",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2Volume",
"{",
"}",
"\n",
"fo... | // GetAllAWSEC2VolumeResources retrieves all AWSEC2Volume items from an AWS CloudFormation template | [
"GetAllAWSEC2VolumeResources",
"retrieves",
"all",
"AWSEC2Volume",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4243-L4252 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VolumeWithName | func (t *Template) GetAWSEC2VolumeWithName(name string) (*resources.AWSEC2Volume, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2Volume:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2Volume not found", name)
} | go | func (t *Template) GetAWSEC2VolumeWithName(name string) (*resources.AWSEC2Volume, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2Volume:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2Volume not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VolumeWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2Volume",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"... | // GetAWSEC2VolumeWithName retrieves all AWSEC2Volume items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VolumeWithName",
"retrieves",
"all",
"AWSEC2Volume",
"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#L4256-L4264 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEC2VolumeAttachmentResources | func (t *Template) GetAllAWSEC2VolumeAttachmentResources() map[string]*resources.AWSEC2VolumeAttachment {
results := map[string]*resources.AWSEC2VolumeAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VolumeAttachment:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEC2VolumeAttachmentResources() map[string]*resources.AWSEC2VolumeAttachment {
results := map[string]*resources.AWSEC2VolumeAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEC2VolumeAttachment:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEC2VolumeAttachmentResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VolumeAttachment",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEC2VolumeAttachment... | // GetAllAWSEC2VolumeAttachmentResources retrieves all AWSEC2VolumeAttachment items from an AWS CloudFormation template | [
"GetAllAWSEC2VolumeAttachmentResources",
"retrieves",
"all",
"AWSEC2VolumeAttachment",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4267-L4276 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEC2VolumeAttachmentWithName | func (t *Template) GetAWSEC2VolumeAttachmentWithName(name string) (*resources.AWSEC2VolumeAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VolumeAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VolumeAttachment not found", name)
} | go | func (t *Template) GetAWSEC2VolumeAttachmentWithName(name string) (*resources.AWSEC2VolumeAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEC2VolumeAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEC2VolumeAttachment not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEC2VolumeAttachmentWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEC2VolumeAttachment",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]"... | // GetAWSEC2VolumeAttachmentWithName retrieves all AWSEC2VolumeAttachment items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEC2VolumeAttachmentWithName",
"retrieves",
"all",
"AWSEC2VolumeAttachment",
"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#L4280-L4288 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSECRRepositoryResources | func (t *Template) GetAllAWSECRRepositoryResources() map[string]*resources.AWSECRRepository {
results := map[string]*resources.AWSECRRepository{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSECRRepository:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSECRRepositoryResources() map[string]*resources.AWSECRRepository {
results := map[string]*resources.AWSECRRepository{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSECRRepository:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSECRRepositoryResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSECRRepository",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSECRRepository",
"{",
"}",
... | // GetAllAWSECRRepositoryResources retrieves all AWSECRRepository items from an AWS CloudFormation template | [
"GetAllAWSECRRepositoryResources",
"retrieves",
"all",
"AWSECRRepository",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4291-L4300 | train |
awslabs/goformation | cloudformation/all.go | GetAWSECRRepositoryWithName | func (t *Template) GetAWSECRRepositoryWithName(name string) (*resources.AWSECRRepository, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSECRRepository:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSECRRepository not found", name)
} | go | func (t *Template) GetAWSECRRepositoryWithName(name string) (*resources.AWSECRRepository, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSECRRepository:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSECRRepository not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSECRRepositoryWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSECRRepository",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSECRRepositoryWithName retrieves all AWSECRRepository items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSECRRepositoryWithName",
"retrieves",
"all",
"AWSECRRepository",
"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#L4304-L4312 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSECSClusterResources | func (t *Template) GetAllAWSECSClusterResources() map[string]*resources.AWSECSCluster {
results := map[string]*resources.AWSECSCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSECSCluster:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSECSClusterResources() map[string]*resources.AWSECSCluster {
results := map[string]*resources.AWSECSCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSECSCluster:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSECSClusterResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSECSCluster",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSECSCluster",
"{",
"}",
"\n",
... | // GetAllAWSECSClusterResources retrieves all AWSECSCluster items from an AWS CloudFormation template | [
"GetAllAWSECSClusterResources",
"retrieves",
"all",
"AWSECSCluster",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4315-L4324 | train |
awslabs/goformation | cloudformation/all.go | GetAWSECSClusterWithName | func (t *Template) GetAWSECSClusterWithName(name string) (*resources.AWSECSCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSECSCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSECSCluster not found", name)
} | go | func (t *Template) GetAWSECSClusterWithName(name string) (*resources.AWSECSCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSECSCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSECSCluster not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSECSClusterWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSECSCluster",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
... | // GetAWSECSClusterWithName retrieves all AWSECSCluster items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSECSClusterWithName",
"retrieves",
"all",
"AWSECSCluster",
"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#L4328-L4336 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSECSServiceResources | func (t *Template) GetAllAWSECSServiceResources() map[string]*resources.AWSECSService {
results := map[string]*resources.AWSECSService{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSECSService:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSECSServiceResources() map[string]*resources.AWSECSService {
results := map[string]*resources.AWSECSService{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSECSService:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSECSServiceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSECSService",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSECSService",
"{",
"}",
"\n",
... | // GetAllAWSECSServiceResources retrieves all AWSECSService items from an AWS CloudFormation template | [
"GetAllAWSECSServiceResources",
"retrieves",
"all",
"AWSECSService",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4339-L4348 | train |
awslabs/goformation | cloudformation/all.go | GetAWSECSServiceWithName | func (t *Template) GetAWSECSServiceWithName(name string) (*resources.AWSECSService, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSECSService:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSECSService not found", name)
} | go | func (t *Template) GetAWSECSServiceWithName(name string) (*resources.AWSECSService, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSECSService:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSECSService not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSECSServiceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSECSService",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
... | // GetAWSECSServiceWithName retrieves all AWSECSService items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSECSServiceWithName",
"retrieves",
"all",
"AWSECSService",
"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#L4352-L4360 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSECSTaskDefinitionResources | func (t *Template) GetAllAWSECSTaskDefinitionResources() map[string]*resources.AWSECSTaskDefinition {
results := map[string]*resources.AWSECSTaskDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSECSTaskDefinition:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSECSTaskDefinitionResources() map[string]*resources.AWSECSTaskDefinition {
results := map[string]*resources.AWSECSTaskDefinition{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSECSTaskDefinition:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSECSTaskDefinitionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSECSTaskDefinition",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSECSTaskDefinition",
"... | // GetAllAWSECSTaskDefinitionResources retrieves all AWSECSTaskDefinition items from an AWS CloudFormation template | [
"GetAllAWSECSTaskDefinitionResources",
"retrieves",
"all",
"AWSECSTaskDefinition",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4363-L4372 | train |
awslabs/goformation | cloudformation/all.go | GetAWSECSTaskDefinitionWithName | func (t *Template) GetAWSECSTaskDefinitionWithName(name string) (*resources.AWSECSTaskDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSECSTaskDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSECSTaskDefinition not found", name)
} | go | func (t *Template) GetAWSECSTaskDefinitionWithName(name string) (*resources.AWSECSTaskDefinition, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSECSTaskDefinition:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSECSTaskDefinition not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSECSTaskDefinitionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSECSTaskDefinition",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSECSTaskDefinitionWithName retrieves all AWSECSTaskDefinition items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSECSTaskDefinitionWithName",
"retrieves",
"all",
"AWSECSTaskDefinition",
"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#L4376-L4384 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEFSFileSystemResources | func (t *Template) GetAllAWSEFSFileSystemResources() map[string]*resources.AWSEFSFileSystem {
results := map[string]*resources.AWSEFSFileSystem{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEFSFileSystem:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEFSFileSystemResources() map[string]*resources.AWSEFSFileSystem {
results := map[string]*resources.AWSEFSFileSystem{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEFSFileSystem:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEFSFileSystemResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEFSFileSystem",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEFSFileSystem",
"{",
"}",
... | // GetAllAWSEFSFileSystemResources retrieves all AWSEFSFileSystem items from an AWS CloudFormation template | [
"GetAllAWSEFSFileSystemResources",
"retrieves",
"all",
"AWSEFSFileSystem",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4387-L4396 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEFSFileSystemWithName | func (t *Template) GetAWSEFSFileSystemWithName(name string) (*resources.AWSEFSFileSystem, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEFSFileSystem:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEFSFileSystem not found", name)
} | go | func (t *Template) GetAWSEFSFileSystemWithName(name string) (*resources.AWSEFSFileSystem, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEFSFileSystem:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEFSFileSystem not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEFSFileSystemWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEFSFileSystem",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSEFSFileSystemWithName retrieves all AWSEFSFileSystem items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEFSFileSystemWithName",
"retrieves",
"all",
"AWSEFSFileSystem",
"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#L4400-L4408 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEFSMountTargetResources | func (t *Template) GetAllAWSEFSMountTargetResources() map[string]*resources.AWSEFSMountTarget {
results := map[string]*resources.AWSEFSMountTarget{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEFSMountTarget:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEFSMountTargetResources() map[string]*resources.AWSEFSMountTarget {
results := map[string]*resources.AWSEFSMountTarget{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEFSMountTarget:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEFSMountTargetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEFSMountTarget",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEFSMountTarget",
"{",
"}"... | // GetAllAWSEFSMountTargetResources retrieves all AWSEFSMountTarget items from an AWS CloudFormation template | [
"GetAllAWSEFSMountTargetResources",
"retrieves",
"all",
"AWSEFSMountTarget",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4411-L4420 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEFSMountTargetWithName | func (t *Template) GetAWSEFSMountTargetWithName(name string) (*resources.AWSEFSMountTarget, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEFSMountTarget:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEFSMountTarget not found", name)
} | go | func (t *Template) GetAWSEFSMountTargetWithName(name string) (*resources.AWSEFSMountTarget, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEFSMountTarget:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEFSMountTarget not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEFSMountTargetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEFSMountTarget",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSEFSMountTargetWithName retrieves all AWSEFSMountTarget items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEFSMountTargetWithName",
"retrieves",
"all",
"AWSEFSMountTarget",
"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#L4424-L4432 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEKSClusterResources | func (t *Template) GetAllAWSEKSClusterResources() map[string]*resources.AWSEKSCluster {
results := map[string]*resources.AWSEKSCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEKSCluster:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEKSClusterResources() map[string]*resources.AWSEKSCluster {
results := map[string]*resources.AWSEKSCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEKSCluster:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEKSClusterResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEKSCluster",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEKSCluster",
"{",
"}",
"\n",
... | // GetAllAWSEKSClusterResources retrieves all AWSEKSCluster items from an AWS CloudFormation template | [
"GetAllAWSEKSClusterResources",
"retrieves",
"all",
"AWSEKSCluster",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4435-L4444 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEKSClusterWithName | func (t *Template) GetAWSEKSClusterWithName(name string) (*resources.AWSEKSCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEKSCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEKSCluster not found", name)
} | go | func (t *Template) GetAWSEKSClusterWithName(name string) (*resources.AWSEKSCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEKSCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEKSCluster not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEKSClusterWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEKSCluster",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
... | // GetAWSEKSClusterWithName retrieves all AWSEKSCluster items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEKSClusterWithName",
"retrieves",
"all",
"AWSEKSCluster",
"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#L4448-L4456 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEMRClusterResources | func (t *Template) GetAllAWSEMRClusterResources() map[string]*resources.AWSEMRCluster {
results := map[string]*resources.AWSEMRCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEMRCluster:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEMRClusterResources() map[string]*resources.AWSEMRCluster {
results := map[string]*resources.AWSEMRCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEMRCluster:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEMRClusterResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEMRCluster",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEMRCluster",
"{",
"}",
"\n",
... | // GetAllAWSEMRClusterResources retrieves all AWSEMRCluster items from an AWS CloudFormation template | [
"GetAllAWSEMRClusterResources",
"retrieves",
"all",
"AWSEMRCluster",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4459-L4468 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEMRClusterWithName | func (t *Template) GetAWSEMRClusterWithName(name string) (*resources.AWSEMRCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEMRCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEMRCluster not found", name)
} | go | func (t *Template) GetAWSEMRClusterWithName(name string) (*resources.AWSEMRCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEMRCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEMRCluster not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEMRClusterWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEMRCluster",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
... | // GetAWSEMRClusterWithName retrieves all AWSEMRCluster items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEMRClusterWithName",
"retrieves",
"all",
"AWSEMRCluster",
"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#L4472-L4480 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEMRInstanceFleetConfigResources | func (t *Template) GetAllAWSEMRInstanceFleetConfigResources() map[string]*resources.AWSEMRInstanceFleetConfig {
results := map[string]*resources.AWSEMRInstanceFleetConfig{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEMRInstanceFleetConfig:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEMRInstanceFleetConfigResources() map[string]*resources.AWSEMRInstanceFleetConfig {
results := map[string]*resources.AWSEMRInstanceFleetConfig{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEMRInstanceFleetConfig:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEMRInstanceFleetConfigResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEMRInstanceFleetConfig",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEMRInstanceFl... | // GetAllAWSEMRInstanceFleetConfigResources retrieves all AWSEMRInstanceFleetConfig items from an AWS CloudFormation template | [
"GetAllAWSEMRInstanceFleetConfigResources",
"retrieves",
"all",
"AWSEMRInstanceFleetConfig",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4483-L4492 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEMRInstanceFleetConfigWithName | func (t *Template) GetAWSEMRInstanceFleetConfigWithName(name string) (*resources.AWSEMRInstanceFleetConfig, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEMRInstanceFleetConfig:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEMRInstanceFleetConfig not found", name)
} | go | func (t *Template) GetAWSEMRInstanceFleetConfigWithName(name string) (*resources.AWSEMRInstanceFleetConfig, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEMRInstanceFleetConfig:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEMRInstanceFleetConfig not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEMRInstanceFleetConfigWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEMRInstanceFleetConfig",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",... | // GetAWSEMRInstanceFleetConfigWithName retrieves all AWSEMRInstanceFleetConfig items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEMRInstanceFleetConfigWithName",
"retrieves",
"all",
"AWSEMRInstanceFleetConfig",
"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#L4496-L4504 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEMRInstanceGroupConfigResources | func (t *Template) GetAllAWSEMRInstanceGroupConfigResources() map[string]*resources.AWSEMRInstanceGroupConfig {
results := map[string]*resources.AWSEMRInstanceGroupConfig{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEMRInstanceGroupConfig:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEMRInstanceGroupConfigResources() map[string]*resources.AWSEMRInstanceGroupConfig {
results := map[string]*resources.AWSEMRInstanceGroupConfig{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEMRInstanceGroupConfig:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEMRInstanceGroupConfigResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEMRInstanceGroupConfig",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEMRInstanceGr... | // GetAllAWSEMRInstanceGroupConfigResources retrieves all AWSEMRInstanceGroupConfig items from an AWS CloudFormation template | [
"GetAllAWSEMRInstanceGroupConfigResources",
"retrieves",
"all",
"AWSEMRInstanceGroupConfig",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4507-L4516 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEMRInstanceGroupConfigWithName | func (t *Template) GetAWSEMRInstanceGroupConfigWithName(name string) (*resources.AWSEMRInstanceGroupConfig, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEMRInstanceGroupConfig:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEMRInstanceGroupConfig not found", name)
} | go | func (t *Template) GetAWSEMRInstanceGroupConfigWithName(name string) (*resources.AWSEMRInstanceGroupConfig, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEMRInstanceGroupConfig:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEMRInstanceGroupConfig not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEMRInstanceGroupConfigWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEMRInstanceGroupConfig",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",... | // GetAWSEMRInstanceGroupConfigWithName retrieves all AWSEMRInstanceGroupConfig items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEMRInstanceGroupConfigWithName",
"retrieves",
"all",
"AWSEMRInstanceGroupConfig",
"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#L4520-L4528 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEMRSecurityConfigurationResources | func (t *Template) GetAllAWSEMRSecurityConfigurationResources() map[string]*resources.AWSEMRSecurityConfiguration {
results := map[string]*resources.AWSEMRSecurityConfiguration{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEMRSecurityConfiguration:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEMRSecurityConfigurationResources() map[string]*resources.AWSEMRSecurityConfiguration {
results := map[string]*resources.AWSEMRSecurityConfiguration{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEMRSecurityConfiguration:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEMRSecurityConfigurationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEMRSecurityConfiguration",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEMRSecuri... | // GetAllAWSEMRSecurityConfigurationResources retrieves all AWSEMRSecurityConfiguration items from an AWS CloudFormation template | [
"GetAllAWSEMRSecurityConfigurationResources",
"retrieves",
"all",
"AWSEMRSecurityConfiguration",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4531-L4540 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEMRSecurityConfigurationWithName | func (t *Template) GetAWSEMRSecurityConfigurationWithName(name string) (*resources.AWSEMRSecurityConfiguration, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEMRSecurityConfiguration:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEMRSecurityConfiguration not found", name)
} | go | func (t *Template) GetAWSEMRSecurityConfigurationWithName(name string) (*resources.AWSEMRSecurityConfiguration, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEMRSecurityConfiguration:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEMRSecurityConfiguration not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEMRSecurityConfigurationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEMRSecurityConfiguration",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"na... | // GetAWSEMRSecurityConfigurationWithName retrieves all AWSEMRSecurityConfiguration items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEMRSecurityConfigurationWithName",
"retrieves",
"all",
"AWSEMRSecurityConfiguration",
"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#L4544-L4552 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSEMRStepResources | func (t *Template) GetAllAWSEMRStepResources() map[string]*resources.AWSEMRStep {
results := map[string]*resources.AWSEMRStep{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEMRStep:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSEMRStepResources() map[string]*resources.AWSEMRStep {
results := map[string]*resources.AWSEMRStep{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSEMRStep:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSEMRStepResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEMRStep",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEMRStep",
"{",
"}",
"\n",
"for",
... | // GetAllAWSEMRStepResources retrieves all AWSEMRStep items from an AWS CloudFormation template | [
"GetAllAWSEMRStepResources",
"retrieves",
"all",
"AWSEMRStep",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4555-L4564 | train |
awslabs/goformation | cloudformation/all.go | GetAWSEMRStepWithName | func (t *Template) GetAWSEMRStepWithName(name string) (*resources.AWSEMRStep, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEMRStep:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEMRStep not found", name)
} | go | func (t *Template) GetAWSEMRStepWithName(name string) (*resources.AWSEMRStep, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSEMRStep:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSEMRStep not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSEMRStepWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSEMRStep",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
... | // GetAWSEMRStepWithName retrieves all AWSEMRStep items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSEMRStepWithName",
"retrieves",
"all",
"AWSEMRStep",
"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#L4568-L4576 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElastiCacheCacheClusterResources | func (t *Template) GetAllAWSElastiCacheCacheClusterResources() map[string]*resources.AWSElastiCacheCacheCluster {
results := map[string]*resources.AWSElastiCacheCacheCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheCacheCluster:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElastiCacheCacheClusterResources() map[string]*resources.AWSElastiCacheCacheCluster {
results := map[string]*resources.AWSElastiCacheCacheCluster{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheCacheCluster:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElastiCacheCacheClusterResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElastiCacheCacheCluster",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElastiCache... | // GetAllAWSElastiCacheCacheClusterResources retrieves all AWSElastiCacheCacheCluster items from an AWS CloudFormation template | [
"GetAllAWSElastiCacheCacheClusterResources",
"retrieves",
"all",
"AWSElastiCacheCacheCluster",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4579-L4588 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElastiCacheCacheClusterWithName | func (t *Template) GetAWSElastiCacheCacheClusterWithName(name string) (*resources.AWSElastiCacheCacheCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheCacheCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElastiCacheCacheCluster not found", name)
} | go | func (t *Template) GetAWSElastiCacheCacheClusterWithName(name string) (*resources.AWSElastiCacheCacheCluster, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheCacheCluster:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElastiCacheCacheCluster not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElastiCacheCacheClusterWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElastiCacheCacheCluster",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name... | // GetAWSElastiCacheCacheClusterWithName retrieves all AWSElastiCacheCacheCluster items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElastiCacheCacheClusterWithName",
"retrieves",
"all",
"AWSElastiCacheCacheCluster",
"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#L4592-L4600 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElastiCacheParameterGroupResources | func (t *Template) GetAllAWSElastiCacheParameterGroupResources() map[string]*resources.AWSElastiCacheParameterGroup {
results := map[string]*resources.AWSElastiCacheParameterGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheParameterGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElastiCacheParameterGroupResources() map[string]*resources.AWSElastiCacheParameterGroup {
results := map[string]*resources.AWSElastiCacheParameterGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheParameterGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElastiCacheParameterGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElastiCacheParameterGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElastiC... | // GetAllAWSElastiCacheParameterGroupResources retrieves all AWSElastiCacheParameterGroup items from an AWS CloudFormation template | [
"GetAllAWSElastiCacheParameterGroupResources",
"retrieves",
"all",
"AWSElastiCacheParameterGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4603-L4612 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElastiCacheParameterGroupWithName | func (t *Template) GetAWSElastiCacheParameterGroupWithName(name string) (*resources.AWSElastiCacheParameterGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheParameterGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElastiCacheParameterGroup not found", name)
} | go | func (t *Template) GetAWSElastiCacheParameterGroupWithName(name string) (*resources.AWSElastiCacheParameterGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheParameterGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElastiCacheParameterGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElastiCacheParameterGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElastiCacheParameterGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"... | // GetAWSElastiCacheParameterGroupWithName retrieves all AWSElastiCacheParameterGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElastiCacheParameterGroupWithName",
"retrieves",
"all",
"AWSElastiCacheParameterGroup",
"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#L4616-L4624 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElastiCacheReplicationGroupResources | func (t *Template) GetAllAWSElastiCacheReplicationGroupResources() map[string]*resources.AWSElastiCacheReplicationGroup {
results := map[string]*resources.AWSElastiCacheReplicationGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheReplicationGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElastiCacheReplicationGroupResources() map[string]*resources.AWSElastiCacheReplicationGroup {
results := map[string]*resources.AWSElastiCacheReplicationGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheReplicationGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElastiCacheReplicationGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElastiCacheReplicationGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEla... | // GetAllAWSElastiCacheReplicationGroupResources retrieves all AWSElastiCacheReplicationGroup items from an AWS CloudFormation template | [
"GetAllAWSElastiCacheReplicationGroupResources",
"retrieves",
"all",
"AWSElastiCacheReplicationGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4627-L4636 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElastiCacheReplicationGroupWithName | func (t *Template) GetAWSElastiCacheReplicationGroupWithName(name string) (*resources.AWSElastiCacheReplicationGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheReplicationGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElastiCacheReplicationGroup not found", name)
} | go | func (t *Template) GetAWSElastiCacheReplicationGroupWithName(name string) (*resources.AWSElastiCacheReplicationGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheReplicationGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElastiCacheReplicationGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElastiCacheReplicationGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElastiCacheReplicationGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",... | // GetAWSElastiCacheReplicationGroupWithName retrieves all AWSElastiCacheReplicationGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElastiCacheReplicationGroupWithName",
"retrieves",
"all",
"AWSElastiCacheReplicationGroup",
"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#L4640-L4648 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElastiCacheSecurityGroupResources | func (t *Template) GetAllAWSElastiCacheSecurityGroupResources() map[string]*resources.AWSElastiCacheSecurityGroup {
results := map[string]*resources.AWSElastiCacheSecurityGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheSecurityGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElastiCacheSecurityGroupResources() map[string]*resources.AWSElastiCacheSecurityGroup {
results := map[string]*resources.AWSElastiCacheSecurityGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheSecurityGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElastiCacheSecurityGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElastiCacheSecurityGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElastiCac... | // GetAllAWSElastiCacheSecurityGroupResources retrieves all AWSElastiCacheSecurityGroup items from an AWS CloudFormation template | [
"GetAllAWSElastiCacheSecurityGroupResources",
"retrieves",
"all",
"AWSElastiCacheSecurityGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4651-L4660 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElastiCacheSecurityGroupWithName | func (t *Template) GetAWSElastiCacheSecurityGroupWithName(name string) (*resources.AWSElastiCacheSecurityGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheSecurityGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElastiCacheSecurityGroup not found", name)
} | go | func (t *Template) GetAWSElastiCacheSecurityGroupWithName(name string) (*resources.AWSElastiCacheSecurityGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheSecurityGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElastiCacheSecurityGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElastiCacheSecurityGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElastiCacheSecurityGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"na... | // GetAWSElastiCacheSecurityGroupWithName retrieves all AWSElastiCacheSecurityGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElastiCacheSecurityGroupWithName",
"retrieves",
"all",
"AWSElastiCacheSecurityGroup",
"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#L4664-L4672 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElastiCacheSecurityGroupIngressResources | func (t *Template) GetAllAWSElastiCacheSecurityGroupIngressResources() map[string]*resources.AWSElastiCacheSecurityGroupIngress {
results := map[string]*resources.AWSElastiCacheSecurityGroupIngress{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheSecurityGroupIngress:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElastiCacheSecurityGroupIngressResources() map[string]*resources.AWSElastiCacheSecurityGroupIngress {
results := map[string]*resources.AWSElastiCacheSecurityGroupIngress{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheSecurityGroupIngress:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElastiCacheSecurityGroupIngressResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElastiCacheSecurityGroupIngress",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
... | // GetAllAWSElastiCacheSecurityGroupIngressResources retrieves all AWSElastiCacheSecurityGroupIngress items from an AWS CloudFormation template | [
"GetAllAWSElastiCacheSecurityGroupIngressResources",
"retrieves",
"all",
"AWSElastiCacheSecurityGroupIngress",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4675-L4684 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElastiCacheSecurityGroupIngressWithName | func (t *Template) GetAWSElastiCacheSecurityGroupIngressWithName(name string) (*resources.AWSElastiCacheSecurityGroupIngress, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheSecurityGroupIngress:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElastiCacheSecurityGroupIngress not found", name)
} | go | func (t *Template) GetAWSElastiCacheSecurityGroupIngressWithName(name string) (*resources.AWSElastiCacheSecurityGroupIngress, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheSecurityGroupIngress:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElastiCacheSecurityGroupIngress not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElastiCacheSecurityGroupIngressWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElastiCacheSecurityGroupIngress",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources"... | // GetAWSElastiCacheSecurityGroupIngressWithName retrieves all AWSElastiCacheSecurityGroupIngress items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElastiCacheSecurityGroupIngressWithName",
"retrieves",
"all",
"AWSElastiCacheSecurityGroupIngress",
"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#L4688-L4696 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElastiCacheSubnetGroupResources | func (t *Template) GetAllAWSElastiCacheSubnetGroupResources() map[string]*resources.AWSElastiCacheSubnetGroup {
results := map[string]*resources.AWSElastiCacheSubnetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheSubnetGroup:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElastiCacheSubnetGroupResources() map[string]*resources.AWSElastiCacheSubnetGroup {
results := map[string]*resources.AWSElastiCacheSubnetGroup{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheSubnetGroup:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElastiCacheSubnetGroupResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElastiCacheSubnetGroup",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElastiCacheSu... | // GetAllAWSElastiCacheSubnetGroupResources retrieves all AWSElastiCacheSubnetGroup items from an AWS CloudFormation template | [
"GetAllAWSElastiCacheSubnetGroupResources",
"retrieves",
"all",
"AWSElastiCacheSubnetGroup",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4699-L4708 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElastiCacheSubnetGroupWithName | func (t *Template) GetAWSElastiCacheSubnetGroupWithName(name string) (*resources.AWSElastiCacheSubnetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheSubnetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElastiCacheSubnetGroup not found", name)
} | go | func (t *Template) GetAWSElastiCacheSubnetGroupWithName(name string) (*resources.AWSElastiCacheSubnetGroup, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElastiCacheSubnetGroup:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElastiCacheSubnetGroup not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElastiCacheSubnetGroupWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElastiCacheSubnetGroup",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",... | // GetAWSElastiCacheSubnetGroupWithName retrieves all AWSElastiCacheSubnetGroup items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElastiCacheSubnetGroupWithName",
"retrieves",
"all",
"AWSElastiCacheSubnetGroup",
"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#L4712-L4720 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElasticBeanstalkApplicationResources | func (t *Template) GetAllAWSElasticBeanstalkApplicationResources() map[string]*resources.AWSElasticBeanstalkApplication {
results := map[string]*resources.AWSElasticBeanstalkApplication{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkApplication:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElasticBeanstalkApplicationResources() map[string]*resources.AWSElasticBeanstalkApplication {
results := map[string]*resources.AWSElasticBeanstalkApplication{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkApplication:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElasticBeanstalkApplicationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElasticBeanstalkApplication",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEla... | // GetAllAWSElasticBeanstalkApplicationResources retrieves all AWSElasticBeanstalkApplication items from an AWS CloudFormation template | [
"GetAllAWSElasticBeanstalkApplicationResources",
"retrieves",
"all",
"AWSElasticBeanstalkApplication",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4723-L4732 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElasticBeanstalkApplicationWithName | func (t *Template) GetAWSElasticBeanstalkApplicationWithName(name string) (*resources.AWSElasticBeanstalkApplication, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkApplication:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticBeanstalkApplication not found", name)
} | go | func (t *Template) GetAWSElasticBeanstalkApplicationWithName(name string) (*resources.AWSElasticBeanstalkApplication, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkApplication:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticBeanstalkApplication not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElasticBeanstalkApplicationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElasticBeanstalkApplication",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",... | // GetAWSElasticBeanstalkApplicationWithName retrieves all AWSElasticBeanstalkApplication items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElasticBeanstalkApplicationWithName",
"retrieves",
"all",
"AWSElasticBeanstalkApplication",
"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#L4736-L4744 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElasticBeanstalkApplicationVersionResources | func (t *Template) GetAllAWSElasticBeanstalkApplicationVersionResources() map[string]*resources.AWSElasticBeanstalkApplicationVersion {
results := map[string]*resources.AWSElasticBeanstalkApplicationVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkApplicationVersion:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElasticBeanstalkApplicationVersionResources() map[string]*resources.AWSElasticBeanstalkApplicationVersion {
results := map[string]*resources.AWSElasticBeanstalkApplicationVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkApplicationVersion:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElasticBeanstalkApplicationVersionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElasticBeanstalkApplicationVersion",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
... | // GetAllAWSElasticBeanstalkApplicationVersionResources retrieves all AWSElasticBeanstalkApplicationVersion items from an AWS CloudFormation template | [
"GetAllAWSElasticBeanstalkApplicationVersionResources",
"retrieves",
"all",
"AWSElasticBeanstalkApplicationVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4747-L4756 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElasticBeanstalkApplicationVersionWithName | func (t *Template) GetAWSElasticBeanstalkApplicationVersionWithName(name string) (*resources.AWSElasticBeanstalkApplicationVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkApplicationVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticBeanstalkApplicationVersion not found", name)
} | go | func (t *Template) GetAWSElasticBeanstalkApplicationVersionWithName(name string) (*resources.AWSElasticBeanstalkApplicationVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkApplicationVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticBeanstalkApplicationVersion not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElasticBeanstalkApplicationVersionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElasticBeanstalkApplicationVersion",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Reso... | // GetAWSElasticBeanstalkApplicationVersionWithName retrieves all AWSElasticBeanstalkApplicationVersion items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElasticBeanstalkApplicationVersionWithName",
"retrieves",
"all",
"AWSElasticBeanstalkApplicationVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4760-L4768 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElasticBeanstalkConfigurationTemplateResources | func (t *Template) GetAllAWSElasticBeanstalkConfigurationTemplateResources() map[string]*resources.AWSElasticBeanstalkConfigurationTemplate {
results := map[string]*resources.AWSElasticBeanstalkConfigurationTemplate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkConfigurationTemplate:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElasticBeanstalkConfigurationTemplateResources() map[string]*resources.AWSElasticBeanstalkConfigurationTemplate {
results := map[string]*resources.AWSElasticBeanstalkConfigurationTemplate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkConfigurationTemplate:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElasticBeanstalkConfigurationTemplateResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElasticBeanstalkConfigurationTemplate",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resource... | // GetAllAWSElasticBeanstalkConfigurationTemplateResources retrieves all AWSElasticBeanstalkConfigurationTemplate items from an AWS CloudFormation template | [
"GetAllAWSElasticBeanstalkConfigurationTemplateResources",
"retrieves",
"all",
"AWSElasticBeanstalkConfigurationTemplate",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4771-L4780 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElasticBeanstalkConfigurationTemplateWithName | func (t *Template) GetAWSElasticBeanstalkConfigurationTemplateWithName(name string) (*resources.AWSElasticBeanstalkConfigurationTemplate, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkConfigurationTemplate:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticBeanstalkConfigurationTemplate not found", name)
} | go | func (t *Template) GetAWSElasticBeanstalkConfigurationTemplateWithName(name string) (*resources.AWSElasticBeanstalkConfigurationTemplate, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkConfigurationTemplate:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticBeanstalkConfigurationTemplate not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElasticBeanstalkConfigurationTemplateWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElasticBeanstalkConfigurationTemplate",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
... | // GetAWSElasticBeanstalkConfigurationTemplateWithName retrieves all AWSElasticBeanstalkConfigurationTemplate items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElasticBeanstalkConfigurationTemplateWithName",
"retrieves",
"all",
"AWSElasticBeanstalkConfigurationTemplate",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4784-L4792 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElasticBeanstalkEnvironmentResources | func (t *Template) GetAllAWSElasticBeanstalkEnvironmentResources() map[string]*resources.AWSElasticBeanstalkEnvironment {
results := map[string]*resources.AWSElasticBeanstalkEnvironment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkEnvironment:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElasticBeanstalkEnvironmentResources() map[string]*resources.AWSElasticBeanstalkEnvironment {
results := map[string]*resources.AWSElasticBeanstalkEnvironment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkEnvironment:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElasticBeanstalkEnvironmentResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElasticBeanstalkEnvironment",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSEla... | // GetAllAWSElasticBeanstalkEnvironmentResources retrieves all AWSElasticBeanstalkEnvironment items from an AWS CloudFormation template | [
"GetAllAWSElasticBeanstalkEnvironmentResources",
"retrieves",
"all",
"AWSElasticBeanstalkEnvironment",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4795-L4804 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElasticBeanstalkEnvironmentWithName | func (t *Template) GetAWSElasticBeanstalkEnvironmentWithName(name string) (*resources.AWSElasticBeanstalkEnvironment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkEnvironment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticBeanstalkEnvironment not found", name)
} | go | func (t *Template) GetAWSElasticBeanstalkEnvironmentWithName(name string) (*resources.AWSElasticBeanstalkEnvironment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticBeanstalkEnvironment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticBeanstalkEnvironment not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElasticBeanstalkEnvironmentWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElasticBeanstalkEnvironment",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",... | // GetAWSElasticBeanstalkEnvironmentWithName retrieves all AWSElasticBeanstalkEnvironment items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElasticBeanstalkEnvironmentWithName",
"retrieves",
"all",
"AWSElasticBeanstalkEnvironment",
"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#L4808-L4816 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElasticLoadBalancingLoadBalancerResources | func (t *Template) GetAllAWSElasticLoadBalancingLoadBalancerResources() map[string]*resources.AWSElasticLoadBalancingLoadBalancer {
results := map[string]*resources.AWSElasticLoadBalancingLoadBalancer{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingLoadBalancer:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElasticLoadBalancingLoadBalancerResources() map[string]*resources.AWSElasticLoadBalancingLoadBalancer {
results := map[string]*resources.AWSElasticLoadBalancingLoadBalancer{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingLoadBalancer:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElasticLoadBalancingLoadBalancerResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElasticLoadBalancingLoadBalancer",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",... | // GetAllAWSElasticLoadBalancingLoadBalancerResources retrieves all AWSElasticLoadBalancingLoadBalancer items from an AWS CloudFormation template | [
"GetAllAWSElasticLoadBalancingLoadBalancerResources",
"retrieves",
"all",
"AWSElasticLoadBalancingLoadBalancer",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4819-L4828 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElasticLoadBalancingLoadBalancerWithName | func (t *Template) GetAWSElasticLoadBalancingLoadBalancerWithName(name string) (*resources.AWSElasticLoadBalancingLoadBalancer, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingLoadBalancer:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticLoadBalancingLoadBalancer not found", name)
} | go | func (t *Template) GetAWSElasticLoadBalancingLoadBalancerWithName(name string) (*resources.AWSElasticLoadBalancingLoadBalancer, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingLoadBalancer:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticLoadBalancingLoadBalancer not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElasticLoadBalancingLoadBalancerWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElasticLoadBalancingLoadBalancer",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resource... | // GetAWSElasticLoadBalancingLoadBalancerWithName retrieves all AWSElasticLoadBalancingLoadBalancer items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElasticLoadBalancingLoadBalancerWithName",
"retrieves",
"all",
"AWSElasticLoadBalancingLoadBalancer",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
"n... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4832-L4840 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElasticLoadBalancingV2ListenerResources | func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerResources() map[string]*resources.AWSElasticLoadBalancingV2Listener {
results := map[string]*resources.AWSElasticLoadBalancingV2Listener{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2Listener:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerResources() map[string]*resources.AWSElasticLoadBalancingV2Listener {
results := map[string]*resources.AWSElasticLoadBalancingV2Listener{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2Listener:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElasticLoadBalancingV2ListenerResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElasticLoadBalancingV2Listener",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"... | // GetAllAWSElasticLoadBalancingV2ListenerResources retrieves all AWSElasticLoadBalancingV2Listener items from an AWS CloudFormation template | [
"GetAllAWSElasticLoadBalancingV2ListenerResources",
"retrieves",
"all",
"AWSElasticLoadBalancingV2Listener",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4843-L4852 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElasticLoadBalancingV2ListenerWithName | func (t *Template) GetAWSElasticLoadBalancingV2ListenerWithName(name string) (*resources.AWSElasticLoadBalancingV2Listener, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2Listener:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticLoadBalancingV2Listener not found", name)
} | go | func (t *Template) GetAWSElasticLoadBalancingV2ListenerWithName(name string) (*resources.AWSElasticLoadBalancingV2Listener, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2Listener:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticLoadBalancingV2Listener not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElasticLoadBalancingV2ListenerWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElasticLoadBalancingV2Listener",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSElasticLoadBalancingV2ListenerWithName retrieves all AWSElasticLoadBalancingV2Listener items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElasticLoadBalancingV2ListenerWithName",
"retrieves",
"all",
"AWSElasticLoadBalancingV2Listener",
"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#L4856-L4864 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElasticLoadBalancingV2ListenerCertificateResources | func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerCertificateResources() map[string]*resources.AWSElasticLoadBalancingV2ListenerCertificate {
results := map[string]*resources.AWSElasticLoadBalancingV2ListenerCertificate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2ListenerCertificate:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerCertificateResources() map[string]*resources.AWSElasticLoadBalancingV2ListenerCertificate {
results := map[string]*resources.AWSElasticLoadBalancingV2ListenerCertificate{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2ListenerCertificate:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElasticLoadBalancingV2ListenerCertificateResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElasticLoadBalancingV2ListenerCertificate",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"... | // GetAllAWSElasticLoadBalancingV2ListenerCertificateResources retrieves all AWSElasticLoadBalancingV2ListenerCertificate items from an AWS CloudFormation template | [
"GetAllAWSElasticLoadBalancingV2ListenerCertificateResources",
"retrieves",
"all",
"AWSElasticLoadBalancingV2ListenerCertificate",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4867-L4876 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElasticLoadBalancingV2ListenerCertificateWithName | func (t *Template) GetAWSElasticLoadBalancingV2ListenerCertificateWithName(name string) (*resources.AWSElasticLoadBalancingV2ListenerCertificate, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2ListenerCertificate:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticLoadBalancingV2ListenerCertificate not found", name)
} | go | func (t *Template) GetAWSElasticLoadBalancingV2ListenerCertificateWithName(name string) (*resources.AWSElasticLoadBalancingV2ListenerCertificate, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2ListenerCertificate:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticLoadBalancingV2ListenerCertificate not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElasticLoadBalancingV2ListenerCertificateWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElasticLoadBalancingV2ListenerCertificate",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
... | // GetAWSElasticLoadBalancingV2ListenerCertificateWithName retrieves all AWSElasticLoadBalancingV2ListenerCertificate items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElasticLoadBalancingV2ListenerCertificateWithName",
"retrieves",
"all",
"AWSElasticLoadBalancingV2ListenerCertificate",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"er... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4880-L4888 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElasticLoadBalancingV2ListenerRuleResources | func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerRuleResources() map[string]*resources.AWSElasticLoadBalancingV2ListenerRule {
results := map[string]*resources.AWSElasticLoadBalancingV2ListenerRule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2ListenerRule:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElasticLoadBalancingV2ListenerRuleResources() map[string]*resources.AWSElasticLoadBalancingV2ListenerRule {
results := map[string]*resources.AWSElasticLoadBalancingV2ListenerRule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2ListenerRule:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElasticLoadBalancingV2ListenerRuleResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElasticLoadBalancingV2ListenerRule",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
... | // GetAllAWSElasticLoadBalancingV2ListenerRuleResources retrieves all AWSElasticLoadBalancingV2ListenerRule items from an AWS CloudFormation template | [
"GetAllAWSElasticLoadBalancingV2ListenerRuleResources",
"retrieves",
"all",
"AWSElasticLoadBalancingV2ListenerRule",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4891-L4900 | train |
awslabs/goformation | cloudformation/all.go | GetAWSElasticLoadBalancingV2ListenerRuleWithName | func (t *Template) GetAWSElasticLoadBalancingV2ListenerRuleWithName(name string) (*resources.AWSElasticLoadBalancingV2ListenerRule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2ListenerRule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticLoadBalancingV2ListenerRule not found", name)
} | go | func (t *Template) GetAWSElasticLoadBalancingV2ListenerRuleWithName(name string) (*resources.AWSElasticLoadBalancingV2ListenerRule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2ListenerRule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSElasticLoadBalancingV2ListenerRule not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSElasticLoadBalancingV2ListenerRuleWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSElasticLoadBalancingV2ListenerRule",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Reso... | // GetAWSElasticLoadBalancingV2ListenerRuleWithName retrieves all AWSElasticLoadBalancingV2ListenerRule items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSElasticLoadBalancingV2ListenerRuleWithName",
"retrieves",
"all",
"AWSElasticLoadBalancingV2ListenerRule",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"error",
"if",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4904-L4912 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSElasticLoadBalancingV2LoadBalancerResources | func (t *Template) GetAllAWSElasticLoadBalancingV2LoadBalancerResources() map[string]*resources.AWSElasticLoadBalancingV2LoadBalancer {
results := map[string]*resources.AWSElasticLoadBalancingV2LoadBalancer{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2LoadBalancer:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSElasticLoadBalancingV2LoadBalancerResources() map[string]*resources.AWSElasticLoadBalancingV2LoadBalancer {
results := map[string]*resources.AWSElasticLoadBalancingV2LoadBalancer{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSElasticLoadBalancingV2LoadBalancer:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSElasticLoadBalancingV2LoadBalancerResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSElasticLoadBalancingV2LoadBalancer",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
... | // GetAllAWSElasticLoadBalancingV2LoadBalancerResources retrieves all AWSElasticLoadBalancingV2LoadBalancer items from an AWS CloudFormation template | [
"GetAllAWSElasticLoadBalancingV2LoadBalancerResources",
"retrieves",
"all",
"AWSElasticLoadBalancingV2LoadBalancer",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L4915-L4924 | train |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.