Add back "omitempty" to cloudformation SubnetMapping

This commit is contained in:
Alexander Block 2021-02-10 18:02:13 +01:00
parent cc4aca62f4
commit 684ff3498e
2 changed files with 3 additions and 5 deletions

View File

@ -1253,9 +1253,7 @@
{
"SubnetId": {
"Ref": "AWSEC2Subnetustest1acomplexexamplecom"
},
"AllocationId": null,
"PrivateIPv4Address": null
}
}
],
"Type": "network",

View File

@ -813,8 +813,8 @@ type cloudformationNetworkLoadBalancer struct {
type cloudformationSubnetMapping struct {
Subnet *cloudformation.Literal `json:"SubnetId"`
AllocationId *string `json:"AllocationId"`
PrivateIPv4Address *string `json:"PrivateIPv4Address"`
AllocationId *string `json:"AllocationId,omitempty"`
PrivateIPv4Address *string `json:"PrivateIPv4Address,omitempty"`
}
type cloudformationNetworkLoadBalancerListener struct {