-
Notifications
You must be signed in to change notification settings - Fork 51
/
alertRuleAnomalyDuplicate.go
558 lines (493 loc) · 28.3 KB
/
alertRuleAnomalyDuplicate.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package sentinel
import (
"context"
"reflect"
"errors"
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
// Manages a Duplicated Anomaly Alert Rule.
//
// ## Example Usage
//
// ```go
// package main
//
// import (
//
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/operationalinsights"
// "github.com/pulumi/pulumi-azure/sdk/v5/go/azure/sentinel"
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
//
// )
//
// func main() {
// pulumi.Run(func(ctx *pulumi.Context) error {
// exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
// Location: pulumi.String("West Europe"),
// })
// if err != nil {
// return err
// }
// exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "exampleAnalyticsWorkspace", &operationalinsights.AnalyticsWorkspaceArgs{
// Location: exampleResourceGroup.Location,
// ResourceGroupName: exampleResourceGroup.Name,
// Sku: pulumi.String("PerGB2018"),
// })
// if err != nil {
// return err
// }
// exampleLogAnalyticsWorkspaceOnboarding, err := sentinel.NewLogAnalyticsWorkspaceOnboarding(ctx, "exampleLogAnalyticsWorkspaceOnboarding", &sentinel.LogAnalyticsWorkspaceOnboardingArgs{
// WorkspaceId: exampleAnalyticsWorkspace.ID(),
// CustomerManagedKeyEnabled: pulumi.Bool(false),
// })
// if err != nil {
// return err
// }
// exampleAlertRuleAnomaly := sentinel.GetAlertRuleAnomalyOutput(ctx, sentinel.GetAlertRuleAnomalyOutputArgs{
// LogAnalyticsWorkspaceId: exampleLogAnalyticsWorkspaceOnboarding.WorkspaceId,
// DisplayName: pulumi.String("UEBA Anomalous Sign In"),
// }, nil)
// _, err = sentinel.NewAlertRuleAnomalyDuplicate(ctx, "exampleAlertRuleAnomalyDuplicate", &sentinel.AlertRuleAnomalyDuplicateArgs{
// DisplayName: pulumi.String("example duplicated UEBA Anomalous Sign In"),
// LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(),
// BuiltInRuleId: exampleAlertRuleAnomaly.ApplyT(func(exampleAlertRuleAnomaly sentinel.GetAlertRuleAnomalyResult) (*string, error) {
// return &exampleAlertRuleAnomaly.Id, nil
// }).(pulumi.StringPtrOutput),
// Enabled: pulumi.Bool(true),
// Mode: pulumi.String("Flighting"),
// ThresholdObservations: sentinel.AlertRuleAnomalyDuplicateThresholdObservationArray{
// &sentinel.AlertRuleAnomalyDuplicateThresholdObservationArgs{
// Name: pulumi.String("Anomaly score threshold"),
// Value: pulumi.String("0.6"),
// },
// },
// })
// if err != nil {
// return err
// }
// return nil
// })
// }
//
// ```
//
// ## Import
//
// Built In Anomaly Alert Rules can be imported using the `resource id`, e.g.
//
// ```sh
//
// $ pulumi import azure:sentinel/alertRuleAnomalyDuplicate:AlertRuleAnomalyDuplicate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.OperationalInsights/workspaces/workspace1/providers/Microsoft.SecurityInsights/securityMLAnalyticsSettings/setting1
//
// ```
type AlertRuleAnomalyDuplicate struct {
pulumi.CustomResourceState
// The version of the Anomaly Security ML Analytics Settings.
AnomalySettingsVersion pulumi.IntOutput `pulumi:"anomalySettingsVersion"`
// The anomaly version of the Anomaly Alert Rule.
AnomalyVersion pulumi.StringOutput `pulumi:"anomalyVersion"`
// The ID of the built-in Anomaly Alert Rule. Changing this forces a new Duplicated Anomaly Alert Rule to be created.
BuiltInRuleId pulumi.StringOutput `pulumi:"builtInRuleId"`
// The description of the multi select observation.
Description pulumi.StringOutput `pulumi:"description"`
// The Display Name of the built-in Anomaly Alert Rule.
DisplayName pulumi.StringOutput `pulumi:"displayName"`
// Should the Duplicated Anomaly Alert Rule be enabled?
Enabled pulumi.BoolOutput `pulumi:"enabled"`
// The frequency the Anomaly Alert Rule will be run, such as "P1D".
Frequency pulumi.StringOutput `pulumi:"frequency"`
// Whether the current settings of the Anomaly Alert Rule equals default settings.
IsDefaultSettings pulumi.BoolOutput `pulumi:"isDefaultSettings"`
// The ID of the Log Analytics Workspace. Changing this forces a new Duplicated Anomaly Alert Rule to be created.
LogAnalyticsWorkspaceId pulumi.StringOutput `pulumi:"logAnalyticsWorkspaceId"`
// mode of the Duplicated Anomaly Alert Rule. Possible Values are `Production` and `Flighting`.
Mode pulumi.StringOutput `pulumi:"mode"`
// A list of `multiSelectObservation` blocks as defined below.
MultiSelectObservations AlertRuleAnomalyDuplicateMultiSelectObservationArrayOutput `pulumi:"multiSelectObservations"`
// The name of the multi select observation.
Name pulumi.StringOutput `pulumi:"name"`
// A list of `prioritizedExcludeObservation` blocks as defined below.
PrioritizedExcludeObservations AlertRuleAnomalyDuplicatePrioritizedExcludeObservationArrayOutput `pulumi:"prioritizedExcludeObservations"`
// A `requiredDataConnector` block as defined below.
RequiredDataConnectors AlertRuleAnomalyDuplicateRequiredDataConnectorArrayOutput `pulumi:"requiredDataConnectors"`
// The ID of the anomaly settings definition Id.
SettingsDefinitionId pulumi.StringOutput `pulumi:"settingsDefinitionId"`
// A list of `singleSelectObservation` blocks as defined below.
SingleSelectObservations AlertRuleAnomalyDuplicateSingleSelectObservationArrayOutput `pulumi:"singleSelectObservations"`
// A list of categories of attacks by which to classify the rule.
Tactics pulumi.StringArrayOutput `pulumi:"tactics"`
// A list of techniques of attacks by which to classify the rule.
Techniques pulumi.StringArrayOutput `pulumi:"techniques"`
// A list of `thresholdObservation` blocks as defined below.
//
// > **NOTE:** un-specified `multiSelectObservation`, `singleSelectObservation`, `prioritizedExcludeObservation` and `thresholdObservation` will be inherited from the built-in Anomaly Alert Rule.
ThresholdObservations AlertRuleAnomalyDuplicateThresholdObservationArrayOutput `pulumi:"thresholdObservations"`
}
// NewAlertRuleAnomalyDuplicate registers a new resource with the given unique name, arguments, and options.
func NewAlertRuleAnomalyDuplicate(ctx *pulumi.Context,
name string, args *AlertRuleAnomalyDuplicateArgs, opts ...pulumi.ResourceOption) (*AlertRuleAnomalyDuplicate, error) {
if args == nil {
return nil, errors.New("missing one or more required arguments")
}
if args.BuiltInRuleId == nil {
return nil, errors.New("invalid value for required argument 'BuiltInRuleId'")
}
if args.DisplayName == nil {
return nil, errors.New("invalid value for required argument 'DisplayName'")
}
if args.Enabled == nil {
return nil, errors.New("invalid value for required argument 'Enabled'")
}
if args.LogAnalyticsWorkspaceId == nil {
return nil, errors.New("invalid value for required argument 'LogAnalyticsWorkspaceId'")
}
if args.Mode == nil {
return nil, errors.New("invalid value for required argument 'Mode'")
}
opts = internal.PkgResourceDefaultOpts(opts)
var resource AlertRuleAnomalyDuplicate
err := ctx.RegisterResource("azure:sentinel/alertRuleAnomalyDuplicate:AlertRuleAnomalyDuplicate", name, args, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// GetAlertRuleAnomalyDuplicate gets an existing AlertRuleAnomalyDuplicate resource's state with the given name, ID, and optional
// state properties that are used to uniquely qualify the lookup (nil if not required).
func GetAlertRuleAnomalyDuplicate(ctx *pulumi.Context,
name string, id pulumi.IDInput, state *AlertRuleAnomalyDuplicateState, opts ...pulumi.ResourceOption) (*AlertRuleAnomalyDuplicate, error) {
var resource AlertRuleAnomalyDuplicate
err := ctx.ReadResource("azure:sentinel/alertRuleAnomalyDuplicate:AlertRuleAnomalyDuplicate", name, id, state, &resource, opts...)
if err != nil {
return nil, err
}
return &resource, nil
}
// Input properties used for looking up and filtering AlertRuleAnomalyDuplicate resources.
type alertRuleAnomalyDuplicateState struct {
// The version of the Anomaly Security ML Analytics Settings.
AnomalySettingsVersion *int `pulumi:"anomalySettingsVersion"`
// The anomaly version of the Anomaly Alert Rule.
AnomalyVersion *string `pulumi:"anomalyVersion"`
// The ID of the built-in Anomaly Alert Rule. Changing this forces a new Duplicated Anomaly Alert Rule to be created.
BuiltInRuleId *string `pulumi:"builtInRuleId"`
// The description of the multi select observation.
Description *string `pulumi:"description"`
// The Display Name of the built-in Anomaly Alert Rule.
DisplayName *string `pulumi:"displayName"`
// Should the Duplicated Anomaly Alert Rule be enabled?
Enabled *bool `pulumi:"enabled"`
// The frequency the Anomaly Alert Rule will be run, such as "P1D".
Frequency *string `pulumi:"frequency"`
// Whether the current settings of the Anomaly Alert Rule equals default settings.
IsDefaultSettings *bool `pulumi:"isDefaultSettings"`
// The ID of the Log Analytics Workspace. Changing this forces a new Duplicated Anomaly Alert Rule to be created.
LogAnalyticsWorkspaceId *string `pulumi:"logAnalyticsWorkspaceId"`
// mode of the Duplicated Anomaly Alert Rule. Possible Values are `Production` and `Flighting`.
Mode *string `pulumi:"mode"`
// A list of `multiSelectObservation` blocks as defined below.
MultiSelectObservations []AlertRuleAnomalyDuplicateMultiSelectObservation `pulumi:"multiSelectObservations"`
// The name of the multi select observation.
Name *string `pulumi:"name"`
// A list of `prioritizedExcludeObservation` blocks as defined below.
PrioritizedExcludeObservations []AlertRuleAnomalyDuplicatePrioritizedExcludeObservation `pulumi:"prioritizedExcludeObservations"`
// A `requiredDataConnector` block as defined below.
RequiredDataConnectors []AlertRuleAnomalyDuplicateRequiredDataConnector `pulumi:"requiredDataConnectors"`
// The ID of the anomaly settings definition Id.
SettingsDefinitionId *string `pulumi:"settingsDefinitionId"`
// A list of `singleSelectObservation` blocks as defined below.
SingleSelectObservations []AlertRuleAnomalyDuplicateSingleSelectObservation `pulumi:"singleSelectObservations"`
// A list of categories of attacks by which to classify the rule.
Tactics []string `pulumi:"tactics"`
// A list of techniques of attacks by which to classify the rule.
Techniques []string `pulumi:"techniques"`
// A list of `thresholdObservation` blocks as defined below.
//
// > **NOTE:** un-specified `multiSelectObservation`, `singleSelectObservation`, `prioritizedExcludeObservation` and `thresholdObservation` will be inherited from the built-in Anomaly Alert Rule.
ThresholdObservations []AlertRuleAnomalyDuplicateThresholdObservation `pulumi:"thresholdObservations"`
}
type AlertRuleAnomalyDuplicateState struct {
// The version of the Anomaly Security ML Analytics Settings.
AnomalySettingsVersion pulumi.IntPtrInput
// The anomaly version of the Anomaly Alert Rule.
AnomalyVersion pulumi.StringPtrInput
// The ID of the built-in Anomaly Alert Rule. Changing this forces a new Duplicated Anomaly Alert Rule to be created.
BuiltInRuleId pulumi.StringPtrInput
// The description of the multi select observation.
Description pulumi.StringPtrInput
// The Display Name of the built-in Anomaly Alert Rule.
DisplayName pulumi.StringPtrInput
// Should the Duplicated Anomaly Alert Rule be enabled?
Enabled pulumi.BoolPtrInput
// The frequency the Anomaly Alert Rule will be run, such as "P1D".
Frequency pulumi.StringPtrInput
// Whether the current settings of the Anomaly Alert Rule equals default settings.
IsDefaultSettings pulumi.BoolPtrInput
// The ID of the Log Analytics Workspace. Changing this forces a new Duplicated Anomaly Alert Rule to be created.
LogAnalyticsWorkspaceId pulumi.StringPtrInput
// mode of the Duplicated Anomaly Alert Rule. Possible Values are `Production` and `Flighting`.
Mode pulumi.StringPtrInput
// A list of `multiSelectObservation` blocks as defined below.
MultiSelectObservations AlertRuleAnomalyDuplicateMultiSelectObservationArrayInput
// The name of the multi select observation.
Name pulumi.StringPtrInput
// A list of `prioritizedExcludeObservation` blocks as defined below.
PrioritizedExcludeObservations AlertRuleAnomalyDuplicatePrioritizedExcludeObservationArrayInput
// A `requiredDataConnector` block as defined below.
RequiredDataConnectors AlertRuleAnomalyDuplicateRequiredDataConnectorArrayInput
// The ID of the anomaly settings definition Id.
SettingsDefinitionId pulumi.StringPtrInput
// A list of `singleSelectObservation` blocks as defined below.
SingleSelectObservations AlertRuleAnomalyDuplicateSingleSelectObservationArrayInput
// A list of categories of attacks by which to classify the rule.
Tactics pulumi.StringArrayInput
// A list of techniques of attacks by which to classify the rule.
Techniques pulumi.StringArrayInput
// A list of `thresholdObservation` blocks as defined below.
//
// > **NOTE:** un-specified `multiSelectObservation`, `singleSelectObservation`, `prioritizedExcludeObservation` and `thresholdObservation` will be inherited from the built-in Anomaly Alert Rule.
ThresholdObservations AlertRuleAnomalyDuplicateThresholdObservationArrayInput
}
func (AlertRuleAnomalyDuplicateState) ElementType() reflect.Type {
return reflect.TypeOf((*alertRuleAnomalyDuplicateState)(nil)).Elem()
}
type alertRuleAnomalyDuplicateArgs struct {
// The ID of the built-in Anomaly Alert Rule. Changing this forces a new Duplicated Anomaly Alert Rule to be created.
BuiltInRuleId string `pulumi:"builtInRuleId"`
// The Display Name of the built-in Anomaly Alert Rule.
DisplayName string `pulumi:"displayName"`
// Should the Duplicated Anomaly Alert Rule be enabled?
Enabled bool `pulumi:"enabled"`
// The ID of the Log Analytics Workspace. Changing this forces a new Duplicated Anomaly Alert Rule to be created.
LogAnalyticsWorkspaceId string `pulumi:"logAnalyticsWorkspaceId"`
// mode of the Duplicated Anomaly Alert Rule. Possible Values are `Production` and `Flighting`.
Mode string `pulumi:"mode"`
// A list of `multiSelectObservation` blocks as defined below.
MultiSelectObservations []AlertRuleAnomalyDuplicateMultiSelectObservation `pulumi:"multiSelectObservations"`
// A list of `prioritizedExcludeObservation` blocks as defined below.
PrioritizedExcludeObservations []AlertRuleAnomalyDuplicatePrioritizedExcludeObservation `pulumi:"prioritizedExcludeObservations"`
// A list of `singleSelectObservation` blocks as defined below.
SingleSelectObservations []AlertRuleAnomalyDuplicateSingleSelectObservation `pulumi:"singleSelectObservations"`
// A list of `thresholdObservation` blocks as defined below.
//
// > **NOTE:** un-specified `multiSelectObservation`, `singleSelectObservation`, `prioritizedExcludeObservation` and `thresholdObservation` will be inherited from the built-in Anomaly Alert Rule.
ThresholdObservations []AlertRuleAnomalyDuplicateThresholdObservation `pulumi:"thresholdObservations"`
}
// The set of arguments for constructing a AlertRuleAnomalyDuplicate resource.
type AlertRuleAnomalyDuplicateArgs struct {
// The ID of the built-in Anomaly Alert Rule. Changing this forces a new Duplicated Anomaly Alert Rule to be created.
BuiltInRuleId pulumi.StringInput
// The Display Name of the built-in Anomaly Alert Rule.
DisplayName pulumi.StringInput
// Should the Duplicated Anomaly Alert Rule be enabled?
Enabled pulumi.BoolInput
// The ID of the Log Analytics Workspace. Changing this forces a new Duplicated Anomaly Alert Rule to be created.
LogAnalyticsWorkspaceId pulumi.StringInput
// mode of the Duplicated Anomaly Alert Rule. Possible Values are `Production` and `Flighting`.
Mode pulumi.StringInput
// A list of `multiSelectObservation` blocks as defined below.
MultiSelectObservations AlertRuleAnomalyDuplicateMultiSelectObservationArrayInput
// A list of `prioritizedExcludeObservation` blocks as defined below.
PrioritizedExcludeObservations AlertRuleAnomalyDuplicatePrioritizedExcludeObservationArrayInput
// A list of `singleSelectObservation` blocks as defined below.
SingleSelectObservations AlertRuleAnomalyDuplicateSingleSelectObservationArrayInput
// A list of `thresholdObservation` blocks as defined below.
//
// > **NOTE:** un-specified `multiSelectObservation`, `singleSelectObservation`, `prioritizedExcludeObservation` and `thresholdObservation` will be inherited from the built-in Anomaly Alert Rule.
ThresholdObservations AlertRuleAnomalyDuplicateThresholdObservationArrayInput
}
func (AlertRuleAnomalyDuplicateArgs) ElementType() reflect.Type {
return reflect.TypeOf((*alertRuleAnomalyDuplicateArgs)(nil)).Elem()
}
type AlertRuleAnomalyDuplicateInput interface {
pulumi.Input
ToAlertRuleAnomalyDuplicateOutput() AlertRuleAnomalyDuplicateOutput
ToAlertRuleAnomalyDuplicateOutputWithContext(ctx context.Context) AlertRuleAnomalyDuplicateOutput
}
func (*AlertRuleAnomalyDuplicate) ElementType() reflect.Type {
return reflect.TypeOf((**AlertRuleAnomalyDuplicate)(nil)).Elem()
}
func (i *AlertRuleAnomalyDuplicate) ToAlertRuleAnomalyDuplicateOutput() AlertRuleAnomalyDuplicateOutput {
return i.ToAlertRuleAnomalyDuplicateOutputWithContext(context.Background())
}
func (i *AlertRuleAnomalyDuplicate) ToAlertRuleAnomalyDuplicateOutputWithContext(ctx context.Context) AlertRuleAnomalyDuplicateOutput {
return pulumi.ToOutputWithContext(ctx, i).(AlertRuleAnomalyDuplicateOutput)
}
// AlertRuleAnomalyDuplicateArrayInput is an input type that accepts AlertRuleAnomalyDuplicateArray and AlertRuleAnomalyDuplicateArrayOutput values.
// You can construct a concrete instance of `AlertRuleAnomalyDuplicateArrayInput` via:
//
// AlertRuleAnomalyDuplicateArray{ AlertRuleAnomalyDuplicateArgs{...} }
type AlertRuleAnomalyDuplicateArrayInput interface {
pulumi.Input
ToAlertRuleAnomalyDuplicateArrayOutput() AlertRuleAnomalyDuplicateArrayOutput
ToAlertRuleAnomalyDuplicateArrayOutputWithContext(context.Context) AlertRuleAnomalyDuplicateArrayOutput
}
type AlertRuleAnomalyDuplicateArray []AlertRuleAnomalyDuplicateInput
func (AlertRuleAnomalyDuplicateArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]*AlertRuleAnomalyDuplicate)(nil)).Elem()
}
func (i AlertRuleAnomalyDuplicateArray) ToAlertRuleAnomalyDuplicateArrayOutput() AlertRuleAnomalyDuplicateArrayOutput {
return i.ToAlertRuleAnomalyDuplicateArrayOutputWithContext(context.Background())
}
func (i AlertRuleAnomalyDuplicateArray) ToAlertRuleAnomalyDuplicateArrayOutputWithContext(ctx context.Context) AlertRuleAnomalyDuplicateArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AlertRuleAnomalyDuplicateArrayOutput)
}
// AlertRuleAnomalyDuplicateMapInput is an input type that accepts AlertRuleAnomalyDuplicateMap and AlertRuleAnomalyDuplicateMapOutput values.
// You can construct a concrete instance of `AlertRuleAnomalyDuplicateMapInput` via:
//
// AlertRuleAnomalyDuplicateMap{ "key": AlertRuleAnomalyDuplicateArgs{...} }
type AlertRuleAnomalyDuplicateMapInput interface {
pulumi.Input
ToAlertRuleAnomalyDuplicateMapOutput() AlertRuleAnomalyDuplicateMapOutput
ToAlertRuleAnomalyDuplicateMapOutputWithContext(context.Context) AlertRuleAnomalyDuplicateMapOutput
}
type AlertRuleAnomalyDuplicateMap map[string]AlertRuleAnomalyDuplicateInput
func (AlertRuleAnomalyDuplicateMap) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*AlertRuleAnomalyDuplicate)(nil)).Elem()
}
func (i AlertRuleAnomalyDuplicateMap) ToAlertRuleAnomalyDuplicateMapOutput() AlertRuleAnomalyDuplicateMapOutput {
return i.ToAlertRuleAnomalyDuplicateMapOutputWithContext(context.Background())
}
func (i AlertRuleAnomalyDuplicateMap) ToAlertRuleAnomalyDuplicateMapOutputWithContext(ctx context.Context) AlertRuleAnomalyDuplicateMapOutput {
return pulumi.ToOutputWithContext(ctx, i).(AlertRuleAnomalyDuplicateMapOutput)
}
type AlertRuleAnomalyDuplicateOutput struct{ *pulumi.OutputState }
func (AlertRuleAnomalyDuplicateOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AlertRuleAnomalyDuplicate)(nil)).Elem()
}
func (o AlertRuleAnomalyDuplicateOutput) ToAlertRuleAnomalyDuplicateOutput() AlertRuleAnomalyDuplicateOutput {
return o
}
func (o AlertRuleAnomalyDuplicateOutput) ToAlertRuleAnomalyDuplicateOutputWithContext(ctx context.Context) AlertRuleAnomalyDuplicateOutput {
return o
}
// The version of the Anomaly Security ML Analytics Settings.
func (o AlertRuleAnomalyDuplicateOutput) AnomalySettingsVersion() pulumi.IntOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.IntOutput { return v.AnomalySettingsVersion }).(pulumi.IntOutput)
}
// The anomaly version of the Anomaly Alert Rule.
func (o AlertRuleAnomalyDuplicateOutput) AnomalyVersion() pulumi.StringOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.StringOutput { return v.AnomalyVersion }).(pulumi.StringOutput)
}
// The ID of the built-in Anomaly Alert Rule. Changing this forces a new Duplicated Anomaly Alert Rule to be created.
func (o AlertRuleAnomalyDuplicateOutput) BuiltInRuleId() pulumi.StringOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.StringOutput { return v.BuiltInRuleId }).(pulumi.StringOutput)
}
// The description of the multi select observation.
func (o AlertRuleAnomalyDuplicateOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.StringOutput { return v.Description }).(pulumi.StringOutput)
}
// The Display Name of the built-in Anomaly Alert Rule.
func (o AlertRuleAnomalyDuplicateOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.StringOutput { return v.DisplayName }).(pulumi.StringOutput)
}
// Should the Duplicated Anomaly Alert Rule be enabled?
func (o AlertRuleAnomalyDuplicateOutput) Enabled() pulumi.BoolOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.BoolOutput { return v.Enabled }).(pulumi.BoolOutput)
}
// The frequency the Anomaly Alert Rule will be run, such as "P1D".
func (o AlertRuleAnomalyDuplicateOutput) Frequency() pulumi.StringOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.StringOutput { return v.Frequency }).(pulumi.StringOutput)
}
// Whether the current settings of the Anomaly Alert Rule equals default settings.
func (o AlertRuleAnomalyDuplicateOutput) IsDefaultSettings() pulumi.BoolOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.BoolOutput { return v.IsDefaultSettings }).(pulumi.BoolOutput)
}
// The ID of the Log Analytics Workspace. Changing this forces a new Duplicated Anomaly Alert Rule to be created.
func (o AlertRuleAnomalyDuplicateOutput) LogAnalyticsWorkspaceId() pulumi.StringOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.StringOutput { return v.LogAnalyticsWorkspaceId }).(pulumi.StringOutput)
}
// mode of the Duplicated Anomaly Alert Rule. Possible Values are `Production` and `Flighting`.
func (o AlertRuleAnomalyDuplicateOutput) Mode() pulumi.StringOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.StringOutput { return v.Mode }).(pulumi.StringOutput)
}
// A list of `multiSelectObservation` blocks as defined below.
func (o AlertRuleAnomalyDuplicateOutput) MultiSelectObservations() AlertRuleAnomalyDuplicateMultiSelectObservationArrayOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) AlertRuleAnomalyDuplicateMultiSelectObservationArrayOutput {
return v.MultiSelectObservations
}).(AlertRuleAnomalyDuplicateMultiSelectObservationArrayOutput)
}
// The name of the multi select observation.
func (o AlertRuleAnomalyDuplicateOutput) Name() pulumi.StringOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput)
}
// A list of `prioritizedExcludeObservation` blocks as defined below.
func (o AlertRuleAnomalyDuplicateOutput) PrioritizedExcludeObservations() AlertRuleAnomalyDuplicatePrioritizedExcludeObservationArrayOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) AlertRuleAnomalyDuplicatePrioritizedExcludeObservationArrayOutput {
return v.PrioritizedExcludeObservations
}).(AlertRuleAnomalyDuplicatePrioritizedExcludeObservationArrayOutput)
}
// A `requiredDataConnector` block as defined below.
func (o AlertRuleAnomalyDuplicateOutput) RequiredDataConnectors() AlertRuleAnomalyDuplicateRequiredDataConnectorArrayOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) AlertRuleAnomalyDuplicateRequiredDataConnectorArrayOutput {
return v.RequiredDataConnectors
}).(AlertRuleAnomalyDuplicateRequiredDataConnectorArrayOutput)
}
// The ID of the anomaly settings definition Id.
func (o AlertRuleAnomalyDuplicateOutput) SettingsDefinitionId() pulumi.StringOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.StringOutput { return v.SettingsDefinitionId }).(pulumi.StringOutput)
}
// A list of `singleSelectObservation` blocks as defined below.
func (o AlertRuleAnomalyDuplicateOutput) SingleSelectObservations() AlertRuleAnomalyDuplicateSingleSelectObservationArrayOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) AlertRuleAnomalyDuplicateSingleSelectObservationArrayOutput {
return v.SingleSelectObservations
}).(AlertRuleAnomalyDuplicateSingleSelectObservationArrayOutput)
}
// A list of categories of attacks by which to classify the rule.
func (o AlertRuleAnomalyDuplicateOutput) Tactics() pulumi.StringArrayOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.StringArrayOutput { return v.Tactics }).(pulumi.StringArrayOutput)
}
// A list of techniques of attacks by which to classify the rule.
func (o AlertRuleAnomalyDuplicateOutput) Techniques() pulumi.StringArrayOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) pulumi.StringArrayOutput { return v.Techniques }).(pulumi.StringArrayOutput)
}
// A list of `thresholdObservation` blocks as defined below.
//
// > **NOTE:** un-specified `multiSelectObservation`, `singleSelectObservation`, `prioritizedExcludeObservation` and `thresholdObservation` will be inherited from the built-in Anomaly Alert Rule.
func (o AlertRuleAnomalyDuplicateOutput) ThresholdObservations() AlertRuleAnomalyDuplicateThresholdObservationArrayOutput {
return o.ApplyT(func(v *AlertRuleAnomalyDuplicate) AlertRuleAnomalyDuplicateThresholdObservationArrayOutput {
return v.ThresholdObservations
}).(AlertRuleAnomalyDuplicateThresholdObservationArrayOutput)
}
type AlertRuleAnomalyDuplicateArrayOutput struct{ *pulumi.OutputState }
func (AlertRuleAnomalyDuplicateArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]*AlertRuleAnomalyDuplicate)(nil)).Elem()
}
func (o AlertRuleAnomalyDuplicateArrayOutput) ToAlertRuleAnomalyDuplicateArrayOutput() AlertRuleAnomalyDuplicateArrayOutput {
return o
}
func (o AlertRuleAnomalyDuplicateArrayOutput) ToAlertRuleAnomalyDuplicateArrayOutputWithContext(ctx context.Context) AlertRuleAnomalyDuplicateArrayOutput {
return o
}
func (o AlertRuleAnomalyDuplicateArrayOutput) Index(i pulumi.IntInput) AlertRuleAnomalyDuplicateOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) *AlertRuleAnomalyDuplicate {
return vs[0].([]*AlertRuleAnomalyDuplicate)[vs[1].(int)]
}).(AlertRuleAnomalyDuplicateOutput)
}
type AlertRuleAnomalyDuplicateMapOutput struct{ *pulumi.OutputState }
func (AlertRuleAnomalyDuplicateMapOutput) ElementType() reflect.Type {
return reflect.TypeOf((*map[string]*AlertRuleAnomalyDuplicate)(nil)).Elem()
}
func (o AlertRuleAnomalyDuplicateMapOutput) ToAlertRuleAnomalyDuplicateMapOutput() AlertRuleAnomalyDuplicateMapOutput {
return o
}
func (o AlertRuleAnomalyDuplicateMapOutput) ToAlertRuleAnomalyDuplicateMapOutputWithContext(ctx context.Context) AlertRuleAnomalyDuplicateMapOutput {
return o
}
func (o AlertRuleAnomalyDuplicateMapOutput) MapIndex(k pulumi.StringInput) AlertRuleAnomalyDuplicateOutput {
return pulumi.All(o, k).ApplyT(func(vs []interface{}) *AlertRuleAnomalyDuplicate {
return vs[0].(map[string]*AlertRuleAnomalyDuplicate)[vs[1].(string)]
}).(AlertRuleAnomalyDuplicateOutput)
}
func init() {
pulumi.RegisterInputType(reflect.TypeOf((*AlertRuleAnomalyDuplicateInput)(nil)).Elem(), &AlertRuleAnomalyDuplicate{})
pulumi.RegisterInputType(reflect.TypeOf((*AlertRuleAnomalyDuplicateArrayInput)(nil)).Elem(), AlertRuleAnomalyDuplicateArray{})
pulumi.RegisterInputType(reflect.TypeOf((*AlertRuleAnomalyDuplicateMapInput)(nil)).Elem(), AlertRuleAnomalyDuplicateMap{})
pulumi.RegisterOutputType(AlertRuleAnomalyDuplicateOutput{})
pulumi.RegisterOutputType(AlertRuleAnomalyDuplicateArrayOutput{})
pulumi.RegisterOutputType(AlertRuleAnomalyDuplicateMapOutput{})
}