Initializers
MapRequired
- Type: AnyMap|StringMap|NumberMap|BooleanMap|ComplexMap|System.Collections.Generic.IDictionary< string, object >|System.Collections.Generic.IDictionary< string, string >|System.Collections.Generic.IDictionary< string, double >
Methods
Dynamic
Token.asString.
See https://cdktn.io/docs/concepts/iterators#using-iterators-for-list-attributes
AttributesRequired
- Type: System.Collections.Generic.IDictionary< string, object >
ForExpressionForList
TerraformIterator.fromList(myIteratorSourceVar).forExpressionForList("val.foo if val.bar == true")
will result in [ for key, val in var.myIteratorSource: val.foo if val.bar == true ].
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString.
ExpressionRequired
- Type: string|IResolvable
ForExpressionForMap
TerraformIterator.fromMap(myIteratorSourceVar).forExpressionForMap("key", "val.foo if val.bar == true")
will result in \{ for key, val in var.myIteratorSource: key => val.foo if val.bar == true }.
As this returns an IResolvable you might need to wrap the output in
a Token, e.g. Token.asString.
KeyExpressionRequired
- Type: string|IResolvable
ValueExpressionRequired
- Type: string|IResolvable
GetAny
AttributeRequired
- Type: string
GetAnyMap
AttributeRequired
- Type: string
GetBoolean
AttributeRequired
- Type: string
GetBooleanMap
AttributeRequired
- Type: string
GetList
AttributeRequired
- Type: string
GetMap
AttributeRequired
- Type: string
GetNumber
AttributeRequired
- Type: string
GetNumberList
AttributeRequired
- Type: string
GetNumberMap
AttributeRequired
- Type: string
GetString
AttributeRequired
- Type: string
GetStringMap
AttributeRequired
- Type: string
Keys
Token.asString.
PluckProperty
Token.asString.
PropertyRequired
- Type: string
Values
Token.asString.
Static Functions
FromComplexList
ListRequired
the list to iterate over.
MapKeyAttributeNameRequired
- Type: string
FromDataSources
for_each argument.
ResourceRequired
- Type: ITerraformResource
FromList
ListRequired
- Type: string[]|IResolvable|double[]|bool|IResolvable[]
FromMap
MapRequired
- Type: ComplexMap|System.Collections.Generic.IDictionary< string, object >|System.Collections.Generic.IDictionary< string, string >|System.Collections.Generic.IDictionary< string, double >|System.Collections.Generic.IDictionary< string, bool >
FromResources
for_each argument.
ResourceRequired
- Type: ITerraformResource
Properties
KeyRequired
- Type: string
ValueRequired
- Type: object