Copied from troposphere.Template