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
prometheus/client_golang
prometheus/registry.go
Register
func (r *Registry) Register(c Collector) error { var ( descChan = make(chan *Desc, capDescChan) newDescIDs = map[uint64]struct{}{} newDimHashesByName = map[string]uint64{} collectorID uint64 // Just a sum of all desc IDs. duplicateDescErr error ) go func() { c.Describe(descChan) close(descChan) }() r.mtx.Lock() defer func() { // Drain channel in case of premature return to not leak a goroutine. for range descChan { } r.mtx.Unlock() }() // Conduct various tests... for desc := range descChan { // Is the descriptor valid at all? if desc.err != nil { return fmt.Errorf("descriptor %s is invalid: %s", desc, desc.err) } // Is the descID unique? // (In other words: Is the fqName + constLabel combination unique?) if _, exists := r.descIDs[desc.id]; exists { duplicateDescErr = fmt.Errorf("descriptor %s already exists with the same fully-qualified name and const label values", desc) } // If it is not a duplicate desc in this collector, add it to // the collectorID. (We allow duplicate descs within the same // collector, but their existence must be a no-op.) if _, exists := newDescIDs[desc.id]; !exists { newDescIDs[desc.id] = struct{}{} collectorID += desc.id } // Are all the label names and the help string consistent with // previous descriptors of the same name? // First check existing descriptors... if dimHash, exists := r.dimHashesByName[desc.fqName]; exists { if dimHash != desc.dimHash { return fmt.Errorf("a previously registered descriptor with the same fully-qualified name as %s has different label names or a different help string", desc) } } else { // ...then check the new descriptors already seen. if dimHash, exists := newDimHashesByName[desc.fqName]; exists { if dimHash != desc.dimHash { return fmt.Errorf("descriptors reported by collector have inconsistent label names or help strings for the same fully-qualified name, offender is %s", desc) } } else { newDimHashesByName[desc.fqName] = desc.dimHash } } } // A Collector yielding no Desc at all is considered unchecked. if len(newDescIDs) == 0 { r.uncheckedCollectors = append(r.uncheckedCollectors, c) return nil } if existing, exists := r.collectorsByID[collectorID]; exists { return AlreadyRegisteredError{ ExistingCollector: existing, NewCollector: c, } } // If the collectorID is new, but at least one of the descs existed // before, we are in trouble. if duplicateDescErr != nil { return duplicateDescErr } // Only after all tests have passed, actually register. r.collectorsByID[collectorID] = c for hash := range newDescIDs { r.descIDs[hash] = struct{}{} } for name, dimHash := range newDimHashesByName { r.dimHashesByName[name] = dimHash } return nil }
go
func (r *Registry) Register(c Collector) error { var ( descChan = make(chan *Desc, capDescChan) newDescIDs = map[uint64]struct{}{} newDimHashesByName = map[string]uint64{} collectorID uint64 // Just a sum of all desc IDs. duplicateDescErr error ) go func() { c.Describe(descChan) close(descChan) }() r.mtx.Lock() defer func() { // Drain channel in case of premature return to not leak a goroutine. for range descChan { } r.mtx.Unlock() }() // Conduct various tests... for desc := range descChan { // Is the descriptor valid at all? if desc.err != nil { return fmt.Errorf("descriptor %s is invalid: %s", desc, desc.err) } // Is the descID unique? // (In other words: Is the fqName + constLabel combination unique?) if _, exists := r.descIDs[desc.id]; exists { duplicateDescErr = fmt.Errorf("descriptor %s already exists with the same fully-qualified name and const label values", desc) } // If it is not a duplicate desc in this collector, add it to // the collectorID. (We allow duplicate descs within the same // collector, but their existence must be a no-op.) if _, exists := newDescIDs[desc.id]; !exists { newDescIDs[desc.id] = struct{}{} collectorID += desc.id } // Are all the label names and the help string consistent with // previous descriptors of the same name? // First check existing descriptors... if dimHash, exists := r.dimHashesByName[desc.fqName]; exists { if dimHash != desc.dimHash { return fmt.Errorf("a previously registered descriptor with the same fully-qualified name as %s has different label names or a different help string", desc) } } else { // ...then check the new descriptors already seen. if dimHash, exists := newDimHashesByName[desc.fqName]; exists { if dimHash != desc.dimHash { return fmt.Errorf("descriptors reported by collector have inconsistent label names or help strings for the same fully-qualified name, offender is %s", desc) } } else { newDimHashesByName[desc.fqName] = desc.dimHash } } } // A Collector yielding no Desc at all is considered unchecked. if len(newDescIDs) == 0 { r.uncheckedCollectors = append(r.uncheckedCollectors, c) return nil } if existing, exists := r.collectorsByID[collectorID]; exists { return AlreadyRegisteredError{ ExistingCollector: existing, NewCollector: c, } } // If the collectorID is new, but at least one of the descs existed // before, we are in trouble. if duplicateDescErr != nil { return duplicateDescErr } // Only after all tests have passed, actually register. r.collectorsByID[collectorID] = c for hash := range newDescIDs { r.descIDs[hash] = struct{}{} } for name, dimHash := range newDimHashesByName { r.dimHashesByName[name] = dimHash } return nil }
[ "func", "(", "r", "*", "Registry", ")", "Register", "(", "c", "Collector", ")", "error", "{", "var", "(", "descChan", "=", "make", "(", "chan", "*", "Desc", ",", "capDescChan", ")", "\n", "newDescIDs", "=", "map", "[", "uint64", "]", "struct", "{", ...
// Register implements Registerer.
[ "Register", "implements", "Registerer", "." ]
6aba2189ebe6959268894366998500defefa2907
https://github.com/prometheus/client_golang/blob/6aba2189ebe6959268894366998500defefa2907/prometheus/registry.go#L264-L348
train
prometheus/client_golang
prometheus/registry.go
Unregister
func (r *Registry) Unregister(c Collector) bool { var ( descChan = make(chan *Desc, capDescChan) descIDs = map[uint64]struct{}{} collectorID uint64 // Just a sum of the desc IDs. ) go func() { c.Describe(descChan) close(descChan) }() for desc := range descChan { if _, exists := descIDs[desc.id]; !exists { collectorID += desc.id descIDs[desc.id] = struct{}{} } } r.mtx.RLock() if _, exists := r.collectorsByID[collectorID]; !exists { r.mtx.RUnlock() return false } r.mtx.RUnlock() r.mtx.Lock() defer r.mtx.Unlock() delete(r.collectorsByID, collectorID) for id := range descIDs { delete(r.descIDs, id) } // dimHashesByName is left untouched as those must be consistent // throughout the lifetime of a program. return true }
go
func (r *Registry) Unregister(c Collector) bool { var ( descChan = make(chan *Desc, capDescChan) descIDs = map[uint64]struct{}{} collectorID uint64 // Just a sum of the desc IDs. ) go func() { c.Describe(descChan) close(descChan) }() for desc := range descChan { if _, exists := descIDs[desc.id]; !exists { collectorID += desc.id descIDs[desc.id] = struct{}{} } } r.mtx.RLock() if _, exists := r.collectorsByID[collectorID]; !exists { r.mtx.RUnlock() return false } r.mtx.RUnlock() r.mtx.Lock() defer r.mtx.Unlock() delete(r.collectorsByID, collectorID) for id := range descIDs { delete(r.descIDs, id) } // dimHashesByName is left untouched as those must be consistent // throughout the lifetime of a program. return true }
[ "func", "(", "r", "*", "Registry", ")", "Unregister", "(", "c", "Collector", ")", "bool", "{", "var", "(", "descChan", "=", "make", "(", "chan", "*", "Desc", ",", "capDescChan", ")", "\n", "descIDs", "=", "map", "[", "uint64", "]", "struct", "{", "...
// Unregister implements Registerer.
[ "Unregister", "implements", "Registerer", "." ]
6aba2189ebe6959268894366998500defefa2907
https://github.com/prometheus/client_golang/blob/6aba2189ebe6959268894366998500defefa2907/prometheus/registry.go#L351-L385
train
prometheus/client_golang
prometheus/registry.go
MustRegister
func (r *Registry) MustRegister(cs ...Collector) { for _, c := range cs { if err := r.Register(c); err != nil { panic(err) } } }
go
func (r *Registry) MustRegister(cs ...Collector) { for _, c := range cs { if err := r.Register(c); err != nil { panic(err) } } }
[ "func", "(", "r", "*", "Registry", ")", "MustRegister", "(", "cs", "...", "Collector", ")", "{", "for", "_", ",", "c", ":=", "range", "cs", "{", "if", "err", ":=", "r", ".", "Register", "(", "c", ")", ";", "err", "!=", "nil", "{", "panic", "(",...
// MustRegister implements Registerer.
[ "MustRegister", "implements", "Registerer", "." ]
6aba2189ebe6959268894366998500defefa2907
https://github.com/prometheus/client_golang/blob/6aba2189ebe6959268894366998500defefa2907/prometheus/registry.go#L388-L394
train
prometheus/client_golang
prometheus/registry.go
WriteToTextfile
func WriteToTextfile(filename string, g Gatherer) error { tmp, err := ioutil.TempFile(filepath.Dir(filename), filepath.Base(filename)) if err != nil { return err } defer os.Remove(tmp.Name()) mfs, err := g.Gather() if err != nil { return err } for _, mf := range mfs { if _, err := expfmt.MetricFamilyToText(tmp, mf); err != nil { return err } } if err := tmp.Close(); err != nil { return err } if err := os.Chmod(tmp.Name(), 0644); err != nil { return err } return os.Rename(tmp.Name(), filename) }
go
func WriteToTextfile(filename string, g Gatherer) error { tmp, err := ioutil.TempFile(filepath.Dir(filename), filepath.Base(filename)) if err != nil { return err } defer os.Remove(tmp.Name()) mfs, err := g.Gather() if err != nil { return err } for _, mf := range mfs { if _, err := expfmt.MetricFamilyToText(tmp, mf); err != nil { return err } } if err := tmp.Close(); err != nil { return err } if err := os.Chmod(tmp.Name(), 0644); err != nil { return err } return os.Rename(tmp.Name(), filename) }
[ "func", "WriteToTextfile", "(", "filename", "string", ",", "g", "Gatherer", ")", "error", "{", "tmp", ",", "err", ":=", "ioutil", ".", "TempFile", "(", "filepath", ".", "Dir", "(", "filename", ")", ",", "filepath", ".", "Base", "(", "filename", ")", ")...
// WriteToTextfile calls Gather on the provided Gatherer, encodes the result in the // Prometheus text format, and writes it to a temporary file. Upon success, the // temporary file is renamed to the provided filename. // // This is intended for use with the textfile collector of the node exporter. // Note that the node exporter expects the filename to be suffixed with ".prom".
[ "WriteToTextfile", "calls", "Gather", "on", "the", "provided", "Gatherer", "encodes", "the", "result", "in", "the", "Prometheus", "text", "format", "and", "writes", "it", "to", "a", "temporary", "file", ".", "Upon", "success", "the", "temporary", "file", "is",...
6aba2189ebe6959268894366998500defefa2907
https://github.com/prometheus/client_golang/blob/6aba2189ebe6959268894366998500defefa2907/prometheus/registry.go#L546-L570
train
prometheus/client_golang
prometheus/registry.go
checkMetricConsistency
func checkMetricConsistency( metricFamily *dto.MetricFamily, dtoMetric *dto.Metric, metricHashes map[uint64]struct{}, ) error { name := metricFamily.GetName() // Type consistency with metric family. if metricFamily.GetType() == dto.MetricType_GAUGE && dtoMetric.Gauge == nil || metricFamily.GetType() == dto.MetricType_COUNTER && dtoMetric.Counter == nil || metricFamily.GetType() == dto.MetricType_SUMMARY && dtoMetric.Summary == nil || metricFamily.GetType() == dto.MetricType_HISTOGRAM && dtoMetric.Histogram == nil || metricFamily.GetType() == dto.MetricType_UNTYPED && dtoMetric.Untyped == nil { return fmt.Errorf( "collected metric %q { %s} is not a %s", name, dtoMetric, metricFamily.GetType(), ) } previousLabelName := "" for _, labelPair := range dtoMetric.GetLabel() { labelName := labelPair.GetName() if labelName == previousLabelName { return fmt.Errorf( "collected metric %q { %s} has two or more labels with the same name: %s", name, dtoMetric, labelName, ) } if !checkLabelName(labelName) { return fmt.Errorf( "collected metric %q { %s} has a label with an invalid name: %s", name, dtoMetric, labelName, ) } if dtoMetric.Summary != nil && labelName == quantileLabel { return fmt.Errorf( "collected metric %q { %s} must not have an explicit %q label", name, dtoMetric, quantileLabel, ) } if !utf8.ValidString(labelPair.GetValue()) { return fmt.Errorf( "collected metric %q { %s} has a label named %q whose value is not utf8: %#v", name, dtoMetric, labelName, labelPair.GetValue()) } previousLabelName = labelName } // Is the metric unique (i.e. no other metric with the same name and the same labels)? h := hashNew() h = hashAdd(h, name) h = hashAddByte(h, separatorByte) // Make sure label pairs are sorted. We depend on it for the consistency // check. if !sort.IsSorted(labelPairSorter(dtoMetric.Label)) { // We cannot sort dtoMetric.Label in place as it is immutable by contract. copiedLabels := make([]*dto.LabelPair, len(dtoMetric.Label)) copy(copiedLabels, dtoMetric.Label) sort.Sort(labelPairSorter(copiedLabels)) dtoMetric.Label = copiedLabels } for _, lp := range dtoMetric.Label { h = hashAdd(h, lp.GetName()) h = hashAddByte(h, separatorByte) h = hashAdd(h, lp.GetValue()) h = hashAddByte(h, separatorByte) } if _, exists := metricHashes[h]; exists { return fmt.Errorf( "collected metric %q { %s} was collected before with the same name and label values", name, dtoMetric, ) } metricHashes[h] = struct{}{} return nil }
go
func checkMetricConsistency( metricFamily *dto.MetricFamily, dtoMetric *dto.Metric, metricHashes map[uint64]struct{}, ) error { name := metricFamily.GetName() // Type consistency with metric family. if metricFamily.GetType() == dto.MetricType_GAUGE && dtoMetric.Gauge == nil || metricFamily.GetType() == dto.MetricType_COUNTER && dtoMetric.Counter == nil || metricFamily.GetType() == dto.MetricType_SUMMARY && dtoMetric.Summary == nil || metricFamily.GetType() == dto.MetricType_HISTOGRAM && dtoMetric.Histogram == nil || metricFamily.GetType() == dto.MetricType_UNTYPED && dtoMetric.Untyped == nil { return fmt.Errorf( "collected metric %q { %s} is not a %s", name, dtoMetric, metricFamily.GetType(), ) } previousLabelName := "" for _, labelPair := range dtoMetric.GetLabel() { labelName := labelPair.GetName() if labelName == previousLabelName { return fmt.Errorf( "collected metric %q { %s} has two or more labels with the same name: %s", name, dtoMetric, labelName, ) } if !checkLabelName(labelName) { return fmt.Errorf( "collected metric %q { %s} has a label with an invalid name: %s", name, dtoMetric, labelName, ) } if dtoMetric.Summary != nil && labelName == quantileLabel { return fmt.Errorf( "collected metric %q { %s} must not have an explicit %q label", name, dtoMetric, quantileLabel, ) } if !utf8.ValidString(labelPair.GetValue()) { return fmt.Errorf( "collected metric %q { %s} has a label named %q whose value is not utf8: %#v", name, dtoMetric, labelName, labelPair.GetValue()) } previousLabelName = labelName } // Is the metric unique (i.e. no other metric with the same name and the same labels)? h := hashNew() h = hashAdd(h, name) h = hashAddByte(h, separatorByte) // Make sure label pairs are sorted. We depend on it for the consistency // check. if !sort.IsSorted(labelPairSorter(dtoMetric.Label)) { // We cannot sort dtoMetric.Label in place as it is immutable by contract. copiedLabels := make([]*dto.LabelPair, len(dtoMetric.Label)) copy(copiedLabels, dtoMetric.Label) sort.Sort(labelPairSorter(copiedLabels)) dtoMetric.Label = copiedLabels } for _, lp := range dtoMetric.Label { h = hashAdd(h, lp.GetName()) h = hashAddByte(h, separatorByte) h = hashAdd(h, lp.GetValue()) h = hashAddByte(h, separatorByte) } if _, exists := metricHashes[h]; exists { return fmt.Errorf( "collected metric %q { %s} was collected before with the same name and label values", name, dtoMetric, ) } metricHashes[h] = struct{}{} return nil }
[ "func", "checkMetricConsistency", "(", "metricFamily", "*", "dto", ".", "MetricFamily", ",", "dtoMetric", "*", "dto", ".", "Metric", ",", "metricHashes", "map", "[", "uint64", "]", "struct", "{", "}", ",", ")", "error", "{", "name", ":=", "metricFamily", "...
// checkMetricConsistency checks if the provided Metric is consistent with the // provided MetricFamily. It also hashes the Metric labels and the MetricFamily // name. If the resulting hash is already in the provided metricHashes, an error // is returned. If not, it is added to metricHashes.
[ "checkMetricConsistency", "checks", "if", "the", "provided", "Metric", "is", "consistent", "with", "the", "provided", "MetricFamily", ".", "It", "also", "hashes", "the", "Metric", "labels", "and", "the", "MetricFamily", "name", ".", "If", "the", "resulting", "ha...
6aba2189ebe6959268894366998500defefa2907
https://github.com/prometheus/client_golang/blob/6aba2189ebe6959268894366998500defefa2907/prometheus/registry.go#L821-L896
train
prometheus/client_golang
prometheus/metric.go
NewMetricWithTimestamp
func NewMetricWithTimestamp(t time.Time, m Metric) Metric { return timestampedMetric{Metric: m, t: t} }
go
func NewMetricWithTimestamp(t time.Time, m Metric) Metric { return timestampedMetric{Metric: m, t: t} }
[ "func", "NewMetricWithTimestamp", "(", "t", "time", ".", "Time", ",", "m", "Metric", ")", "Metric", "{", "return", "timestampedMetric", "{", "Metric", ":", "m", ",", "t", ":", "t", "}", "\n", "}" ]
// NewMetricWithTimestamp returns a new Metric wrapping the provided Metric in a // way that it has an explicit timestamp set to the provided Time. This is only // useful in rare cases as the timestamp of a Prometheus metric should usually // be set by the Prometheus server during scraping. Exceptions include mirroring // metrics with given timestamps from other metric // sources. // // NewMetricWithTimestamp works best with MustNewConstMetric, // MustNewConstHistogram, and MustNewConstSummary, see example. // // Currently, the exposition formats used by Prometheus are limited to // millisecond resolution. Thus, the provided time will be rounded down to the // next full millisecond value.
[ "NewMetricWithTimestamp", "returns", "a", "new", "Metric", "wrapping", "the", "provided", "Metric", "in", "a", "way", "that", "it", "has", "an", "explicit", "timestamp", "set", "to", "the", "provided", "Time", ".", "This", "is", "only", "useful", "in", "rare...
6aba2189ebe6959268894366998500defefa2907
https://github.com/prometheus/client_golang/blob/6aba2189ebe6959268894366998500defefa2907/prometheus/metric.go#L172-L174
train
prometheus/client_golang
prometheus/value.go
newValueFunc
func newValueFunc(desc *Desc, valueType ValueType, function func() float64) *valueFunc { result := &valueFunc{ desc: desc, valType: valueType, function: function, labelPairs: makeLabelPairs(desc, nil), } result.init(result) return result }
go
func newValueFunc(desc *Desc, valueType ValueType, function func() float64) *valueFunc { result := &valueFunc{ desc: desc, valType: valueType, function: function, labelPairs: makeLabelPairs(desc, nil), } result.init(result) return result }
[ "func", "newValueFunc", "(", "desc", "*", "Desc", ",", "valueType", "ValueType", ",", "function", "func", "(", ")", "float64", ")", "*", "valueFunc", "{", "result", ":=", "&", "valueFunc", "{", "desc", ":", "desc", ",", "valType", ":", "valueType", ",", ...
// newValueFunc returns a newly allocated valueFunc with the given Desc and // ValueType. The value reported is determined by calling the given function // from within the Write method. Take into account that metric collection may // happen concurrently. If that results in concurrent calls to Write, like in // the case where a valueFunc is directly registered with Prometheus, the // provided function must be concurrency-safe.
[ "newValueFunc", "returns", "a", "newly", "allocated", "valueFunc", "with", "the", "given", "Desc", "and", "ValueType", ".", "The", "value", "reported", "is", "determined", "by", "calling", "the", "given", "function", "from", "within", "the", "Write", "method", ...
6aba2189ebe6959268894366998500defefa2907
https://github.com/prometheus/client_golang/blob/6aba2189ebe6959268894366998500defefa2907/prometheus/value.go#L56-L65
train
prometheus/client_golang
prometheus/value.go
NewConstMetric
func NewConstMetric(desc *Desc, valueType ValueType, value float64, labelValues ...string) (Metric, error) { if desc.err != nil { return nil, desc.err } if err := validateLabelValues(labelValues, len(desc.variableLabels)); err != nil { return nil, err } return &constMetric{ desc: desc, valType: valueType, val: value, labelPairs: makeLabelPairs(desc, labelValues), }, nil }
go
func NewConstMetric(desc *Desc, valueType ValueType, value float64, labelValues ...string) (Metric, error) { if desc.err != nil { return nil, desc.err } if err := validateLabelValues(labelValues, len(desc.variableLabels)); err != nil { return nil, err } return &constMetric{ desc: desc, valType: valueType, val: value, labelPairs: makeLabelPairs(desc, labelValues), }, nil }
[ "func", "NewConstMetric", "(", "desc", "*", "Desc", ",", "valueType", "ValueType", ",", "value", "float64", ",", "labelValues", "...", "string", ")", "(", "Metric", ",", "error", ")", "{", "if", "desc", ".", "err", "!=", "nil", "{", "return", "nil", ",...
// NewConstMetric returns a metric with one fixed value that cannot be // changed. Users of this package will not have much use for it in regular // operations. However, when implementing custom Collectors, it is useful as a // throw-away metric that is generated on the fly to send it to Prometheus in // the Collect method. NewConstMetric returns an error if the length of // labelValues is not consistent with the variable labels in Desc or if Desc is // invalid.
[ "NewConstMetric", "returns", "a", "metric", "with", "one", "fixed", "value", "that", "cannot", "be", "changed", ".", "Users", "of", "this", "package", "will", "not", "have", "much", "use", "for", "it", "in", "regular", "operations", ".", "However", "when", ...
6aba2189ebe6959268894366998500defefa2907
https://github.com/prometheus/client_golang/blob/6aba2189ebe6959268894366998500defefa2907/prometheus/value.go#L82-L95
train
prometheus/client_golang
prometheus/value.go
MustNewConstMetric
func MustNewConstMetric(desc *Desc, valueType ValueType, value float64, labelValues ...string) Metric { m, err := NewConstMetric(desc, valueType, value, labelValues...) if err != nil { panic(err) } return m }
go
func MustNewConstMetric(desc *Desc, valueType ValueType, value float64, labelValues ...string) Metric { m, err := NewConstMetric(desc, valueType, value, labelValues...) if err != nil { panic(err) } return m }
[ "func", "MustNewConstMetric", "(", "desc", "*", "Desc", ",", "valueType", "ValueType", ",", "value", "float64", ",", "labelValues", "...", "string", ")", "Metric", "{", "m", ",", "err", ":=", "NewConstMetric", "(", "desc", ",", "valueType", ",", "value", "...
// MustNewConstMetric is a version of NewConstMetric that panics where // NewConstMetric would have returned an error.
[ "MustNewConstMetric", "is", "a", "version", "of", "NewConstMetric", "that", "panics", "where", "NewConstMetric", "would", "have", "returned", "an", "error", "." ]
6aba2189ebe6959268894366998500defefa2907
https://github.com/prometheus/client_golang/blob/6aba2189ebe6959268894366998500defefa2907/prometheus/value.go#L99-L105
train
pkg/errors
stack.go
name
func (f Frame) name() string { fn := runtime.FuncForPC(f.pc()) if fn == nil { return "unknown" } return fn.Name() }
go
func (f Frame) name() string { fn := runtime.FuncForPC(f.pc()) if fn == nil { return "unknown" } return fn.Name() }
[ "func", "(", "f", "Frame", ")", "name", "(", ")", "string", "{", "fn", ":=", "runtime", ".", "FuncForPC", "(", "f", ".", "pc", "(", ")", ")", "\n", "if", "fn", "==", "nil", "{", "return", "\"unknown\"", "\n", "}", "\n", "return", "fn", ".", "Na...
// name returns the name of this function, if known.
[ "name", "returns", "the", "name", "of", "this", "function", "if", "known", "." ]
27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7
https://github.com/pkg/errors/blob/27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7/stack.go#L44-L50
train
pkg/errors
stack.go
formatSlice
func (st StackTrace) formatSlice(s fmt.State, verb rune) { io.WriteString(s, "[") for i, f := range st { if i > 0 { io.WriteString(s, " ") } f.Format(s, verb) } io.WriteString(s, "]") }
go
func (st StackTrace) formatSlice(s fmt.State, verb rune) { io.WriteString(s, "[") for i, f := range st { if i > 0 { io.WriteString(s, " ") } f.Format(s, verb) } io.WriteString(s, "]") }
[ "func", "(", "st", "StackTrace", ")", "formatSlice", "(", "s", "fmt", ".", "State", ",", "verb", "rune", ")", "{", "io", ".", "WriteString", "(", "s", ",", "\"[\"", ")", "\n", "for", "i", ",", "f", ":=", "range", "st", "{", "if", "i", ">", "0",...
// formatSlice will format this StackTrace into the given buffer as a slice of // Frame, only valid when called with '%s' or '%v'.
[ "formatSlice", "will", "format", "this", "StackTrace", "into", "the", "given", "buffer", "as", "a", "slice", "of", "Frame", "only", "valid", "when", "called", "with", "%s", "or", "%v", "." ]
27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7
https://github.com/pkg/errors/blob/27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7/stack.go#L128-L137
train
pkg/errors
errors.go
WithMessage
func WithMessage(err error, message string) error { if err == nil { return nil } return &withMessage{ cause: err, msg: message, } }
go
func WithMessage(err error, message string) error { if err == nil { return nil } return &withMessage{ cause: err, msg: message, } }
[ "func", "WithMessage", "(", "err", "error", ",", "message", "string", ")", "error", "{", "if", "err", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "return", "&", "withMessage", "{", "cause", ":", "err", ",", "msg", ":", "message", ",", "}", ...
// WithMessage annotates err with a new message. // If err is nil, WithMessage returns nil.
[ "WithMessage", "annotates", "err", "with", "a", "new", "message", ".", "If", "err", "is", "nil", "WithMessage", "returns", "nil", "." ]
27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7
https://github.com/pkg/errors/blob/27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7/errors.go#L214-L222
train
pkg/errors
errors.go
WithMessagef
func WithMessagef(err error, format string, args ...interface{}) error { if err == nil { return nil } return &withMessage{ cause: err, msg: fmt.Sprintf(format, args...), } }
go
func WithMessagef(err error, format string, args ...interface{}) error { if err == nil { return nil } return &withMessage{ cause: err, msg: fmt.Sprintf(format, args...), } }
[ "func", "WithMessagef", "(", "err", "error", ",", "format", "string", ",", "args", "...", "interface", "{", "}", ")", "error", "{", "if", "err", "==", "nil", "{", "return", "nil", "\n", "}", "\n", "return", "&", "withMessage", "{", "cause", ":", "err...
// WithMessagef annotates err with the format specifier. // If err is nil, WithMessagef returns nil.
[ "WithMessagef", "annotates", "err", "with", "the", "format", "specifier", ".", "If", "err", "is", "nil", "WithMessagef", "returns", "nil", "." ]
27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7
https://github.com/pkg/errors/blob/27936f6d90f9c8e1145f11ed52ffffbfdb9e0af7/errors.go#L226-L234
train
awslabs/goformation
generate/resource.go
Required
func (r Resource) Required() string { required := []string{} for name, property := range r.Properties { if property.Required { required = append(required, `"`+name+`"`) } } // As Go doesn't provide ordering guarentees for maps, we should // sort the required property names by alphabetical order so that // they don't shuffle on every generation, and cause annoying commit diffs sort.Strings(required) return strings.Join(required, ", ") }
go
func (r Resource) Required() string { required := []string{} for name, property := range r.Properties { if property.Required { required = append(required, `"`+name+`"`) } } // As Go doesn't provide ordering guarentees for maps, we should // sort the required property names by alphabetical order so that // they don't shuffle on every generation, and cause annoying commit diffs sort.Strings(required) return strings.Join(required, ", ") }
[ "func", "(", "r", "Resource", ")", "Required", "(", ")", "string", "{", "required", ":=", "[", "]", "string", "{", "}", "\n", "for", "name", ",", "property", ":=", "range", "r", ".", "Properties", "{", "if", "property", ".", "Required", "{", "require...
// Required returns a comma separated list of the required properties for this resource
[ "Required", "returns", "a", "comma", "separated", "list", "of", "the", "required", "properties", "for", "this", "resource" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/generate/resource.go#L57-L72
train
awslabs/goformation
intrinsics/intrinsics.go
overrideParameters
func overrideParameters(input interface{}, options *ProcessorOptions) { if options == nil || len(options.ParameterOverrides) == 0 { return } // Check the template is a map if template, ok := input.(map[string]interface{}); ok { // Check there is a parameters section if uparameters, ok := template["Parameters"]; ok { // Check the parameters section is a map if parameters, ok := uparameters.(map[string]interface{}); ok { for name, value := range options.ParameterOverrides { // Check there is a parameter with the same name as the Ref if uparameter, ok := parameters[name]; ok { // Check the parameter is a map if parameter, ok := uparameter.(map[string]interface{}); ok { // Set the default value parameter["Default"] = value } } } } } } }
go
func overrideParameters(input interface{}, options *ProcessorOptions) { if options == nil || len(options.ParameterOverrides) == 0 { return } // Check the template is a map if template, ok := input.(map[string]interface{}); ok { // Check there is a parameters section if uparameters, ok := template["Parameters"]; ok { // Check the parameters section is a map if parameters, ok := uparameters.(map[string]interface{}); ok { for name, value := range options.ParameterOverrides { // Check there is a parameter with the same name as the Ref if uparameter, ok := parameters[name]; ok { // Check the parameter is a map if parameter, ok := uparameter.(map[string]interface{}); ok { // Set the default value parameter["Default"] = value } } } } } } }
[ "func", "overrideParameters", "(", "input", "interface", "{", "}", ",", "options", "*", "ProcessorOptions", ")", "{", "if", "options", "==", "nil", "||", "len", "(", "options", ".", "ParameterOverrides", ")", "==", "0", "{", "return", "\n", "}", "\n", "i...
// overrideParameters replaces the default values of Parameters with the specified ones
[ "overrideParameters", "replaces", "the", "default", "values", "of", "Parameters", "with", "the", "specified", "ones" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/intrinsics/intrinsics.go#L108-L132
train
awslabs/goformation
intrinsics/intrinsics.go
applyGlobals
func applyGlobals(input interface{}, options *ProcessorOptions) { if template, ok := input.(map[string]interface{}); ok { if uglobals, ok := template["Globals"]; ok { if globals, ok := uglobals.(map[string]interface{}); ok { for name, globalValues := range globals { for supportedGlobalName, supportedGlobalType := range supportedGlobalResources { if name == supportedGlobalName { if uresources, ok := template["Resources"]; ok { if resources, ok := uresources.(map[string]interface{}); ok { for _, uresource := range resources { if resource, ok := uresource.(map[string]interface{}); ok { if resource["Type"] == supportedGlobalType { properties := resource["Properties"].(map[string]interface{}) for globalProp, globalPropValue := range globalValues.(map[string]interface{}) { if _, ok := properties[globalProp]; !ok { properties[globalProp] = globalPropValue } else if gArray, ok := globalPropValue.([]interface{}); ok { if pArray, ok := properties[globalProp].([]interface{}); ok { properties[globalProp] = append(pArray, gArray...) } } else if gMap, ok := globalPropValue.(map[string]interface{}); ok { if pMap, ok := properties[globalProp].(map[string]interface{}); ok { mergo.Merge(&pMap, gMap) } } } } } } } } } } } } } } }
go
func applyGlobals(input interface{}, options *ProcessorOptions) { if template, ok := input.(map[string]interface{}); ok { if uglobals, ok := template["Globals"]; ok { if globals, ok := uglobals.(map[string]interface{}); ok { for name, globalValues := range globals { for supportedGlobalName, supportedGlobalType := range supportedGlobalResources { if name == supportedGlobalName { if uresources, ok := template["Resources"]; ok { if resources, ok := uresources.(map[string]interface{}); ok { for _, uresource := range resources { if resource, ok := uresource.(map[string]interface{}); ok { if resource["Type"] == supportedGlobalType { properties := resource["Properties"].(map[string]interface{}) for globalProp, globalPropValue := range globalValues.(map[string]interface{}) { if _, ok := properties[globalProp]; !ok { properties[globalProp] = globalPropValue } else if gArray, ok := globalPropValue.([]interface{}); ok { if pArray, ok := properties[globalProp].([]interface{}); ok { properties[globalProp] = append(pArray, gArray...) } } else if gMap, ok := globalPropValue.(map[string]interface{}); ok { if pMap, ok := properties[globalProp].(map[string]interface{}); ok { mergo.Merge(&pMap, gMap) } } } } } } } } } } } } } } }
[ "func", "applyGlobals", "(", "input", "interface", "{", "}", ",", "options", "*", "ProcessorOptions", ")", "{", "if", "template", ",", "ok", ":=", "input", ".", "(", "map", "[", "string", "]", "interface", "{", "}", ")", ";", "ok", "{", "if", "ugloba...
// applyGlobals adds AWS SAM Globals into resources
[ "applyGlobals", "adds", "AWS", "SAM", "Globals", "into", "resources" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/intrinsics/intrinsics.go#L140-L177
train
awslabs/goformation
intrinsics/intrinsics.go
evaluateConditions
func evaluateConditions(input interface{}, options *ProcessorOptions) { if template, ok := input.(map[string]interface{}); ok { // Check there is a conditions section if uconditions, ok := template["Conditions"]; ok { // Check the conditions section is a map if conditions, ok := uconditions.(map[string]interface{}); ok { for name, expr := range conditions { conditions[name] = search(expr, input, options) } } } } }
go
func evaluateConditions(input interface{}, options *ProcessorOptions) { if template, ok := input.(map[string]interface{}); ok { // Check there is a conditions section if uconditions, ok := template["Conditions"]; ok { // Check the conditions section is a map if conditions, ok := uconditions.(map[string]interface{}); ok { for name, expr := range conditions { conditions[name] = search(expr, input, options) } } } } }
[ "func", "evaluateConditions", "(", "input", "interface", "{", "}", ",", "options", "*", "ProcessorOptions", ")", "{", "if", "template", ",", "ok", ":=", "input", ".", "(", "map", "[", "string", "]", "interface", "{", "}", ")", ";", "ok", "{", "if", "...
// evaluateConditions replaces each condition in the template with its corresponding // value
[ "evaluateConditions", "replaces", "each", "condition", "in", "the", "template", "with", "its", "corresponding", "value" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/intrinsics/intrinsics.go#L181-L193
train
awslabs/goformation
intrinsics/intrinsics.go
handler
func handler(name string, options *ProcessorOptions) (IntrinsicHandler, bool) { // Check if we have a handler for this intrinsic type in the instrinsic handler // overrides in the options provided to Process() if options != nil { if h, ok := options.IntrinsicHandlerOverrides[name]; ok { return h, true } } if h, ok := defaultIntrinsicHandlers[name]; ok { return h, true } return nil, false }
go
func handler(name string, options *ProcessorOptions) (IntrinsicHandler, bool) { // Check if we have a handler for this intrinsic type in the instrinsic handler // overrides in the options provided to Process() if options != nil { if h, ok := options.IntrinsicHandlerOverrides[name]; ok { return h, true } } if h, ok := defaultIntrinsicHandlers[name]; ok { return h, true } return nil, false }
[ "func", "handler", "(", "name", "string", ",", "options", "*", "ProcessorOptions", ")", "(", "IntrinsicHandler", ",", "bool", ")", "{", "if", "options", "!=", "nil", "{", "if", "h", ",", "ok", ":=", "options", ".", "IntrinsicHandlerOverrides", "[", "name",...
// handler looks up the correct intrinsic function handler for an object key, if there is one. // If not, it returns nil, false.
[ "handler", "looks", "up", "the", "correct", "intrinsic", "function", "handler", "for", "an", "object", "key", "if", "there", "is", "one", ".", "If", "not", "it", "returns", "nil", "false", "." ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/intrinsics/intrinsics.go#L289-L305
train
awslabs/goformation
cloudformation/template.go
NewTemplate
func NewTemplate() *Template { return &Template{ AWSTemplateFormatVersion: "2010-09-09", Description: "", Metadata: map[string]interface{}{}, Parameters: map[string]interface{}{}, Mappings: map[string]interface{}{}, Conditions: map[string]interface{}{}, Resources: Resources{}, Outputs: map[string]interface{}{}, } }
go
func NewTemplate() *Template { return &Template{ AWSTemplateFormatVersion: "2010-09-09", Description: "", Metadata: map[string]interface{}{}, Parameters: map[string]interface{}{}, Mappings: map[string]interface{}{}, Conditions: map[string]interface{}{}, Resources: Resources{}, Outputs: map[string]interface{}{}, } }
[ "func", "NewTemplate", "(", ")", "*", "Template", "{", "return", "&", "Template", "{", "AWSTemplateFormatVersion", ":", "\"2010-09-09\"", ",", "Description", ":", "\"\"", ",", "Metadata", ":", "map", "[", "string", "]", "interface", "{", "}", "{", "}", ","...
// NewTemplate creates a new AWS CloudFormation template struct
[ "NewTemplate", "creates", "a", "new", "AWS", "CloudFormation", "template", "struct" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/template.go#L120-L131
train
awslabs/goformation
cloudformation/template.go
JSON
func (t *Template) JSON() ([]byte, error) { j, err := json.MarshalIndent(t, "", " ") if err != nil { return nil, err } return intrinsics.ProcessJSON(j, nil) }
go
func (t *Template) JSON() ([]byte, error) { j, err := json.MarshalIndent(t, "", " ") if err != nil { return nil, err } return intrinsics.ProcessJSON(j, nil) }
[ "func", "(", "t", "*", "Template", ")", "JSON", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "j", ",", "err", ":=", "json", ".", "MarshalIndent", "(", "t", ",", "\"\"", ",", "\" \"", ")", "\n", "if", "err", "!=", "nil", "{", "ret...
// JSON converts an AWS CloudFormation template object to JSON
[ "JSON", "converts", "an", "AWS", "CloudFormation", "template", "object", "to", "JSON" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/template.go#L134-L143
train
awslabs/goformation
cloudformation/template.go
YAML
func (t *Template) YAML() ([]byte, error) { j, err := t.JSON() if err != nil { return nil, err } return yaml.JSONToYAML(j) }
go
func (t *Template) YAML() ([]byte, error) { j, err := t.JSON() if err != nil { return nil, err } return yaml.JSONToYAML(j) }
[ "func", "(", "t", "*", "Template", ")", "YAML", "(", ")", "(", "[", "]", "byte", ",", "error", ")", "{", "j", ",", "err", ":=", "t", ".", "JSON", "(", ")", "\n", "if", "err", "!=", "nil", "{", "return", "nil", ",", "err", "\n", "}", "\n", ...
// YAML converts an AWS CloudFormation template object to YAML
[ "YAML", "converts", "an", "AWS", "CloudFormation", "template", "object", "to", "YAML" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/template.go#L146-L155
train
awslabs/goformation
generate/property.go
IsPolymorphic
func (p Property) IsPolymorphic() bool { return len(p.PrimitiveTypes) > 0 || len(p.PrimitiveItemTypes) > 0 || len(p.PrimitiveItemTypes) > 0 || len(p.ItemTypes) > 0 || len(p.Types) > 0 }
go
func (p Property) IsPolymorphic() bool { return len(p.PrimitiveTypes) > 0 || len(p.PrimitiveItemTypes) > 0 || len(p.PrimitiveItemTypes) > 0 || len(p.ItemTypes) > 0 || len(p.Types) > 0 }
[ "func", "(", "p", "Property", ")", "IsPolymorphic", "(", ")", "bool", "{", "return", "len", "(", "p", ".", "PrimitiveTypes", ")", ">", "0", "||", "len", "(", "p", ".", "PrimitiveItemTypes", ")", ">", "0", "||", "len", "(", "p", ".", "PrimitiveItemTyp...
// IsPolymorphic checks whether a property can be multiple different types
[ "IsPolymorphic", "checks", "whether", "a", "property", "can", "be", "multiple", "different", "types" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/generate/property.go#L105-L107
train
awslabs/goformation
generate/property.go
IsCustomType
func (p Property) IsCustomType() bool { return p.PrimitiveType == "" && p.ItemType == "" && p.PrimitiveItemType == "" }
go
func (p Property) IsCustomType() bool { return p.PrimitiveType == "" && p.ItemType == "" && p.PrimitiveItemType == "" }
[ "func", "(", "p", "Property", ")", "IsCustomType", "(", ")", "bool", "{", "return", "p", ".", "PrimitiveType", "==", "\"\"", "&&", "p", ".", "ItemType", "==", "\"\"", "&&", "p", ".", "PrimitiveItemType", "==", "\"\"", "\n", "}" ]
// IsCustomType checks wither a property is a custom type
[ "IsCustomType", "checks", "wither", "a", "property", "is", "a", "custom", "type" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/generate/property.go#L143-L145
train
awslabs/goformation
cloudformation/all.go
GetAllAWSAmazonMQBrokerResources
func (t *Template) GetAllAWSAmazonMQBrokerResources() map[string]*resources.AWSAmazonMQBroker { results := map[string]*resources.AWSAmazonMQBroker{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAmazonMQBroker: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSAmazonMQBrokerResources() map[string]*resources.AWSAmazonMQBroker { results := map[string]*resources.AWSAmazonMQBroker{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAmazonMQBroker: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSAmazonMQBrokerResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSAmazonMQBroker", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSAmazonMQBroker", "{", "}"...
// GetAllAWSAmazonMQBrokerResources retrieves all AWSAmazonMQBroker items from an AWS CloudFormation template
[ "GetAllAWSAmazonMQBrokerResources", "retrieves", "all", "AWSAmazonMQBroker", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L403-L412
train
awslabs/goformation
cloudformation/all.go
GetAWSAmazonMQBrokerWithName
func (t *Template) GetAWSAmazonMQBrokerWithName(name string) (*resources.AWSAmazonMQBroker, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAmazonMQBroker: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAmazonMQBroker not found", name) }
go
func (t *Template) GetAWSAmazonMQBrokerWithName(name string) (*resources.AWSAmazonMQBroker, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAmazonMQBroker: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAmazonMQBroker not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSAmazonMQBrokerWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSAmazonMQBroker", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", ...
// GetAWSAmazonMQBrokerWithName retrieves all AWSAmazonMQBroker items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSAmazonMQBrokerWithName", "retrieves", "all", "AWSAmazonMQBroker", "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#L416-L424
train
awslabs/goformation
cloudformation/all.go
GetAllAWSAmazonMQConfigurationResources
func (t *Template) GetAllAWSAmazonMQConfigurationResources() map[string]*resources.AWSAmazonMQConfiguration { results := map[string]*resources.AWSAmazonMQConfiguration{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAmazonMQConfiguration: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSAmazonMQConfigurationResources() map[string]*resources.AWSAmazonMQConfiguration { results := map[string]*resources.AWSAmazonMQConfiguration{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAmazonMQConfiguration: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSAmazonMQConfigurationResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSAmazonMQConfiguration", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSAmazonMQConfigu...
// GetAllAWSAmazonMQConfigurationResources retrieves all AWSAmazonMQConfiguration items from an AWS CloudFormation template
[ "GetAllAWSAmazonMQConfigurationResources", "retrieves", "all", "AWSAmazonMQConfiguration", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L427-L436
train
awslabs/goformation
cloudformation/all.go
GetAWSAmazonMQConfigurationWithName
func (t *Template) GetAWSAmazonMQConfigurationWithName(name string) (*resources.AWSAmazonMQConfiguration, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAmazonMQConfiguration: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAmazonMQConfiguration not found", name) }
go
func (t *Template) GetAWSAmazonMQConfigurationWithName(name string) (*resources.AWSAmazonMQConfiguration, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAmazonMQConfiguration: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAmazonMQConfiguration not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSAmazonMQConfigurationWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSAmazonMQConfiguration", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", ...
// GetAWSAmazonMQConfigurationWithName retrieves all AWSAmazonMQConfiguration items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSAmazonMQConfigurationWithName", "retrieves", "all", "AWSAmazonMQConfiguration", "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#L440-L448
train
awslabs/goformation
cloudformation/all.go
GetAllAWSAmazonMQConfigurationAssociationResources
func (t *Template) GetAllAWSAmazonMQConfigurationAssociationResources() map[string]*resources.AWSAmazonMQConfigurationAssociation { results := map[string]*resources.AWSAmazonMQConfigurationAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAmazonMQConfigurationAssociation: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSAmazonMQConfigurationAssociationResources() map[string]*resources.AWSAmazonMQConfigurationAssociation { results := map[string]*resources.AWSAmazonMQConfigurationAssociation{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAmazonMQConfigurationAssociation: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSAmazonMQConfigurationAssociationResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSAmazonMQConfigurationAssociation", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".",...
// GetAllAWSAmazonMQConfigurationAssociationResources retrieves all AWSAmazonMQConfigurationAssociation items from an AWS CloudFormation template
[ "GetAllAWSAmazonMQConfigurationAssociationResources", "retrieves", "all", "AWSAmazonMQConfigurationAssociation", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L451-L460
train
awslabs/goformation
cloudformation/all.go
GetAWSAmazonMQConfigurationAssociationWithName
func (t *Template) GetAWSAmazonMQConfigurationAssociationWithName(name string) (*resources.AWSAmazonMQConfigurationAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAmazonMQConfigurationAssociation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAmazonMQConfigurationAssociation not found", name) }
go
func (t *Template) GetAWSAmazonMQConfigurationAssociationWithName(name string) (*resources.AWSAmazonMQConfigurationAssociation, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAmazonMQConfigurationAssociation: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAmazonMQConfigurationAssociation not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSAmazonMQConfigurationAssociationWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSAmazonMQConfigurationAssociation", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resource...
// GetAWSAmazonMQConfigurationAssociationWithName retrieves all AWSAmazonMQConfigurationAssociation items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSAmazonMQConfigurationAssociationWithName", "retrieves", "all", "AWSAmazonMQConfigurationAssociation", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "n...
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L464-L472
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayAccountResources
func (t *Template) GetAllAWSApiGatewayAccountResources() map[string]*resources.AWSApiGatewayAccount { results := map[string]*resources.AWSApiGatewayAccount{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayAccount: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayAccountResources() map[string]*resources.AWSApiGatewayAccount { results := map[string]*resources.AWSApiGatewayAccount{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayAccount: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayAccountResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayAccount", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayAccount", "...
// GetAllAWSApiGatewayAccountResources retrieves all AWSApiGatewayAccount items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayAccountResources", "retrieves", "all", "AWSApiGatewayAccount", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L475-L484
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayAccountWithName
func (t *Template) GetAWSApiGatewayAccountWithName(name string) (*resources.AWSApiGatewayAccount, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayAccount: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayAccount not found", name) }
go
func (t *Template) GetAWSApiGatewayAccountWithName(name string) (*resources.AWSApiGatewayAccount, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayAccount: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayAccount not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayAccountWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayAccount", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ...
// GetAWSApiGatewayAccountWithName retrieves all AWSApiGatewayAccount items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayAccountWithName", "retrieves", "all", "AWSApiGatewayAccount", "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#L488-L496
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayApiKeyResources
func (t *Template) GetAllAWSApiGatewayApiKeyResources() map[string]*resources.AWSApiGatewayApiKey { results := map[string]*resources.AWSApiGatewayApiKey{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayApiKey: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayApiKeyResources() map[string]*resources.AWSApiGatewayApiKey { results := map[string]*resources.AWSApiGatewayApiKey{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayApiKey: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayApiKeyResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayApiKey", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayApiKey", "{",...
// GetAllAWSApiGatewayApiKeyResources retrieves all AWSApiGatewayApiKey items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayApiKeyResources", "retrieves", "all", "AWSApiGatewayApiKey", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L499-L508
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayApiKeyWithName
func (t *Template) GetAWSApiGatewayApiKeyWithName(name string) (*resources.AWSApiGatewayApiKey, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayApiKey: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayApiKey not found", name) }
go
func (t *Template) GetAWSApiGatewayApiKeyWithName(name string) (*resources.AWSApiGatewayApiKey, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayApiKey: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayApiKey not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayApiKeyWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayApiKey", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";...
// GetAWSApiGatewayApiKeyWithName retrieves all AWSApiGatewayApiKey items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayApiKeyWithName", "retrieves", "all", "AWSApiGatewayApiKey", "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#L512-L520
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayAuthorizerResources
func (t *Template) GetAllAWSApiGatewayAuthorizerResources() map[string]*resources.AWSApiGatewayAuthorizer { results := map[string]*resources.AWSApiGatewayAuthorizer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayAuthorizer: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayAuthorizerResources() map[string]*resources.AWSApiGatewayAuthorizer { results := map[string]*resources.AWSApiGatewayAuthorizer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayAuthorizer: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayAuthorizerResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayAuthorizer", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayAuthori...
// GetAllAWSApiGatewayAuthorizerResources retrieves all AWSApiGatewayAuthorizer items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayAuthorizerResources", "retrieves", "all", "AWSApiGatewayAuthorizer", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L523-L532
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayAuthorizerWithName
func (t *Template) GetAWSApiGatewayAuthorizerWithName(name string) (*resources.AWSApiGatewayAuthorizer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayAuthorizer: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayAuthorizer not found", name) }
go
func (t *Template) GetAWSApiGatewayAuthorizerWithName(name string) (*resources.AWSApiGatewayAuthorizer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayAuthorizer: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayAuthorizer not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayAuthorizerWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayAuthorizer", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "...
// GetAWSApiGatewayAuthorizerWithName retrieves all AWSApiGatewayAuthorizer items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayAuthorizerWithName", "retrieves", "all", "AWSApiGatewayAuthorizer", "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#L536-L544
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayBasePathMappingResources
func (t *Template) GetAllAWSApiGatewayBasePathMappingResources() map[string]*resources.AWSApiGatewayBasePathMapping { results := map[string]*resources.AWSApiGatewayBasePathMapping{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayBasePathMapping: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayBasePathMappingResources() map[string]*resources.AWSApiGatewayBasePathMapping { results := map[string]*resources.AWSApiGatewayBasePathMapping{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayBasePathMapping: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayBasePathMappingResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayBasePathMapping", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGate...
// GetAllAWSApiGatewayBasePathMappingResources retrieves all AWSApiGatewayBasePathMapping items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayBasePathMappingResources", "retrieves", "all", "AWSApiGatewayBasePathMapping", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L547-L556
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayBasePathMappingWithName
func (t *Template) GetAWSApiGatewayBasePathMappingWithName(name string) (*resources.AWSApiGatewayBasePathMapping, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayBasePathMapping: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayBasePathMapping not found", name) }
go
func (t *Template) GetAWSApiGatewayBasePathMappingWithName(name string) (*resources.AWSApiGatewayBasePathMapping, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayBasePathMapping: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayBasePathMapping not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayBasePathMappingWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayBasePathMapping", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "...
// GetAWSApiGatewayBasePathMappingWithName retrieves all AWSApiGatewayBasePathMapping items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayBasePathMappingWithName", "retrieves", "all", "AWSApiGatewayBasePathMapping", "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#L560-L568
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayClientCertificateResources
func (t *Template) GetAllAWSApiGatewayClientCertificateResources() map[string]*resources.AWSApiGatewayClientCertificate { results := map[string]*resources.AWSApiGatewayClientCertificate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayClientCertificate: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayClientCertificateResources() map[string]*resources.AWSApiGatewayClientCertificate { results := map[string]*resources.AWSApiGatewayClientCertificate{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayClientCertificate: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayClientCertificateResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayClientCertificate", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApi...
// GetAllAWSApiGatewayClientCertificateResources retrieves all AWSApiGatewayClientCertificate items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayClientCertificateResources", "retrieves", "all", "AWSApiGatewayClientCertificate", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L571-L580
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayClientCertificateWithName
func (t *Template) GetAWSApiGatewayClientCertificateWithName(name string) (*resources.AWSApiGatewayClientCertificate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayClientCertificate: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayClientCertificate not found", name) }
go
func (t *Template) GetAWSApiGatewayClientCertificateWithName(name string) (*resources.AWSApiGatewayClientCertificate, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayClientCertificate: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayClientCertificate not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayClientCertificateWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayClientCertificate", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[",...
// GetAWSApiGatewayClientCertificateWithName retrieves all AWSApiGatewayClientCertificate items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayClientCertificateWithName", "retrieves", "all", "AWSApiGatewayClientCertificate", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "fo...
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L584-L592
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayDeploymentResources
func (t *Template) GetAllAWSApiGatewayDeploymentResources() map[string]*resources.AWSApiGatewayDeployment { results := map[string]*resources.AWSApiGatewayDeployment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayDeployment: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayDeploymentResources() map[string]*resources.AWSApiGatewayDeployment { results := map[string]*resources.AWSApiGatewayDeployment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayDeployment: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayDeploymentResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayDeployment", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayDeploym...
// GetAllAWSApiGatewayDeploymentResources retrieves all AWSApiGatewayDeployment items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayDeploymentResources", "retrieves", "all", "AWSApiGatewayDeployment", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L595-L604
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayDeploymentWithName
func (t *Template) GetAWSApiGatewayDeploymentWithName(name string) (*resources.AWSApiGatewayDeployment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayDeployment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayDeployment not found", name) }
go
func (t *Template) GetAWSApiGatewayDeploymentWithName(name string) (*resources.AWSApiGatewayDeployment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayDeployment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayDeployment not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayDeploymentWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayDeployment", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "...
// GetAWSApiGatewayDeploymentWithName retrieves all AWSApiGatewayDeployment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayDeploymentWithName", "retrieves", "all", "AWSApiGatewayDeployment", "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#L608-L616
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayDocumentationPartResources
func (t *Template) GetAllAWSApiGatewayDocumentationPartResources() map[string]*resources.AWSApiGatewayDocumentationPart { results := map[string]*resources.AWSApiGatewayDocumentationPart{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayDocumentationPart: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayDocumentationPartResources() map[string]*resources.AWSApiGatewayDocumentationPart { results := map[string]*resources.AWSApiGatewayDocumentationPart{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayDocumentationPart: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayDocumentationPartResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayDocumentationPart", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApi...
// GetAllAWSApiGatewayDocumentationPartResources retrieves all AWSApiGatewayDocumentationPart items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayDocumentationPartResources", "retrieves", "all", "AWSApiGatewayDocumentationPart", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L619-L628
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayDocumentationPartWithName
func (t *Template) GetAWSApiGatewayDocumentationPartWithName(name string) (*resources.AWSApiGatewayDocumentationPart, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayDocumentationPart: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayDocumentationPart not found", name) }
go
func (t *Template) GetAWSApiGatewayDocumentationPartWithName(name string) (*resources.AWSApiGatewayDocumentationPart, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayDocumentationPart: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayDocumentationPart not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayDocumentationPartWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayDocumentationPart", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[",...
// GetAWSApiGatewayDocumentationPartWithName retrieves all AWSApiGatewayDocumentationPart items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayDocumentationPartWithName", "retrieves", "all", "AWSApiGatewayDocumentationPart", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "fo...
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L632-L640
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayDocumentationVersionResources
func (t *Template) GetAllAWSApiGatewayDocumentationVersionResources() map[string]*resources.AWSApiGatewayDocumentationVersion { results := map[string]*resources.AWSApiGatewayDocumentationVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayDocumentationVersion: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayDocumentationVersionResources() map[string]*resources.AWSApiGatewayDocumentationVersion { results := map[string]*resources.AWSApiGatewayDocumentationVersion{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayDocumentationVersion: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayDocumentationVersionResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayDocumentationVersion", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "...
// GetAllAWSApiGatewayDocumentationVersionResources retrieves all AWSApiGatewayDocumentationVersion items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayDocumentationVersionResources", "retrieves", "all", "AWSApiGatewayDocumentationVersion", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L643-L652
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayDocumentationVersionWithName
func (t *Template) GetAWSApiGatewayDocumentationVersionWithName(name string) (*resources.AWSApiGatewayDocumentationVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayDocumentationVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayDocumentationVersion not found", name) }
go
func (t *Template) GetAWSApiGatewayDocumentationVersionWithName(name string) (*resources.AWSApiGatewayDocumentationVersion, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayDocumentationVersion: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayDocumentationVersion not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayDocumentationVersionWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayDocumentationVersion", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", ...
// GetAWSApiGatewayDocumentationVersionWithName retrieves all AWSApiGatewayDocumentationVersion items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayDocumentationVersionWithName", "retrieves", "all", "AWSApiGatewayDocumentationVersion", "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#L656-L664
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayDomainNameResources
func (t *Template) GetAllAWSApiGatewayDomainNameResources() map[string]*resources.AWSApiGatewayDomainName { results := map[string]*resources.AWSApiGatewayDomainName{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayDomainName: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayDomainNameResources() map[string]*resources.AWSApiGatewayDomainName { results := map[string]*resources.AWSApiGatewayDomainName{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayDomainName: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayDomainNameResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayDomainName", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayDomainN...
// GetAllAWSApiGatewayDomainNameResources retrieves all AWSApiGatewayDomainName items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayDomainNameResources", "retrieves", "all", "AWSApiGatewayDomainName", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L667-L676
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayDomainNameWithName
func (t *Template) GetAWSApiGatewayDomainNameWithName(name string) (*resources.AWSApiGatewayDomainName, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayDomainName: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayDomainName not found", name) }
go
func (t *Template) GetAWSApiGatewayDomainNameWithName(name string) (*resources.AWSApiGatewayDomainName, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayDomainName: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayDomainName not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayDomainNameWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayDomainName", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "...
// GetAWSApiGatewayDomainNameWithName retrieves all AWSApiGatewayDomainName items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayDomainNameWithName", "retrieves", "all", "AWSApiGatewayDomainName", "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#L680-L688
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayGatewayResponseResources
func (t *Template) GetAllAWSApiGatewayGatewayResponseResources() map[string]*resources.AWSApiGatewayGatewayResponse { results := map[string]*resources.AWSApiGatewayGatewayResponse{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayGatewayResponse: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayGatewayResponseResources() map[string]*resources.AWSApiGatewayGatewayResponse { results := map[string]*resources.AWSApiGatewayGatewayResponse{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayGatewayResponse: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayGatewayResponseResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayGatewayResponse", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGate...
// GetAllAWSApiGatewayGatewayResponseResources retrieves all AWSApiGatewayGatewayResponse items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayGatewayResponseResources", "retrieves", "all", "AWSApiGatewayGatewayResponse", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L691-L700
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayGatewayResponseWithName
func (t *Template) GetAWSApiGatewayGatewayResponseWithName(name string) (*resources.AWSApiGatewayGatewayResponse, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayGatewayResponse: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayGatewayResponse not found", name) }
go
func (t *Template) GetAWSApiGatewayGatewayResponseWithName(name string) (*resources.AWSApiGatewayGatewayResponse, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayGatewayResponse: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayGatewayResponse not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayGatewayResponseWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayGatewayResponse", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "...
// GetAWSApiGatewayGatewayResponseWithName retrieves all AWSApiGatewayGatewayResponse items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayGatewayResponseWithName", "retrieves", "all", "AWSApiGatewayGatewayResponse", "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#L704-L712
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayMethodResources
func (t *Template) GetAllAWSApiGatewayMethodResources() map[string]*resources.AWSApiGatewayMethod { results := map[string]*resources.AWSApiGatewayMethod{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayMethod: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayMethodResources() map[string]*resources.AWSApiGatewayMethod { results := map[string]*resources.AWSApiGatewayMethod{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayMethod: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayMethodResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayMethod", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayMethod", "{",...
// GetAllAWSApiGatewayMethodResources retrieves all AWSApiGatewayMethod items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayMethodResources", "retrieves", "all", "AWSApiGatewayMethod", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L715-L724
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayMethodWithName
func (t *Template) GetAWSApiGatewayMethodWithName(name string) (*resources.AWSApiGatewayMethod, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayMethod: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayMethod not found", name) }
go
func (t *Template) GetAWSApiGatewayMethodWithName(name string) (*resources.AWSApiGatewayMethod, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayMethod: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayMethod not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayMethodWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayMethod", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";...
// GetAWSApiGatewayMethodWithName retrieves all AWSApiGatewayMethod items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayMethodWithName", "retrieves", "all", "AWSApiGatewayMethod", "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#L728-L736
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayModelResources
func (t *Template) GetAllAWSApiGatewayModelResources() map[string]*resources.AWSApiGatewayModel { results := map[string]*resources.AWSApiGatewayModel{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayModel: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayModelResources() map[string]*resources.AWSApiGatewayModel { results := map[string]*resources.AWSApiGatewayModel{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayModel: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayModelResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayModel", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayModel", "{", ...
// GetAllAWSApiGatewayModelResources retrieves all AWSApiGatewayModel items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayModelResources", "retrieves", "all", "AWSApiGatewayModel", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L739-L748
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayModelWithName
func (t *Template) GetAWSApiGatewayModelWithName(name string) (*resources.AWSApiGatewayModel, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayModel: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayModel not found", name) }
go
func (t *Template) GetAWSApiGatewayModelWithName(name string) (*resources.AWSApiGatewayModel, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayModel: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayModel not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayModelWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayModel", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";",...
// GetAWSApiGatewayModelWithName retrieves all AWSApiGatewayModel items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayModelWithName", "retrieves", "all", "AWSApiGatewayModel", "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#L752-L760
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayRequestValidatorResources
func (t *Template) GetAllAWSApiGatewayRequestValidatorResources() map[string]*resources.AWSApiGatewayRequestValidator { results := map[string]*resources.AWSApiGatewayRequestValidator{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayRequestValidator: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayRequestValidatorResources() map[string]*resources.AWSApiGatewayRequestValidator { results := map[string]*resources.AWSApiGatewayRequestValidator{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayRequestValidator: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayRequestValidatorResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayRequestValidator", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGa...
// GetAllAWSApiGatewayRequestValidatorResources retrieves all AWSApiGatewayRequestValidator items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayRequestValidatorResources", "retrieves", "all", "AWSApiGatewayRequestValidator", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L763-L772
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayRequestValidatorWithName
func (t *Template) GetAWSApiGatewayRequestValidatorWithName(name string) (*resources.AWSApiGatewayRequestValidator, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayRequestValidator: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayRequestValidator not found", name) }
go
func (t *Template) GetAWSApiGatewayRequestValidatorWithName(name string) (*resources.AWSApiGatewayRequestValidator, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayRequestValidator: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayRequestValidator not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayRequestValidatorWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayRequestValidator", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", ...
// GetAWSApiGatewayRequestValidatorWithName retrieves all AWSApiGatewayRequestValidator items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayRequestValidatorWithName", "retrieves", "all", "AWSApiGatewayRequestValidator", "items", "from", "an", "AWS", "CloudFormation", "template", "whose", "logical", "ID", "matches", "the", "provided", "name", ".", "Returns", "an", "error", "if", "not", "foun...
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L776-L784
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayResourceResources
func (t *Template) GetAllAWSApiGatewayResourceResources() map[string]*resources.AWSApiGatewayResource { results := map[string]*resources.AWSApiGatewayResource{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayResource: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayResourceResources() map[string]*resources.AWSApiGatewayResource { results := map[string]*resources.AWSApiGatewayResource{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayResource: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayResourceResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayResource", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayResource", ...
// GetAllAWSApiGatewayResourceResources retrieves all AWSApiGatewayResource items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayResourceResources", "retrieves", "all", "AWSApiGatewayResource", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L787-L796
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayResourceWithName
func (t *Template) GetAWSApiGatewayResourceWithName(name string) (*resources.AWSApiGatewayResource, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayResource: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayResource not found", name) }
go
func (t *Template) GetAWSApiGatewayResourceWithName(name string) (*resources.AWSApiGatewayResource, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayResource: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayResource not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayResourceWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayResource", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ...
// GetAWSApiGatewayResourceWithName retrieves all AWSApiGatewayResource items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayResourceWithName", "retrieves", "all", "AWSApiGatewayResource", "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#L800-L808
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayRestApiResources
func (t *Template) GetAllAWSApiGatewayRestApiResources() map[string]*resources.AWSApiGatewayRestApi { results := map[string]*resources.AWSApiGatewayRestApi{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayRestApi: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayRestApiResources() map[string]*resources.AWSApiGatewayRestApi { results := map[string]*resources.AWSApiGatewayRestApi{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayRestApi: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayRestApiResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayRestApi", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayRestApi", "...
// GetAllAWSApiGatewayRestApiResources retrieves all AWSApiGatewayRestApi items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayRestApiResources", "retrieves", "all", "AWSApiGatewayRestApi", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L811-L820
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayRestApiWithName
func (t *Template) GetAWSApiGatewayRestApiWithName(name string) (*resources.AWSApiGatewayRestApi, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayRestApi: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayRestApi not found", name) }
go
func (t *Template) GetAWSApiGatewayRestApiWithName(name string) (*resources.AWSApiGatewayRestApi, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayRestApi: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayRestApi not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayRestApiWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayRestApi", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ...
// GetAWSApiGatewayRestApiWithName retrieves all AWSApiGatewayRestApi items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayRestApiWithName", "retrieves", "all", "AWSApiGatewayRestApi", "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#L824-L832
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayStageResources
func (t *Template) GetAllAWSApiGatewayStageResources() map[string]*resources.AWSApiGatewayStage { results := map[string]*resources.AWSApiGatewayStage{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayStage: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayStageResources() map[string]*resources.AWSApiGatewayStage { results := map[string]*resources.AWSApiGatewayStage{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayStage: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayStageResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayStage", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayStage", "{", ...
// GetAllAWSApiGatewayStageResources retrieves all AWSApiGatewayStage items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayStageResources", "retrieves", "all", "AWSApiGatewayStage", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L835-L844
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayStageWithName
func (t *Template) GetAWSApiGatewayStageWithName(name string) (*resources.AWSApiGatewayStage, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayStage: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayStage not found", name) }
go
func (t *Template) GetAWSApiGatewayStageWithName(name string) (*resources.AWSApiGatewayStage, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayStage: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayStage not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayStageWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayStage", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";",...
// GetAWSApiGatewayStageWithName retrieves all AWSApiGatewayStage items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayStageWithName", "retrieves", "all", "AWSApiGatewayStage", "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#L848-L856
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayUsagePlanResources
func (t *Template) GetAllAWSApiGatewayUsagePlanResources() map[string]*resources.AWSApiGatewayUsagePlan { results := map[string]*resources.AWSApiGatewayUsagePlan{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayUsagePlan: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayUsagePlanResources() map[string]*resources.AWSApiGatewayUsagePlan { results := map[string]*resources.AWSApiGatewayUsagePlan{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayUsagePlan: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayUsagePlanResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayUsagePlan", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayUsagePlan...
// GetAllAWSApiGatewayUsagePlanResources retrieves all AWSApiGatewayUsagePlan items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayUsagePlanResources", "retrieves", "all", "AWSApiGatewayUsagePlan", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L859-L868
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayUsagePlanWithName
func (t *Template) GetAWSApiGatewayUsagePlanWithName(name string) (*resources.AWSApiGatewayUsagePlan, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayUsagePlan: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayUsagePlan not found", name) }
go
func (t *Template) GetAWSApiGatewayUsagePlanWithName(name string) (*resources.AWSApiGatewayUsagePlan, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayUsagePlan: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayUsagePlan not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayUsagePlanWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayUsagePlan", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]"...
// GetAWSApiGatewayUsagePlanWithName retrieves all AWSApiGatewayUsagePlan items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayUsagePlanWithName", "retrieves", "all", "AWSApiGatewayUsagePlan", "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#L872-L880
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayUsagePlanKeyResources
func (t *Template) GetAllAWSApiGatewayUsagePlanKeyResources() map[string]*resources.AWSApiGatewayUsagePlanKey { results := map[string]*resources.AWSApiGatewayUsagePlanKey{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayUsagePlanKey: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayUsagePlanKeyResources() map[string]*resources.AWSApiGatewayUsagePlanKey { results := map[string]*resources.AWSApiGatewayUsagePlanKey{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayUsagePlanKey: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayUsagePlanKeyResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayUsagePlanKey", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayUsa...
// GetAllAWSApiGatewayUsagePlanKeyResources retrieves all AWSApiGatewayUsagePlanKey items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayUsagePlanKeyResources", "retrieves", "all", "AWSApiGatewayUsagePlanKey", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L883-L892
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayUsagePlanKeyWithName
func (t *Template) GetAWSApiGatewayUsagePlanKeyWithName(name string) (*resources.AWSApiGatewayUsagePlanKey, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayUsagePlanKey: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayUsagePlanKey not found", name) }
go
func (t *Template) GetAWSApiGatewayUsagePlanKeyWithName(name string) (*resources.AWSApiGatewayUsagePlanKey, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayUsagePlanKey: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayUsagePlanKey not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayUsagePlanKeyWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayUsagePlanKey", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name",...
// GetAWSApiGatewayUsagePlanKeyWithName retrieves all AWSApiGatewayUsagePlanKey items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayUsagePlanKeyWithName", "retrieves", "all", "AWSApiGatewayUsagePlanKey", "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#L896-L904
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayVpcLinkResources
func (t *Template) GetAllAWSApiGatewayVpcLinkResources() map[string]*resources.AWSApiGatewayVpcLink { results := map[string]*resources.AWSApiGatewayVpcLink{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayVpcLink: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayVpcLinkResources() map[string]*resources.AWSApiGatewayVpcLink { results := map[string]*resources.AWSApiGatewayVpcLink{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayVpcLink: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayVpcLinkResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayVpcLink", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayVpcLink", "...
// GetAllAWSApiGatewayVpcLinkResources retrieves all AWSApiGatewayVpcLink items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayVpcLinkResources", "retrieves", "all", "AWSApiGatewayVpcLink", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L907-L916
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayVpcLinkWithName
func (t *Template) GetAWSApiGatewayVpcLinkWithName(name string) (*resources.AWSApiGatewayVpcLink, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayVpcLink: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayVpcLink not found", name) }
go
func (t *Template) GetAWSApiGatewayVpcLinkWithName(name string) (*resources.AWSApiGatewayVpcLink, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayVpcLink: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayVpcLink not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayVpcLinkWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayVpcLink", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ...
// GetAWSApiGatewayVpcLinkWithName retrieves all AWSApiGatewayVpcLink items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayVpcLinkWithName", "retrieves", "all", "AWSApiGatewayVpcLink", "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#L920-L928
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayV2ApiResources
func (t *Template) GetAllAWSApiGatewayV2ApiResources() map[string]*resources.AWSApiGatewayV2Api { results := map[string]*resources.AWSApiGatewayV2Api{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Api: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayV2ApiResources() map[string]*resources.AWSApiGatewayV2Api { results := map[string]*resources.AWSApiGatewayV2Api{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Api: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayV2ApiResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2Api", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2Api", "{", ...
// GetAllAWSApiGatewayV2ApiResources retrieves all AWSApiGatewayV2Api items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayV2ApiResources", "retrieves", "all", "AWSApiGatewayV2Api", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L931-L940
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayV2ApiWithName
func (t *Template) GetAWSApiGatewayV2ApiWithName(name string) (*resources.AWSApiGatewayV2Api, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Api: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Api not found", name) }
go
func (t *Template) GetAWSApiGatewayV2ApiWithName(name string) (*resources.AWSApiGatewayV2Api, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Api: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Api not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayV2ApiWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayV2Api", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";",...
// GetAWSApiGatewayV2ApiWithName retrieves all AWSApiGatewayV2Api items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayV2ApiWithName", "retrieves", "all", "AWSApiGatewayV2Api", "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#L944-L952
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayV2AuthorizerResources
func (t *Template) GetAllAWSApiGatewayV2AuthorizerResources() map[string]*resources.AWSApiGatewayV2Authorizer { results := map[string]*resources.AWSApiGatewayV2Authorizer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Authorizer: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayV2AuthorizerResources() map[string]*resources.AWSApiGatewayV2Authorizer { results := map[string]*resources.AWSApiGatewayV2Authorizer{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Authorizer: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayV2AuthorizerResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2Authorizer", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2A...
// GetAllAWSApiGatewayV2AuthorizerResources retrieves all AWSApiGatewayV2Authorizer items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayV2AuthorizerResources", "retrieves", "all", "AWSApiGatewayV2Authorizer", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L955-L964
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayV2AuthorizerWithName
func (t *Template) GetAWSApiGatewayV2AuthorizerWithName(name string) (*resources.AWSApiGatewayV2Authorizer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Authorizer: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Authorizer not found", name) }
go
func (t *Template) GetAWSApiGatewayV2AuthorizerWithName(name string) (*resources.AWSApiGatewayV2Authorizer, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Authorizer: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Authorizer not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayV2AuthorizerWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayV2Authorizer", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name",...
// GetAWSApiGatewayV2AuthorizerWithName retrieves all AWSApiGatewayV2Authorizer items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayV2AuthorizerWithName", "retrieves", "all", "AWSApiGatewayV2Authorizer", "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#L968-L976
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayV2DeploymentResources
func (t *Template) GetAllAWSApiGatewayV2DeploymentResources() map[string]*resources.AWSApiGatewayV2Deployment { results := map[string]*resources.AWSApiGatewayV2Deployment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Deployment: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayV2DeploymentResources() map[string]*resources.AWSApiGatewayV2Deployment { results := map[string]*resources.AWSApiGatewayV2Deployment{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Deployment: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayV2DeploymentResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2Deployment", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2D...
// GetAllAWSApiGatewayV2DeploymentResources retrieves all AWSApiGatewayV2Deployment items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayV2DeploymentResources", "retrieves", "all", "AWSApiGatewayV2Deployment", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L979-L988
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayV2DeploymentWithName
func (t *Template) GetAWSApiGatewayV2DeploymentWithName(name string) (*resources.AWSApiGatewayV2Deployment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Deployment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Deployment not found", name) }
go
func (t *Template) GetAWSApiGatewayV2DeploymentWithName(name string) (*resources.AWSApiGatewayV2Deployment, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Deployment: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Deployment not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayV2DeploymentWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayV2Deployment", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name",...
// GetAWSApiGatewayV2DeploymentWithName retrieves all AWSApiGatewayV2Deployment items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayV2DeploymentWithName", "retrieves", "all", "AWSApiGatewayV2Deployment", "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#L992-L1000
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayV2IntegrationResources
func (t *Template) GetAllAWSApiGatewayV2IntegrationResources() map[string]*resources.AWSApiGatewayV2Integration { results := map[string]*resources.AWSApiGatewayV2Integration{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Integration: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayV2IntegrationResources() map[string]*resources.AWSApiGatewayV2Integration { results := map[string]*resources.AWSApiGatewayV2Integration{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Integration: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayV2IntegrationResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2Integration", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV...
// GetAllAWSApiGatewayV2IntegrationResources retrieves all AWSApiGatewayV2Integration items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayV2IntegrationResources", "retrieves", "all", "AWSApiGatewayV2Integration", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1003-L1012
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayV2IntegrationWithName
func (t *Template) GetAWSApiGatewayV2IntegrationWithName(name string) (*resources.AWSApiGatewayV2Integration, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Integration: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Integration not found", name) }
go
func (t *Template) GetAWSApiGatewayV2IntegrationWithName(name string) (*resources.AWSApiGatewayV2Integration, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Integration: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Integration not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayV2IntegrationWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayV2Integration", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name...
// GetAWSApiGatewayV2IntegrationWithName retrieves all AWSApiGatewayV2Integration items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayV2IntegrationWithName", "retrieves", "all", "AWSApiGatewayV2Integration", "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#L1016-L1024
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayV2IntegrationResponseResources
func (t *Template) GetAllAWSApiGatewayV2IntegrationResponseResources() map[string]*resources.AWSApiGatewayV2IntegrationResponse { results := map[string]*resources.AWSApiGatewayV2IntegrationResponse{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2IntegrationResponse: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayV2IntegrationResponseResources() map[string]*resources.AWSApiGatewayV2IntegrationResponse { results := map[string]*resources.AWSApiGatewayV2IntegrationResponse{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2IntegrationResponse: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayV2IntegrationResponseResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2IntegrationResponse", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", ...
// GetAllAWSApiGatewayV2IntegrationResponseResources retrieves all AWSApiGatewayV2IntegrationResponse items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayV2IntegrationResponseResources", "retrieves", "all", "AWSApiGatewayV2IntegrationResponse", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1027-L1036
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayV2IntegrationResponseWithName
func (t *Template) GetAWSApiGatewayV2IntegrationResponseWithName(name string) (*resources.AWSApiGatewayV2IntegrationResponse, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2IntegrationResponse: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2IntegrationResponse not found", name) }
go
func (t *Template) GetAWSApiGatewayV2IntegrationResponseWithName(name string) (*resources.AWSApiGatewayV2IntegrationResponse, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2IntegrationResponse: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2IntegrationResponse not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayV2IntegrationResponseWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayV2IntegrationResponse", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources"...
// GetAWSApiGatewayV2IntegrationResponseWithName retrieves all AWSApiGatewayV2IntegrationResponse items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayV2IntegrationResponseWithName", "retrieves", "all", "AWSApiGatewayV2IntegrationResponse", "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#L1040-L1048
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayV2ModelResources
func (t *Template) GetAllAWSApiGatewayV2ModelResources() map[string]*resources.AWSApiGatewayV2Model { results := map[string]*resources.AWSApiGatewayV2Model{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Model: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayV2ModelResources() map[string]*resources.AWSApiGatewayV2Model { results := map[string]*resources.AWSApiGatewayV2Model{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Model: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayV2ModelResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2Model", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2Model", "...
// GetAllAWSApiGatewayV2ModelResources retrieves all AWSApiGatewayV2Model items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayV2ModelResources", "retrieves", "all", "AWSApiGatewayV2Model", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1051-L1060
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayV2ModelWithName
func (t *Template) GetAWSApiGatewayV2ModelWithName(name string) (*resources.AWSApiGatewayV2Model, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Model: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Model not found", name) }
go
func (t *Template) GetAWSApiGatewayV2ModelWithName(name string) (*resources.AWSApiGatewayV2Model, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Model: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Model not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayV2ModelWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayV2Model", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ...
// GetAWSApiGatewayV2ModelWithName retrieves all AWSApiGatewayV2Model items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayV2ModelWithName", "retrieves", "all", "AWSApiGatewayV2Model", "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#L1064-L1072
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayV2RouteResources
func (t *Template) GetAllAWSApiGatewayV2RouteResources() map[string]*resources.AWSApiGatewayV2Route { results := map[string]*resources.AWSApiGatewayV2Route{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Route: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayV2RouteResources() map[string]*resources.AWSApiGatewayV2Route { results := map[string]*resources.AWSApiGatewayV2Route{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Route: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayV2RouteResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2Route", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2Route", "...
// GetAllAWSApiGatewayV2RouteResources retrieves all AWSApiGatewayV2Route items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayV2RouteResources", "retrieves", "all", "AWSApiGatewayV2Route", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1075-L1084
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayV2RouteWithName
func (t *Template) GetAWSApiGatewayV2RouteWithName(name string) (*resources.AWSApiGatewayV2Route, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Route: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Route not found", name) }
go
func (t *Template) GetAWSApiGatewayV2RouteWithName(name string) (*resources.AWSApiGatewayV2Route, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Route: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Route not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayV2RouteWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayV2Route", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ...
// GetAWSApiGatewayV2RouteWithName retrieves all AWSApiGatewayV2Route items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayV2RouteWithName", "retrieves", "all", "AWSApiGatewayV2Route", "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#L1088-L1096
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayV2RouteResponseResources
func (t *Template) GetAllAWSApiGatewayV2RouteResponseResources() map[string]*resources.AWSApiGatewayV2RouteResponse { results := map[string]*resources.AWSApiGatewayV2RouteResponse{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2RouteResponse: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayV2RouteResponseResources() map[string]*resources.AWSApiGatewayV2RouteResponse { results := map[string]*resources.AWSApiGatewayV2RouteResponse{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2RouteResponse: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayV2RouteResponseResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2RouteResponse", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGate...
// GetAllAWSApiGatewayV2RouteResponseResources retrieves all AWSApiGatewayV2RouteResponse items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayV2RouteResponseResources", "retrieves", "all", "AWSApiGatewayV2RouteResponse", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1099-L1108
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayV2RouteResponseWithName
func (t *Template) GetAWSApiGatewayV2RouteResponseWithName(name string) (*resources.AWSApiGatewayV2RouteResponse, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2RouteResponse: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2RouteResponse not found", name) }
go
func (t *Template) GetAWSApiGatewayV2RouteResponseWithName(name string) (*resources.AWSApiGatewayV2RouteResponse, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2RouteResponse: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2RouteResponse not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayV2RouteResponseWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayV2RouteResponse", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "...
// GetAWSApiGatewayV2RouteResponseWithName retrieves all AWSApiGatewayV2RouteResponse items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayV2RouteResponseWithName", "retrieves", "all", "AWSApiGatewayV2RouteResponse", "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#L1112-L1120
train
awslabs/goformation
cloudformation/all.go
GetAllAWSApiGatewayV2StageResources
func (t *Template) GetAllAWSApiGatewayV2StageResources() map[string]*resources.AWSApiGatewayV2Stage { results := map[string]*resources.AWSApiGatewayV2Stage{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Stage: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSApiGatewayV2StageResources() map[string]*resources.AWSApiGatewayV2Stage { results := map[string]*resources.AWSApiGatewayV2Stage{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Stage: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSApiGatewayV2StageResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2Stage", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSApiGatewayV2Stage", "...
// GetAllAWSApiGatewayV2StageResources retrieves all AWSApiGatewayV2Stage items from an AWS CloudFormation template
[ "GetAllAWSApiGatewayV2StageResources", "retrieves", "all", "AWSApiGatewayV2Stage", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1123-L1132
train
awslabs/goformation
cloudformation/all.go
GetAWSApiGatewayV2StageWithName
func (t *Template) GetAWSApiGatewayV2StageWithName(name string) (*resources.AWSApiGatewayV2Stage, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Stage: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Stage not found", name) }
go
func (t *Template) GetAWSApiGatewayV2StageWithName(name string) (*resources.AWSApiGatewayV2Stage, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSApiGatewayV2Stage: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSApiGatewayV2Stage not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSApiGatewayV2StageWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSApiGatewayV2Stage", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ...
// GetAWSApiGatewayV2StageWithName retrieves all AWSApiGatewayV2Stage items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSApiGatewayV2StageWithName", "retrieves", "all", "AWSApiGatewayV2Stage", "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#L1136-L1144
train
awslabs/goformation
cloudformation/all.go
GetAllAWSAppMeshMeshResources
func (t *Template) GetAllAWSAppMeshMeshResources() map[string]*resources.AWSAppMeshMesh { results := map[string]*resources.AWSAppMeshMesh{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppMeshMesh: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSAppMeshMeshResources() map[string]*resources.AWSAppMeshMesh { results := map[string]*resources.AWSAppMeshMesh{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppMeshMesh: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSAppMeshMeshResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSAppMeshMesh", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSAppMeshMesh", "{", "}", "\n",...
// GetAllAWSAppMeshMeshResources retrieves all AWSAppMeshMesh items from an AWS CloudFormation template
[ "GetAllAWSAppMeshMeshResources", "retrieves", "all", "AWSAppMeshMesh", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1147-L1156
train
awslabs/goformation
cloudformation/all.go
GetAWSAppMeshMeshWithName
func (t *Template) GetAWSAppMeshMeshWithName(name string) (*resources.AWSAppMeshMesh, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppMeshMesh: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppMeshMesh not found", name) }
go
func (t *Template) GetAWSAppMeshMeshWithName(name string) (*resources.AWSAppMeshMesh, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppMeshMesh: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppMeshMesh not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSAppMeshMeshWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSAppMeshMesh", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok",...
// GetAWSAppMeshMeshWithName retrieves all AWSAppMeshMesh items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSAppMeshMeshWithName", "retrieves", "all", "AWSAppMeshMesh", "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#L1160-L1168
train
awslabs/goformation
cloudformation/all.go
GetAllAWSAppMeshRouteResources
func (t *Template) GetAllAWSAppMeshRouteResources() map[string]*resources.AWSAppMeshRoute { results := map[string]*resources.AWSAppMeshRoute{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppMeshRoute: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSAppMeshRouteResources() map[string]*resources.AWSAppMeshRoute { results := map[string]*resources.AWSAppMeshRoute{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppMeshRoute: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSAppMeshRouteResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSAppMeshRoute", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSAppMeshRoute", "{", "}", "\...
// GetAllAWSAppMeshRouteResources retrieves all AWSAppMeshRoute items from an AWS CloudFormation template
[ "GetAllAWSAppMeshRouteResources", "retrieves", "all", "AWSAppMeshRoute", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1171-L1180
train
awslabs/goformation
cloudformation/all.go
GetAWSAppMeshRouteWithName
func (t *Template) GetAWSAppMeshRouteWithName(name string) (*resources.AWSAppMeshRoute, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppMeshRoute: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppMeshRoute not found", name) }
go
func (t *Template) GetAWSAppMeshRouteWithName(name string) (*resources.AWSAppMeshRoute, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppMeshRoute: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppMeshRoute not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSAppMeshRouteWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSAppMeshRoute", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", "ok...
// GetAWSAppMeshRouteWithName retrieves all AWSAppMeshRoute items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSAppMeshRouteWithName", "retrieves", "all", "AWSAppMeshRoute", "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#L1184-L1192
train
awslabs/goformation
cloudformation/all.go
GetAllAWSAppMeshVirtualNodeResources
func (t *Template) GetAllAWSAppMeshVirtualNodeResources() map[string]*resources.AWSAppMeshVirtualNode { results := map[string]*resources.AWSAppMeshVirtualNode{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppMeshVirtualNode: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSAppMeshVirtualNodeResources() map[string]*resources.AWSAppMeshVirtualNode { results := map[string]*resources.AWSAppMeshVirtualNode{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppMeshVirtualNode: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSAppMeshVirtualNodeResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSAppMeshVirtualNode", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSAppMeshVirtualNode", ...
// GetAllAWSAppMeshVirtualNodeResources retrieves all AWSAppMeshVirtualNode items from an AWS CloudFormation template
[ "GetAllAWSAppMeshVirtualNodeResources", "retrieves", "all", "AWSAppMeshVirtualNode", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1195-L1204
train
awslabs/goformation
cloudformation/all.go
GetAWSAppMeshVirtualNodeWithName
func (t *Template) GetAWSAppMeshVirtualNodeWithName(name string) (*resources.AWSAppMeshVirtualNode, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppMeshVirtualNode: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppMeshVirtualNode not found", name) }
go
func (t *Template) GetAWSAppMeshVirtualNodeWithName(name string) (*resources.AWSAppMeshVirtualNode, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppMeshVirtualNode: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppMeshVirtualNode not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSAppMeshVirtualNodeWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSAppMeshVirtualNode", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ...
// GetAWSAppMeshVirtualNodeWithName retrieves all AWSAppMeshVirtualNode items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSAppMeshVirtualNodeWithName", "retrieves", "all", "AWSAppMeshVirtualNode", "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#L1208-L1216
train
awslabs/goformation
cloudformation/all.go
GetAllAWSAppMeshVirtualRouterResources
func (t *Template) GetAllAWSAppMeshVirtualRouterResources() map[string]*resources.AWSAppMeshVirtualRouter { results := map[string]*resources.AWSAppMeshVirtualRouter{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppMeshVirtualRouter: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSAppMeshVirtualRouterResources() map[string]*resources.AWSAppMeshVirtualRouter { results := map[string]*resources.AWSAppMeshVirtualRouter{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppMeshVirtualRouter: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSAppMeshVirtualRouterResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSAppMeshVirtualRouter", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSAppMeshVirtualRou...
// GetAllAWSAppMeshVirtualRouterResources retrieves all AWSAppMeshVirtualRouter items from an AWS CloudFormation template
[ "GetAllAWSAppMeshVirtualRouterResources", "retrieves", "all", "AWSAppMeshVirtualRouter", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1219-L1228
train
awslabs/goformation
cloudformation/all.go
GetAWSAppMeshVirtualRouterWithName
func (t *Template) GetAWSAppMeshVirtualRouterWithName(name string) (*resources.AWSAppMeshVirtualRouter, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppMeshVirtualRouter: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppMeshVirtualRouter not found", name) }
go
func (t *Template) GetAWSAppMeshVirtualRouterWithName(name string) (*resources.AWSAppMeshVirtualRouter, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppMeshVirtualRouter: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppMeshVirtualRouter not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSAppMeshVirtualRouterWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSAppMeshVirtualRouter", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "...
// GetAWSAppMeshVirtualRouterWithName retrieves all AWSAppMeshVirtualRouter items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSAppMeshVirtualRouterWithName", "retrieves", "all", "AWSAppMeshVirtualRouter", "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#L1232-L1240
train
awslabs/goformation
cloudformation/all.go
GetAllAWSAppMeshVirtualServiceResources
func (t *Template) GetAllAWSAppMeshVirtualServiceResources() map[string]*resources.AWSAppMeshVirtualService { results := map[string]*resources.AWSAppMeshVirtualService{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppMeshVirtualService: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSAppMeshVirtualServiceResources() map[string]*resources.AWSAppMeshVirtualService { results := map[string]*resources.AWSAppMeshVirtualService{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppMeshVirtualService: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSAppMeshVirtualServiceResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSAppMeshVirtualService", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSAppMeshVirtualS...
// GetAllAWSAppMeshVirtualServiceResources retrieves all AWSAppMeshVirtualService items from an AWS CloudFormation template
[ "GetAllAWSAppMeshVirtualServiceResources", "retrieves", "all", "AWSAppMeshVirtualService", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1243-L1252
train
awslabs/goformation
cloudformation/all.go
GetAWSAppMeshVirtualServiceWithName
func (t *Template) GetAWSAppMeshVirtualServiceWithName(name string) (*resources.AWSAppMeshVirtualService, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppMeshVirtualService: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppMeshVirtualService not found", name) }
go
func (t *Template) GetAWSAppMeshVirtualServiceWithName(name string) (*resources.AWSAppMeshVirtualService, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppMeshVirtualService: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppMeshVirtualService not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSAppMeshVirtualServiceWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSAppMeshVirtualService", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", ...
// GetAWSAppMeshVirtualServiceWithName retrieves all AWSAppMeshVirtualService items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSAppMeshVirtualServiceWithName", "retrieves", "all", "AWSAppMeshVirtualService", "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#L1256-L1264
train
awslabs/goformation
cloudformation/all.go
GetAllAWSAppStreamDirectoryConfigResources
func (t *Template) GetAllAWSAppStreamDirectoryConfigResources() map[string]*resources.AWSAppStreamDirectoryConfig { results := map[string]*resources.AWSAppStreamDirectoryConfig{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppStreamDirectoryConfig: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSAppStreamDirectoryConfigResources() map[string]*resources.AWSAppStreamDirectoryConfig { results := map[string]*resources.AWSAppStreamDirectoryConfig{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppStreamDirectoryConfig: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSAppStreamDirectoryConfigResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSAppStreamDirectoryConfig", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSAppStream...
// GetAllAWSAppStreamDirectoryConfigResources retrieves all AWSAppStreamDirectoryConfig items from an AWS CloudFormation template
[ "GetAllAWSAppStreamDirectoryConfigResources", "retrieves", "all", "AWSAppStreamDirectoryConfig", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1267-L1276
train
awslabs/goformation
cloudformation/all.go
GetAWSAppStreamDirectoryConfigWithName
func (t *Template) GetAWSAppStreamDirectoryConfigWithName(name string) (*resources.AWSAppStreamDirectoryConfig, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppStreamDirectoryConfig: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppStreamDirectoryConfig not found", name) }
go
func (t *Template) GetAWSAppStreamDirectoryConfigWithName(name string) (*resources.AWSAppStreamDirectoryConfig, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppStreamDirectoryConfig: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppStreamDirectoryConfig not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSAppStreamDirectoryConfigWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSAppStreamDirectoryConfig", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "na...
// GetAWSAppStreamDirectoryConfigWithName retrieves all AWSAppStreamDirectoryConfig items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSAppStreamDirectoryConfigWithName", "retrieves", "all", "AWSAppStreamDirectoryConfig", "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#L1280-L1288
train
awslabs/goformation
cloudformation/all.go
GetAllAWSAppStreamFleetResources
func (t *Template) GetAllAWSAppStreamFleetResources() map[string]*resources.AWSAppStreamFleet { results := map[string]*resources.AWSAppStreamFleet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppStreamFleet: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSAppStreamFleetResources() map[string]*resources.AWSAppStreamFleet { results := map[string]*resources.AWSAppStreamFleet{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppStreamFleet: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSAppStreamFleetResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSAppStreamFleet", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSAppStreamFleet", "{", "}"...
// GetAllAWSAppStreamFleetResources retrieves all AWSAppStreamFleet items from an AWS CloudFormation template
[ "GetAllAWSAppStreamFleetResources", "retrieves", "all", "AWSAppStreamFleet", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1291-L1300
train
awslabs/goformation
cloudformation/all.go
GetAWSAppStreamFleetWithName
func (t *Template) GetAWSAppStreamFleetWithName(name string) (*resources.AWSAppStreamFleet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppStreamFleet: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppStreamFleet not found", name) }
go
func (t *Template) GetAWSAppStreamFleetWithName(name string) (*resources.AWSAppStreamFleet, error) { if untyped, ok := t.Resources[name]; ok { switch resource := untyped.(type) { case *resources.AWSAppStreamFleet: return resource, nil } } return nil, fmt.Errorf("resource %q of type AWSAppStreamFleet not found", name) }
[ "func", "(", "t", "*", "Template", ")", "GetAWSAppStreamFleetWithName", "(", "name", "string", ")", "(", "*", "resources", ".", "AWSAppStreamFleet", ",", "error", ")", "{", "if", "untyped", ",", "ok", ":=", "t", ".", "Resources", "[", "name", "]", ";", ...
// GetAWSAppStreamFleetWithName retrieves all AWSAppStreamFleet items from an AWS CloudFormation template // whose logical ID matches the provided name. Returns an error if not found.
[ "GetAWSAppStreamFleetWithName", "retrieves", "all", "AWSAppStreamFleet", "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#L1304-L1312
train
awslabs/goformation
cloudformation/all.go
GetAllAWSAppStreamImageBuilderResources
func (t *Template) GetAllAWSAppStreamImageBuilderResources() map[string]*resources.AWSAppStreamImageBuilder { results := map[string]*resources.AWSAppStreamImageBuilder{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppStreamImageBuilder: results[name] = resource } } return results }
go
func (t *Template) GetAllAWSAppStreamImageBuilderResources() map[string]*resources.AWSAppStreamImageBuilder { results := map[string]*resources.AWSAppStreamImageBuilder{} for name, untyped := range t.Resources { switch resource := untyped.(type) { case *resources.AWSAppStreamImageBuilder: results[name] = resource } } return results }
[ "func", "(", "t", "*", "Template", ")", "GetAllAWSAppStreamImageBuilderResources", "(", ")", "map", "[", "string", "]", "*", "resources", ".", "AWSAppStreamImageBuilder", "{", "results", ":=", "map", "[", "string", "]", "*", "resources", ".", "AWSAppStreamImageB...
// GetAllAWSAppStreamImageBuilderResources retrieves all AWSAppStreamImageBuilder items from an AWS CloudFormation template
[ "GetAllAWSAppStreamImageBuilderResources", "retrieves", "all", "AWSAppStreamImageBuilder", "items", "from", "an", "AWS", "CloudFormation", "template" ]
8898b813a27809556420fcf0427a32765a567302
https://github.com/awslabs/goformation/blob/8898b813a27809556420fcf0427a32765a567302/cloudformation/all.go#L1315-L1324
train