-
Notifications
You must be signed in to change notification settings - Fork 17
/
BucketNotificationDestinationConfig.go
35 lines (32 loc) · 1.22 KB
/
BucketNotificationDestinationConfig.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
package awss3
import (
"github.com/aws/constructs-go/constructs/v10"
)
// Represents the properties of a notification destination.
//
// 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"
// import constructs "github.com/aws/constructs-go/constructs"
//
// var dependable iDependable
//
// bucketNotificationDestinationConfig := &BucketNotificationDestinationConfig{
// Arn: jsii.String("arn"),
// Type: awscdk.Aws_s3.BucketNotificationDestinationType_LAMBDA,
//
// // the properties below are optional
// Dependencies: []*iDependable{
// dependable,
// },
// }
//
type BucketNotificationDestinationConfig struct {
// The ARN of the destination (i.e. Lambda, SNS, SQS).
Arn *string `field:"required" json:"arn" yaml:"arn"`
// The notification type.
Type BucketNotificationDestinationType `field:"required" json:"type" yaml:"type"`
// Any additional dependencies that should be resolved before the bucket notification can be configured (for example, the SNS Topic Policy resource).
Dependencies *[]constructs.IDependable `field:"optional" json:"dependencies" yaml:"dependencies"`
}