hexlabsio / kloudformation-specification-generator

Generates Kloudformation from Cloudformation
https://klouds.io
Apache License 2.0
7 stars 0 forks source link

Fix how Lists are handled #20

Closed chrisbarbour closed 6 years ago

chrisbarbour commented 6 years ago

Currently Lists are generated as Array<Value> which allows generated overload methods for setting either with Array<Value> or Array>. However Functions do not work when passed in, for example the following code tries to set availabilityzones with the GetAZs function. GetAZs is a Value<List> so does not match the required type. This needs fixed.

KloudFormationTemplate.create {
    autoScalingGroup{
        availabilityZones(GetAZs(+"")) // Does not work but should
    }
}