Skip to content

Commit

Permalink
fix(schema): CloudFormation Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfonseca committed Feb 25, 2022
1 parent d63cdf6 commit c5b4ae3
Show file tree
Hide file tree
Showing 30 changed files with 3,034 additions and 26 deletions.
25 changes: 25 additions & 0 deletions cloudformation/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,7 @@ func AllResources() map[string]Resource {
"AWS::DataPipeline::Pipeline": &datapipeline.Pipeline{},
"AWS::DataSync::Agent": &datasync.Agent{},
"AWS::DataSync::LocationEFS": &datasync.LocationEFS{},
"AWS::DataSync::LocationFSxLustre": &datasync.LocationFSxLustre{},
"AWS::DataSync::LocationFSxWindows": &datasync.LocationFSxWindows{},
"AWS::DataSync::LocationHDFS": &datasync.LocationHDFS{},
"AWS::DataSync::LocationNFS": &datasync.LocationNFS{},
Expand Down Expand Up @@ -6470,6 +6471,30 @@ func (t *Template) GetDataSyncLocationEFSWithName(name string) (*datasync.Locati
return nil, fmt.Errorf("resource %q of type datasync.LocationEFS not found", name)
}

// GetAllDataSyncLocationFSxLustreResources retrieves all datasync.LocationFSxLustre items from an AWS CloudFormation template
func (t *Template) GetAllDataSyncLocationFSxLustreResources() map[string]*datasync.LocationFSxLustre {
results := map[string]*datasync.LocationFSxLustre{}
for name, untyped := range t.Resources {
switch resource := untyped.(type) {
case *datasync.LocationFSxLustre:
results[name] = resource
}
}
return results
}

// GetDataSyncLocationFSxLustreWithName retrieves all datasync.LocationFSxLustre items from an AWS CloudFormation template
// whose logical ID matches the provided name. Returns an error if not found.
func (t *Template) GetDataSyncLocationFSxLustreWithName(name string) (*datasync.LocationFSxLustre, error) {
if untyped, ok := t.Resources[name]; ok {
switch resource := untyped.(type) {
case *datasync.LocationFSxLustre:
return resource, nil
}
}
return nil, fmt.Errorf("resource %q of type datasync.LocationFSxLustre not found", name)
}

// GetAllDataSyncLocationFSxWindowsResources retrieves all datasync.LocationFSxWindows items from an AWS CloudFormation template
func (t *Template) GetAllDataSyncLocationFSxWindowsResources() map[string]*datasync.LocationFSxWindows {
results := map[string]*datasync.LocationFSxWindows{}
Expand Down
17 changes: 11 additions & 6 deletions cloudformation/amplifyuibuilder/aws-amplifyuibuilder-component.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
type Component struct {

// BindingProperties AWS CloudFormation Property
// Required: false
// Required: true
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-component.html#cfn-amplifyuibuilder-component-bindingproperties
BindingProperties map[string]Component_ComponentBindingPropertiesValue `json:"BindingProperties,omitempty"`

Expand All @@ -28,22 +28,27 @@ type Component struct {
CollectionProperties map[string]Component_ComponentDataConfiguration `json:"CollectionProperties,omitempty"`

// ComponentType AWS CloudFormation Property
// Required: false
// Required: true
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-component.html#cfn-amplifyuibuilder-component-componenttype
ComponentType string `json:"ComponentType,omitempty"`

// Name AWS CloudFormation Property
// Events AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-component.html#cfn-amplifyuibuilder-component-events
Events map[string]Component_ComponentEvent `json:"Events,omitempty"`

// Name AWS CloudFormation Property
// Required: true
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-component.html#cfn-amplifyuibuilder-component-name
Name string `json:"Name,omitempty"`

// Overrides AWS CloudFormation Property
// Required: false
// Required: true
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-component.html#cfn-amplifyuibuilder-component-overrides
Overrides map[string]Component_ComponentOverridesValue `json:"Overrides,omitempty"`

// Properties AWS CloudFormation Property
// Required: false
// Required: true
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-component.html#cfn-amplifyuibuilder-component-properties
Properties map[string]Component_ComponentProperty `json:"Properties,omitempty"`

Expand All @@ -58,7 +63,7 @@ type Component struct {
Tags map[string]string `json:"Tags,omitempty"`

// Variants AWS CloudFormation Property
// Required: false
// Required: true
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-amplifyuibuilder-component.html#cfn-amplifyuibuilder-component-variants
Variants []Component_ComponentVariant `json:"Variants,omitempty"`

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
package amplifyuibuilder

import (
"github.com/awslabs/goformation/v5/cloudformation/policies"
)

// Component_ActionParameters AWS CloudFormation Resource (AWS::AmplifyUIBuilder::Component.ActionParameters)
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-actionparameters.html
type Component_ActionParameters struct {

// Anchor AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-actionparameters.html#cfn-amplifyuibuilder-component-actionparameters-anchor
Anchor *Component_ComponentProperty `json:"Anchor,omitempty"`

// Fields AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-actionparameters.html#cfn-amplifyuibuilder-component-actionparameters-fields
Fields *Component_ComponentProperties `json:"Fields,omitempty"`

// Global AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-actionparameters.html#cfn-amplifyuibuilder-component-actionparameters-global
Global *Component_ComponentProperty `json:"Global,omitempty"`

// Id AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-actionparameters.html#cfn-amplifyuibuilder-component-actionparameters-id
Id *Component_ComponentProperty `json:"Id,omitempty"`

// Model AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-actionparameters.html#cfn-amplifyuibuilder-component-actionparameters-model
Model string `json:"Model,omitempty"`

// State AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-actionparameters.html#cfn-amplifyuibuilder-component-actionparameters-state
State *Component_MutationActionSetStateParameter `json:"State,omitempty"`

// Target AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-actionparameters.html#cfn-amplifyuibuilder-component-actionparameters-target
Target *Component_ComponentProperty `json:"Target,omitempty"`

// Type AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-actionparameters.html#cfn-amplifyuibuilder-component-actionparameters-type
Type *Component_ComponentProperty `json:"Type,omitempty"`

// Url AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-actionparameters.html#cfn-amplifyuibuilder-component-actionparameters-url
Url *Component_ComponentProperty `json:"Url,omitempty"`

// AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy
AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"`

// AWSCloudFormationUpdateReplacePolicy represents a CloudFormation UpdateReplacePolicy
AWSCloudFormationUpdateReplacePolicy policies.UpdateReplacePolicy `json:"-"`

// AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource
AWSCloudFormationDependsOn []string `json:"-"`

// AWSCloudFormationMetadata stores structured data associated with this resource
AWSCloudFormationMetadata map[string]interface{} `json:"-"`

// AWSCloudFormationCondition stores the logical ID of the condition that must be satisfied for this resource to be created
AWSCloudFormationCondition string `json:"-"`
}

// AWSCloudFormationType returns the AWS CloudFormation resource type
func (r *Component_ActionParameters) AWSCloudFormationType() string {
return "AWS::AmplifyUIBuilder::Component.ActionParameters"
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ type Component_ComponentChild struct {
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentchild.html#cfn-amplifyuibuilder-component-componentchild-componenttype
ComponentType string `json:"ComponentType,omitempty"`

// Events AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentchild.html#cfn-amplifyuibuilder-component-componentchild-events
Events *Component_ComponentEvents `json:"Events,omitempty"`

// Name AWS CloudFormation Property
// Required: true
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentchild.html#cfn-amplifyuibuilder-component-componentchild-name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ type Component_ComponentConditionProperty struct {
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentconditionproperty.html#cfn-amplifyuibuilder-component-componentconditionproperty-operand
Operand string `json:"Operand,omitempty"`

// OperandType AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentconditionproperty.html#cfn-amplifyuibuilder-component-componentconditionproperty-operandtype
OperandType string `json:"OperandType,omitempty"`

// Operator AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentconditionproperty.html#cfn-amplifyuibuilder-component-componentconditionproperty-operator
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
package amplifyuibuilder

import (
"github.com/awslabs/goformation/v5/cloudformation/policies"
)

// Component_ComponentEvent AWS CloudFormation Resource (AWS::AmplifyUIBuilder::Component.ComponentEvent)
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentevent.html
type Component_ComponentEvent struct {

// Action AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentevent.html#cfn-amplifyuibuilder-component-componentevent-action
Action string `json:"Action,omitempty"`

// Parameters AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentevent.html#cfn-amplifyuibuilder-component-componentevent-parameters
Parameters *Component_ActionParameters `json:"Parameters,omitempty"`

// AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy
AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"`

// AWSCloudFormationUpdateReplacePolicy represents a CloudFormation UpdateReplacePolicy
AWSCloudFormationUpdateReplacePolicy policies.UpdateReplacePolicy `json:"-"`

// AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource
AWSCloudFormationDependsOn []string `json:"-"`

// AWSCloudFormationMetadata stores structured data associated with this resource
AWSCloudFormationMetadata map[string]interface{} `json:"-"`

// AWSCloudFormationCondition stores the logical ID of the condition that must be satisfied for this resource to be created
AWSCloudFormationCondition string `json:"-"`
}

// AWSCloudFormationType returns the AWS CloudFormation resource type
func (r *Component_ComponentEvent) AWSCloudFormationType() string {
return "AWS::AmplifyUIBuilder::Component.ComponentEvent"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package amplifyuibuilder

import (
"github.com/awslabs/goformation/v5/cloudformation/policies"
)

// Component_ComponentEvents AWS CloudFormation Resource (AWS::AmplifyUIBuilder::Component.ComponentEvents)
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentevents.html
type Component_ComponentEvents struct {

// AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy
AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"`

// AWSCloudFormationUpdateReplacePolicy represents a CloudFormation UpdateReplacePolicy
AWSCloudFormationUpdateReplacePolicy policies.UpdateReplacePolicy `json:"-"`

// AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource
AWSCloudFormationDependsOn []string `json:"-"`

// AWSCloudFormationMetadata stores structured data associated with this resource
AWSCloudFormationMetadata map[string]interface{} `json:"-"`

// AWSCloudFormationCondition stores the logical ID of the condition that must be satisfied for this resource to be created
AWSCloudFormationCondition string `json:"-"`
}

// AWSCloudFormationType returns the AWS CloudFormation resource type
func (r *Component_ComponentEvents) AWSCloudFormationType() string {
return "AWS::AmplifyUIBuilder::Component.ComponentEvents"
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ type Component_ComponentProperty struct {
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentproperty.html#cfn-amplifyuibuilder-component-componentproperty-collectionbindingproperties
CollectionBindingProperties *Component_ComponentPropertyBindingProperties `json:"CollectionBindingProperties,omitempty"`

// ComponentName AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentproperty.html#cfn-amplifyuibuilder-component-componentproperty-componentname
ComponentName string `json:"ComponentName,omitempty"`

// Concat AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentproperty.html#cfn-amplifyuibuilder-component-componentproperty-concat
Expand Down Expand Up @@ -58,6 +63,11 @@ type Component_ComponentProperty struct {
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentproperty.html#cfn-amplifyuibuilder-component-componentproperty-model
Model string `json:"Model,omitempty"`

// Property AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentproperty.html#cfn-amplifyuibuilder-component-componentproperty-property
Property string `json:"Property,omitempty"`

// Type AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-componentproperty.html#cfn-amplifyuibuilder-component-componentproperty-type
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package amplifyuibuilder

import (
"github.com/awslabs/goformation/v5/cloudformation/policies"
)

// Component_MutationActionSetStateParameter AWS CloudFormation Resource (AWS::AmplifyUIBuilder::Component.MutationActionSetStateParameter)
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-mutationactionsetstateparameter.html
type Component_MutationActionSetStateParameter struct {

// ComponentName AWS CloudFormation Property
// Required: true
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-mutationactionsetstateparameter.html#cfn-amplifyuibuilder-component-mutationactionsetstateparameter-componentname
ComponentName string `json:"ComponentName,omitempty"`

// Property AWS CloudFormation Property
// Required: true
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-mutationactionsetstateparameter.html#cfn-amplifyuibuilder-component-mutationactionsetstateparameter-property
Property string `json:"Property,omitempty"`

// Set AWS CloudFormation Property
// Required: true
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-amplifyuibuilder-component-mutationactionsetstateparameter.html#cfn-amplifyuibuilder-component-mutationactionsetstateparameter-set
Set *Component_ComponentProperty `json:"Set,omitempty"`

// AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy
AWSCloudFormationDeletionPolicy policies.DeletionPolicy `json:"-"`

// AWSCloudFormationUpdateReplacePolicy represents a CloudFormation UpdateReplacePolicy
AWSCloudFormationUpdateReplacePolicy policies.UpdateReplacePolicy `json:"-"`

// AWSCloudFormationDependsOn stores the logical ID of the resources to be created before this resource
AWSCloudFormationDependsOn []string `json:"-"`

// AWSCloudFormationMetadata stores structured data associated with this resource
AWSCloudFormationMetadata map[string]interface{} `json:"-"`

// AWSCloudFormationCondition stores the logical ID of the condition that must be satisfied for this resource to be created
AWSCloudFormationCondition string `json:"-"`
}

// AWSCloudFormationType returns the AWS CloudFormation resource type
func (r *Component_MutationActionSetStateParameter) AWSCloudFormationType() string {
return "AWS::AmplifyUIBuilder::Component.MutationActionSetStateParameter"
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ type Flow_DestinationConnectorProperties struct {
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-destinationconnectorproperties.html#cfn-appflow-flow-destinationconnectorproperties-s3
S3 *Flow_S3DestinationProperties `json:"S3,omitempty"`

// SAPOData AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-destinationconnectorproperties.html#cfn-appflow-flow-destinationconnectorproperties-sapodata
SAPOData *Flow_SAPODataDestinationProperties `json:"SAPOData,omitempty"`

// Salesforce AWS CloudFormation Property
// Required: false
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-appflow-flow-destinationconnectorproperties.html#cfn-appflow-flow-destinationconnectorproperties-salesforce
Expand Down

0 comments on commit c5b4ae3

Please sign in to comment.