-
Notifications
You must be signed in to change notification settings - Fork 17
/
awss3_OnCloudTrailBucketEventOptions.go
80 lines (77 loc) · 2.34 KB
/
awss3_OnCloudTrailBucketEventOptions.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package awss3
import (
"github.com/aws/aws-cdk-go/awscdk/awsevents"
)
// Options for the onCloudTrailPutObject method.
//
// 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 "github.com/aws/aws-cdk-go/awscdk"
//
// var detail interface{}
// var ruleTarget iRuleTarget
//
// onCloudTrailBucketEventOptions := &onCloudTrailBucketEventOptions{
// description: jsii.String("description"),
// eventPattern: &eventPattern{
// account: []*string{
// jsii.String("account"),
// },
// detail: map[string]interface{}{
// "detailKey": detail,
// },
// detailType: []*string{
// jsii.String("detailType"),
// },
// id: []*string{
// jsii.String("id"),
// },
// region: []*string{
// jsii.String("region"),
// },
// resources: []*string{
// jsii.String("resources"),
// },
// source: []*string{
// jsii.String("source"),
// },
// time: []*string{
// jsii.String("time"),
// },
// version: []*string{
// jsii.String("version"),
// },
// },
// paths: []*string{
// jsii.String("paths"),
// },
// ruleName: jsii.String("ruleName"),
// target: ruleTarget,
// }
//
// Experimental.
type OnCloudTrailBucketEventOptions struct {
// A description of the rule's purpose.
// Experimental.
Description *string `field:"optional" json:"description" yaml:"description"`
// Additional restrictions for the event to route to the specified target.
//
// The method that generates the rule probably imposes some type of event
// filtering. The filtering implied by what you pass here is added
// on top of that filtering.
// See: https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html
//
// Experimental.
EventPattern *awsevents.EventPattern `field:"optional" json:"eventPattern" yaml:"eventPattern"`
// A name for the rule.
// Experimental.
RuleName *string `field:"optional" json:"ruleName" yaml:"ruleName"`
// The target to register for the event.
// Experimental.
Target awsevents.IRuleTarget `field:"optional" json:"target" yaml:"target"`
// Only watch changes to these object paths.
// Experimental.
Paths *[]*string `field:"optional" json:"paths" yaml:"paths"`
}