repo stringlengths 5 67 | path stringlengths 4 218 | func_name stringlengths 0 151 | original_string stringlengths 52 373k | language stringclasses 6 values | code stringlengths 52 373k | code_tokens listlengths 10 512 | docstring stringlengths 3 47.2k | docstring_tokens listlengths 3 234 | sha stringlengths 40 40 | url stringlengths 85 339 | partition stringclasses 3 values |
|---|---|---|---|---|---|---|---|---|---|---|---|
awslabs/goformation | cloudformation/all.go | GetAWSSageMakerEndpointWithName | func (t *Template) GetAWSSageMakerEndpointWithName(name string) (*resources.AWSSageMakerEndpoint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSageMakerEndpoint:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSageMakerEndpoint not found", name)
} | go | func (t *Template) GetAWSSageMakerEndpointWithName(name string) (*resources.AWSSageMakerEndpoint, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSageMakerEndpoint:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSageMakerEndpoint not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSSageMakerEndpointWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSSageMakerEndpoint",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
... | // GetAWSSageMakerEndpointWithName retrieves all AWSSageMakerEndpoint items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSSageMakerEndpointWithName",
"retrieves",
"all",
"AWSSageMakerEndpoint",
"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#L8528-L8536 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSSageMakerEndpointConfigResources | func (t *Template) GetAllAWSSageMakerEndpointConfigResources() map[string]*resources.AWSSageMakerEndpointConfig {
results := map[string]*resources.AWSSageMakerEndpointConfig{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSageMakerEndpointConfig:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSSageMakerEndpointConfigResources() map[string]*resources.AWSSageMakerEndpointConfig {
results := map[string]*resources.AWSSageMakerEndpointConfig{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSageMakerEndpointConfig:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSSageMakerEndpointConfigResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSSageMakerEndpointConfig",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSSageMakerEn... | // GetAllAWSSageMakerEndpointConfigResources retrieves all AWSSageMakerEndpointConfig items from an AWS CloudFormation template | [
"GetAllAWSSageMakerEndpointConfigResources",
"retrieves",
"all",
"AWSSageMakerEndpointConfig",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8539-L8548 | train |
awslabs/goformation | cloudformation/all.go | GetAWSSageMakerEndpointConfigWithName | func (t *Template) GetAWSSageMakerEndpointConfigWithName(name string) (*resources.AWSSageMakerEndpointConfig, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSageMakerEndpointConfig:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSageMakerEndpointConfig not found", name)
} | go | func (t *Template) GetAWSSageMakerEndpointConfigWithName(name string) (*resources.AWSSageMakerEndpointConfig, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSageMakerEndpointConfig:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSageMakerEndpointConfig not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSSageMakerEndpointConfigWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSSageMakerEndpointConfig",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name... | // GetAWSSageMakerEndpointConfigWithName retrieves all AWSSageMakerEndpointConfig items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSSageMakerEndpointConfigWithName",
"retrieves",
"all",
"AWSSageMakerEndpointConfig",
"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#L8552-L8560 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSSageMakerModelResources | func (t *Template) GetAllAWSSageMakerModelResources() map[string]*resources.AWSSageMakerModel {
results := map[string]*resources.AWSSageMakerModel{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSageMakerModel:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSSageMakerModelResources() map[string]*resources.AWSSageMakerModel {
results := map[string]*resources.AWSSageMakerModel{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSageMakerModel:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSSageMakerModelResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSSageMakerModel",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSSageMakerModel",
"{",
"}"... | // GetAllAWSSageMakerModelResources retrieves all AWSSageMakerModel items from an AWS CloudFormation template | [
"GetAllAWSSageMakerModelResources",
"retrieves",
"all",
"AWSSageMakerModel",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8563-L8572 | train |
awslabs/goformation | cloudformation/all.go | GetAWSSageMakerModelWithName | func (t *Template) GetAWSSageMakerModelWithName(name string) (*resources.AWSSageMakerModel, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSageMakerModel:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSageMakerModel not found", name)
} | go | func (t *Template) GetAWSSageMakerModelWithName(name string) (*resources.AWSSageMakerModel, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSageMakerModel:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSageMakerModel not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSSageMakerModelWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSSageMakerModel",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
... | // GetAWSSageMakerModelWithName retrieves all AWSSageMakerModel items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSSageMakerModelWithName",
"retrieves",
"all",
"AWSSageMakerModel",
"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#L8576-L8584 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSSageMakerNotebookInstanceResources | func (t *Template) GetAllAWSSageMakerNotebookInstanceResources() map[string]*resources.AWSSageMakerNotebookInstance {
results := map[string]*resources.AWSSageMakerNotebookInstance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSageMakerNotebookInstance:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSSageMakerNotebookInstanceResources() map[string]*resources.AWSSageMakerNotebookInstance {
results := map[string]*resources.AWSSageMakerNotebookInstance{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSageMakerNotebookInstance:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSSageMakerNotebookInstanceResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSSageMakerNotebookInstance",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSSageMak... | // GetAllAWSSageMakerNotebookInstanceResources retrieves all AWSSageMakerNotebookInstance items from an AWS CloudFormation template | [
"GetAllAWSSageMakerNotebookInstanceResources",
"retrieves",
"all",
"AWSSageMakerNotebookInstance",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8587-L8596 | train |
awslabs/goformation | cloudformation/all.go | GetAWSSageMakerNotebookInstanceWithName | func (t *Template) GetAWSSageMakerNotebookInstanceWithName(name string) (*resources.AWSSageMakerNotebookInstance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSageMakerNotebookInstance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSageMakerNotebookInstance not found", name)
} | go | func (t *Template) GetAWSSageMakerNotebookInstanceWithName(name string) (*resources.AWSSageMakerNotebookInstance, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSageMakerNotebookInstance:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSageMakerNotebookInstance not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSSageMakerNotebookInstanceWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSSageMakerNotebookInstance",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"... | // GetAWSSageMakerNotebookInstanceWithName retrieves all AWSSageMakerNotebookInstance items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSSageMakerNotebookInstanceWithName",
"retrieves",
"all",
"AWSSageMakerNotebookInstance",
"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#L8600-L8608 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSSageMakerNotebookInstanceLifecycleConfigResources | func (t *Template) GetAllAWSSageMakerNotebookInstanceLifecycleConfigResources() map[string]*resources.AWSSageMakerNotebookInstanceLifecycleConfig {
results := map[string]*resources.AWSSageMakerNotebookInstanceLifecycleConfig{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSageMakerNotebookInstanceLifecycleConfig:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSSageMakerNotebookInstanceLifecycleConfigResources() map[string]*resources.AWSSageMakerNotebookInstanceLifecycleConfig {
results := map[string]*resources.AWSSageMakerNotebookInstanceLifecycleConfig{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSageMakerNotebookInstanceLifecycleConfig:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSSageMakerNotebookInstanceLifecycleConfigResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSSageMakerNotebookInstanceLifecycleConfig",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"re... | // GetAllAWSSageMakerNotebookInstanceLifecycleConfigResources retrieves all AWSSageMakerNotebookInstanceLifecycleConfig items from an AWS CloudFormation template | [
"GetAllAWSSageMakerNotebookInstanceLifecycleConfigResources",
"retrieves",
"all",
"AWSSageMakerNotebookInstanceLifecycleConfig",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8611-L8620 | train |
awslabs/goformation | cloudformation/all.go | GetAWSSageMakerNotebookInstanceLifecycleConfigWithName | func (t *Template) GetAWSSageMakerNotebookInstanceLifecycleConfigWithName(name string) (*resources.AWSSageMakerNotebookInstanceLifecycleConfig, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSageMakerNotebookInstanceLifecycleConfig:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSageMakerNotebookInstanceLifecycleConfig not found", name)
} | go | func (t *Template) GetAWSSageMakerNotebookInstanceLifecycleConfigWithName(name string) (*resources.AWSSageMakerNotebookInstanceLifecycleConfig, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSageMakerNotebookInstanceLifecycleConfig:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSageMakerNotebookInstanceLifecycleConfig not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSSageMakerNotebookInstanceLifecycleConfigWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSSageMakerNotebookInstanceLifecycleConfig",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
... | // GetAWSSageMakerNotebookInstanceLifecycleConfigWithName retrieves all AWSSageMakerNotebookInstanceLifecycleConfig items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSSageMakerNotebookInstanceLifecycleConfigWithName",
"retrieves",
"all",
"AWSSageMakerNotebookInstanceLifecycleConfig",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template",
"whose",
"logical",
"ID",
"matches",
"the",
"provided",
"name",
".",
"Returns",
"an",
"erro... | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8624-L8632 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSSecretsManagerResourcePolicyResources | func (t *Template) GetAllAWSSecretsManagerResourcePolicyResources() map[string]*resources.AWSSecretsManagerResourcePolicy {
results := map[string]*resources.AWSSecretsManagerResourcePolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerResourcePolicy:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSSecretsManagerResourcePolicyResources() map[string]*resources.AWSSecretsManagerResourcePolicy {
results := map[string]*resources.AWSSecretsManagerResourcePolicy{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerResourcePolicy:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSSecretsManagerResourcePolicyResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSSecretsManagerResourcePolicy",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSS... | // GetAllAWSSecretsManagerResourcePolicyResources retrieves all AWSSecretsManagerResourcePolicy items from an AWS CloudFormation template | [
"GetAllAWSSecretsManagerResourcePolicyResources",
"retrieves",
"all",
"AWSSecretsManagerResourcePolicy",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8635-L8644 | train |
awslabs/goformation | cloudformation/all.go | GetAWSSecretsManagerResourcePolicyWithName | func (t *Template) GetAWSSecretsManagerResourcePolicyWithName(name string) (*resources.AWSSecretsManagerResourcePolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerResourcePolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSecretsManagerResourcePolicy not found", name)
} | go | func (t *Template) GetAWSSecretsManagerResourcePolicyWithName(name string) (*resources.AWSSecretsManagerResourcePolicy, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerResourcePolicy:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSecretsManagerResourcePolicy not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSSecretsManagerResourcePolicyWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSSecretsManagerResourcePolicy",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[... | // GetAWSSecretsManagerResourcePolicyWithName retrieves all AWSSecretsManagerResourcePolicy items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSSecretsManagerResourcePolicyWithName",
"retrieves",
"all",
"AWSSecretsManagerResourcePolicy",
"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#L8648-L8656 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSSecretsManagerRotationScheduleResources | func (t *Template) GetAllAWSSecretsManagerRotationScheduleResources() map[string]*resources.AWSSecretsManagerRotationSchedule {
results := map[string]*resources.AWSSecretsManagerRotationSchedule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerRotationSchedule:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSSecretsManagerRotationScheduleResources() map[string]*resources.AWSSecretsManagerRotationSchedule {
results := map[string]*resources.AWSSecretsManagerRotationSchedule{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerRotationSchedule:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSSecretsManagerRotationScheduleResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSSecretsManagerRotationSchedule",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"... | // GetAllAWSSecretsManagerRotationScheduleResources retrieves all AWSSecretsManagerRotationSchedule items from an AWS CloudFormation template | [
"GetAllAWSSecretsManagerRotationScheduleResources",
"retrieves",
"all",
"AWSSecretsManagerRotationSchedule",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8659-L8668 | train |
awslabs/goformation | cloudformation/all.go | GetAWSSecretsManagerRotationScheduleWithName | func (t *Template) GetAWSSecretsManagerRotationScheduleWithName(name string) (*resources.AWSSecretsManagerRotationSchedule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerRotationSchedule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSecretsManagerRotationSchedule not found", name)
} | go | func (t *Template) GetAWSSecretsManagerRotationScheduleWithName(name string) (*resources.AWSSecretsManagerRotationSchedule, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerRotationSchedule:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSecretsManagerRotationSchedule not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSSecretsManagerRotationScheduleWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSSecretsManagerRotationSchedule",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
... | // GetAWSSecretsManagerRotationScheduleWithName retrieves all AWSSecretsManagerRotationSchedule items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSSecretsManagerRotationScheduleWithName",
"retrieves",
"all",
"AWSSecretsManagerRotationSchedule",
"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#L8672-L8680 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSSecretsManagerSecretResources | func (t *Template) GetAllAWSSecretsManagerSecretResources() map[string]*resources.AWSSecretsManagerSecret {
results := map[string]*resources.AWSSecretsManagerSecret{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerSecret:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSSecretsManagerSecretResources() map[string]*resources.AWSSecretsManagerSecret {
results := map[string]*resources.AWSSecretsManagerSecret{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerSecret:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSSecretsManagerSecretResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSSecretsManagerSecret",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSSecretsManagerSec... | // GetAllAWSSecretsManagerSecretResources retrieves all AWSSecretsManagerSecret items from an AWS CloudFormation template | [
"GetAllAWSSecretsManagerSecretResources",
"retrieves",
"all",
"AWSSecretsManagerSecret",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8683-L8692 | train |
awslabs/goformation | cloudformation/all.go | GetAWSSecretsManagerSecretWithName | func (t *Template) GetAWSSecretsManagerSecretWithName(name string) (*resources.AWSSecretsManagerSecret, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerSecret:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSecretsManagerSecret not found", name)
} | go | func (t *Template) GetAWSSecretsManagerSecretWithName(name string) (*resources.AWSSecretsManagerSecret, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerSecret:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSecretsManagerSecret not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSSecretsManagerSecretWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSSecretsManagerSecret",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"... | // GetAWSSecretsManagerSecretWithName retrieves all AWSSecretsManagerSecret items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSSecretsManagerSecretWithName",
"retrieves",
"all",
"AWSSecretsManagerSecret",
"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#L8696-L8704 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSSecretsManagerSecretTargetAttachmentResources | func (t *Template) GetAllAWSSecretsManagerSecretTargetAttachmentResources() map[string]*resources.AWSSecretsManagerSecretTargetAttachment {
results := map[string]*resources.AWSSecretsManagerSecretTargetAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerSecretTargetAttachment:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSSecretsManagerSecretTargetAttachmentResources() map[string]*resources.AWSSecretsManagerSecretTargetAttachment {
results := map[string]*resources.AWSSecretsManagerSecretTargetAttachment{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerSecretTargetAttachment:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSSecretsManagerSecretTargetAttachmentResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSSecretsManagerSecretTargetAttachment",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources"... | // GetAllAWSSecretsManagerSecretTargetAttachmentResources retrieves all AWSSecretsManagerSecretTargetAttachment items from an AWS CloudFormation template | [
"GetAllAWSSecretsManagerSecretTargetAttachmentResources",
"retrieves",
"all",
"AWSSecretsManagerSecretTargetAttachment",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8707-L8716 | train |
awslabs/goformation | cloudformation/all.go | GetAWSSecretsManagerSecretTargetAttachmentWithName | func (t *Template) GetAWSSecretsManagerSecretTargetAttachmentWithName(name string) (*resources.AWSSecretsManagerSecretTargetAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerSecretTargetAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSecretsManagerSecretTargetAttachment not found", name)
} | go | func (t *Template) GetAWSSecretsManagerSecretTargetAttachmentWithName(name string) (*resources.AWSSecretsManagerSecretTargetAttachment, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSSecretsManagerSecretTargetAttachment:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSSecretsManagerSecretTargetAttachment not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSSecretsManagerSecretTargetAttachmentWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSSecretsManagerSecretTargetAttachment",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"... | // GetAWSSecretsManagerSecretTargetAttachmentWithName retrieves all AWSSecretsManagerSecretTargetAttachment items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSSecretsManagerSecretTargetAttachmentWithName",
"retrieves",
"all",
"AWSSecretsManagerSecretTargetAttachment",
"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#L8720-L8728 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServerlessApiResources | func (t *Template) GetAllAWSServerlessApiResources() map[string]*resources.AWSServerlessApi {
results := map[string]*resources.AWSServerlessApi{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServerlessApi:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSServerlessApiResources() map[string]*resources.AWSServerlessApi {
results := map[string]*resources.AWSServerlessApi{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServerlessApi:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServerlessApiResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServerlessApi",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServerlessApi",
"{",
"}",
... | // GetAllAWSServerlessApiResources retrieves all AWSServerlessApi items from an AWS CloudFormation template | [
"GetAllAWSServerlessApiResources",
"retrieves",
"all",
"AWSServerlessApi",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8731-L8740 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServerlessApiWithName | func (t *Template) GetAWSServerlessApiWithName(name string) (*resources.AWSServerlessApi, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServerlessApi:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServerlessApi not found", name)
} | go | func (t *Template) GetAWSServerlessApiWithName(name string) (*resources.AWSServerlessApi, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServerlessApi:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServerlessApi not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServerlessApiWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServerlessApi",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
"]",
";",
"... | // GetAWSServerlessApiWithName retrieves all AWSServerlessApi items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServerlessApiWithName",
"retrieves",
"all",
"AWSServerlessApi",
"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#L8744-L8752 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServerlessApplicationResources | func (t *Template) GetAllAWSServerlessApplicationResources() map[string]*resources.AWSServerlessApplication {
results := map[string]*resources.AWSServerlessApplication{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServerlessApplication:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSServerlessApplicationResources() map[string]*resources.AWSServerlessApplication {
results := map[string]*resources.AWSServerlessApplication{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServerlessApplication:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServerlessApplicationResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServerlessApplication",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServerlessAppli... | // GetAllAWSServerlessApplicationResources retrieves all AWSServerlessApplication items from an AWS CloudFormation template | [
"GetAllAWSServerlessApplicationResources",
"retrieves",
"all",
"AWSServerlessApplication",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8755-L8764 | train |
awslabs/goformation | cloudformation/all.go | GetAWSServerlessApplicationWithName | func (t *Template) GetAWSServerlessApplicationWithName(name string) (*resources.AWSServerlessApplication, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServerlessApplication:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServerlessApplication not found", name)
} | go | func (t *Template) GetAWSServerlessApplicationWithName(name string) (*resources.AWSServerlessApplication, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServerlessApplication:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServerlessApplication not found", name)
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAWSServerlessApplicationWithName",
"(",
"name",
"string",
")",
"(",
"*",
"resources",
".",
"AWSServerlessApplication",
",",
"error",
")",
"{",
"if",
"untyped",
",",
"ok",
":=",
"t",
".",
"Resources",
"[",
"name",
... | // GetAWSServerlessApplicationWithName retrieves all AWSServerlessApplication items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found. | [
"GetAWSServerlessApplicationWithName",
"retrieves",
"all",
"AWSServerlessApplication",
"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#L8768-L8776 | train |
awslabs/goformation | cloudformation/all.go | GetAllAWSServerlessFunctionResources | func (t *Template) GetAllAWSServerlessFunctionResources() map[string]*resources.AWSServerlessFunction {
results := map[string]*resources.AWSServerlessFunction{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServerlessFunction:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSServerlessFunctionResources() map[string]*resources.AWSServerlessFunction {
results := map[string]*resources.AWSServerlessFunction{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServerlessFunction:
results[name] = resource
}
}
return results
} | [
"func",
"(",
"t",
"*",
"Template",
")",
"GetAllAWSServerlessFunctionResources",
"(",
")",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServerlessFunction",
"{",
"results",
":=",
"map",
"[",
"string",
"]",
"*",
"resources",
".",
"AWSServerlessFunction",
... | // GetAllAWSServerlessFunctionResources retrieves all AWSServerlessFunction items from an AWS CloudFormation template | [
"GetAllAWSServerlessFunctionResources",
"retrieves",
"all",
"AWSServerlessFunction",
"items",
"from",
"an",
"AWS",
"CloudFormation",
"template"
] | 8898b813a27809556420fcf0427a32765a567302 | https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L8779-L8788 | train |
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 AWSServerlessFunction not found", name)
} | 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 AWSServerlessFunction not found", name)
} | [
"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] = resource
}
}
return results
} | 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] = resource
}
}
return results
} | [
"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 AWSServerlessLayerVersion not found", name)
} | 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 AWSServerlessLayerVersion not found", name)
} | [
"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] = resource
}
}
return results
} | 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] = resource
}
}
return results
} | [
"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 AWSServerlessSimpleTable not found", name)
} | 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 AWSServerlessSimpleTable not found", name)
} | [
"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.AWSServiceCatalogAcceptedPortfolioShare:
results[name] = resource
}
}
return results
} | 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.AWSServiceCatalogAcceptedPortfolioShare:
results[name] = resource
}
}
return results
} | [
"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
}
}
return nil, fmt.Errorf("resource %q of type AWSServiceCatalogAcceptedPortfolioShare not found", name)
} | 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
}
}
return nil, fmt.Errorf("resource %q of type AWSServiceCatalogAcceptedPortfolioShare not found", name)
} | [
"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.AWSServiceCatalogCloudFormationProduct:
results[name] = resource
}
}
return results
} | 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.AWSServiceCatalogCloudFormationProduct:
results[name] = resource
}
}
return results
} | [
"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 nil, fmt.Errorf("resource %q of type AWSServiceCatalogCloudFormationProduct not found", name)
} | 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 nil, fmt.Errorf("resource %q of type AWSServiceCatalogCloudFormationProduct not found", name)
} | [
"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.(type) {
case *resources.AWSServiceCatalogCloudFormationProvisionedProduct:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSServiceCatalogCloudFormationProvisionedProductResources() map[string]*resources.AWSServiceCatalogCloudFormationProvisionedProduct {
results := map[string]*resources.AWSServiceCatalogCloudFormationProvisionedProduct{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogCloudFormationProvisionedProduct:
results[name] = resource
}
}
return results
} | [
"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:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServiceCatalogCloudFormationProvisionedProduct not found", name)
} | go | func (t *Template) GetAWSServiceCatalogCloudFormationProvisionedProductWithName(name string) (*resources.AWSServiceCatalogCloudFormationProvisionedProduct, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogCloudFormationProvisionedProduct:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServiceCatalogCloudFormationProvisionedProduct not found", name)
} | [
"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 *resources.AWSServiceCatalogLaunchNotificationConstraint:
results[name] = resource
}
}
return results
} | 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 *resources.AWSServiceCatalogLaunchNotificationConstraint:
results[name] = resource
}
}
return results
} | [
"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 resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServiceCatalogLaunchNotificationConstraint not found", name)
} | 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 resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServiceCatalogLaunchNotificationConstraint not found", name)
} | [
"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.AWSServiceCatalogLaunchRoleConstraint:
results[name] = resource
}
}
return results
} | 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.AWSServiceCatalogLaunchRoleConstraint:
results[name] = resource
}
}
return results
} | [
"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 nil, fmt.Errorf("resource %q of type AWSServiceCatalogLaunchRoleConstraint not found", name)
} | 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 nil, fmt.Errorf("resource %q of type AWSServiceCatalogLaunchRoleConstraint not found", name)
} | [
"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.AWSServiceCatalogLaunchTemplateConstraint:
results[name] = resource
}
}
return results
} | 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.AWSServiceCatalogLaunchTemplateConstraint:
results[name] = resource
}
}
return results
} | [
"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
}
}
return nil, fmt.Errorf("resource %q of type AWSServiceCatalogLaunchTemplateConstraint not found", name)
} | 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
}
}
return nil, fmt.Errorf("resource %q of type AWSServiceCatalogLaunchTemplateConstraint not found", name)
} | [
"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] = resource
}
}
return results
} | 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] = resource
}
}
return results
} | [
"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 type AWSServiceCatalogPortfolio not found", name)
} | 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 type AWSServiceCatalogPortfolio not found", name)
} | [
"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) {
case *resources.AWSServiceCatalogPortfolioPrincipalAssociation:
results[name] = resource
}
}
return results
} | go | func (t *Template) GetAllAWSServiceCatalogPortfolioPrincipalAssociationResources() map[string]*resources.AWSServiceCatalogPortfolioPrincipalAssociation {
results := map[string]*resources.AWSServiceCatalogPortfolioPrincipalAssociation{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *resources.AWSServiceCatalogPortfolioPrincipalAssociation:
results[name] = resource
}
}
return results
} | [
"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 resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServiceCatalogPortfolioPrincipalAssociation not found", name)
} | 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 resource, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServiceCatalogPortfolioPrincipalAssociation not found", name)
} | [
"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 *resources.AWSServiceCatalogPortfolioProductAssociation:
results[name] = resource
}
}
return results
} | 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 *resources.AWSServiceCatalogPortfolioProductAssociation:
results[name] = resource
}
}
return results
} | [
"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, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServiceCatalogPortfolioProductAssociation not found", name)
} | 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, nil
}
}
return nil, fmt.Errorf("resource %q of type AWSServiceCatalogPortfolioProductAssociation not found", name)
} | [
"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.AWSServiceCatalogPortfolioShare:
results[name] = resource
}
}
return results
} | 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.AWSServiceCatalogPortfolioShare:
results[name] = resource
}
}
return results
} | [
"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("resource %q of type AWSServiceCatalogPortfolioShare not found", name)
} | 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("resource %q of type AWSServiceCatalogPortfolioShare not found", name)
} | [
"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] = resource
}
}
return results
} | 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] = resource
}
}
return results
} | [
"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 type AWSServiceCatalogTagOption not found", name)
} | 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 type AWSServiceCatalogTagOption not found", name)
} | [
"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.AWSServiceCatalogTagOptionAssociation:
results[name] = resource
}
}
return results
} | 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.AWSServiceCatalogTagOptionAssociation:
results[name] = resource
}
}
return results
} | [
"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 nil, fmt.Errorf("resource %q of type AWSServiceCatalogTagOptionAssociation not found", name)
} | 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 nil, fmt.Errorf("resource %q of type AWSServiceCatalogTagOptionAssociation not found", name)
} | [
"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.AWSServiceDiscoveryHttpNamespace:
results[name] = resource
}
}
return results
} | 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.AWSServiceDiscoveryHttpNamespace:
results[name] = resource
}
}
return results
} | [
"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("resource %q of type AWSServiceDiscoveryHttpNamespace not found", name)
} | 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("resource %q of type AWSServiceDiscoveryHttpNamespace not found", name)
} | [
"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[name] = resource
}
}
return results
} | 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[name] = resource
}
}
return results
} | [
"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 type AWSServiceDiscoveryInstance not found", name)
} | 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 type AWSServiceDiscoveryInstance not found", name)
} | [
"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.AWSServiceDiscoveryPrivateDnsNamespace:
results[name] = resource
}
}
return results
} | 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.AWSServiceDiscoveryPrivateDnsNamespace:
results[name] = resource
}
}
return results
} | [
"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 nil, fmt.Errorf("resource %q of type AWSServiceDiscoveryPrivateDnsNamespace not found", name)
} | 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 nil, fmt.Errorf("resource %q of type AWSServiceDiscoveryPrivateDnsNamespace not found", name)
} | [
"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.AWSServiceDiscoveryPublicDnsNamespace:
results[name] = resource
}
}
return results
} | 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.AWSServiceDiscoveryPublicDnsNamespace:
results[name] = resource
}
}
return results
} | [
"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 nil, fmt.Errorf("resource %q of type AWSServiceDiscoveryPublicDnsNamespace not found", name)
} | 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 nil, fmt.Errorf("resource %q of type AWSServiceDiscoveryPublicDnsNamespace not found", name)
} | [
"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] = resource
}
}
return results
} | 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] = resource
}
}
return results
} | [
"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 type AWSServiceDiscoveryService not found", name)
} | 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 type AWSServiceDiscoveryService not found", name)
} | [
"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] = resource
}
}
return results
} | 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] = resource
}
}
return results
} | [
"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 AWSStepFunctionsActivity not found", name)
} | 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 AWSStepFunctionsActivity not found", name)
} | [
"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:
results[name] = resource
}
}
return results
} | 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:
results[name] = resource
}
}
return results
} | [
"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 of type AWSStepFunctionsStateMachine not found", name)
} | 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 of type AWSStepFunctionsStateMachine not found", name)
} | [
"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 results
} | 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 results
} | [
"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 found", name)
} | 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 found", name)
} | [
"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
}
}
return results
} | 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
}
}
return results
} | [
"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 AWSWAFSizeConstraintSet not found", name)
} | 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 AWSWAFSizeConstraintSet not found", name)
} | [
"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] = resource
}
}
return results
} | 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] = resource
}
}
return results
} | [
"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 type AWSWAFSqlInjectionMatchSet not found", name)
} | 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 type AWSWAFSqlInjectionMatchSet not found", name)
} | [
"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 found", name)
} | 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 found", name)
} | [
"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] = resource
}
}
return results
} | 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] = resource
}
}
return results
} | [
"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 type AWSWAFRegionalByteMatchSet not found", name)
} | 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 type AWSWAFRegionalByteMatchSet not found", name)
} | [
"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 results
} | 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 results
} | [
"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 not found", name)
} | 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 not found", name)
} | [
"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 results
} | 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 results
} | [
"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 found", name)
} | 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 found", name)
} | [
"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.AWSWAFRegionalSizeConstraintSet:
results[name] = resource
}
}
return results
} | 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.AWSWAFRegionalSizeConstraintSet:
results[name] = resource
}
}
return results
} | [
"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("resource %q of type AWSWAFRegionalSizeConstraintSet not found", name)
} | 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("resource %q of type AWSWAFRegionalSizeConstraintSet not found", name)
} | [
"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.AWSWAFRegionalSqlInjectionMatchSet:
results[name] = resource
}
}
return results
} | 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.AWSWAFRegionalSqlInjectionMatchSet:
results[name] = resource
}
}
return results
} | [
"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.Errorf("resource %q of type AWSWAFRegionalSqlInjectionMatchSet not found", name)
} | 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.Errorf("resource %q of type AWSWAFRegionalSqlInjectionMatchSet not found", name)
} | [
"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
}
}
return results
} | 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
}
}
return results
} | [
"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 AWSWAFRegionalWebACL not found", name)
} | 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 AWSWAFRegionalWebACL not found", name)
} | [
"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.AWSWAFRegionalWebACLAssociation:
results[name] = resource
}
}
return results
} | 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.AWSWAFRegionalWebACLAssociation:
results[name] = resource
}
}
return results
} | [
"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("resource %q of type AWSWAFRegionalWebACLAssociation not found", name)
} | 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("resource %q of type AWSWAFRegionalWebACLAssociation not found", name)
} | [
"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] = resource
}
}
return results
} | 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] = resource
}
}
return results
} | [
"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 AWSWAFRegionalXssMatchSet not found", name)
} | 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 AWSWAFRegionalXssMatchSet not found", name)
} | [
"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
}
}
return results
} | 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
}
}
return results
} | [
"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 AWSWorkSpacesWorkspace not found", name)
} | 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 AWSWorkSpacesWorkspace not found", name)
} | [
"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 ParseYAMLWithOptions(data, options)
} | 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 ParseYAMLWithOptions(data, options)
} | [
"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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.