forked from awslabs/goformation
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(schema): Added CloudWatch Logs event for SAM (awslabs#271)
- Loading branch information
Graham Jenson
authored
Feb 28, 2020
1 parent
785575a
commit fedb013
Showing
7 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
cloudformation/serverless/aws-serverless-function_cloudwatchlogsevent.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,37 @@ | ||
package serverless | ||
|
||
import ( | ||
"github.com/awslabs/goformation/v4/cloudformation/policies" | ||
) | ||
|
||
// Function_CloudWatchLogsEvent AWS CloudFormation Resource (AWS::Serverless::Function.CloudWatchLogsEvent) | ||
// See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#cloudwatchevent | ||
type Function_CloudWatchLogsEvent struct { | ||
|
||
// FilterPattern AWS CloudFormation Property | ||
// Required: true | ||
// See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#cloudwatchlogs | ||
FilterPattern string `json:"FilterPattern,omitempty"` | ||
|
||
// LogGroupName AWS CloudFormation Property | ||
// Required: true | ||
// See: https://github.com/awslabs/serverless-application-model/blob/master/versions/2016-10-31.md#cloudwatchlogs | ||
LogGroupName string `json:"LogGroupName,omitempty"` | ||
|
||
// AWSCloudFormationDeletionPolicy represents a CloudFormation DeletionPolicy | ||
AWSCloudFormationDeletionPolicy policies.DeletionPolicy `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_CloudWatchLogsEvent) AWSCloudFormationType() string { | ||
return "AWS::Serverless::Function.CloudWatchLogsEvent" | ||
} |
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
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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
module github.com/awslabs/goformation/v4 | ||
|
||
require ( | ||
github.com/awslabs/goformation/v3 v3.1.0 | ||
github.com/imdario/mergo v0.3.6 | ||
github.com/onsi/ginkgo v1.5.0 | ||
github.com/onsi/gomega v1.2.0 | ||
github.com/sanathkr/go-yaml v0.0.0-20170819195128-ed9d249f429b | ||
github.com/sanathkr/yaml v0.0.0-20170819201035-0056894fa522 | ||
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect | ||
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect | ||
github.com/xeipuuv/gojsonschema v0.0.0-20181112162635-ac52e6811b56 | ||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b // indirect | ||
gopkg.in/yaml.v2 v2.2.8 // indirect | ||
) | ||
|
||
go 1.13 |
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
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