forked from awslabs/goformation
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(schema): Serverless eventbridgeruleevent (awslabs#279)
* added EventBridgeRuleEvent * EventBridgeRuleEvent doc link * added EventBridgeRuleEvent * trigger GitHub actions Co-authored-by: Matteo Ridolfi <[email protected]>
- Loading branch information
Showing
3 changed files
with
90 additions
and
3 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
cloudformation/serverless/aws-serverless-function_eventbridgeruleevent.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package serverless | ||
|
||
import ( | ||
"github.com/awslabs/goformation/v4/cloudformation/policies" | ||
) | ||
|
||
// Function_EventBridgeRuleEvent AWS CloudFormation Resource (AWS::Serverless::Function.EventBridgeRuleEvent) | ||
// See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#eventbridgerule | ||
type Function_EventBridgeRuleEvent struct { | ||
|
||
// EventBusName AWS CloudFormation Property | ||
// Required: false | ||
// See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#eventbridgerule | ||
EventBusName string `json:"EventBusName,omitempty"` | ||
|
||
// Input AWS CloudFormation Property | ||
// Required: false | ||
// See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#eventbridgerule | ||
Input string `json:"Input,omitempty"` | ||
|
||
// InputPath AWS CloudFormation Property | ||
// Required: false | ||
// See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#eventbridgerule | ||
InputPath string `json:"InputPath,omitempty"` | ||
|
||
// Pattern AWS CloudFormation Property | ||
// Required: true | ||
// See: https://docs.aws.amazon.com/eventbridge/latest/userguide/filtering-examples-structure.html | ||
Pattern interface{} `json:"Pattern,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 *Function_EventBridgeRuleEvent) AWSCloudFormationType() string { | ||
return "AWS::Serverless::Function.EventBridgeRuleEvent" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters