MCPcopy Create free account
hub / github.com/aws-cloudformation/rain / OutputKeyHasIdentifier

Method OutputKeyHasIdentifier

cft/module_config.go:157–167  ·  view source on GitHub ↗

OutputKeyHasIdentifier returns true if the key uses the identifier

()

Source from the content-addressed store, hash-verified

155
156// OutputKeyHasIdentifier returns true if the key uses the identifier
157func (ff *FnForEach) OutputKeyHasIdentifier() bool {
158 dollar := "${" + ff.Identifier + "}"
159 amper := "&{" + ff.Identifier + "}"
160 if strings.Contains(ff.OutputKey, dollar) {
161 return true
162 }
163 if strings.Contains(ff.OutputKey, amper) {
164 return true
165 }
166 return false
167}
168
169// ReplaceIdentifier replaces instance of the identifier in s for collection
170// key k

Callers 2

processMapsFunction · 0.80

Calls

no outgoing calls

Tested by 1