package com.lloydramey.cfn.model

import com.fasterxml.jackson.annotation.JsonIgnore
import com.lloydramey.cfn.model.functions.AwsTemplateValue

data class Export(val name: AwsTemplateValue)

class Output(@JsonIgnore val name: String, val value: AwsTemplateValue, val description: String? = null, val export: Export? = null)

package com.lloydramey.cfn.model

import com.fasterxml.jackson.annotation.JsonIgnore
import com.lloydramey.cfn.model.functions.AwsTemplateValue
import com.lloydramey.cfn.model.functions.Val

data class Export(val name: AwsTemplateValue) {
    constructor(name: String) : this(Val(name))
}

class Output(@JsonIgnore val name: String, val value: AwsTemplateValue, val description: String? = null, val export: Export? = null)

Allow specifying a string name without val
Allow specifying a string name without val

lnr0626/cfn-templates,lnr0626/cfn-templates