-
Notifications
You must be signed in to change notification settings - Fork 17
/
CfnDetectorProps.go
187 lines (184 loc) · 7.27 KB
/
CfnDetectorProps.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
package awsfrauddetector
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Properties for defining a `CfnDetector`.
//
// 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"
//
// cfnDetectorProps := &CfnDetectorProps{
// DetectorId: jsii.String("detectorId"),
// EventType: &EventTypeProperty{
// Arn: jsii.String("arn"),
// CreatedTime: jsii.String("createdTime"),
// Description: jsii.String("description"),
// EntityTypes: []interface{}{
// &EntityTypeProperty{
// Arn: jsii.String("arn"),
// CreatedTime: jsii.String("createdTime"),
// Description: jsii.String("description"),
// Inline: jsii.Boolean(false),
// LastUpdatedTime: jsii.String("lastUpdatedTime"),
// Name: jsii.String("name"),
// Tags: []cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// },
// },
// EventVariables: []interface{}{
// &EventVariableProperty{
// Arn: jsii.String("arn"),
// CreatedTime: jsii.String("createdTime"),
// DataSource: jsii.String("dataSource"),
// DataType: jsii.String("dataType"),
// DefaultValue: jsii.String("defaultValue"),
// Description: jsii.String("description"),
// Inline: jsii.Boolean(false),
// LastUpdatedTime: jsii.String("lastUpdatedTime"),
// Name: jsii.String("name"),
// Tags: []*cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// VariableType: jsii.String("variableType"),
// },
// },
// Inline: jsii.Boolean(false),
// Labels: []interface{}{
// &LabelProperty{
// Arn: jsii.String("arn"),
// CreatedTime: jsii.String("createdTime"),
// Description: jsii.String("description"),
// Inline: jsii.Boolean(false),
// LastUpdatedTime: jsii.String("lastUpdatedTime"),
// Name: jsii.String("name"),
// Tags: []*cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// },
// },
// LastUpdatedTime: jsii.String("lastUpdatedTime"),
// Name: jsii.String("name"),
// Tags: []*cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// },
// Rules: []interface{}{
// &RuleProperty{
// Arn: jsii.String("arn"),
// CreatedTime: jsii.String("createdTime"),
// Description: jsii.String("description"),
// DetectorId: jsii.String("detectorId"),
// Expression: jsii.String("expression"),
// Language: jsii.String("language"),
// LastUpdatedTime: jsii.String("lastUpdatedTime"),
// Outcomes: []interface{}{
// &OutcomeProperty{
// Arn: jsii.String("arn"),
// CreatedTime: jsii.String("createdTime"),
// Description: jsii.String("description"),
// Inline: jsii.Boolean(false),
// LastUpdatedTime: jsii.String("lastUpdatedTime"),
// Name: jsii.String("name"),
// Tags: []*cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// },
// },
// RuleId: jsii.String("ruleId"),
// RuleVersion: jsii.String("ruleVersion"),
// Tags: []*cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// },
// },
//
// // the properties below are optional
// AssociatedModels: []interface{}{
// &ModelProperty{
// Arn: jsii.String("arn"),
// },
// },
// Description: jsii.String("description"),
// DetectorVersionStatus: jsii.String("detectorVersionStatus"),
// RuleExecutionMode: jsii.String("ruleExecutionMode"),
// Tags: []*cfnTag{
// &cfnTag{
// Key: jsii.String("key"),
// Value: jsii.String("value"),
// },
// },
// }
//
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html
//
type CfnDetectorProps struct {
// The name of the detector.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-detectorid
//
DetectorId *string `field:"required" json:"detectorId" yaml:"detectorId"`
// The event type associated with this detector.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-eventtype
//
EventType interface{} `field:"required" json:"eventType" yaml:"eventType"`
// The rules to include in the detector version.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-rules
//
Rules interface{} `field:"required" json:"rules" yaml:"rules"`
// The models to associate with this detector.
//
// You must provide the ARNs of all the models you want to associate.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-associatedmodels
//
AssociatedModels interface{} `field:"optional" json:"associatedModels" yaml:"associatedModels"`
// The detector description.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-description
//
Description *string `field:"optional" json:"description" yaml:"description"`
// The status of the detector version.
//
// If a value is not provided for this property, AWS CloudFormation assumes `DRAFT` status.
//
// Valid values: `ACTIVE | DRAFT`.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-detectorversionstatus
//
DetectorVersionStatus *string `field:"optional" json:"detectorVersionStatus" yaml:"detectorVersionStatus"`
// The rule execution mode for the rules included in the detector version.
//
// Valid values: `FIRST_MATCHED | ALL_MATCHED` Default value: `FIRST_MATCHED`
//
// You can define and edit the rule mode at the detector version level, when it is in draft status.
//
// If you specify `FIRST_MATCHED` , Amazon Fraud Detector evaluates rules sequentially, first to last, stopping at the first matched rule. Amazon Fraud dectector then provides the outcomes for that single rule.
//
// If you specifiy `ALL_MATCHED` , Amazon Fraud Detector evaluates all rules and returns the outcomes for all matched rules.
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-ruleexecutionmode
//
RuleExecutionMode *string `field:"optional" json:"ruleExecutionMode" yaml:"ruleExecutionMode"`
// An array of key-value pairs to apply to this resource.
//
// For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
// See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-frauddetector-detector.html#cfn-frauddetector-detector-tags
//
Tags *[]*awscdk.CfnTag `field:"optional" json:"tags" yaml:"tags"`
}