/
zz_monitoractiongroup_types.go
executable file
·855 lines (607 loc) · 36.3 KB
/
zz_monitoractiongroup_types.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
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
// SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type AADAuthInitParameters struct {
// The identifier URI for AAD auth.
IdentifierURI *string `json:"identifierUri,omitempty" tf:"identifier_uri,omitempty"`
// The webhook application object Id for AAD auth.
ObjectID *string `json:"objectId,omitempty" tf:"object_id,omitempty"`
// The tenant id for AAD auth.
TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"`
}
type AADAuthObservation struct {
// The identifier URI for AAD auth.
IdentifierURI *string `json:"identifierUri,omitempty" tf:"identifier_uri,omitempty"`
// The webhook application object Id for AAD auth.
ObjectID *string `json:"objectId,omitempty" tf:"object_id,omitempty"`
// The tenant id for AAD auth.
TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"`
}
type AADAuthParameters struct {
// The identifier URI for AAD auth.
// +kubebuilder:validation:Optional
IdentifierURI *string `json:"identifierUri,omitempty" tf:"identifier_uri,omitempty"`
// The webhook application object Id for AAD auth.
// +kubebuilder:validation:Optional
ObjectID *string `json:"objectId" tf:"object_id,omitempty"`
// The tenant id for AAD auth.
// +kubebuilder:validation:Optional
TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"`
}
type ArmRoleReceiverInitParameters struct {
// The name of the ARM role receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The arm role id.
RoleID *string `json:"roleId,omitempty" tf:"role_id,omitempty"`
// Enables or disables the common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type ArmRoleReceiverObservation struct {
// The name of the ARM role receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The arm role id.
RoleID *string `json:"roleId,omitempty" tf:"role_id,omitempty"`
// Enables or disables the common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type ArmRoleReceiverParameters struct {
// The name of the ARM role receiver.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// The arm role id.
// +kubebuilder:validation:Optional
RoleID *string `json:"roleId" tf:"role_id,omitempty"`
// Enables or disables the common alert schema.
// +kubebuilder:validation:Optional
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type AutomationRunBookReceiverInitParameters struct {
// The automation account ID which holds this runbook and authenticates to Azure resources.
AutomationAccountID *string `json:"automationAccountId,omitempty" tf:"automation_account_id,omitempty"`
// Indicates whether this instance is global runbook.
IsGlobalRunBook *bool `json:"isGlobalRunbook,omitempty" tf:"is_global_runbook,omitempty"`
// The name of the automation runbook receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The name for this runbook.
RunBookName *string `json:"runbookName,omitempty" tf:"runbook_name,omitempty"`
// The URI where webhooks should be sent.
ServiceURI *string `json:"serviceUri,omitempty" tf:"service_uri,omitempty"`
// Enables or disables the common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
// The resource id for webhook linked to this runbook.
WebhookResourceID *string `json:"webhookResourceId,omitempty" tf:"webhook_resource_id,omitempty"`
}
type AutomationRunBookReceiverObservation struct {
// The automation account ID which holds this runbook and authenticates to Azure resources.
AutomationAccountID *string `json:"automationAccountId,omitempty" tf:"automation_account_id,omitempty"`
// Indicates whether this instance is global runbook.
IsGlobalRunBook *bool `json:"isGlobalRunbook,omitempty" tf:"is_global_runbook,omitempty"`
// The name of the automation runbook receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The name for this runbook.
RunBookName *string `json:"runbookName,omitempty" tf:"runbook_name,omitempty"`
// The URI where webhooks should be sent.
ServiceURI *string `json:"serviceUri,omitempty" tf:"service_uri,omitempty"`
// Enables or disables the common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
// The resource id for webhook linked to this runbook.
WebhookResourceID *string `json:"webhookResourceId,omitempty" tf:"webhook_resource_id,omitempty"`
}
type AutomationRunBookReceiverParameters struct {
// The automation account ID which holds this runbook and authenticates to Azure resources.
// +kubebuilder:validation:Optional
AutomationAccountID *string `json:"automationAccountId" tf:"automation_account_id,omitempty"`
// Indicates whether this instance is global runbook.
// +kubebuilder:validation:Optional
IsGlobalRunBook *bool `json:"isGlobalRunbook" tf:"is_global_runbook,omitempty"`
// The name of the automation runbook receiver.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// The name for this runbook.
// +kubebuilder:validation:Optional
RunBookName *string `json:"runbookName" tf:"runbook_name,omitempty"`
// The URI where webhooks should be sent.
// +kubebuilder:validation:Optional
ServiceURI *string `json:"serviceUri" tf:"service_uri,omitempty"`
// Enables or disables the common alert schema.
// +kubebuilder:validation:Optional
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
// The resource id for webhook linked to this runbook.
// +kubebuilder:validation:Optional
WebhookResourceID *string `json:"webhookResourceId" tf:"webhook_resource_id,omitempty"`
}
type AzureAppPushReceiverInitParameters struct {
// The email address of the user signed into the mobile app who will receive push notifications from this receiver.
EmailAddress *string `json:"emailAddress,omitempty" tf:"email_address,omitempty"`
// The name of the Azure app push receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type AzureAppPushReceiverObservation struct {
// The email address of the user signed into the mobile app who will receive push notifications from this receiver.
EmailAddress *string `json:"emailAddress,omitempty" tf:"email_address,omitempty"`
// The name of the Azure app push receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
}
type AzureAppPushReceiverParameters struct {
// The email address of the user signed into the mobile app who will receive push notifications from this receiver.
// +kubebuilder:validation:Optional
EmailAddress *string `json:"emailAddress" tf:"email_address,omitempty"`
// The name of the Azure app push receiver.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
}
type AzureFunctionReceiverInitParameters struct {
// The Azure resource ID of the function app.
FunctionAppResourceID *string `json:"functionAppResourceId,omitempty" tf:"function_app_resource_id,omitempty"`
// The function name in the function app.
FunctionName *string `json:"functionName,omitempty" tf:"function_name,omitempty"`
// The HTTP trigger url where HTTP request sent to.
HTTPTriggerURL *string `json:"httpTriggerUrl,omitempty" tf:"http_trigger_url,omitempty"`
// The name of the Azure Function receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Enables or disables the common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type AzureFunctionReceiverObservation struct {
// The Azure resource ID of the function app.
FunctionAppResourceID *string `json:"functionAppResourceId,omitempty" tf:"function_app_resource_id,omitempty"`
// The function name in the function app.
FunctionName *string `json:"functionName,omitempty" tf:"function_name,omitempty"`
// The HTTP trigger url where HTTP request sent to.
HTTPTriggerURL *string `json:"httpTriggerUrl,omitempty" tf:"http_trigger_url,omitempty"`
// The name of the Azure Function receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Enables or disables the common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type AzureFunctionReceiverParameters struct {
// The Azure resource ID of the function app.
// +kubebuilder:validation:Optional
FunctionAppResourceID *string `json:"functionAppResourceId" tf:"function_app_resource_id,omitempty"`
// The function name in the function app.
// +kubebuilder:validation:Optional
FunctionName *string `json:"functionName" tf:"function_name,omitempty"`
// The HTTP trigger url where HTTP request sent to.
// +kubebuilder:validation:Optional
HTTPTriggerURL *string `json:"httpTriggerUrl" tf:"http_trigger_url,omitempty"`
// The name of the Azure Function receiver.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// Enables or disables the common alert schema.
// +kubebuilder:validation:Optional
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type EmailReceiverInitParameters struct {
// The email address of this receiver.
EmailAddress *string `json:"emailAddress,omitempty" tf:"email_address,omitempty"`
// The name of the email receiver. Names must be unique (case-insensitive) across all receivers within an action group.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Enables or disables the common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type EmailReceiverObservation struct {
// The email address of this receiver.
EmailAddress *string `json:"emailAddress,omitempty" tf:"email_address,omitempty"`
// The name of the email receiver. Names must be unique (case-insensitive) across all receivers within an action group.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Enables or disables the common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type EmailReceiverParameters struct {
// The email address of this receiver.
// +kubebuilder:validation:Optional
EmailAddress *string `json:"emailAddress" tf:"email_address,omitempty"`
// The name of the email receiver. Names must be unique (case-insensitive) across all receivers within an action group.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// Enables or disables the common alert schema.
// +kubebuilder:validation:Optional
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type EventHubReceiverInitParameters struct {
// The resource ID of the respective Event Hub.
EventHubID *string `json:"eventHubId,omitempty" tf:"event_hub_id,omitempty"`
// The name of the specific Event Hub queue.
EventHubName *string `json:"eventHubName,omitempty" tf:"event_hub_name,omitempty"`
// The namespace name of the Event Hub.
EventHubNamespace *string `json:"eventHubNamespace,omitempty" tf:"event_hub_namespace,omitempty"`
// The name of the EventHub Receiver, must be unique within action group.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The ID for the subscription containing this Event Hub. Default to the subscription ID of the Action Group.
SubscriptionID *string `json:"subscriptionId,omitempty" tf:"subscription_id,omitempty"`
// The Tenant ID for the subscription containing this Event Hub.
TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"`
// Indicates whether to use common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type EventHubReceiverObservation struct {
// The resource ID of the respective Event Hub.
EventHubID *string `json:"eventHubId,omitempty" tf:"event_hub_id,omitempty"`
// The name of the specific Event Hub queue.
EventHubName *string `json:"eventHubName,omitempty" tf:"event_hub_name,omitempty"`
// The namespace name of the Event Hub.
EventHubNamespace *string `json:"eventHubNamespace,omitempty" tf:"event_hub_namespace,omitempty"`
// The name of the EventHub Receiver, must be unique within action group.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The ID for the subscription containing this Event Hub. Default to the subscription ID of the Action Group.
SubscriptionID *string `json:"subscriptionId,omitempty" tf:"subscription_id,omitempty"`
// The Tenant ID for the subscription containing this Event Hub.
TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"`
// Indicates whether to use common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type EventHubReceiverParameters struct {
// The resource ID of the respective Event Hub.
// +kubebuilder:validation:Optional
EventHubID *string `json:"eventHubId,omitempty" tf:"event_hub_id,omitempty"`
// The name of the specific Event Hub queue.
// +kubebuilder:validation:Optional
EventHubName *string `json:"eventHubName,omitempty" tf:"event_hub_name,omitempty"`
// The namespace name of the Event Hub.
// +kubebuilder:validation:Optional
EventHubNamespace *string `json:"eventHubNamespace,omitempty" tf:"event_hub_namespace,omitempty"`
// The name of the EventHub Receiver, must be unique within action group.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// The ID for the subscription containing this Event Hub. Default to the subscription ID of the Action Group.
// +kubebuilder:validation:Optional
SubscriptionID *string `json:"subscriptionId,omitempty" tf:"subscription_id,omitempty"`
// The Tenant ID for the subscription containing this Event Hub.
// +kubebuilder:validation:Optional
TenantID *string `json:"tenantId,omitempty" tf:"tenant_id,omitempty"`
// Indicates whether to use common alert schema.
// +kubebuilder:validation:Optional
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type ItsmReceiverInitParameters struct {
// The unique connection identifier of the ITSM connection.
ConnectionID *string `json:"connectionId,omitempty" tf:"connection_id,omitempty"`
// The name of the ITSM receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The region of the workspace.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// A JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.
TicketConfiguration *string `json:"ticketConfiguration,omitempty" tf:"ticket_configuration,omitempty"`
// The Azure Log Analytics workspace ID where this connection is defined. Format is <subscription id>|<workspace id>, for example 00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000.
WorkspaceID *string `json:"workspaceId,omitempty" tf:"workspace_id,omitempty"`
}
type ItsmReceiverObservation struct {
// The unique connection identifier of the ITSM connection.
ConnectionID *string `json:"connectionId,omitempty" tf:"connection_id,omitempty"`
// The name of the ITSM receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The region of the workspace.
Region *string `json:"region,omitempty" tf:"region,omitempty"`
// A JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.
TicketConfiguration *string `json:"ticketConfiguration,omitempty" tf:"ticket_configuration,omitempty"`
// The Azure Log Analytics workspace ID where this connection is defined. Format is <subscription id>|<workspace id>, for example 00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000.
WorkspaceID *string `json:"workspaceId,omitempty" tf:"workspace_id,omitempty"`
}
type ItsmReceiverParameters struct {
// The unique connection identifier of the ITSM connection.
// +kubebuilder:validation:Optional
ConnectionID *string `json:"connectionId" tf:"connection_id,omitempty"`
// The name of the ITSM receiver.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// The region of the workspace.
// +kubebuilder:validation:Optional
Region *string `json:"region" tf:"region,omitempty"`
// A JSON blob for the configurations of the ITSM action. CreateMultipleWorkItems option will be part of this blob as well.
// +kubebuilder:validation:Optional
TicketConfiguration *string `json:"ticketConfiguration" tf:"ticket_configuration,omitempty"`
// The Azure Log Analytics workspace ID where this connection is defined. Format is <subscription id>|<workspace id>, for example 00000000-0000-0000-0000-000000000000|00000000-0000-0000-0000-000000000000.
// +kubebuilder:validation:Optional
WorkspaceID *string `json:"workspaceId" tf:"workspace_id,omitempty"`
}
type LogicAppReceiverInitParameters struct {
// The callback url where HTTP request sent to.
CallbackURL *string `json:"callbackUrl,omitempty" tf:"callback_url,omitempty"`
// The name of the logic app receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The Azure resource ID of the logic app.
ResourceID *string `json:"resourceId,omitempty" tf:"resource_id,omitempty"`
// Enables or disables the common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type LogicAppReceiverObservation struct {
// The callback url where HTTP request sent to.
CallbackURL *string `json:"callbackUrl,omitempty" tf:"callback_url,omitempty"`
// The name of the logic app receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The Azure resource ID of the logic app.
ResourceID *string `json:"resourceId,omitempty" tf:"resource_id,omitempty"`
// Enables or disables the common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type LogicAppReceiverParameters struct {
// The callback url where HTTP request sent to.
// +kubebuilder:validation:Optional
CallbackURL *string `json:"callbackUrl" tf:"callback_url,omitempty"`
// The name of the logic app receiver.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// The Azure resource ID of the logic app.
// +kubebuilder:validation:Optional
ResourceID *string `json:"resourceId" tf:"resource_id,omitempty"`
// Enables or disables the common alert schema.
// +kubebuilder:validation:Optional
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type MonitorActionGroupInitParameters struct {
// One or more arm_role_receiver blocks as defined below.
ArmRoleReceiver []ArmRoleReceiverInitParameters `json:"armRoleReceiver,omitempty" tf:"arm_role_receiver,omitempty"`
// One or more automation_runbook_receiver blocks as defined below.
AutomationRunBookReceiver []AutomationRunBookReceiverInitParameters `json:"automationRunbookReceiver,omitempty" tf:"automation_runbook_receiver,omitempty"`
// One or more azure_app_push_receiver blocks as defined below.
AzureAppPushReceiver []AzureAppPushReceiverInitParameters `json:"azureAppPushReceiver,omitempty" tf:"azure_app_push_receiver,omitempty"`
// One or more azure_function_receiver blocks as defined below.
AzureFunctionReceiver []AzureFunctionReceiverInitParameters `json:"azureFunctionReceiver,omitempty" tf:"azure_function_receiver,omitempty"`
// One or more email_receiver blocks as defined below.
EmailReceiver []EmailReceiverInitParameters `json:"emailReceiver,omitempty" tf:"email_receiver,omitempty"`
// Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// One or more event_hub_receiver blocks as defined below.
EventHubReceiver []EventHubReceiverInitParameters `json:"eventHubReceiver,omitempty" tf:"event_hub_receiver,omitempty"`
// One or more itsm_receiver blocks as defined below.
ItsmReceiver []ItsmReceiverInitParameters `json:"itsmReceiver,omitempty" tf:"itsm_receiver,omitempty"`
// The Azure Region where the Action Group should exist. Changing this forces a new Action Group to be created. Defaults to global.
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// One or more logic_app_receiver blocks as defined below.
LogicAppReceiver []LogicAppReceiverInitParameters `json:"logicAppReceiver,omitempty" tf:"logic_app_receiver,omitempty"`
// One or more sms_receiver blocks as defined below.
SMSReceiver []SMSReceiverInitParameters `json:"smsReceiver,omitempty" tf:"sms_receiver,omitempty"`
// The short name of the action group. This will be used in SMS messages.
ShortName *string `json:"shortName,omitempty" tf:"short_name,omitempty"`
// A mapping of tags to assign to the resource.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// One or more voice_receiver blocks as defined below.
VoiceReceiver []VoiceReceiverInitParameters `json:"voiceReceiver,omitempty" tf:"voice_receiver,omitempty"`
// One or more webhook_receiver blocks as defined below.
WebhookReceiver []WebhookReceiverInitParameters `json:"webhookReceiver,omitempty" tf:"webhook_receiver,omitempty"`
}
type MonitorActionGroupObservation struct {
// One or more arm_role_receiver blocks as defined below.
ArmRoleReceiver []ArmRoleReceiverObservation `json:"armRoleReceiver,omitempty" tf:"arm_role_receiver,omitempty"`
// One or more automation_runbook_receiver blocks as defined below.
AutomationRunBookReceiver []AutomationRunBookReceiverObservation `json:"automationRunbookReceiver,omitempty" tf:"automation_runbook_receiver,omitempty"`
// One or more azure_app_push_receiver blocks as defined below.
AzureAppPushReceiver []AzureAppPushReceiverObservation `json:"azureAppPushReceiver,omitempty" tf:"azure_app_push_receiver,omitempty"`
// One or more azure_function_receiver blocks as defined below.
AzureFunctionReceiver []AzureFunctionReceiverObservation `json:"azureFunctionReceiver,omitempty" tf:"azure_function_receiver,omitempty"`
// One or more email_receiver blocks as defined below.
EmailReceiver []EmailReceiverObservation `json:"emailReceiver,omitempty" tf:"email_receiver,omitempty"`
// Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// One or more event_hub_receiver blocks as defined below.
EventHubReceiver []EventHubReceiverObservation `json:"eventHubReceiver,omitempty" tf:"event_hub_receiver,omitempty"`
// The ID of the Action Group.
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// One or more itsm_receiver blocks as defined below.
ItsmReceiver []ItsmReceiverObservation `json:"itsmReceiver,omitempty" tf:"itsm_receiver,omitempty"`
// The Azure Region where the Action Group should exist. Changing this forces a new Action Group to be created. Defaults to global.
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// One or more logic_app_receiver blocks as defined below.
LogicAppReceiver []LogicAppReceiverObservation `json:"logicAppReceiver,omitempty" tf:"logic_app_receiver,omitempty"`
// The name of the resource group in which to create the Action Group instance. Changing this forces a new resource to be created.
ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`
// One or more sms_receiver blocks as defined below.
SMSReceiver []SMSReceiverObservation `json:"smsReceiver,omitempty" tf:"sms_receiver,omitempty"`
// The short name of the action group. This will be used in SMS messages.
ShortName *string `json:"shortName,omitempty" tf:"short_name,omitempty"`
// A mapping of tags to assign to the resource.
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// One or more voice_receiver blocks as defined below.
VoiceReceiver []VoiceReceiverObservation `json:"voiceReceiver,omitempty" tf:"voice_receiver,omitempty"`
// One or more webhook_receiver blocks as defined below.
WebhookReceiver []WebhookReceiverObservation `json:"webhookReceiver,omitempty" tf:"webhook_receiver,omitempty"`
}
type MonitorActionGroupParameters struct {
// One or more arm_role_receiver blocks as defined below.
// +kubebuilder:validation:Optional
ArmRoleReceiver []ArmRoleReceiverParameters `json:"armRoleReceiver,omitempty" tf:"arm_role_receiver,omitempty"`
// One or more automation_runbook_receiver blocks as defined below.
// +kubebuilder:validation:Optional
AutomationRunBookReceiver []AutomationRunBookReceiverParameters `json:"automationRunbookReceiver,omitempty" tf:"automation_runbook_receiver,omitempty"`
// One or more azure_app_push_receiver blocks as defined below.
// +kubebuilder:validation:Optional
AzureAppPushReceiver []AzureAppPushReceiverParameters `json:"azureAppPushReceiver,omitempty" tf:"azure_app_push_receiver,omitempty"`
// One or more azure_function_receiver blocks as defined below.
// +kubebuilder:validation:Optional
AzureFunctionReceiver []AzureFunctionReceiverParameters `json:"azureFunctionReceiver,omitempty" tf:"azure_function_receiver,omitempty"`
// One or more email_receiver blocks as defined below.
// +kubebuilder:validation:Optional
EmailReceiver []EmailReceiverParameters `json:"emailReceiver,omitempty" tf:"email_receiver,omitempty"`
// Whether this action group is enabled. If an action group is not enabled, then none of its receivers will receive communications. Defaults to true.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// One or more event_hub_receiver blocks as defined below.
// +kubebuilder:validation:Optional
EventHubReceiver []EventHubReceiverParameters `json:"eventHubReceiver,omitempty" tf:"event_hub_receiver,omitempty"`
// One or more itsm_receiver blocks as defined below.
// +kubebuilder:validation:Optional
ItsmReceiver []ItsmReceiverParameters `json:"itsmReceiver,omitempty" tf:"itsm_receiver,omitempty"`
// The Azure Region where the Action Group should exist. Changing this forces a new Action Group to be created. Defaults to global.
// +kubebuilder:validation:Optional
Location *string `json:"location,omitempty" tf:"location,omitempty"`
// One or more logic_app_receiver blocks as defined below.
// +kubebuilder:validation:Optional
LogicAppReceiver []LogicAppReceiverParameters `json:"logicAppReceiver,omitempty" tf:"logic_app_receiver,omitempty"`
// The name of the resource group in which to create the Action Group instance. Changing this forces a new resource to be created.
// +crossplane:generate:reference:type=github.com/upbound/provider-azure/apis/azure/v1beta1.ResourceGroup
// +kubebuilder:validation:Optional
ResourceGroupName *string `json:"resourceGroupName,omitempty" tf:"resource_group_name,omitempty"`
// Reference to a ResourceGroup in azure to populate resourceGroupName.
// +kubebuilder:validation:Optional
ResourceGroupNameRef *v1.Reference `json:"resourceGroupNameRef,omitempty" tf:"-"`
// Selector for a ResourceGroup in azure to populate resourceGroupName.
// +kubebuilder:validation:Optional
ResourceGroupNameSelector *v1.Selector `json:"resourceGroupNameSelector,omitempty" tf:"-"`
// One or more sms_receiver blocks as defined below.
// +kubebuilder:validation:Optional
SMSReceiver []SMSReceiverParameters `json:"smsReceiver,omitempty" tf:"sms_receiver,omitempty"`
// The short name of the action group. This will be used in SMS messages.
// +kubebuilder:validation:Optional
ShortName *string `json:"shortName,omitempty" tf:"short_name,omitempty"`
// A mapping of tags to assign to the resource.
// +kubebuilder:validation:Optional
// +mapType=granular
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// One or more voice_receiver blocks as defined below.
// +kubebuilder:validation:Optional
VoiceReceiver []VoiceReceiverParameters `json:"voiceReceiver,omitempty" tf:"voice_receiver,omitempty"`
// One or more webhook_receiver blocks as defined below.
// +kubebuilder:validation:Optional
WebhookReceiver []WebhookReceiverParameters `json:"webhookReceiver,omitempty" tf:"webhook_receiver,omitempty"`
}
type SMSReceiverInitParameters struct {
// The country code of the SMS receiver.
CountryCode *string `json:"countryCode,omitempty" tf:"country_code,omitempty"`
// The name of the SMS receiver. Names must be unique (case-insensitive) across all receivers within an action group.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The phone number of the SMS receiver.
PhoneNumber *string `json:"phoneNumber,omitempty" tf:"phone_number,omitempty"`
}
type SMSReceiverObservation struct {
// The country code of the SMS receiver.
CountryCode *string `json:"countryCode,omitempty" tf:"country_code,omitempty"`
// The name of the SMS receiver. Names must be unique (case-insensitive) across all receivers within an action group.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The phone number of the SMS receiver.
PhoneNumber *string `json:"phoneNumber,omitempty" tf:"phone_number,omitempty"`
}
type SMSReceiverParameters struct {
// The country code of the SMS receiver.
// +kubebuilder:validation:Optional
CountryCode *string `json:"countryCode" tf:"country_code,omitempty"`
// The name of the SMS receiver. Names must be unique (case-insensitive) across all receivers within an action group.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// The phone number of the SMS receiver.
// +kubebuilder:validation:Optional
PhoneNumber *string `json:"phoneNumber" tf:"phone_number,omitempty"`
}
type VoiceReceiverInitParameters struct {
// The country code of the voice receiver.
CountryCode *string `json:"countryCode,omitempty" tf:"country_code,omitempty"`
// The name of the voice receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The phone number of the voice receiver.
PhoneNumber *string `json:"phoneNumber,omitempty" tf:"phone_number,omitempty"`
}
type VoiceReceiverObservation struct {
// The country code of the voice receiver.
CountryCode *string `json:"countryCode,omitempty" tf:"country_code,omitempty"`
// The name of the voice receiver.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The phone number of the voice receiver.
PhoneNumber *string `json:"phoneNumber,omitempty" tf:"phone_number,omitempty"`
}
type VoiceReceiverParameters struct {
// The country code of the voice receiver.
// +kubebuilder:validation:Optional
CountryCode *string `json:"countryCode" tf:"country_code,omitempty"`
// The name of the voice receiver.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// The phone number of the voice receiver.
// +kubebuilder:validation:Optional
PhoneNumber *string `json:"phoneNumber" tf:"phone_number,omitempty"`
}
type WebhookReceiverInitParameters struct {
// The aad_auth block as defined below.
AADAuth []AADAuthInitParameters `json:"aadAuth,omitempty" tf:"aad_auth,omitempty"`
// The name of the webhook receiver. Names must be unique (case-insensitive) across all receivers within an action group.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The URI where webhooks should be sent.
ServiceURI *string `json:"serviceUri,omitempty" tf:"service_uri,omitempty"`
// Enables or disables the common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type WebhookReceiverObservation struct {
// The aad_auth block as defined below.
AADAuth []AADAuthObservation `json:"aadAuth,omitempty" tf:"aad_auth,omitempty"`
// The name of the webhook receiver. Names must be unique (case-insensitive) across all receivers within an action group.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The URI where webhooks should be sent.
ServiceURI *string `json:"serviceUri,omitempty" tf:"service_uri,omitempty"`
// Enables or disables the common alert schema.
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
type WebhookReceiverParameters struct {
// The aad_auth block as defined below.
// +kubebuilder:validation:Optional
AADAuth []AADAuthParameters `json:"aadAuth,omitempty" tf:"aad_auth,omitempty"`
// The name of the webhook receiver. Names must be unique (case-insensitive) across all receivers within an action group.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// The URI where webhooks should be sent.
// +kubebuilder:validation:Optional
ServiceURI *string `json:"serviceUri" tf:"service_uri,omitempty"`
// Enables or disables the common alert schema.
// +kubebuilder:validation:Optional
UseCommonAlertSchema *bool `json:"useCommonAlertSchema,omitempty" tf:"use_common_alert_schema,omitempty"`
}
// MonitorActionGroupSpec defines the desired state of MonitorActionGroup
type MonitorActionGroupSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider MonitorActionGroupParameters `json:"forProvider"`
// THIS IS A BETA FIELD. It will be honored
// unless the Management Policies feature flag is disabled.
// InitProvider holds the same fields as ForProvider, with the exception
// of Identifier and other resource reference fields. The fields that are
// in InitProvider are merged into ForProvider when the resource is created.
// The same fields are also added to the terraform ignore_changes hook, to
// avoid updating them after creation. This is useful for fields that are
// required on creation, but we do not desire to update them after creation,
// for example because of an external controller is managing them, like an
// autoscaler.
InitProvider MonitorActionGroupInitParameters `json:"initProvider,omitempty"`
}
// MonitorActionGroupStatus defines the observed state of MonitorActionGroup.
type MonitorActionGroupStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider MonitorActionGroupObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:storageversion
// MonitorActionGroup is the Schema for the MonitorActionGroups API. Manages an Action Group within Azure Monitor
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,azure}
type MonitorActionGroup struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.shortName) || (has(self.initProvider) && has(self.initProvider.shortName))",message="spec.forProvider.shortName is a required parameter"
Spec MonitorActionGroupSpec `json:"spec"`
Status MonitorActionGroupStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// MonitorActionGroupList contains a list of MonitorActionGroups
type MonitorActionGroupList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MonitorActionGroup `json:"items"`
}
// Repository type metadata.
var (
MonitorActionGroup_Kind = "MonitorActionGroup"
MonitorActionGroup_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: MonitorActionGroup_Kind}.String()
MonitorActionGroup_KindAPIVersion = MonitorActionGroup_Kind + "." + CRDGroupVersion.String()
MonitorActionGroup_GroupVersionKind = CRDGroupVersion.WithKind(MonitorActionGroup_Kind)
)
func init() {
SchemeBuilder.Register(&MonitorActionGroup{}, &MonitorActionGroupList{})
}