From 33f99bf7d46415148bc42a1906a4b40843fa5c16 Mon Sep 17 00:00:00 2001 From: Ruben Fonseca Date: Fri, 25 Feb 2022 15:24:19 +0100 Subject: [PATCH] fix(schema): regenerated with latest code --- ...ifyuibuilder-component_actionparameters.go | 4 +++- ...plifyuibuilder-component_componentevent.go | 4 +++- ...lifyuibuilder-component_componentevents.go | 4 +++- ...mponent_mutationactionsetstateparameter.go | 4 +++- ...flow-flow_sapodatadestinationproperties.go | 4 +++- ...flow-flow_successresponsehandlingconfig.go | 4 +++- .../aws-appmesh-mesh_meshservicediscovery.go | 4 +++- .../aws-datasync-locationfsxlustre.go | 21 +++++++++++++++---- ...-events-connection_apikeyauthparameters.go | 4 +++- .../aws-events-connection_authparameters.go | 4 +++- ...s-events-connection_basicauthparameters.go | 4 +++- .../aws-events-connection_clientparameters.go | 4 +++- ...nts-connection_connectionhttpparameters.go | 4 +++- .../aws-events-connection_oauthparameters.go | 4 +++- .../events/aws-events-connection_parameter.go | 4 +++- 15 files changed, 59 insertions(+), 18 deletions(-) diff --git a/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_actionparameters.go b/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_actionparameters.go index 08b3d7613f..efb0679f83 100644 --- a/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_actionparameters.go +++ b/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_actionparameters.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package amplifyuibuilder import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Component_ActionParameters AWS CloudFormation Resource (AWS::AmplifyUIBuilder::Component.ActionParameters) diff --git a/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_componentevent.go b/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_componentevent.go index 8f46355c0e..a08ed3085a 100644 --- a/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_componentevent.go +++ b/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_componentevent.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package amplifyuibuilder import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Component_ComponentEvent AWS CloudFormation Resource (AWS::AmplifyUIBuilder::Component.ComponentEvent) diff --git a/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_componentevents.go b/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_componentevents.go index 1f472b1d2a..aae8f7a964 100644 --- a/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_componentevents.go +++ b/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_componentevents.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package amplifyuibuilder import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Component_ComponentEvents AWS CloudFormation Resource (AWS::AmplifyUIBuilder::Component.ComponentEvents) diff --git a/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_mutationactionsetstateparameter.go b/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_mutationactionsetstateparameter.go index 6d7a98c55d..1be7f1c4f1 100644 --- a/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_mutationactionsetstateparameter.go +++ b/cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component_mutationactionsetstateparameter.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package amplifyuibuilder import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Component_MutationActionSetStateParameter AWS CloudFormation Resource (AWS::AmplifyUIBuilder::Component.MutationActionSetStateParameter) diff --git a/cloudformation/appflow/aws-appflow-flow_sapodatadestinationproperties.go b/cloudformation/appflow/aws-appflow-flow_sapodatadestinationproperties.go index 201933b75d..09b7feba37 100644 --- a/cloudformation/appflow/aws-appflow-flow_sapodatadestinationproperties.go +++ b/cloudformation/appflow/aws-appflow-flow_sapodatadestinationproperties.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package appflow import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Flow_SAPODataDestinationProperties AWS CloudFormation Resource (AWS::AppFlow::Flow.SAPODataDestinationProperties) diff --git a/cloudformation/appflow/aws-appflow-flow_successresponsehandlingconfig.go b/cloudformation/appflow/aws-appflow-flow_successresponsehandlingconfig.go index b40408f2af..b71047004d 100644 --- a/cloudformation/appflow/aws-appflow-flow_successresponsehandlingconfig.go +++ b/cloudformation/appflow/aws-appflow-flow_successresponsehandlingconfig.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package appflow import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Flow_SuccessResponseHandlingConfig AWS CloudFormation Resource (AWS::AppFlow::Flow.SuccessResponseHandlingConfig) diff --git a/cloudformation/appmesh/aws-appmesh-mesh_meshservicediscovery.go b/cloudformation/appmesh/aws-appmesh-mesh_meshservicediscovery.go index 7cbe363f99..a08153396b 100644 --- a/cloudformation/appmesh/aws-appmesh-mesh_meshservicediscovery.go +++ b/cloudformation/appmesh/aws-appmesh-mesh_meshservicediscovery.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package appmesh import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Mesh_MeshServiceDiscovery AWS CloudFormation Resource (AWS::AppMesh::Mesh.MeshServiceDiscovery) diff --git a/cloudformation/datasync/aws-datasync-locationfsxlustre.go b/cloudformation/datasync/aws-datasync-locationfsxlustre.go index 542ffc0613..694bf294dc 100644 --- a/cloudformation/datasync/aws-datasync-locationfsxlustre.go +++ b/cloudformation/datasync/aws-datasync-locationfsxlustre.go @@ -1,3 +1,5 @@ +// Code generated by "go generate". Please don't change this file directly. + package datasync import ( @@ -5,8 +7,8 @@ import ( "encoding/json" "fmt" - "github.com/awslabs/goformation/v5/cloudformation/policies" - "github.com/awslabs/goformation/v5/cloudformation/tags" + "github.com/awslabs/goformation/v6/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/tags" ) // LocationFSxLustre AWS CloudFormation Resource (AWS::DataSync::LocationFSxLustre) @@ -84,7 +86,7 @@ func (r *LocationFSxLustre) UnmarshalJSON(b []byte) error { res := &struct { Type string Properties *Properties - DependsOn []string + DependsOn interface{} Metadata map[string]interface{} DeletionPolicy string UpdateReplacePolicy string @@ -104,7 +106,18 @@ func (r *LocationFSxLustre) UnmarshalJSON(b []byte) error { *r = LocationFSxLustre(*res.Properties) } if res.DependsOn != nil { - r.AWSCloudFormationDependsOn = res.DependsOn + switch obj := res.DependsOn.(type) { + case string: + r.AWSCloudFormationDependsOn = []string{obj} + case []interface{}: + s := make([]string, 0, len(obj)) + for _, v := range obj { + if value, ok := v.(string); ok { + s = append(s, value) + } + } + r.AWSCloudFormationDependsOn = s + } } if res.Metadata != nil { r.AWSCloudFormationMetadata = res.Metadata diff --git a/cloudformation/events/aws-events-connection_apikeyauthparameters.go b/cloudformation/events/aws-events-connection_apikeyauthparameters.go index 471b5a94f0..366e0fd434 100644 --- a/cloudformation/events/aws-events-connection_apikeyauthparameters.go +++ b/cloudformation/events/aws-events-connection_apikeyauthparameters.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package events import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Connection_ApiKeyAuthParameters AWS CloudFormation Resource (AWS::Events::Connection.ApiKeyAuthParameters) diff --git a/cloudformation/events/aws-events-connection_authparameters.go b/cloudformation/events/aws-events-connection_authparameters.go index 6463a805e9..737c0e8ea6 100644 --- a/cloudformation/events/aws-events-connection_authparameters.go +++ b/cloudformation/events/aws-events-connection_authparameters.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package events import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Connection_AuthParameters AWS CloudFormation Resource (AWS::Events::Connection.AuthParameters) diff --git a/cloudformation/events/aws-events-connection_basicauthparameters.go b/cloudformation/events/aws-events-connection_basicauthparameters.go index 2d9c68cd53..6b1ca9beb3 100644 --- a/cloudformation/events/aws-events-connection_basicauthparameters.go +++ b/cloudformation/events/aws-events-connection_basicauthparameters.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package events import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Connection_BasicAuthParameters AWS CloudFormation Resource (AWS::Events::Connection.BasicAuthParameters) diff --git a/cloudformation/events/aws-events-connection_clientparameters.go b/cloudformation/events/aws-events-connection_clientparameters.go index 0299980c77..a5632881b4 100644 --- a/cloudformation/events/aws-events-connection_clientparameters.go +++ b/cloudformation/events/aws-events-connection_clientparameters.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package events import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Connection_ClientParameters AWS CloudFormation Resource (AWS::Events::Connection.ClientParameters) diff --git a/cloudformation/events/aws-events-connection_connectionhttpparameters.go b/cloudformation/events/aws-events-connection_connectionhttpparameters.go index a9d0f9d40a..994f75d3fb 100644 --- a/cloudformation/events/aws-events-connection_connectionhttpparameters.go +++ b/cloudformation/events/aws-events-connection_connectionhttpparameters.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package events import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Connection_ConnectionHttpParameters AWS CloudFormation Resource (AWS::Events::Connection.ConnectionHttpParameters) diff --git a/cloudformation/events/aws-events-connection_oauthparameters.go b/cloudformation/events/aws-events-connection_oauthparameters.go index 63ebb93f89..e0153c1706 100644 --- a/cloudformation/events/aws-events-connection_oauthparameters.go +++ b/cloudformation/events/aws-events-connection_oauthparameters.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package events import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Connection_OAuthParameters AWS CloudFormation Resource (AWS::Events::Connection.OAuthParameters) diff --git a/cloudformation/events/aws-events-connection_parameter.go b/cloudformation/events/aws-events-connection_parameter.go index e6df7e313a..8d19929df4 100644 --- a/cloudformation/events/aws-events-connection_parameter.go +++ b/cloudformation/events/aws-events-connection_parameter.go @@ -1,7 +1,9 @@ +// Code generated by "go generate". Please don't change this file directly. + package events import ( - "github.com/awslabs/goformation/v5/cloudformation/policies" + "github.com/awslabs/goformation/v6/cloudformation/policies" ) // Connection_Parameter AWS CloudFormation Resource (AWS::Events::Connection.Parameter)