-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnBucket_LambdaConfigurationProperty.go
48 lines (45 loc) · 2.18 KB
/
CfnBucket_LambdaConfigurationProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package awss3
// Describes the AWS Lambda functions to invoke and the events for which to invoke them.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
//
// lambdaConfigurationProperty := &LambdaConfigurationProperty{
// Event: jsii.String("event"),
// Function: jsii.String("function"),
//
// // the properties below are optional
// Filter: &NotificationFilterProperty{
// S3Key: &S3KeyFilterProperty{
// Rules: []interface{}{
// &FilterRuleProperty{
// Name: jsii.String("name"),
// Value: jsii.String("value"),
// },
// },
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lambdaconfiguration.html
//
type CfnBucket_LambdaConfigurationProperty struct {
// The Amazon S3 bucket event for which to invoke the AWS Lambda function.
//
// For more information, see [Supported Event Types](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) in the *Amazon S3 User Guide* .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lambdaconfiguration.html#cfn-s3-bucket-lambdaconfiguration-event
//
Event *string `field:"required" json:"event" yaml:"event"`
// The Amazon Resource Name (ARN) of the AWS Lambda function that Amazon S3 invokes when the specified event type occurs.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lambdaconfiguration.html#cfn-s3-bucket-lambdaconfiguration-function
//
Function *string `field:"required" json:"function" yaml:"function"`
// The filtering rules that determine which objects invoke the AWS Lambda function.
//
// For example, you can create a filter so that only image files with a `.jpg` extension invoke the function when they are added to the Amazon S3 bucket.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lambdaconfiguration.html#cfn-s3-bucket-lambdaconfiguration-filter
//
Filter interface{} `field:"optional" json:"filter" yaml:"filter"`
}