repo stringlengths 5 54 | path stringlengths 4 155 | func_name stringlengths 1 118 | original_string stringlengths 52 85.5k | language stringclasses 1
value | code stringlengths 52 85.5k | code_tokens list | docstring stringlengths 6 2.61k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 85 252 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
awslabs/goformation | cloudformation/all.go | GetAWSServerlessFunctionWithName | func (t *Template) GetAWSServerlessFunctionWithName(name string) (*resources.AWSServerlessFunction, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServerlessFunction:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServerless... | go | func (t *Template) GetAWSServerlessFunctionWithName(name string) (*resources.AWSServerlessFunction, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServerlessFunction:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServerless... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServerlessFunctionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServerlessFunction",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSServerlessFunctionWithName retrieves all AWSServerlessFunction items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServerlessFunctionWithName",
"retrieves",
"all",
"AWSServerlessFunction",
"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#L8792-L8800 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServerlessLayerVersionResources | func (t *Template) GetAllAWSServerlessLayerVersionResources() map[string]*resources.AWSServerlessLayerVersion {
results := map[string]*resources.AWSServerlessLayerVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServerlessLayerVersion:
results[name] = re... | go | func (t *Template) GetAllAWSServerlessLayerVersionResources() map[string]*resources.AWSServerlessLayerVersion {
results := map[string]*resources.AWSServerlessLayerVersion{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServerlessLayerVersion:
results[name] = re... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServerlessLayerVersionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServerlessLayerVersion",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServerlessLay... | // GetAllAWSServerlessLayerVersionResources retrieves all AWSServerlessLayerVersion items from an AWS CloudFormation template | [
"GetAllAWSServerlessLayerVersionResources",
"retrieves",
"all",
"AWSServerlessLayerVersion",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8803-L8812 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServerlessLayerVersionWithName | func (t *Template) GetAWSServerlessLayerVersionWithName(name string) (*resources.AWSServerlessLayerVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServerlessLayerVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type A... | go | func (t *Template) GetAWSServerlessLayerVersionWithName(name string) (*resources.AWSServerlessLayerVersion, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServerlessLayerVersion:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type A... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServerlessLayerVersionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServerlessLayerVersion",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",... | // GetAWSServerlessLayerVersionWithName retrieves all AWSServerlessLayerVersion items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServerlessLayerVersionWithName",
"retrieves",
"all",
"AWSServerlessLayerVersion",
"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#L8816-L8824 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServerlessSimpleTableResources | func (t *Template) GetAllAWSServerlessSimpleTableResources() map[string]*resources.AWSServerlessSimpleTable {
results := map[string]*resources.AWSServerlessSimpleTable{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServerlessSimpleTable:
results[name] = resour... | go | func (t *Template) GetAllAWSServerlessSimpleTableResources() map[string]*resources.AWSServerlessSimpleTable {
results := map[string]*resources.AWSServerlessSimpleTable{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServerlessSimpleTable:
results[name] = resour... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServerlessSimpleTableResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServerlessSimpleTable",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServerlessSimpl... | // GetAllAWSServerlessSimpleTableResources retrieves all AWSServerlessSimpleTable items from an AWS CloudFormation template | [
"GetAllAWSServerlessSimpleTableResources",
"retrieves",
"all",
"AWSServerlessSimpleTable",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8827-L8836 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServerlessSimpleTableWithName | func (t *Template) GetAWSServerlessSimpleTableWithName(name string) (*resources.AWSServerlessSimpleTable, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServerlessSimpleTable:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSS... | go | func (t *Template) GetAWSServerlessSimpleTableWithName(name string) (*resources.AWSServerlessSimpleTable, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServerlessSimpleTable:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSS... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServerlessSimpleTableWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServerlessSimpleTable",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
... | // GetAWSServerlessSimpleTableWithName retrieves all AWSServerlessSimpleTable items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServerlessSimpleTableWithName",
"retrieves",
"all",
"AWSServerlessSimpleTable",
"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#L8840-L8848 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceCatalogAcceptedPortfolioShareResources | func (t *Template) GetAllAWSServiceCatalogAcceptedPortfolioShareResources() map[string]*resources.AWSServiceCatalogAcceptedPortfolioShare {
results := map[string]*resources.AWSServiceCatalogAcceptedPortfolioShare{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSer... | go | func (t *Template) GetAllAWSServiceCatalogAcceptedPortfolioShareResources() map[string]*resources.AWSServiceCatalogAcceptedPortfolioShare {
results := map[string]*resources.AWSServiceCatalogAcceptedPortfolioShare{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSer... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceCatalogAcceptedPortfolioShareResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCatalogAcceptedPortfolioShare",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources"... | // GetAllAWSServiceCatalogAcceptedPortfolioShareResources retrieves all AWSServiceCatalogAcceptedPortfolioShare items from an AWS CloudFormation template | [
"GetAllAWSServiceCatalogAcceptedPortfolioShareResources",
"retrieves",
"all",
"AWSServiceCatalogAcceptedPortfolioShare",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8851-L8860 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceCatalogAcceptedPortfolioShareWithName | func (t *Template) GetAWSServiceCatalogAcceptedPortfolioShareWithName(name string) (*resources.AWSServiceCatalogAcceptedPortfolioShare, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogAcceptedPortfolioShare:
return resource, nil
}
}
ret... | go | func (t *Template) GetAWSServiceCatalogAcceptedPortfolioShareWithName(name string) (*resources.AWSServiceCatalogAcceptedPortfolioShare, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogAcceptedPortfolioShare:
return resource, nil
}
}
ret... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceCatalogAcceptedPortfolioShareWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceCatalogAcceptedPortfolioShare",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"... | // GetAWSServiceCatalogAcceptedPortfolioShareWithName retrieves all AWSServiceCatalogAcceptedPortfolioShare items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceCatalogAcceptedPortfolioShareWithName",
"retrieves",
"all",
"AWSServiceCatalogAcceptedPortfolioShare",
"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#L8864-L8872 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceCatalogCloudFormationProductResources | func (t *Template) GetAllAWSServiceCatalogCloudFormationProductResources() map[string]*resources.AWSServiceCatalogCloudFormationProduct {
results := map[string]*resources.AWSServiceCatalogCloudFormationProduct{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServic... | go | func (t *Template) GetAllAWSServiceCatalogCloudFormationProductResources() map[string]*resources.AWSServiceCatalogCloudFormationProduct {
results := map[string]*resources.AWSServiceCatalogCloudFormationProduct{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServic... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceCatalogCloudFormationProductResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCatalogCloudFormationProduct",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
... | // GetAllAWSServiceCatalogCloudFormationProductResources retrieves all AWSServiceCatalogCloudFormationProduct items from an AWS CloudFormation template | [
"GetAllAWSServiceCatalogCloudFormationProductResources",
"retrieves",
"all",
"AWSServiceCatalogCloudFormationProduct",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8875-L8884 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceCatalogCloudFormationProductWithName | func (t *Template) GetAWSServiceCatalogCloudFormationProductWithName(name string) (*resources.AWSServiceCatalogCloudFormationProduct, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogCloudFormationProduct:
return resource, nil
}
}
return... | go | func (t *Template) GetAWSServiceCatalogCloudFormationProductWithName(name string) (*resources.AWSServiceCatalogCloudFormationProduct, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogCloudFormationProduct:
return resource, nil
}
}
return... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceCatalogCloudFormationProductWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceCatalogCloudFormationProduct",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Re... | // GetAWSServiceCatalogCloudFormationProductWithName retrieves all AWSServiceCatalogCloudFormationProduct items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceCatalogCloudFormationProductWithName",
"retrieves",
"all",
"AWSServiceCatalogCloudFormationProduct",
"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#L8888-L8896 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceCatalogCloudFormationProvisionedProductResources | func (t *Template) GetAllAWSServiceCatalogCloudFormationProvisionedProductResources() map[string]*resources.AWSServiceCatalogCloudFormationProvisionedProduct {
results := map[string]*resources.AWSServiceCatalogCloudFormationProvisionedProduct{}
for name, untyped := range t.Resources {
switch resource := untyped.(ty... | go | func (t *Template) GetAllAWSServiceCatalogCloudFormationProvisionedProductResources() map[string]*resources.AWSServiceCatalogCloudFormationProvisionedProduct {
results := map[string]*resources.AWSServiceCatalogCloudFormationProvisionedProduct{}
for name, untyped := range t.Resources {
switch resource := untyped.(ty... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceCatalogCloudFormationProvisionedProductResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCatalogCloudFormationProvisionedProduct",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
... | // GetAllAWSServiceCatalogCloudFormationProvisionedProductResources retrieves all AWSServiceCatalogCloudFormationProvisionedProduct items from an AWS CloudFormation template | [
"GetAllAWSServiceCatalogCloudFormationProvisionedProductResources",
"retrieves",
"all",
"AWSServiceCatalogCloudFormationProvisionedProduct",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8899-L8908 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceCatalogCloudFormationProvisionedProductWithName | func (t *Template) GetAWSServiceCatalogCloudFormationProvisionedProductWithName(name string) (*resources.AWSServiceCatalogCloudFormationProvisionedProduct, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogCloudFormationProvisionedProduct:
re... | go | func (t *Template) GetAWSServiceCatalogCloudFormationProvisionedProductWithName(name string) (*resources.AWSServiceCatalogCloudFormationProvisionedProduct, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogCloudFormationProvisionedProduct:
re... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceCatalogCloudFormationProvisionedProductWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceCatalogCloudFormationProvisionedProduct",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=... | // GetAWSServiceCatalogCloudFormationProvisionedProductWithName retrieves all AWSServiceCatalogCloudFormationProvisionedProduct items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceCatalogCloudFormationProvisionedProductWithName",
"retrieves",
"all",
"AWSServiceCatalogCloudFormationProvisionedProduct",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8912-L8920 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceCatalogLaunchNotificationConstraintResources | func (t *Template) GetAllAWSServiceCatalogLaunchNotificationConstraintResources() map[string]*resources.AWSServiceCatalogLaunchNotificationConstraint {
results := map[string]*resources.AWSServiceCatalogLaunchNotificationConstraint{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case... | go | func (t *Template) GetAllAWSServiceCatalogLaunchNotificationConstraintResources() map[string]*resources.AWSServiceCatalogLaunchNotificationConstraint {
results := map[string]*resources.AWSServiceCatalogLaunchNotificationConstraint{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceCatalogLaunchNotificationConstraintResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCatalogLaunchNotificationConstraint",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
... | // GetAllAWSServiceCatalogLaunchNotificationConstraintResources retrieves all AWSServiceCatalogLaunchNotificationConstraint items from an AWS CloudFormation template | [
"GetAllAWSServiceCatalogLaunchNotificationConstraintResources",
"retrieves",
"all",
"AWSServiceCatalogLaunchNotificationConstraint",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8923-L8932 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceCatalogLaunchNotificationConstraintWithName | func (t *Template) GetAWSServiceCatalogLaunchNotificationConstraintWithName(name string) (*resources.AWSServiceCatalogLaunchNotificationConstraint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogLaunchNotificationConstraint:
return resourc... | go | func (t *Template) GetAWSServiceCatalogLaunchNotificationConstraintWithName(name string) (*resources.AWSServiceCatalogLaunchNotificationConstraint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogLaunchNotificationConstraint:
return resourc... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceCatalogLaunchNotificationConstraintWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceCatalogLaunchNotificationConstraint",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t"... | // GetAWSServiceCatalogLaunchNotificationConstraintWithName retrieves all AWSServiceCatalogLaunchNotificationConstraint items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceCatalogLaunchNotificationConstraintWithName",
"retrieves",
"all",
"AWSServiceCatalogLaunchNotificationConstraint",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8936-L8944 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceCatalogLaunchRoleConstraintResources | func (t *Template) GetAllAWSServiceCatalogLaunchRoleConstraintResources() map[string]*resources.AWSServiceCatalogLaunchRoleConstraint {
results := map[string]*resources.AWSServiceCatalogLaunchRoleConstraint{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceCa... | go | func (t *Template) GetAllAWSServiceCatalogLaunchRoleConstraintResources() map[string]*resources.AWSServiceCatalogLaunchRoleConstraint {
results := map[string]*resources.AWSServiceCatalogLaunchRoleConstraint{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceCa... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceCatalogLaunchRoleConstraintResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCatalogLaunchRoleConstraint",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
... | // GetAllAWSServiceCatalogLaunchRoleConstraintResources retrieves all AWSServiceCatalogLaunchRoleConstraint items from an AWS CloudFormation template | [
"GetAllAWSServiceCatalogLaunchRoleConstraintResources",
"retrieves",
"all",
"AWSServiceCatalogLaunchRoleConstraint",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8947-L8956 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceCatalogLaunchRoleConstraintWithName | func (t *Template) GetAWSServiceCatalogLaunchRoleConstraintWithName(name string) (*resources.AWSServiceCatalogLaunchRoleConstraint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogLaunchRoleConstraint:
return resource, nil
}
}
return ni... | go | func (t *Template) GetAWSServiceCatalogLaunchRoleConstraintWithName(name string) (*resources.AWSServiceCatalogLaunchRoleConstraint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogLaunchRoleConstraint:
return resource, nil
}
}
return ni... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceCatalogLaunchRoleConstraintWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceCatalogLaunchRoleConstraint",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Reso... | // GetAWSServiceCatalogLaunchRoleConstraintWithName retrieves all AWSServiceCatalogLaunchRoleConstraint items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceCatalogLaunchRoleConstraintWithName",
"retrieves",
"all",
"AWSServiceCatalogLaunchRoleConstraint",
"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#L8960-L8968 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceCatalogLaunchTemplateConstraintResources | func (t *Template) GetAllAWSServiceCatalogLaunchTemplateConstraintResources() map[string]*resources.AWSServiceCatalogLaunchTemplateConstraint {
results := map[string]*resources.AWSServiceCatalogLaunchTemplateConstraint{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.... | go | func (t *Template) GetAllAWSServiceCatalogLaunchTemplateConstraintResources() map[string]*resources.AWSServiceCatalogLaunchTemplateConstraint {
results := map[string]*resources.AWSServiceCatalogLaunchTemplateConstraint{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceCatalogLaunchTemplateConstraintResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCatalogLaunchTemplateConstraint",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resour... | // GetAllAWSServiceCatalogLaunchTemplateConstraintResources retrieves all AWSServiceCatalogLaunchTemplateConstraint items from an AWS CloudFormation template | [
"GetAllAWSServiceCatalogLaunchTemplateConstraintResources",
"retrieves",
"all",
"AWSServiceCatalogLaunchTemplateConstraint",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8971-L8980 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceCatalogLaunchTemplateConstraintWithName | func (t *Template) GetAWSServiceCatalogLaunchTemplateConstraintWithName(name string) (*resources.AWSServiceCatalogLaunchTemplateConstraint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogLaunchTemplateConstraint:
return resource, nil
}
... | go | func (t *Template) GetAWSServiceCatalogLaunchTemplateConstraintWithName(name string) (*resources.AWSServiceCatalogLaunchTemplateConstraint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogLaunchTemplateConstraint:
return resource, nil
}
... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceCatalogLaunchTemplateConstraintWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceCatalogLaunchTemplateConstraint",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",... | // GetAWSServiceCatalogLaunchTemplateConstraintWithName retrieves all AWSServiceCatalogLaunchTemplateConstraint items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceCatalogLaunchTemplateConstraintWithName",
"retrieves",
"all",
"AWSServiceCatalogLaunchTemplateConstraint",
"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#L8984-L8992 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceCatalogPortfolioResources | func (t *Template) GetAllAWSServiceCatalogPortfolioResources() map[string]*resources.AWSServiceCatalogPortfolio {
results := map[string]*resources.AWSServiceCatalogPortfolio{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogPortfolio:
results[name] ... | go | func (t *Template) GetAllAWSServiceCatalogPortfolioResources() map[string]*resources.AWSServiceCatalogPortfolio {
results := map[string]*resources.AWSServiceCatalogPortfolio{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogPortfolio:
results[name] ... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceCatalogPortfolioResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCatalogPortfolio",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCata... | // GetAllAWSServiceCatalogPortfolioResources retrieves all AWSServiceCatalogPortfolio items from an AWS CloudFormation template | [
"GetAllAWSServiceCatalogPortfolioResources",
"retrieves",
"all",
"AWSServiceCatalogPortfolio",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8995-L9004 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceCatalogPortfolioWithName | func (t *Template) GetAWSServiceCatalogPortfolioWithName(name string) (*resources.AWSServiceCatalogPortfolio, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogPortfolio:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of typ... | go | func (t *Template) GetAWSServiceCatalogPortfolioWithName(name string) (*resources.AWSServiceCatalogPortfolio, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogPortfolio:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of typ... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceCatalogPortfolioWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceCatalogPortfolio",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name... | // GetAWSServiceCatalogPortfolioWithName retrieves all AWSServiceCatalogPortfolio items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceCatalogPortfolioWithName",
"retrieves",
"all",
"AWSServiceCatalogPortfolio",
"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#L9008-L9016 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceCatalogPortfolioPrincipalAssociationResources | func (t *Template) GetAllAWSServiceCatalogPortfolioPrincipalAssociationResources() map[string]*resources.AWSServiceCatalogPortfolioPrincipalAssociation {
results := map[string]*resources.AWSServiceCatalogPortfolioPrincipalAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
c... | go | func (t *Template) GetAllAWSServiceCatalogPortfolioPrincipalAssociationResources() map[string]*resources.AWSServiceCatalogPortfolioPrincipalAssociation {
results := map[string]*resources.AWSServiceCatalogPortfolioPrincipalAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
c... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceCatalogPortfolioPrincipalAssociationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCatalogPortfolioPrincipalAssociation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",... | // GetAllAWSServiceCatalogPortfolioPrincipalAssociationResources retrieves all AWSServiceCatalogPortfolioPrincipalAssociation items from an AWS CloudFormation template | [
"GetAllAWSServiceCatalogPortfolioPrincipalAssociationResources",
"retrieves",
"all",
"AWSServiceCatalogPortfolioPrincipalAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9019-L9028 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceCatalogPortfolioPrincipalAssociationWithName | func (t *Template) GetAWSServiceCatalogPortfolioPrincipalAssociationWithName(name string) (*resources.AWSServiceCatalogPortfolioPrincipalAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogPortfolioPrincipalAssociation:
return reso... | go | func (t *Template) GetAWSServiceCatalogPortfolioPrincipalAssociationWithName(name string) (*resources.AWSServiceCatalogPortfolioPrincipalAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogPortfolioPrincipalAssociation:
return reso... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceCatalogPortfolioPrincipalAssociationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceCatalogPortfolioPrincipalAssociation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"... | // GetAWSServiceCatalogPortfolioPrincipalAssociationWithName retrieves all AWSServiceCatalogPortfolioPrincipalAssociation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceCatalogPortfolioPrincipalAssociationWithName",
"retrieves",
"all",
"AWSServiceCatalogPortfolioPrincipalAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9032-L9040 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceCatalogPortfolioProductAssociationResources | func (t *Template) GetAllAWSServiceCatalogPortfolioProductAssociationResources() map[string]*resources.AWSServiceCatalogPortfolioProductAssociation {
results := map[string]*resources.AWSServiceCatalogPortfolioProductAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *r... | go | func (t *Template) GetAllAWSServiceCatalogPortfolioProductAssociationResources() map[string]*resources.AWSServiceCatalogPortfolioProductAssociation {
results := map[string]*resources.AWSServiceCatalogPortfolioProductAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *r... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceCatalogPortfolioProductAssociationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCatalogPortfolioProductAssociation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"... | // GetAllAWSServiceCatalogPortfolioProductAssociationResources retrieves all AWSServiceCatalogPortfolioProductAssociation items from an AWS CloudFormation template | [
"GetAllAWSServiceCatalogPortfolioProductAssociationResources",
"retrieves",
"all",
"AWSServiceCatalogPortfolioProductAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9043-L9052 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceCatalogPortfolioProductAssociationWithName | func (t *Template) GetAWSServiceCatalogPortfolioProductAssociationWithName(name string) (*resources.AWSServiceCatalogPortfolioProductAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogPortfolioProductAssociation:
return resource, ... | go | func (t *Template) GetAWSServiceCatalogPortfolioProductAssociationWithName(name string) (*resources.AWSServiceCatalogPortfolioProductAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogPortfolioProductAssociation:
return resource, ... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceCatalogPortfolioProductAssociationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceCatalogPortfolioProductAssociation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
... | // GetAWSServiceCatalogPortfolioProductAssociationWithName retrieves all AWSServiceCatalogPortfolioProductAssociation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceCatalogPortfolioProductAssociationWithName",
"retrieves",
"all",
"AWSServiceCatalogPortfolioProductAssociation",
"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#L9056-L9064 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceCatalogPortfolioShareResources | func (t *Template) GetAllAWSServiceCatalogPortfolioShareResources() map[string]*resources.AWSServiceCatalogPortfolioShare {
results := map[string]*resources.AWSServiceCatalogPortfolioShare{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogPortfolioShar... | go | func (t *Template) GetAllAWSServiceCatalogPortfolioShareResources() map[string]*resources.AWSServiceCatalogPortfolioShare {
results := map[string]*resources.AWSServiceCatalogPortfolioShare{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogPortfolioShar... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceCatalogPortfolioShareResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCatalogPortfolioShare",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSS... | // GetAllAWSServiceCatalogPortfolioShareResources retrieves all AWSServiceCatalogPortfolioShare items from an AWS CloudFormation template | [
"GetAllAWSServiceCatalogPortfolioShareResources",
"retrieves",
"all",
"AWSServiceCatalogPortfolioShare",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9067-L9076 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceCatalogPortfolioShareWithName | func (t *Template) GetAWSServiceCatalogPortfolioShareWithName(name string) (*resources.AWSServiceCatalogPortfolioShare, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogPortfolioShare:
return resource, nil
}
}
return nil, fmt.Errorf("res... | go | func (t *Template) GetAWSServiceCatalogPortfolioShareWithName(name string) (*resources.AWSServiceCatalogPortfolioShare, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogPortfolioShare:
return resource, nil
}
}
return nil, fmt.Errorf("res... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceCatalogPortfolioShareWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceCatalogPortfolioShare",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[... | // GetAWSServiceCatalogPortfolioShareWithName retrieves all AWSServiceCatalogPortfolioShare items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceCatalogPortfolioShareWithName",
"retrieves",
"all",
"AWSServiceCatalogPortfolioShare",
"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#L9080-L9088 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceCatalogTagOptionResources | func (t *Template) GetAllAWSServiceCatalogTagOptionResources() map[string]*resources.AWSServiceCatalogTagOption {
results := map[string]*resources.AWSServiceCatalogTagOption{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogTagOption:
results[name] ... | go | func (t *Template) GetAllAWSServiceCatalogTagOptionResources() map[string]*resources.AWSServiceCatalogTagOption {
results := map[string]*resources.AWSServiceCatalogTagOption{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogTagOption:
results[name] ... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceCatalogTagOptionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCatalogTagOption",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCata... | // GetAllAWSServiceCatalogTagOptionResources retrieves all AWSServiceCatalogTagOption items from an AWS CloudFormation template | [
"GetAllAWSServiceCatalogTagOptionResources",
"retrieves",
"all",
"AWSServiceCatalogTagOption",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9091-L9100 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceCatalogTagOptionWithName | func (t *Template) GetAWSServiceCatalogTagOptionWithName(name string) (*resources.AWSServiceCatalogTagOption, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogTagOption:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of typ... | go | func (t *Template) GetAWSServiceCatalogTagOptionWithName(name string) (*resources.AWSServiceCatalogTagOption, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogTagOption:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of typ... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceCatalogTagOptionWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceCatalogTagOption",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name... | // GetAWSServiceCatalogTagOptionWithName retrieves all AWSServiceCatalogTagOption items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceCatalogTagOptionWithName",
"retrieves",
"all",
"AWSServiceCatalogTagOption",
"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#L9104-L9112 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceCatalogTagOptionAssociationResources | func (t *Template) GetAllAWSServiceCatalogTagOptionAssociationResources() map[string]*resources.AWSServiceCatalogTagOptionAssociation {
results := map[string]*resources.AWSServiceCatalogTagOptionAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceCa... | go | func (t *Template) GetAllAWSServiceCatalogTagOptionAssociationResources() map[string]*resources.AWSServiceCatalogTagOptionAssociation {
results := map[string]*resources.AWSServiceCatalogTagOptionAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceCa... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceCatalogTagOptionAssociationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceCatalogTagOptionAssociation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
... | // GetAllAWSServiceCatalogTagOptionAssociationResources retrieves all AWSServiceCatalogTagOptionAssociation items from an AWS CloudFormation template | [
"GetAllAWSServiceCatalogTagOptionAssociationResources",
"retrieves",
"all",
"AWSServiceCatalogTagOptionAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9115-L9124 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceCatalogTagOptionAssociationWithName | func (t *Template) GetAWSServiceCatalogTagOptionAssociationWithName(name string) (*resources.AWSServiceCatalogTagOptionAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogTagOptionAssociation:
return resource, nil
}
}
return ni... | go | func (t *Template) GetAWSServiceCatalogTagOptionAssociationWithName(name string) (*resources.AWSServiceCatalogTagOptionAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogTagOptionAssociation:
return resource, nil
}
}
return ni... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceCatalogTagOptionAssociationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceCatalogTagOptionAssociation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Reso... | // GetAWSServiceCatalogTagOptionAssociationWithName retrieves all AWSServiceCatalogTagOptionAssociation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceCatalogTagOptionAssociationWithName",
"retrieves",
"all",
"AWSServiceCatalogTagOptionAssociation",
"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#L9128-L9136 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceDiscoveryHttpNamespaceResources | func (t *Template) GetAllAWSServiceDiscoveryHttpNamespaceResources() map[string]*resources.AWSServiceDiscoveryHttpNamespace {
results := map[string]*resources.AWSServiceDiscoveryHttpNamespace{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryHttpName... | go | func (t *Template) GetAllAWSServiceDiscoveryHttpNamespaceResources() map[string]*resources.AWSServiceDiscoveryHttpNamespace {
results := map[string]*resources.AWSServiceDiscoveryHttpNamespace{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryHttpName... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceDiscoveryHttpNamespaceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceDiscoveryHttpNamespace",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AW... | // GetAllAWSServiceDiscoveryHttpNamespaceResources retrieves all AWSServiceDiscoveryHttpNamespace items from an AWS CloudFormation template | [
"GetAllAWSServiceDiscoveryHttpNamespaceResources",
"retrieves",
"all",
"AWSServiceDiscoveryHttpNamespace",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9139-L9148 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceDiscoveryHttpNamespaceWithName | func (t *Template) GetAWSServiceDiscoveryHttpNamespaceWithName(name string) (*resources.AWSServiceDiscoveryHttpNamespace, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryHttpNamespace:
return resource, nil
}
}
return nil, fmt.Errorf("... | go | func (t *Template) GetAWSServiceDiscoveryHttpNamespaceWithName(name string) (*resources.AWSServiceDiscoveryHttpNamespace, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryHttpNamespace:
return resource, nil
}
}
return nil, fmt.Errorf("... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceDiscoveryHttpNamespaceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceDiscoveryHttpNamespace",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSServiceDiscoveryHttpNamespaceWithName retrieves all AWSServiceDiscoveryHttpNamespace items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceDiscoveryHttpNamespaceWithName",
"retrieves",
"all",
"AWSServiceDiscoveryHttpNamespace",
"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#L9152-L9160 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceDiscoveryInstanceResources | func (t *Template) GetAllAWSServiceDiscoveryInstanceResources() map[string]*resources.AWSServiceDiscoveryInstance {
results := map[string]*resources.AWSServiceDiscoveryInstance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryInstance:
results[na... | go | func (t *Template) GetAllAWSServiceDiscoveryInstanceResources() map[string]*resources.AWSServiceDiscoveryInstance {
results := map[string]*resources.AWSServiceDiscoveryInstance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryInstance:
results[na... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceDiscoveryInstanceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceDiscoveryInstance",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceDi... | // GetAllAWSServiceDiscoveryInstanceResources retrieves all AWSServiceDiscoveryInstance items from an AWS CloudFormation template | [
"GetAllAWSServiceDiscoveryInstanceResources",
"retrieves",
"all",
"AWSServiceDiscoveryInstance",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9163-L9172 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceDiscoveryInstanceWithName | func (t *Template) GetAWSServiceDiscoveryInstanceWithName(name string) (*resources.AWSServiceDiscoveryInstance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryInstance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of ... | go | func (t *Template) GetAWSServiceDiscoveryInstanceWithName(name string) (*resources.AWSServiceDiscoveryInstance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryInstance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of ... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceDiscoveryInstanceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceDiscoveryInstance",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"na... | // GetAWSServiceDiscoveryInstanceWithName retrieves all AWSServiceDiscoveryInstance items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceDiscoveryInstanceWithName",
"retrieves",
"all",
"AWSServiceDiscoveryInstance",
"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#L9176-L9184 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceDiscoveryPrivateDnsNamespaceResources | func (t *Template) GetAllAWSServiceDiscoveryPrivateDnsNamespaceResources() map[string]*resources.AWSServiceDiscoveryPrivateDnsNamespace {
results := map[string]*resources.AWSServiceDiscoveryPrivateDnsNamespace{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServic... | go | func (t *Template) GetAllAWSServiceDiscoveryPrivateDnsNamespaceResources() map[string]*resources.AWSServiceDiscoveryPrivateDnsNamespace {
results := map[string]*resources.AWSServiceDiscoveryPrivateDnsNamespace{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServic... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceDiscoveryPrivateDnsNamespaceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceDiscoveryPrivateDnsNamespace",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
... | // GetAllAWSServiceDiscoveryPrivateDnsNamespaceResources retrieves all AWSServiceDiscoveryPrivateDnsNamespace items from an AWS CloudFormation template | [
"GetAllAWSServiceDiscoveryPrivateDnsNamespaceResources",
"retrieves",
"all",
"AWSServiceDiscoveryPrivateDnsNamespace",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9187-L9196 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceDiscoveryPrivateDnsNamespaceWithName | func (t *Template) GetAWSServiceDiscoveryPrivateDnsNamespaceWithName(name string) (*resources.AWSServiceDiscoveryPrivateDnsNamespace, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryPrivateDnsNamespace:
return resource, nil
}
}
return... | go | func (t *Template) GetAWSServiceDiscoveryPrivateDnsNamespaceWithName(name string) (*resources.AWSServiceDiscoveryPrivateDnsNamespace, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryPrivateDnsNamespace:
return resource, nil
}
}
return... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceDiscoveryPrivateDnsNamespaceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceDiscoveryPrivateDnsNamespace",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Re... | // GetAWSServiceDiscoveryPrivateDnsNamespaceWithName retrieves all AWSServiceDiscoveryPrivateDnsNamespace items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceDiscoveryPrivateDnsNamespaceWithName",
"retrieves",
"all",
"AWSServiceDiscoveryPrivateDnsNamespace",
"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#L9200-L9208 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceDiscoveryPublicDnsNamespaceResources | func (t *Template) GetAllAWSServiceDiscoveryPublicDnsNamespaceResources() map[string]*resources.AWSServiceDiscoveryPublicDnsNamespace {
results := map[string]*resources.AWSServiceDiscoveryPublicDnsNamespace{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceDi... | go | func (t *Template) GetAllAWSServiceDiscoveryPublicDnsNamespaceResources() map[string]*resources.AWSServiceDiscoveryPublicDnsNamespace {
results := map[string]*resources.AWSServiceDiscoveryPublicDnsNamespace{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceDi... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceDiscoveryPublicDnsNamespaceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceDiscoveryPublicDnsNamespace",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
... | // GetAllAWSServiceDiscoveryPublicDnsNamespaceResources retrieves all AWSServiceDiscoveryPublicDnsNamespace items from an AWS CloudFormation template | [
"GetAllAWSServiceDiscoveryPublicDnsNamespaceResources",
"retrieves",
"all",
"AWSServiceDiscoveryPublicDnsNamespace",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9211-L9220 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceDiscoveryPublicDnsNamespaceWithName | func (t *Template) GetAWSServiceDiscoveryPublicDnsNamespaceWithName(name string) (*resources.AWSServiceDiscoveryPublicDnsNamespace, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryPublicDnsNamespace:
return resource, nil
}
}
return ni... | go | func (t *Template) GetAWSServiceDiscoveryPublicDnsNamespaceWithName(name string) (*resources.AWSServiceDiscoveryPublicDnsNamespace, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryPublicDnsNamespace:
return resource, nil
}
}
return ni... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceDiscoveryPublicDnsNamespaceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceDiscoveryPublicDnsNamespace",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Reso... | // GetAWSServiceDiscoveryPublicDnsNamespaceWithName retrieves all AWSServiceDiscoveryPublicDnsNamespace items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceDiscoveryPublicDnsNamespaceWithName",
"retrieves",
"all",
"AWSServiceDiscoveryPublicDnsNamespace",
"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#L9224-L9232 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServiceDiscoveryServiceResources | func (t *Template) GetAllAWSServiceDiscoveryServiceResources() map[string]*resources.AWSServiceDiscoveryService {
results := map[string]*resources.AWSServiceDiscoveryService{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryService:
results[name] ... | go | func (t *Template) GetAllAWSServiceDiscoveryServiceResources() map[string]*resources.AWSServiceDiscoveryService {
results := map[string]*resources.AWSServiceDiscoveryService{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryService:
results[name] ... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServiceDiscoveryServiceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceDiscoveryService",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServiceDisc... | // GetAllAWSServiceDiscoveryServiceResources retrieves all AWSServiceDiscoveryService items from an AWS CloudFormation template | [
"GetAllAWSServiceDiscoveryServiceResources",
"retrieves",
"all",
"AWSServiceDiscoveryService",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9235-L9244 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServiceDiscoveryServiceWithName | func (t *Template) GetAWSServiceDiscoveryServiceWithName(name string) (*resources.AWSServiceDiscoveryService, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryService:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of typ... | go | func (t *Template) GetAWSServiceDiscoveryServiceWithName(name string) (*resources.AWSServiceDiscoveryService, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceDiscoveryService:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of typ... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServiceDiscoveryServiceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServiceDiscoveryService",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name... | // GetAWSServiceDiscoveryServiceWithName retrieves all AWSServiceDiscoveryService items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServiceDiscoveryServiceWithName",
"retrieves",
"all",
"AWSServiceDiscoveryService",
"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#L9248-L9256 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSStepFunctionsActivityResources | func (t *Template) GetAllAWSStepFunctionsActivityResources() map[string]*resources.AWSStepFunctionsActivity {
results := map[string]*resources.AWSStepFunctionsActivity{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSStepFunctionsActivity:
results[name] = resour... | go | func (t *Template) GetAllAWSStepFunctionsActivityResources() map[string]*resources.AWSStepFunctionsActivity {
results := map[string]*resources.AWSStepFunctionsActivity{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSStepFunctionsActivity:
results[name] = resour... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSStepFunctionsActivityResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSStepFunctionsActivity",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSStepFunctionsAc... | // GetAllAWSStepFunctionsActivityResources retrieves all AWSStepFunctionsActivity items from an AWS CloudFormation template | [
"GetAllAWSStepFunctionsActivityResources",
"retrieves",
"all",
"AWSStepFunctionsActivity",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9259-L9268 | train |
awslabs/goformation | cloudformation/all.go | GetAWSStepFunctionsActivityWithName | func (t *Template) GetAWSStepFunctionsActivityWithName(name string) (*resources.AWSStepFunctionsActivity, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSStepFunctionsActivity:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSS... | go | func (t *Template) GetAWSStepFunctionsActivityWithName(name string) (*resources.AWSStepFunctionsActivity, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSStepFunctionsActivity:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSS... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSStepFunctionsActivityWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSStepFunctionsActivity",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
... | // GetAWSStepFunctionsActivityWithName retrieves all AWSStepFunctionsActivity items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSStepFunctionsActivityWithName",
"retrieves",
"all",
"AWSStepFunctionsActivity",
"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#L9272-L9280 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSStepFunctionsStateMachineResources | func (t *Template) GetAllAWSStepFunctionsStateMachineResources() map[string]*resources.AWSStepFunctionsStateMachine {
results := map[string]*resources.AWSStepFunctionsStateMachine{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSStepFunctionsStateMachine:
result... | go | func (t *Template) GetAllAWSStepFunctionsStateMachineResources() map[string]*resources.AWSStepFunctionsStateMachine {
results := map[string]*resources.AWSStepFunctionsStateMachine{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSStepFunctionsStateMachine:
result... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSStepFunctionsStateMachineResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSStepFunctionsStateMachine",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSStepFun... | // GetAllAWSStepFunctionsStateMachineResources retrieves all AWSStepFunctionsStateMachine items from an AWS CloudFormation template | [
"GetAllAWSStepFunctionsStateMachineResources",
"retrieves",
"all",
"AWSStepFunctionsStateMachine",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9283-L9292 | train |
awslabs/goformation | cloudformation/all.go | GetAWSStepFunctionsStateMachineWithName | func (t *Template) GetAWSStepFunctionsStateMachineWithName(name string) (*resources.AWSStepFunctionsStateMachine, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSStepFunctionsStateMachine:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q ... | go | func (t *Template) GetAWSStepFunctionsStateMachineWithName(name string) (*resources.AWSStepFunctionsStateMachine, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSStepFunctionsStateMachine:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q ... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSStepFunctionsStateMachineWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSStepFunctionsStateMachine",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"... | // GetAWSStepFunctionsStateMachineWithName retrieves all AWSStepFunctionsStateMachine items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSStepFunctionsStateMachineWithName",
"retrieves",
"all",
"AWSStepFunctionsStateMachine",
"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#L9296-L9304 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFByteMatchSetResources | func (t *Template) GetAllAWSWAFByteMatchSetResources() map[string]*resources.AWSWAFByteMatchSet {
results := map[string]*resources.AWSWAFByteMatchSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFByteMatchSet:
results[name] = resource
}
}
return result... | go | func (t *Template) GetAllAWSWAFByteMatchSetResources() map[string]*resources.AWSWAFByteMatchSet {
results := map[string]*resources.AWSWAFByteMatchSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFByteMatchSet:
results[name] = resource
}
}
return result... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFByteMatchSetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFByteMatchSet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFByteMatchSet",
"{",
... | // GetAllAWSWAFByteMatchSetResources retrieves all AWSWAFByteMatchSet items from an AWS CloudFormation template | [
"GetAllAWSWAFByteMatchSetResources",
"retrieves",
"all",
"AWSWAFByteMatchSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9307-L9316 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFByteMatchSetWithName | func (t *Template) GetAWSWAFByteMatchSetWithName(name string) (*resources.AWSWAFByteMatchSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFByteMatchSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFByteMatchSet not... | go | func (t *Template) GetAWSWAFByteMatchSetWithName(name string) (*resources.AWSWAFByteMatchSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFByteMatchSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFByteMatchSet not... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFByteMatchSetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFByteMatchSet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",... | // GetAWSWAFByteMatchSetWithName retrieves all AWSWAFByteMatchSet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFByteMatchSetWithName",
"retrieves",
"all",
"AWSWAFByteMatchSet",
"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#L9320-L9328 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFIPSetResources | func (t *Template) GetAllAWSWAFIPSetResources() map[string]*resources.AWSWAFIPSet {
results := map[string]*resources.AWSWAFIPSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFIPSet:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSWAFIPSetResources() map[string]*resources.AWSWAFIPSet {
results := map[string]*resources.AWSWAFIPSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFIPSet:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFIPSetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFIPSet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFIPSet",
"{",
"}",
"\n",
"for",... | // GetAllAWSWAFIPSetResources retrieves all AWSWAFIPSet items from an AWS CloudFormation template | [
"GetAllAWSWAFIPSetResources",
"retrieves",
"all",
"AWSWAFIPSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9331-L9340 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFIPSetWithName | func (t *Template) GetAWSWAFIPSetWithName(name string) (*resources.AWSWAFIPSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFIPSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFIPSet not found", name)
} | go | func (t *Template) GetAWSWAFIPSetWithName(name string) (*resources.AWSWAFIPSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFIPSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFIPSet not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFIPSetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFIPSet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{"... | // GetAWSWAFIPSetWithName retrieves all AWSWAFIPSet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFIPSetWithName",
"retrieves",
"all",
"AWSWAFIPSet",
"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#L9344-L9352 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFRuleResources | func (t *Template) GetAllAWSWAFRuleResources() map[string]*resources.AWSWAFRule {
results := map[string]*resources.AWSWAFRule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRule:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSWAFRuleResources() map[string]*resources.AWSWAFRule {
results := map[string]*resources.AWSWAFRule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRule:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFRuleResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRule",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRule",
"{",
"}",
"\n",
"for",
... | // GetAllAWSWAFRuleResources retrieves all AWSWAFRule items from an AWS CloudFormation template | [
"GetAllAWSWAFRuleResources",
"retrieves",
"all",
"AWSWAFRule",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9355-L9364 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFRuleWithName | func (t *Template) GetAWSWAFRuleWithName(name string) (*resources.AWSWAFRule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFRule not found", name)
} | go | func (t *Template) GetAWSWAFRuleWithName(name string) (*resources.AWSWAFRule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFRule not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFRuleWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFRule",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"{",
... | // GetAWSWAFRuleWithName retrieves all AWSWAFRule items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFRuleWithName",
"retrieves",
"all",
"AWSWAFRule",
"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#L9368-L9376 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFSizeConstraintSetResources | func (t *Template) GetAllAWSWAFSizeConstraintSetResources() map[string]*resources.AWSWAFSizeConstraintSet {
results := map[string]*resources.AWSWAFSizeConstraintSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFSizeConstraintSet:
results[name] = resource
... | go | func (t *Template) GetAllAWSWAFSizeConstraintSetResources() map[string]*resources.AWSWAFSizeConstraintSet {
results := map[string]*resources.AWSWAFSizeConstraintSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFSizeConstraintSet:
results[name] = resource
... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFSizeConstraintSetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFSizeConstraintSet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFSizeConstraint... | // GetAllAWSWAFSizeConstraintSetResources retrieves all AWSWAFSizeConstraintSet items from an AWS CloudFormation template | [
"GetAllAWSWAFSizeConstraintSetResources",
"retrieves",
"all",
"AWSWAFSizeConstraintSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9379-L9388 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFSizeConstraintSetWithName | func (t *Template) GetAWSWAFSizeConstraintSetWithName(name string) (*resources.AWSWAFSizeConstraintSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFSizeConstraintSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFS... | go | func (t *Template) GetAWSWAFSizeConstraintSetWithName(name string) (*resources.AWSWAFSizeConstraintSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFSizeConstraintSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFS... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFSizeConstraintSetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFSizeConstraintSet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"... | // GetAWSWAFSizeConstraintSetWithName retrieves all AWSWAFSizeConstraintSet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFSizeConstraintSetWithName",
"retrieves",
"all",
"AWSWAFSizeConstraintSet",
"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#L9392-L9400 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFSqlInjectionMatchSetResources | func (t *Template) GetAllAWSWAFSqlInjectionMatchSetResources() map[string]*resources.AWSWAFSqlInjectionMatchSet {
results := map[string]*resources.AWSWAFSqlInjectionMatchSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFSqlInjectionMatchSet:
results[name] ... | go | func (t *Template) GetAllAWSWAFSqlInjectionMatchSetResources() map[string]*resources.AWSWAFSqlInjectionMatchSet {
results := map[string]*resources.AWSWAFSqlInjectionMatchSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFSqlInjectionMatchSet:
results[name] ... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFSqlInjectionMatchSetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFSqlInjectionMatchSet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFSqlInjec... | // GetAllAWSWAFSqlInjectionMatchSetResources retrieves all AWSWAFSqlInjectionMatchSet items from an AWS CloudFormation template | [
"GetAllAWSWAFSqlInjectionMatchSetResources",
"retrieves",
"all",
"AWSWAFSqlInjectionMatchSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9403-L9412 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFSqlInjectionMatchSetWithName | func (t *Template) GetAWSWAFSqlInjectionMatchSetWithName(name string) (*resources.AWSWAFSqlInjectionMatchSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFSqlInjectionMatchSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of typ... | go | func (t *Template) GetAWSWAFSqlInjectionMatchSetWithName(name string) (*resources.AWSWAFSqlInjectionMatchSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFSqlInjectionMatchSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of typ... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFSqlInjectionMatchSetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFSqlInjectionMatchSet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name... | // GetAWSWAFSqlInjectionMatchSetWithName retrieves all AWSWAFSqlInjectionMatchSet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFSqlInjectionMatchSetWithName",
"retrieves",
"all",
"AWSWAFSqlInjectionMatchSet",
"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#L9416-L9424 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFWebACLResources | func (t *Template) GetAllAWSWAFWebACLResources() map[string]*resources.AWSWAFWebACL {
results := map[string]*resources.AWSWAFWebACL{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFWebACL:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSWAFWebACLResources() map[string]*resources.AWSWAFWebACL {
results := map[string]*resources.AWSWAFWebACL{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFWebACL:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFWebACLResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFWebACL",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFWebACL",
"{",
"}",
"\n",
"fo... | // GetAllAWSWAFWebACLResources retrieves all AWSWAFWebACL items from an AWS CloudFormation template | [
"GetAllAWSWAFWebACLResources",
"retrieves",
"all",
"AWSWAFWebACL",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9427-L9436 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFWebACLWithName | func (t *Template) GetAWSWAFWebACLWithName(name string) (*resources.AWSWAFWebACL, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFWebACL:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFWebACL not found", name)
} | go | func (t *Template) GetAWSWAFWebACLWithName(name string) (*resources.AWSWAFWebACL, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFWebACL:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFWebACL not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFWebACLWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFWebACL",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
"... | // GetAWSWAFWebACLWithName retrieves all AWSWAFWebACL items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFWebACLWithName",
"retrieves",
"all",
"AWSWAFWebACL",
"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#L9440-L9448 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFXssMatchSetResources | func (t *Template) GetAllAWSWAFXssMatchSetResources() map[string]*resources.AWSWAFXssMatchSet {
results := map[string]*resources.AWSWAFXssMatchSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFXssMatchSet:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSWAFXssMatchSetResources() map[string]*resources.AWSWAFXssMatchSet {
results := map[string]*resources.AWSWAFXssMatchSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFXssMatchSet:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFXssMatchSetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFXssMatchSet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFXssMatchSet",
"{",
"}"... | // GetAllAWSWAFXssMatchSetResources retrieves all AWSWAFXssMatchSet items from an AWS CloudFormation template | [
"GetAllAWSWAFXssMatchSetResources",
"retrieves",
"all",
"AWSWAFXssMatchSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9451-L9460 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFXssMatchSetWithName | func (t *Template) GetAWSWAFXssMatchSetWithName(name string) (*resources.AWSWAFXssMatchSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFXssMatchSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFXssMatchSet not fou... | go | func (t *Template) GetAWSWAFXssMatchSetWithName(name string) (*resources.AWSWAFXssMatchSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFXssMatchSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFXssMatchSet not fou... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFXssMatchSetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFXssMatchSet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSWAFXssMatchSetWithName retrieves all AWSWAFXssMatchSet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFXssMatchSetWithName",
"retrieves",
"all",
"AWSWAFXssMatchSet",
"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#L9464-L9472 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFRegionalByteMatchSetResources | func (t *Template) GetAllAWSWAFRegionalByteMatchSetResources() map[string]*resources.AWSWAFRegionalByteMatchSet {
results := map[string]*resources.AWSWAFRegionalByteMatchSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalByteMatchSet:
results[name] ... | go | func (t *Template) GetAllAWSWAFRegionalByteMatchSetResources() map[string]*resources.AWSWAFRegionalByteMatchSet {
results := map[string]*resources.AWSWAFRegionalByteMatchSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalByteMatchSet:
results[name] ... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFRegionalByteMatchSetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRegionalByteMatchSet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRegional... | // GetAllAWSWAFRegionalByteMatchSetResources retrieves all AWSWAFRegionalByteMatchSet items from an AWS CloudFormation template | [
"GetAllAWSWAFRegionalByteMatchSetResources",
"retrieves",
"all",
"AWSWAFRegionalByteMatchSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9475-L9484 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFRegionalByteMatchSetWithName | func (t *Template) GetAWSWAFRegionalByteMatchSetWithName(name string) (*resources.AWSWAFRegionalByteMatchSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalByteMatchSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of typ... | go | func (t *Template) GetAWSWAFRegionalByteMatchSetWithName(name string) (*resources.AWSWAFRegionalByteMatchSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalByteMatchSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of typ... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFRegionalByteMatchSetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFRegionalByteMatchSet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name... | // GetAWSWAFRegionalByteMatchSetWithName retrieves all AWSWAFRegionalByteMatchSet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFRegionalByteMatchSetWithName",
"retrieves",
"all",
"AWSWAFRegionalByteMatchSet",
"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#L9488-L9496 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFRegionalIPSetResources | func (t *Template) GetAllAWSWAFRegionalIPSetResources() map[string]*resources.AWSWAFRegionalIPSet {
results := map[string]*resources.AWSWAFRegionalIPSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalIPSet:
results[name] = resource
}
}
return re... | go | func (t *Template) GetAllAWSWAFRegionalIPSetResources() map[string]*resources.AWSWAFRegionalIPSet {
results := map[string]*resources.AWSWAFRegionalIPSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalIPSet:
results[name] = resource
}
}
return re... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFRegionalIPSetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRegionalIPSet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRegionalIPSet",
"{",... | // GetAllAWSWAFRegionalIPSetResources retrieves all AWSWAFRegionalIPSet items from an AWS CloudFormation template | [
"GetAllAWSWAFRegionalIPSetResources",
"retrieves",
"all",
"AWSWAFRegionalIPSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9499-L9508 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFRegionalIPSetWithName | func (t *Template) GetAWSWAFRegionalIPSetWithName(name string) (*resources.AWSWAFRegionalIPSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalIPSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFRegionalIPSet... | go | func (t *Template) GetAWSWAFRegionalIPSetWithName(name string) (*resources.AWSWAFRegionalIPSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalIPSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFRegionalIPSet... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFRegionalIPSetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFRegionalIPSet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";... | // GetAWSWAFRegionalIPSetWithName retrieves all AWSWAFRegionalIPSet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFRegionalIPSetWithName",
"retrieves",
"all",
"AWSWAFRegionalIPSet",
"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#L9512-L9520 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFRegionalRuleResources | func (t *Template) GetAllAWSWAFRegionalRuleResources() map[string]*resources.AWSWAFRegionalRule {
results := map[string]*resources.AWSWAFRegionalRule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalRule:
results[name] = resource
}
}
return result... | go | func (t *Template) GetAllAWSWAFRegionalRuleResources() map[string]*resources.AWSWAFRegionalRule {
results := map[string]*resources.AWSWAFRegionalRule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalRule:
results[name] = resource
}
}
return result... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFRegionalRuleResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRegionalRule",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRegionalRule",
"{",
... | // GetAllAWSWAFRegionalRuleResources retrieves all AWSWAFRegionalRule items from an AWS CloudFormation template | [
"GetAllAWSWAFRegionalRuleResources",
"retrieves",
"all",
"AWSWAFRegionalRule",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9523-L9532 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFRegionalRuleWithName | func (t *Template) GetAWSWAFRegionalRuleWithName(name string) (*resources.AWSWAFRegionalRule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalRule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFRegionalRule not... | go | func (t *Template) GetAWSWAFRegionalRuleWithName(name string) (*resources.AWSWAFRegionalRule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalRule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFRegionalRule not... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFRegionalRuleWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFRegionalRule",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",... | // GetAWSWAFRegionalRuleWithName retrieves all AWSWAFRegionalRule items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFRegionalRuleWithName",
"retrieves",
"all",
"AWSWAFRegionalRule",
"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#L9536-L9544 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFRegionalSizeConstraintSetResources | func (t *Template) GetAllAWSWAFRegionalSizeConstraintSetResources() map[string]*resources.AWSWAFRegionalSizeConstraintSet {
results := map[string]*resources.AWSWAFRegionalSizeConstraintSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalSizeConstraintSe... | go | func (t *Template) GetAllAWSWAFRegionalSizeConstraintSetResources() map[string]*resources.AWSWAFRegionalSizeConstraintSet {
results := map[string]*resources.AWSWAFRegionalSizeConstraintSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalSizeConstraintSe... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFRegionalSizeConstraintSetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRegionalSizeConstraintSet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSW... | // GetAllAWSWAFRegionalSizeConstraintSetResources retrieves all AWSWAFRegionalSizeConstraintSet items from an AWS CloudFormation template | [
"GetAllAWSWAFRegionalSizeConstraintSetResources",
"retrieves",
"all",
"AWSWAFRegionalSizeConstraintSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9547-L9556 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFRegionalSizeConstraintSetWithName | func (t *Template) GetAWSWAFRegionalSizeConstraintSetWithName(name string) (*resources.AWSWAFRegionalSizeConstraintSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalSizeConstraintSet:
return resource, nil
}
}
return nil, fmt.Errorf("res... | go | func (t *Template) GetAWSWAFRegionalSizeConstraintSetWithName(name string) (*resources.AWSWAFRegionalSizeConstraintSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalSizeConstraintSet:
return resource, nil
}
}
return nil, fmt.Errorf("res... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFRegionalSizeConstraintSetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFRegionalSizeConstraintSet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[... | // GetAWSWAFRegionalSizeConstraintSetWithName retrieves all AWSWAFRegionalSizeConstraintSet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFRegionalSizeConstraintSetWithName",
"retrieves",
"all",
"AWSWAFRegionalSizeConstraintSet",
"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#L9560-L9568 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFRegionalSqlInjectionMatchSetResources | func (t *Template) GetAllAWSWAFRegionalSqlInjectionMatchSetResources() map[string]*resources.AWSWAFRegionalSqlInjectionMatchSet {
results := map[string]*resources.AWSWAFRegionalSqlInjectionMatchSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalSqlInje... | go | func (t *Template) GetAllAWSWAFRegionalSqlInjectionMatchSetResources() map[string]*resources.AWSWAFRegionalSqlInjectionMatchSet {
results := map[string]*resources.AWSWAFRegionalSqlInjectionMatchSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalSqlInje... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFRegionalSqlInjectionMatchSetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRegionalSqlInjectionMatchSet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
... | // GetAllAWSWAFRegionalSqlInjectionMatchSetResources retrieves all AWSWAFRegionalSqlInjectionMatchSet items from an AWS CloudFormation template | [
"GetAllAWSWAFRegionalSqlInjectionMatchSetResources",
"retrieves",
"all",
"AWSWAFRegionalSqlInjectionMatchSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9571-L9580 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFRegionalSqlInjectionMatchSetWithName | func (t *Template) GetAWSWAFRegionalSqlInjectionMatchSetWithName(name string) (*resources.AWSWAFRegionalSqlInjectionMatchSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalSqlInjectionMatchSet:
return resource, nil
}
}
return nil, fmt.Er... | go | func (t *Template) GetAWSWAFRegionalSqlInjectionMatchSetWithName(name string) (*resources.AWSWAFRegionalSqlInjectionMatchSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalSqlInjectionMatchSet:
return resource, nil
}
}
return nil, fmt.Er... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFRegionalSqlInjectionMatchSetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFRegionalSqlInjectionMatchSet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources"... | // GetAWSWAFRegionalSqlInjectionMatchSetWithName retrieves all AWSWAFRegionalSqlInjectionMatchSet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFRegionalSqlInjectionMatchSetWithName",
"retrieves",
"all",
"AWSWAFRegionalSqlInjectionMatchSet",
"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#L9584-L9592 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFRegionalWebACLResources | func (t *Template) GetAllAWSWAFRegionalWebACLResources() map[string]*resources.AWSWAFRegionalWebACL {
results := map[string]*resources.AWSWAFRegionalWebACL{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalWebACL:
results[name] = resource
}
}
retur... | go | func (t *Template) GetAllAWSWAFRegionalWebACLResources() map[string]*resources.AWSWAFRegionalWebACL {
results := map[string]*resources.AWSWAFRegionalWebACL{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalWebACL:
results[name] = resource
}
}
retur... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFRegionalWebACLResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRegionalWebACL",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRegionalWebACL",
"... | // GetAllAWSWAFRegionalWebACLResources retrieves all AWSWAFRegionalWebACL items from an AWS CloudFormation template | [
"GetAllAWSWAFRegionalWebACLResources",
"retrieves",
"all",
"AWSWAFRegionalWebACL",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9595-L9604 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFRegionalWebACLWithName | func (t *Template) GetAWSWAFRegionalWebACLWithName(name string) (*resources.AWSWAFRegionalWebACL, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalWebACL:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFRegionalWe... | go | func (t *Template) GetAWSWAFRegionalWebACLWithName(name string) (*resources.AWSWAFRegionalWebACL, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalWebACL:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWAFRegionalWe... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFRegionalWebACLWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFRegionalWebACL",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSWAFRegionalWebACLWithName retrieves all AWSWAFRegionalWebACL items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFRegionalWebACLWithName",
"retrieves",
"all",
"AWSWAFRegionalWebACL",
"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#L9608-L9616 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFRegionalWebACLAssociationResources | func (t *Template) GetAllAWSWAFRegionalWebACLAssociationResources() map[string]*resources.AWSWAFRegionalWebACLAssociation {
results := map[string]*resources.AWSWAFRegionalWebACLAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalWebACLAssociatio... | go | func (t *Template) GetAllAWSWAFRegionalWebACLAssociationResources() map[string]*resources.AWSWAFRegionalWebACLAssociation {
results := map[string]*resources.AWSWAFRegionalWebACLAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalWebACLAssociatio... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFRegionalWebACLAssociationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRegionalWebACLAssociation",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSW... | // GetAllAWSWAFRegionalWebACLAssociationResources retrieves all AWSWAFRegionalWebACLAssociation items from an AWS CloudFormation template | [
"GetAllAWSWAFRegionalWebACLAssociationResources",
"retrieves",
"all",
"AWSWAFRegionalWebACLAssociation",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9619-L9628 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFRegionalWebACLAssociationWithName | func (t *Template) GetAWSWAFRegionalWebACLAssociationWithName(name string) (*resources.AWSWAFRegionalWebACLAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalWebACLAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("res... | go | func (t *Template) GetAWSWAFRegionalWebACLAssociationWithName(name string) (*resources.AWSWAFRegionalWebACLAssociation, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalWebACLAssociation:
return resource, nil
}
}
return nil, fmt.Errorf("res... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFRegionalWebACLAssociationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFRegionalWebACLAssociation",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[... | // GetAWSWAFRegionalWebACLAssociationWithName retrieves all AWSWAFRegionalWebACLAssociation items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFRegionalWebACLAssociationWithName",
"retrieves",
"all",
"AWSWAFRegionalWebACLAssociation",
"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#L9632-L9640 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWAFRegionalXssMatchSetResources | func (t *Template) GetAllAWSWAFRegionalXssMatchSetResources() map[string]*resources.AWSWAFRegionalXssMatchSet {
results := map[string]*resources.AWSWAFRegionalXssMatchSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalXssMatchSet:
results[name] = re... | go | func (t *Template) GetAllAWSWAFRegionalXssMatchSetResources() map[string]*resources.AWSWAFRegionalXssMatchSet {
results := map[string]*resources.AWSWAFRegionalXssMatchSet{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalXssMatchSet:
results[name] = re... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWAFRegionalXssMatchSetResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRegionalXssMatchSet",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWAFRegionalXs... | // GetAllAWSWAFRegionalXssMatchSetResources retrieves all AWSWAFRegionalXssMatchSet items from an AWS CloudFormation template | [
"GetAllAWSWAFRegionalXssMatchSetResources",
"retrieves",
"all",
"AWSWAFRegionalXssMatchSet",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9643-L9652 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWAFRegionalXssMatchSetWithName | func (t *Template) GetAWSWAFRegionalXssMatchSetWithName(name string) (*resources.AWSWAFRegionalXssMatchSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalXssMatchSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type A... | go | func (t *Template) GetAWSWAFRegionalXssMatchSetWithName(name string) (*resources.AWSWAFRegionalXssMatchSet, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWAFRegionalXssMatchSet:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type A... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWAFRegionalXssMatchSetWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWAFRegionalXssMatchSet",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",... | // GetAWSWAFRegionalXssMatchSetWithName retrieves all AWSWAFRegionalXssMatchSet items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWAFRegionalXssMatchSetWithName",
"retrieves",
"all",
"AWSWAFRegionalXssMatchSet",
"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#L9656-L9664 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSWorkSpacesWorkspaceResources | func (t *Template) GetAllAWSWorkSpacesWorkspaceResources() map[string]*resources.AWSWorkSpacesWorkspace {
results := map[string]*resources.AWSWorkSpacesWorkspace{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWorkSpacesWorkspace:
results[name] = resource
}
... | go | func (t *Template) GetAllAWSWorkSpacesWorkspaceResources() map[string]*resources.AWSWorkSpacesWorkspace {
results := map[string]*resources.AWSWorkSpacesWorkspace{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSWorkSpacesWorkspace:
results[name] = resource
}
... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSWorkSpacesWorkspaceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWorkSpacesWorkspace",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSWorkSpacesWorkspace... | // GetAllAWSWorkSpacesWorkspaceResources retrieves all AWSWorkSpacesWorkspace items from an AWS CloudFormation template | [
"GetAllAWSWorkSpacesWorkspaceResources",
"retrieves",
"all",
"AWSWorkSpacesWorkspace",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9667-L9676 | train |
awslabs/goformation | cloudformation/all.go | GetAWSWorkSpacesWorkspaceWithName | func (t *Template) GetAWSWorkSpacesWorkspaceWithName(name string) (*resources.AWSWorkSpacesWorkspace, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWorkSpacesWorkspace:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWorkSpa... | go | func (t *Template) GetAWSWorkSpacesWorkspaceWithName(name string) (*resources.AWSWorkSpacesWorkspace, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSWorkSpacesWorkspace:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSWorkSpa... | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSWorkSpacesWorkspaceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSWorkSpacesWorkspace",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]"... | // GetAWSWorkSpacesWorkspaceWithName retrieves all AWSWorkSpacesWorkspace items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSWorkSpacesWorkspaceWithName",
"retrieves",
"all",
"AWSWorkSpacesWorkspace",
"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#L9680-L9688 | train |
awslabs/goformation | cloudformation/all.go | GetAllAlexaASKSkillResources | func (t *Template) GetAllAlexaASKSkillResources() map[string]*resources.AlexaASKSkill {
results := map[string]*resources.AlexaASKSkill{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AlexaASKSkill:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAlexaASKSkillResources() map[string]*resources.AlexaASKSkill {
results := map[string]*resources.AlexaASKSkill{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AlexaASKSkill:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAlexaASKSkillResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AlexaASKSkill",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AlexaASKSkill",
"{",
"}",
"\n",
... | // GetAllAlexaASKSkillResources retrieves all AlexaASKSkill items from an AWS CloudFormation template | [
"GetAllAlexaASKSkillResources",
"retrieves",
"all",
"AlexaASKSkill",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L9691-L9700 | train |
awslabs/goformation | cloudformation/all.go | GetAlexaASKSkillWithName | func (t *Template) GetAlexaASKSkillWithName(name string) (*resources.AlexaASKSkill, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AlexaASKSkill:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AlexaASKSkill not found", name)
} | go | func (t *Template) GetAlexaASKSkillWithName(name string) (*resources.AlexaASKSkill, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AlexaASKSkill:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AlexaASKSkill not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAlexaASKSkillWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AlexaASKSkill",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"ok",
... | // GetAlexaASKSkillWithName retrieves all AlexaASKSkill items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAlexaASKSkillWithName",
"retrieves",
"all",
"AlexaASKSkill",
"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#L9704-L9712 | train |
awslabs/goformation | goformation.go | OpenWithOptions | func OpenWithOptions(filename string, options *intrinsics.ProcessorOptions) (*cloudformation.Template, error) {
data, err := ioutil.ReadFile(filename)
if err != nil {
return nil, err
}
if strings.HasSuffix(filename, ".json") {
// This is definitely JSON
return ParseJSONWithOptions(data, options)
}
return... | go | func OpenWithOptions(filename string, options *intrinsics.ProcessorOptions) (*cloudformation.Template, error) {
data, err := ioutil.ReadFile(filename)
if err != nil {
return nil, err
}
if strings.HasSuffix(filename, ".json") {
// This is definitely JSON
return ParseJSONWithOptions(data, options)
}
return... | [
"func",
"OpenWithOptions",
"(",
"filename",
"string",
",",
"options",
"*",
"intrinsics",
".",
"ProcessorOptions",
")",
"(",
"*",
"cloudformation",
".",
"Template",
",",
"error",
")",
"{",
"data",
",",
"err",
":=",
"ioutil",
".",
"ReadFile",
"(",
"filename",
... | // OpenWithOptions opens and parse a AWS CloudFormation template from file.
// Works with either JSON or YAML formatted templates.
// Parsing can be tweaked via the specified options. | [
"OpenWithOptions",
"opens",
"and",
"parse",
"a",
"AWS",
"CloudFormation",
"template",
"from",
"file",
".",
"Works",
"with",
"either",
"JSON",
"or",
"YAML",
"formatted",
"templates",
".",
"Parsing",
"can",
"be",
"tweaked",
"via",
"the",
"specified",
"options",
... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/goformation.go#L23-L36 | train |
awslabs/goformation | cloudformation/resources/aws-efs-filesystem.go | MarshalJSON | func (r AWSEFSFileSystem) MarshalJSON() ([]byte, error) {
type Properties AWSEFSFileSystem
return json.Marshal(&struct {
Type string
Properties Properties
DependsOn []string `json:"DependsOn,omitempty"`
Metadata map[string]interface{} `json:"Metadata,omitempty"`
Dele... | go | func (r AWSEFSFileSystem) MarshalJSON() ([]byte, error) {
type Properties AWSEFSFileSystem
return json.Marshal(&struct {
Type string
Properties Properties
DependsOn []string `json:"DependsOn,omitempty"`
Metadata map[string]interface{} `json:"Metadata,omitempty"`
Dele... | [
"func",
"(",
"r",
"AWSEFSFileSystem",
")",
"MarshalJSON",
"(",
")",
"(",
"[",
"]",
"byte",
",",
"error",
")",
"{",
"type",
"Properties",
"AWSEFSFileSystem",
"\n",
"return",
"json",
".",
"Marshal",
"(",
"&",
"struct",
"{",
"Type",
"string",
"\n",
"Propert... | // MarshalJSON is a custom JSON marshalling hook that embeds this object into
// an AWS CloudFormation JSON resource's 'Properties' field and adds a 'Type'. | [
"MarshalJSON",
"is",
"a",
"custom",
"JSON",
"marshalling",
"hook",
"that",
"embeds",
"this",
"object",
"into",
"an",
"AWS",
"CloudFormation",
"JSON",
"resource",
"s",
"Properties",
"field",
"and",
"adds",
"a",
"Type",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/resources/aws-efs-filesystem.go#L91-L106 | train |
awslabs/goformation | cloudformation/resources/aws-efs-filesystem.go | UnmarshalJSON | func (r *AWSEFSFileSystem) UnmarshalJSON(b []byte) error {
type Properties AWSEFSFileSystem
res := &struct {
Type string
Properties *Properties
DependsOn []string
Metadata map[string]interface{}
}{}
dec := json.NewDecoder(bytes.NewReader(b))
dec.DisallowUnknownFields() // Force error if unknown f... | go | func (r *AWSEFSFileSystem) UnmarshalJSON(b []byte) error {
type Properties AWSEFSFileSystem
res := &struct {
Type string
Properties *Properties
DependsOn []string
Metadata map[string]interface{}
}{}
dec := json.NewDecoder(bytes.NewReader(b))
dec.DisallowUnknownFields() // Force error if unknown f... | [
"func",
"(",
"r",
"*",
"AWSEFSFileSystem",
")",
"UnmarshalJSON",
"(",
"b",
"[",
"]",
"byte",
")",
"error",
"{",
"type",
"Properties",
"AWSEFSFileSystem",
"\n",
"res",
":=",
"&",
"struct",
"{",
"Type",
"string",
"\n",
"Properties",
"*",
"Properties",
"\n",
... | // UnmarshalJSON is a custom JSON unmarshalling hook that strips the outer
// AWS CloudFormation resource object, and just keeps the 'Properties' field. | [
"UnmarshalJSON",
"is",
"a",
"custom",
"JSON",
"unmarshalling",
"hook",
"that",
"strips",
"the",
"outer",
"AWS",
"CloudFormation",
"resource",
"object",
"and",
"just",
"keeps",
"the",
"Properties",
"field",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/resources/aws-efs-filesystem.go#L110-L139 | train |
awslabs/goformation | intrinsics/conditions.go | condition | func condition(name string, input interface{}, template interface{}, options *ProcessorOptions) interface{} {
if v, ok := input.(string); ok {
if v, ok := retrieveCondition(input, template); ok {
return v
}
if c := getCondition(v, template); c != nil {
res := search(c, template, options)
// replace th... | go | func condition(name string, input interface{}, template interface{}, options *ProcessorOptions) interface{} {
if v, ok := input.(string); ok {
if v, ok := retrieveCondition(input, template); ok {
return v
}
if c := getCondition(v, template); c != nil {
res := search(c, template, options)
// replace th... | [
"func",
"condition",
"(",
"name",
"string",
",",
"input",
"interface",
"{",
"}",
",",
"template",
"interface",
"{",
"}",
",",
"options",
"*",
"ProcessorOptions",
")",
"interface",
"{",
"}",
"{",
"if",
"v",
",",
"ok",
":=",
"input",
".",
"(",
"string",
... | // condition evaluates a condition | [
"condition",
"evaluates",
"a",
"condition"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/intrinsics/conditions.go#L4-L21 | train |
awslabs/goformation | intrinsics/fnsub.go | Sub | func Sub(value string) string {
i := `{ "Fn::Sub" : "` + value + `" }`
return base64.StdEncoding.EncodeToString([]byte(i))
} | go | func Sub(value string) string {
i := `{ "Fn::Sub" : "` + value + `" }`
return base64.StdEncoding.EncodeToString([]byte(i))
} | [
"func",
"Sub",
"(",
"value",
"string",
")",
"string",
"{",
"i",
":=",
"`{ \"Fn::Sub\" : \"`",
"+",
"value",
"+",
"`\" }`",
"\n",
"return",
"base64",
".",
"StdEncoding",
".",
"EncodeToString",
"(",
"[",
"]",
"byte",
"(",
"i",
")",
")",
"\n",
"}"
] | // NewSub substitutes variables in an input string with values that you specify. In your templates, you can use this function to construct commands or outputs that include values that aren't available until you create or update a stack. | [
"NewSub",
"substitutes",
"variables",
"in",
"an",
"input",
"string",
"with",
"values",
"that",
"you",
"specify",
".",
"In",
"your",
"templates",
"you",
"can",
"use",
"this",
"function",
"to",
"construct",
"commands",
"or",
"outputs",
"that",
"include",
"values... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/intrinsics/fnsub.go#L70-L73 | train |
awslabs/goformation | generate/generate.go | Generate | func (rg *ResourceGenerator) Generate() error {
// Process the primary template first, since the primary template resources
// are added to the JSON schema for fragment transform specs
fmt.Printf("Downloading cloudformation specification from %s\n", rg.primaryUrl)
primaryData, err := rg.downloadSpec(rg.primaryUrl)... | go | func (rg *ResourceGenerator) Generate() error {
// Process the primary template first, since the primary template resources
// are added to the JSON schema for fragment transform specs
fmt.Printf("Downloading cloudformation specification from %s\n", rg.primaryUrl)
primaryData, err := rg.downloadSpec(rg.primaryUrl)... | [
"func",
"(",
"rg",
"*",
"ResourceGenerator",
")",
"Generate",
"(",
")",
"error",
"{",
"// Process the primary template first, since the primary template resources",
"// are added to the JSON schema for fragment transform specs",
"fmt",
".",
"Printf",
"(",
"\"",
"\\n",
"\"",
"... | // Generate generates Go structs and a JSON Schema from the AWS CloudFormation
// Resource Specifications provided to NewResourceGenerator | [
"Generate",
"generates",
"Go",
"structs",
"and",
"a",
"JSON",
"Schema",
"from",
"the",
"AWS",
"CloudFormation",
"Resource",
"Specifications",
"provided",
"to",
"NewResourceGenerator"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/generate/generate.go#L71-L115 | train |
awslabs/goformation | cloudformation/intrinsics.go | FindInMap | func FindInMap(mapName, topLevelKey, secondLevelKey interface{}) string {
return encode(fmt.Sprintf(`{ "Fn::FindInMap" : [ "%v", "%v", "%v" ] }`, mapName, topLevelKey, secondLevelKey))
} | go | func FindInMap(mapName, topLevelKey, secondLevelKey interface{}) string {
return encode(fmt.Sprintf(`{ "Fn::FindInMap" : [ "%v", "%v", "%v" ] }`, mapName, topLevelKey, secondLevelKey))
} | [
"func",
"FindInMap",
"(",
"mapName",
",",
"topLevelKey",
",",
"secondLevelKey",
"interface",
"{",
"}",
")",
"string",
"{",
"return",
"encode",
"(",
"fmt",
".",
"Sprintf",
"(",
"`{ \"Fn::FindInMap\" : [ \"%v\", \"%v\", \"%v\" ] }`",
",",
"mapName",
",",
"topLevelKey"... | // FindInMap returns the value corresponding to keys in a two-level map that is declared in the Mappings section. | [
"FindInMap",
"returns",
"the",
"value",
"corresponding",
"to",
"keys",
"in",
"a",
"two",
"-",
"level",
"map",
"that",
"is",
"declared",
"in",
"the",
"Mappings",
"section",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/intrinsics.go#L141-L143 | train |
awslabs/goformation | cloudformation/intrinsics.go | Select | func Select(index interface{}, list []string) string {
return encode(fmt.Sprintf(`{ "Fn::Select": [ "%v", [ "%v" ] ] }`, index, strings.Trim(strings.Join(list, `", "`), `, "`)))
} | go | func Select(index interface{}, list []string) string {
return encode(fmt.Sprintf(`{ "Fn::Select": [ "%v", [ "%v" ] ] }`, index, strings.Trim(strings.Join(list, `", "`), `, "`)))
} | [
"func",
"Select",
"(",
"index",
"interface",
"{",
"}",
",",
"list",
"[",
"]",
"string",
")",
"string",
"{",
"return",
"encode",
"(",
"fmt",
".",
"Sprintf",
"(",
"`{ \"Fn::Select\": [ \"%v\", [ \"%v\" ] ] }`",
",",
"index",
",",
"strings",
".",
"Trim",
"(",
... | // Select returns a single object from a list of objects by index. | [
"Select",
"returns",
"a",
"single",
"object",
"from",
"a",
"list",
"of",
"objects",
"by",
"index",
"."
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/intrinsics.go#L158-L160 | train |
grafana/metrictank | idx/memory/partitioned_idx.go | Init | func (p *PartitionedMemoryIdx) Init() error {
for _, m := range p.Partition {
err := m.Init()
if err != nil {
return err
}
}
return nil
} | go | func (p *PartitionedMemoryIdx) Init() error {
for _, m := range p.Partition {
err := m.Init()
if err != nil {
return err
}
}
return nil
} | [
"func",
"(",
"p",
"*",
"PartitionedMemoryIdx",
")",
"Init",
"(",
")",
"error",
"{",
"for",
"_",
",",
"m",
":=",
"range",
"p",
".",
"Partition",
"{",
"err",
":=",
"m",
".",
"Init",
"(",
")",
"\n",
"if",
"err",
"!=",
"nil",
"{",
"return",
"err",
... | // Init initializes the index at startup and
// blocks until the index is ready for use. | [
"Init",
"initializes",
"the",
"index",
"at",
"startup",
"and",
"blocks",
"until",
"the",
"index",
"is",
"ready",
"for",
"use",
"."
] | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/idx/memory/partitioned_idx.go#L35-L43 | train |
grafana/metrictank | idx/memory/partitioned_idx.go | AddOrUpdate | func (p *PartitionedMemoryIdx) AddOrUpdate(mkey schema.MKey, data *schema.MetricData, partition int32) (idx.Archive, int32, bool) {
return p.Partition[partition].AddOrUpdate(mkey, data, partition)
} | go | func (p *PartitionedMemoryIdx) AddOrUpdate(mkey schema.MKey, data *schema.MetricData, partition int32) (idx.Archive, int32, bool) {
return p.Partition[partition].AddOrUpdate(mkey, data, partition)
} | [
"func",
"(",
"p",
"*",
"PartitionedMemoryIdx",
")",
"AddOrUpdate",
"(",
"mkey",
"schema",
".",
"MKey",
",",
"data",
"*",
"schema",
".",
"MetricData",
",",
"partition",
"int32",
")",
"(",
"idx",
".",
"Archive",
",",
"int32",
",",
"bool",
")",
"{",
"retu... | // AddOrUpdate makes sure a metric is known in the index,
// and should be called for every received metric. | [
"AddOrUpdate",
"makes",
"sure",
"a",
"metric",
"is",
"known",
"in",
"the",
"index",
"and",
"should",
"be",
"called",
"for",
"every",
"received",
"metric",
"."
] | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/idx/memory/partitioned_idx.go#L60-L62 | train |
grafana/metrictank | idx/memory/partitioned_idx.go | Get | func (p *PartitionedMemoryIdx) Get(key schema.MKey) (idx.Archive, bool) {
g, _ := errgroup.WithContext(context.Background())
resultChan := make(chan *idx.Archive, len(p.Partition))
for _, m := range p.Partition {
m := m
g.Go(func() error {
if a, ok := m.Get(key); ok {
resultChan <- &a
}
return nil
... | go | func (p *PartitionedMemoryIdx) Get(key schema.MKey) (idx.Archive, bool) {
g, _ := errgroup.WithContext(context.Background())
resultChan := make(chan *idx.Archive, len(p.Partition))
for _, m := range p.Partition {
m := m
g.Go(func() error {
if a, ok := m.Get(key); ok {
resultChan <- &a
}
return nil
... | [
"func",
"(",
"p",
"*",
"PartitionedMemoryIdx",
")",
"Get",
"(",
"key",
"schema",
".",
"MKey",
")",
"(",
"idx",
".",
"Archive",
",",
"bool",
")",
"{",
"g",
",",
"_",
":=",
"errgroup",
".",
"WithContext",
"(",
"context",
".",
"Background",
"(",
")",
... | // Get returns the archive for the requested id. | [
"Get",
"returns",
"the",
"archive",
"for",
"the",
"requested",
"id",
"."
] | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/idx/memory/partitioned_idx.go#L70-L101 | train |
grafana/metrictank | idx/memory/partitioned_idx.go | GetPath | func (p *PartitionedMemoryIdx) GetPath(orgId uint32, path string) []idx.Archive {
g, _ := errgroup.WithContext(context.Background())
result := make([][]idx.Archive, len(p.Partition))
var i int
for _, m := range p.Partition {
pos, m := i, m
g.Go(func() error {
result[pos] = m.GetPath(orgId, path)
return ni... | go | func (p *PartitionedMemoryIdx) GetPath(orgId uint32, path string) []idx.Archive {
g, _ := errgroup.WithContext(context.Background())
result := make([][]idx.Archive, len(p.Partition))
var i int
for _, m := range p.Partition {
pos, m := i, m
g.Go(func() error {
result[pos] = m.GetPath(orgId, path)
return ni... | [
"func",
"(",
"p",
"*",
"PartitionedMemoryIdx",
")",
"GetPath",
"(",
"orgId",
"uint32",
",",
"path",
"string",
")",
"[",
"]",
"idx",
".",
"Archive",
"{",
"g",
",",
"_",
":=",
"errgroup",
".",
"WithContext",
"(",
"context",
".",
"Background",
"(",
")",
... | // GetPath returns the archives under the given path. | [
"GetPath",
"returns",
"the",
"archives",
"under",
"the",
"given",
"path",
"."
] | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/idx/memory/partitioned_idx.go#L104-L131 | train |
grafana/metrictank | idx/memory/partitioned_idx.go | Prune | func (p *PartitionedMemoryIdx) Prune(oldest time.Time) ([]idx.Archive, error) {
// Prune each partition sequentially.
result := []idx.Archive{}
for _, m := range p.Partition {
found, err := m.Prune(oldest)
if err != nil {
return result, err
}
result = append(result, found...)
}
return result, nil
} | go | func (p *PartitionedMemoryIdx) Prune(oldest time.Time) ([]idx.Archive, error) {
// Prune each partition sequentially.
result := []idx.Archive{}
for _, m := range p.Partition {
found, err := m.Prune(oldest)
if err != nil {
return result, err
}
result = append(result, found...)
}
return result, nil
} | [
"func",
"(",
"p",
"*",
"PartitionedMemoryIdx",
")",
"Prune",
"(",
"oldest",
"time",
".",
"Time",
")",
"(",
"[",
"]",
"idx",
".",
"Archive",
",",
"error",
")",
"{",
"// Prune each partition sequentially.",
"result",
":=",
"[",
"]",
"idx",
".",
"Archive",
... | // Prune deletes all metrics that haven't been seen since the given timestamp.
// It returns all Archives deleted and any error encountered. | [
"Prune",
"deletes",
"all",
"metrics",
"that",
"haven",
"t",
"been",
"seen",
"since",
"the",
"given",
"timestamp",
".",
"It",
"returns",
"all",
"Archives",
"deleted",
"and",
"any",
"error",
"encountered",
"."
] | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/idx/memory/partitioned_idx.go#L259-L270 | train |
grafana/metrictank | idx/memory/partitioned_idx.go | FindTagValues | func (p *PartitionedMemoryIdx) FindTagValues(orgId uint32, tag string, prefix string, expressions []string, from int64, limit uint) ([]string, error) {
g, _ := errgroup.WithContext(context.Background())
result := make([][]string, len(p.Partition))
var i int
for _, m := range p.Partition {
pos, m := i, m
g.Go(fu... | go | func (p *PartitionedMemoryIdx) FindTagValues(orgId uint32, tag string, prefix string, expressions []string, from int64, limit uint) ([]string, error) {
g, _ := errgroup.WithContext(context.Background())
result := make([][]string, len(p.Partition))
var i int
for _, m := range p.Partition {
pos, m := i, m
g.Go(fu... | [
"func",
"(",
"p",
"*",
"PartitionedMemoryIdx",
")",
"FindTagValues",
"(",
"orgId",
"uint32",
",",
"tag",
"string",
",",
"prefix",
"string",
",",
"expressions",
"[",
"]",
"string",
",",
"from",
"int64",
",",
"limit",
"uint",
")",
"(",
"[",
"]",
"string",
... | // FindTagValues generates a list of possible values that could
// complete a given value prefix. It requires a tag to be specified and only values
// of the given tag will be returned. It also accepts additional conditions to
// further narrow down the result set in the format of graphite's tag queries | [
"FindTagValues",
"generates",
"a",
"list",
"of",
"possible",
"values",
"that",
"could",
"complete",
"a",
"given",
"value",
"prefix",
".",
"It",
"requires",
"a",
"tag",
"to",
"be",
"specified",
"and",
"only",
"values",
"of",
"the",
"given",
"tag",
"will",
"... | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/idx/memory/partitioned_idx.go#L402-L436 | train |
grafana/metrictank | idx/memory/partitioned_idx.go | TagDetails | func (p *PartitionedMemoryIdx) TagDetails(orgId uint32, key string, filter string, from int64) (map[string]uint64, error) {
g, _ := errgroup.WithContext(context.Background())
result := make([]map[string]uint64, len(p.Partition))
var i int
for _, m := range p.Partition {
pos, m := i, m
g.Go(func() error {
fou... | go | func (p *PartitionedMemoryIdx) TagDetails(orgId uint32, key string, filter string, from int64) (map[string]uint64, error) {
g, _ := errgroup.WithContext(context.Background())
result := make([]map[string]uint64, len(p.Partition))
var i int
for _, m := range p.Partition {
pos, m := i, m
g.Go(func() error {
fou... | [
"func",
"(",
"p",
"*",
"PartitionedMemoryIdx",
")",
"TagDetails",
"(",
"orgId",
"uint32",
",",
"key",
"string",
",",
"filter",
"string",
",",
"from",
"int64",
")",
"(",
"map",
"[",
"string",
"]",
"uint64",
",",
"error",
")",
"{",
"g",
",",
"_",
":=",... | // TagDetails returns a list of all values associated with a given tag key in the
// given org. The occurrences of each value is counted and the count is referred to by
// the metric names in the returned map.
// If the third parameter is not "" it will be used as a regular expression to filter
// the values before acc... | [
"TagDetails",
"returns",
"a",
"list",
"of",
"all",
"values",
"associated",
"with",
"a",
"given",
"tag",
"key",
"in",
"the",
"given",
"org",
".",
"The",
"occurrences",
"of",
"each",
"value",
"is",
"counted",
"and",
"the",
"count",
"is",
"referred",
"to",
... | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/idx/memory/partitioned_idx.go#L445-L475 | train |
grafana/metrictank | expr/parse.go | Parse | func Parse(e string) (*expr, string, error) {
// skip whitespace
for len(e) > 1 && e[0] == ' ' {
e = e[1:]
}
if len(e) == 0 {
return nil, "", ErrMissingExpr
}
if '0' <= e[0] && e[0] <= '9' || e[0] == '-' || e[0] == '+' {
return parseConst(e)
}
if val, ok := strToBool(e); ok {
// 'false' is 5 chars, '... | go | func Parse(e string) (*expr, string, error) {
// skip whitespace
for len(e) > 1 && e[0] == ' ' {
e = e[1:]
}
if len(e) == 0 {
return nil, "", ErrMissingExpr
}
if '0' <= e[0] && e[0] <= '9' || e[0] == '-' || e[0] == '+' {
return parseConst(e)
}
if val, ok := strToBool(e); ok {
// 'false' is 5 chars, '... | [
"func",
"Parse",
"(",
"e",
"string",
")",
"(",
"*",
"expr",
",",
"string",
",",
"error",
")",
"{",
"// skip whitespace",
"for",
"len",
"(",
"e",
")",
">",
"1",
"&&",
"e",
"[",
"0",
"]",
"==",
"' '",
"{",
"e",
"=",
"e",
"[",
"1",
":",
"]",
"... | // Parses an expression string and turns it into an expression
// also returns any leftover data that could not be parsed | [
"Parses",
"an",
"expression",
"string",
"and",
"turns",
"it",
"into",
"an",
"expression",
"also",
"returns",
"any",
"leftover",
"data",
"that",
"could",
"not",
"be",
"parsed"
] | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/expr/parse.go#L102-L154 | train |
grafana/metrictank | expr/parse.go | parseArgList | func parseArgList(e string) (string, []*expr, map[string]*expr, string, error) {
var (
posArgs []*expr
namedArgs map[string]*expr
)
if e[0] != '(' {
panic("arg list should start with paren. calling code should have asserted this")
}
ArgString := e[1:]
e = e[1:]
for {
var arg *expr
var err error
... | go | func parseArgList(e string) (string, []*expr, map[string]*expr, string, error) {
var (
posArgs []*expr
namedArgs map[string]*expr
)
if e[0] != '(' {
panic("arg list should start with paren. calling code should have asserted this")
}
ArgString := e[1:]
e = e[1:]
for {
var arg *expr
var err error
... | [
"func",
"parseArgList",
"(",
"e",
"string",
")",
"(",
"string",
",",
"[",
"]",
"*",
"expr",
",",
"map",
"[",
"string",
"]",
"*",
"expr",
",",
"string",
",",
"error",
")",
"{",
"var",
"(",
"posArgs",
"[",
"]",
"*",
"expr",
"\n",
"namedArgs",
"map"... | // caller must assure s starts with opening paren | [
"caller",
"must",
"assure",
"s",
"starts",
"with",
"opening",
"paren"
] | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/expr/parse.go#L169-L240 | train |
grafana/metrictank | expr/parse.go | parseString | func parseString(s string) (string, string, error) {
if s[0] != '\'' && s[0] != '"' {
panic("string should start with open quote. calling code should have asserted this")
}
match := s[0]
s = s[1:]
var i int
for i < len(s) && s[i] != match {
i++
}
if i == len(s) {
return "", "", ErrMissingQuote
}
... | go | func parseString(s string) (string, string, error) {
if s[0] != '\'' && s[0] != '"' {
panic("string should start with open quote. calling code should have asserted this")
}
match := s[0]
s = s[1:]
var i int
for i < len(s) && s[i] != match {
i++
}
if i == len(s) {
return "", "", ErrMissingQuote
}
... | [
"func",
"parseString",
"(",
"s",
"string",
")",
"(",
"string",
",",
"string",
",",
"error",
")",
"{",
"if",
"s",
"[",
"0",
"]",
"!=",
"'\\''",
"&&",
"s",
"[",
"0",
"]",
"!=",
"'\"'",
"{",
"panic",
"(",
"\"",
"\"",
")",
"\n",
"}",
"\n\n",
"mat... | // caller must assure s starts with a single or double quote | [
"caller",
"must",
"assure",
"s",
"starts",
"with",
"a",
"single",
"or",
"double",
"quote"
] | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/expr/parse.go#L330-L351 | train |
grafana/metrictank | expr/parse.go | aggKey | func aggKey(serie models.Series, nodes []expr) string {
metric := extractMetric(serie.Target)
if len(metric) == 0 {
metric = serie.Tags["name"]
}
// Trim off tags (if they are there) and split on '.'
parts := strings.Split(strings.SplitN(metric, ";", 2)[0], ".")
var name []string
for _, n := range nodes {
if... | go | func aggKey(serie models.Series, nodes []expr) string {
metric := extractMetric(serie.Target)
if len(metric) == 0 {
metric = serie.Tags["name"]
}
// Trim off tags (if they are there) and split on '.'
parts := strings.Split(strings.SplitN(metric, ";", 2)[0], ".")
var name []string
for _, n := range nodes {
if... | [
"func",
"aggKey",
"(",
"serie",
"models",
".",
"Series",
",",
"nodes",
"[",
"]",
"expr",
")",
"string",
"{",
"metric",
":=",
"extractMetric",
"(",
"serie",
".",
"Target",
")",
"\n",
"if",
"len",
"(",
"metric",
")",
"==",
"0",
"{",
"metric",
"=",
"s... | // aggKey creates a key for a serie based on its target metric as well
// as a list of nodes which need to be extracted
// returns a single string | [
"aggKey",
"creates",
"a",
"key",
"for",
"a",
"serie",
"based",
"on",
"its",
"target",
"metric",
"as",
"well",
"as",
"a",
"list",
"of",
"nodes",
"which",
"need",
"to",
"be",
"extracted",
"returns",
"a",
"single",
"string"
] | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/expr/parse.go#L406-L430 | train |
grafana/metrictank | expr/funcs.go | summarizeCons | func summarizeCons(series []models.Series) (consolidation.Consolidator, consolidation.Consolidator) {
for _, serie := range series {
if serie.QueryCons != 0 {
return serie.Consolidator, serie.QueryCons
}
}
return series[0].Consolidator, series[0].QueryCons
} | go | func summarizeCons(series []models.Series) (consolidation.Consolidator, consolidation.Consolidator) {
for _, serie := range series {
if serie.QueryCons != 0 {
return serie.Consolidator, serie.QueryCons
}
}
return series[0].Consolidator, series[0].QueryCons
} | [
"func",
"summarizeCons",
"(",
"series",
"[",
"]",
"models",
".",
"Series",
")",
"(",
"consolidation",
".",
"Consolidator",
",",
"consolidation",
".",
"Consolidator",
")",
"{",
"for",
"_",
",",
"serie",
":=",
"range",
"series",
"{",
"if",
"serie",
".",
"Q... | // summarizeCons returns the first explicitly specified Consolidator, QueryCons for the given set of input series,
// or the first one, otherwise. | [
"summarizeCons",
"returns",
"the",
"first",
"explicitly",
"specified",
"Consolidator",
"QueryCons",
"for",
"the",
"given",
"set",
"of",
"input",
"series",
"or",
"the",
"first",
"one",
"otherwise",
"."
] | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/expr/funcs.go#L107-L114 | train |
grafana/metrictank | mdata/cache/ccache.go | NewCCache | func NewCCache() *CCache {
if maxSize == 0 {
return nil
}
cc := &CCache{
metricCache: make(map[schema.AMKey]*CCacheMetric),
metricRawKeys: make(map[schema.MKey]map[schema.Archive]struct{}),
accnt: accnt.NewFlatAccnt(maxSize),
stop: make(chan interface{}),
tracer: opentracing.No... | go | func NewCCache() *CCache {
if maxSize == 0 {
return nil
}
cc := &CCache{
metricCache: make(map[schema.AMKey]*CCacheMetric),
metricRawKeys: make(map[schema.MKey]map[schema.Archive]struct{}),
accnt: accnt.NewFlatAccnt(maxSize),
stop: make(chan interface{}),
tracer: opentracing.No... | [
"func",
"NewCCache",
"(",
")",
"*",
"CCache",
"{",
"if",
"maxSize",
"==",
"0",
"{",
"return",
"nil",
"\n",
"}",
"\n\n",
"cc",
":=",
"&",
"CCache",
"{",
"metricCache",
":",
"make",
"(",
"map",
"[",
"schema",
".",
"AMKey",
"]",
"*",
"CCacheMetric",
"... | // NewCCache creates a new chunk cache.
// When cache is disabled, this will return nil
// but the caller doesn't have to worry about this and can call methods as usual on a nil cache | [
"NewCCache",
"creates",
"a",
"new",
"chunk",
"cache",
".",
"When",
"cache",
"is",
"disabled",
"this",
"will",
"return",
"nil",
"but",
"the",
"caller",
"doesn",
"t",
"have",
"to",
"worry",
"about",
"this",
"and",
"can",
"call",
"methods",
"as",
"usual",
"... | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/mdata/cache/ccache.go#L55-L69 | train |
grafana/metrictank | mdata/cache/ccache.go | DelMetric | func (c *CCache) DelMetric(rawMetric schema.MKey) (int, int) {
if c == nil {
return 0, 0
}
archives, series := 0, 0
c.Lock()
defer c.Unlock()
archs, ok := c.metricRawKeys[rawMetric]
if !ok {
return archives, series
}
metric := schema.AMKey{MKey: rawMetric}
for arch := range archs {
metric.Archive = a... | go | func (c *CCache) DelMetric(rawMetric schema.MKey) (int, int) {
if c == nil {
return 0, 0
}
archives, series := 0, 0
c.Lock()
defer c.Unlock()
archs, ok := c.metricRawKeys[rawMetric]
if !ok {
return archives, series
}
metric := schema.AMKey{MKey: rawMetric}
for arch := range archs {
metric.Archive = a... | [
"func",
"(",
"c",
"*",
"CCache",
")",
"DelMetric",
"(",
"rawMetric",
"schema",
".",
"MKey",
")",
"(",
"int",
",",
"int",
")",
"{",
"if",
"c",
"==",
"nil",
"{",
"return",
"0",
",",
"0",
"\n",
"}",
"\n",
"archives",
",",
"series",
":=",
"0",
",",... | // takes a raw key and deletes all archives associated with it from cache | [
"takes",
"a",
"raw",
"key",
"and",
"deletes",
"all",
"archives",
"associated",
"with",
"it",
"from",
"cache"
] | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/mdata/cache/ccache.go#L90-L116 | train |
grafana/metrictank | mdata/cache/ccache.go | AddIfHot | func (c *CCache) AddIfHot(metric schema.AMKey, prev uint32, itergen chunk.IterGen) {
if c == nil {
return
}
c.RLock()
var met *CCacheMetric
var ok bool
// if this metric is not cached at all it is not hot
if met, ok = c.metricCache[metric]; !ok {
c.RUnlock()
return
}
// if the previous chunk is not ca... | go | func (c *CCache) AddIfHot(metric schema.AMKey, prev uint32, itergen chunk.IterGen) {
if c == nil {
return
}
c.RLock()
var met *CCacheMetric
var ok bool
// if this metric is not cached at all it is not hot
if met, ok = c.metricCache[metric]; !ok {
c.RUnlock()
return
}
// if the previous chunk is not ca... | [
"func",
"(",
"c",
"*",
"CCache",
")",
"AddIfHot",
"(",
"metric",
"schema",
".",
"AMKey",
",",
"prev",
"uint32",
",",
"itergen",
"chunk",
".",
"IterGen",
")",
"{",
"if",
"c",
"==",
"nil",
"{",
"return",
"\n",
"}",
"\n",
"c",
".",
"RLock",
"(",
")"... | // adds the given chunk to the cache, but only if the metric is sufficiently hot | [
"adds",
"the",
"given",
"chunk",
"to",
"the",
"cache",
"but",
"only",
"if",
"the",
"metric",
"is",
"sufficiently",
"hot"
] | dd9b92db72d27553d9a8214bff5f01d2531f63b0 | https://github.com/grafana/metrictank/blob/dd9b92db72d27553d9a8214bff5f01d2531f63b0/mdata/cache/ccache.go#L119-L146 | train |
Subsets and Splits
SQL Console for semeru/code-text-go
Retrieves a limited set of code samples with their languages, with a specific case adjustment for 'Go' language.