generated from crossplane/upjet-provider-template
/
zz_virtualhost_types.go
executable file
·1220 lines (878 loc) · 46.2 KB
/
zz_virtualhost_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
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// SPDX-FileCopyrightText: 2023 The Crossplane Authors <https://crossplane.io>
//
// SPDX-License-Identifier: Apache-2.0
/*
Copyright 2022 Upbound Inc.
*/
// Code generated by upjet. DO NOT EDIT.
package v1alpha1
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 AndPrincipalsHeaderValueInitParameters struct {
// Match exactly.
Exact *string `json:"exact,omitempty" tf:"exact,omitempty"`
// Match prefix.
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Match regex.
Regex *string `json:"regex,omitempty" tf:"regex,omitempty"`
}
type AndPrincipalsHeaderValueObservation struct {
// Match exactly.
Exact *string `json:"exact,omitempty" tf:"exact,omitempty"`
// Match prefix.
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Match regex.
Regex *string `json:"regex,omitempty" tf:"regex,omitempty"`
}
type AndPrincipalsHeaderValueParameters struct {
// Match exactly.
// +kubebuilder:validation:Optional
Exact *string `json:"exact,omitempty" tf:"exact,omitempty"`
// Match prefix.
// +kubebuilder:validation:Optional
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Match regex.
// +kubebuilder:validation:Optional
Regex *string `json:"regex,omitempty" tf:"regex,omitempty"`
}
type DirectResponseActionInitParameters struct {
// Response body text.
Body *string `json:"body,omitempty" tf:"body,omitempty"`
// The status of the response. Supported values are: ok, invalid_argumet, not_found,
// permission_denied, unauthenticated, unimplemented, internal, unavailable.
Status *float64 `json:"status,omitempty" tf:"status,omitempty"`
}
type DirectResponseActionObservation struct {
// Response body text.
Body *string `json:"body,omitempty" tf:"body,omitempty"`
// The status of the response. Supported values are: ok, invalid_argumet, not_found,
// permission_denied, unauthenticated, unimplemented, internal, unavailable.
Status *float64 `json:"status,omitempty" tf:"status,omitempty"`
}
type DirectResponseActionParameters struct {
// Response body text.
// +kubebuilder:validation:Optional
Body *string `json:"body,omitempty" tf:"body,omitempty"`
// The status of the response. Supported values are: ok, invalid_argumet, not_found,
// permission_denied, unauthenticated, unimplemented, internal, unavailable.
// +kubebuilder:validation:Optional
Status *float64 `json:"status,omitempty" tf:"status,omitempty"`
}
type FqmnInitParameters struct {
// Match exactly.
Exact *string `json:"exact,omitempty" tf:"exact,omitempty"`
// Match prefix.
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Match regex.
Regex *string `json:"regex,omitempty" tf:"regex,omitempty"`
}
type FqmnObservation struct {
// Match exactly.
Exact *string `json:"exact,omitempty" tf:"exact,omitempty"`
// Match prefix.
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Match regex.
Regex *string `json:"regex,omitempty" tf:"regex,omitempty"`
}
type FqmnParameters struct {
// Match exactly.
// +kubebuilder:validation:Optional
Exact *string `json:"exact,omitempty" tf:"exact,omitempty"`
// Match prefix.
// +kubebuilder:validation:Optional
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Match regex.
// +kubebuilder:validation:Optional
Regex *string `json:"regex,omitempty" tf:"regex,omitempty"`
}
type GRPCMatchInitParameters struct {
// If not set, all services/methods are assumed. The structure is documented below.
Fqmn []FqmnInitParameters `json:"fqmn,omitempty" tf:"fqmn,omitempty"`
}
type GRPCMatchObservation struct {
// If not set, all services/methods are assumed. The structure is documented below.
Fqmn []FqmnObservation `json:"fqmn,omitempty" tf:"fqmn,omitempty"`
}
type GRPCMatchParameters struct {
// If not set, all services/methods are assumed. The structure is documented below.
// +kubebuilder:validation:Optional
Fqmn []FqmnParameters `json:"fqmn,omitempty" tf:"fqmn,omitempty"`
}
type GRPCRouteActionInitParameters struct {
// If set, will automatically rewrite host.
AutoHostRewrite *bool `json:"autoHostRewrite,omitempty" tf:"auto_host_rewrite,omitempty"`
// Backend group to route requests.
// +crossplane:generate:reference:type=BackendGroup
BackendGroupID *string `json:"backendGroupId,omitempty" tf:"backend_group_id,omitempty"`
// Reference to a BackendGroup to populate backendGroupId.
// +kubebuilder:validation:Optional
BackendGroupIDRef *v1.Reference `json:"backendGroupIdRef,omitempty" tf:"-"`
// Selector for a BackendGroup to populate backendGroupId.
// +kubebuilder:validation:Optional
BackendGroupIDSelector *v1.Selector `json:"backendGroupIdSelector,omitempty" tf:"-"`
// Host rewrite specifier.
HostRewrite *string `json:"hostRewrite,omitempty" tf:"host_rewrite,omitempty"`
// Specifies the idle timeout (time without any data transfer for the active request) for the
// route. It is useful for streaming scenarios (i.e. long-polling, server-sent events) - one should set idle_timeout to
// something meaningful and timeout to the maximum time the stream is allowed to be alive. If not specified, there is no
// per-route idle timeout.
IdleTimeout *string `json:"idleTimeout,omitempty" tf:"idle_timeout,omitempty"`
// Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is
// 60 seconds.
MaxTimeout *string `json:"maxTimeout,omitempty" tf:"max_timeout,omitempty"`
}
type GRPCRouteActionObservation struct {
// If set, will automatically rewrite host.
AutoHostRewrite *bool `json:"autoHostRewrite,omitempty" tf:"auto_host_rewrite,omitempty"`
// Backend group to route requests.
BackendGroupID *string `json:"backendGroupId,omitempty" tf:"backend_group_id,omitempty"`
// Host rewrite specifier.
HostRewrite *string `json:"hostRewrite,omitempty" tf:"host_rewrite,omitempty"`
// Specifies the idle timeout (time without any data transfer for the active request) for the
// route. It is useful for streaming scenarios (i.e. long-polling, server-sent events) - one should set idle_timeout to
// something meaningful and timeout to the maximum time the stream is allowed to be alive. If not specified, there is no
// per-route idle timeout.
IdleTimeout *string `json:"idleTimeout,omitempty" tf:"idle_timeout,omitempty"`
// Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is
// 60 seconds.
MaxTimeout *string `json:"maxTimeout,omitempty" tf:"max_timeout,omitempty"`
}
type GRPCRouteActionParameters struct {
// If set, will automatically rewrite host.
// +kubebuilder:validation:Optional
AutoHostRewrite *bool `json:"autoHostRewrite,omitempty" tf:"auto_host_rewrite,omitempty"`
// Backend group to route requests.
// +crossplane:generate:reference:type=BackendGroup
// +kubebuilder:validation:Optional
BackendGroupID *string `json:"backendGroupId,omitempty" tf:"backend_group_id,omitempty"`
// Reference to a BackendGroup to populate backendGroupId.
// +kubebuilder:validation:Optional
BackendGroupIDRef *v1.Reference `json:"backendGroupIdRef,omitempty" tf:"-"`
// Selector for a BackendGroup to populate backendGroupId.
// +kubebuilder:validation:Optional
BackendGroupIDSelector *v1.Selector `json:"backendGroupIdSelector,omitempty" tf:"-"`
// Host rewrite specifier.
// +kubebuilder:validation:Optional
HostRewrite *string `json:"hostRewrite,omitempty" tf:"host_rewrite,omitempty"`
// Specifies the idle timeout (time without any data transfer for the active request) for the
// route. It is useful for streaming scenarios (i.e. long-polling, server-sent events) - one should set idle_timeout to
// something meaningful and timeout to the maximum time the stream is allowed to be alive. If not specified, there is no
// per-route idle timeout.
// +kubebuilder:validation:Optional
IdleTimeout *string `json:"idleTimeout,omitempty" tf:"idle_timeout,omitempty"`
// Lower timeout may be specified by the client (using grpc-timeout header). If not set, default is
// 60 seconds.
// +kubebuilder:validation:Optional
MaxTimeout *string `json:"maxTimeout,omitempty" tf:"max_timeout,omitempty"`
}
type GRPCRouteInitParameters struct {
// Checks "/" prefix by default. The structure is documented below.
GRPCMatch []GRPCMatchInitParameters `json:"grpcMatch,omitempty" tf:"grpc_match,omitempty"`
// GRPC route action resource. The structure is documented below.
GRPCRouteAction []GRPCRouteActionInitParameters `json:"grpcRouteAction,omitempty" tf:"grpc_route_action,omitempty"`
// GRPC status response action resource. The structure is documented below.
GRPCStatusResponseAction []GRPCStatusResponseActionInitParameters `json:"grpcStatusResponseAction,omitempty" tf:"grpc_status_response_action,omitempty"`
}
type GRPCRouteObservation struct {
// Checks "/" prefix by default. The structure is documented below.
GRPCMatch []GRPCMatchObservation `json:"grpcMatch,omitempty" tf:"grpc_match,omitempty"`
// GRPC route action resource. The structure is documented below.
GRPCRouteAction []GRPCRouteActionObservation `json:"grpcRouteAction,omitempty" tf:"grpc_route_action,omitempty"`
// GRPC status response action resource. The structure is documented below.
GRPCStatusResponseAction []GRPCStatusResponseActionObservation `json:"grpcStatusResponseAction,omitempty" tf:"grpc_status_response_action,omitempty"`
}
type GRPCRouteParameters struct {
// Checks "/" prefix by default. The structure is documented below.
// +kubebuilder:validation:Optional
GRPCMatch []GRPCMatchParameters `json:"grpcMatch,omitempty" tf:"grpc_match,omitempty"`
// GRPC route action resource. The structure is documented below.
// +kubebuilder:validation:Optional
GRPCRouteAction []GRPCRouteActionParameters `json:"grpcRouteAction,omitempty" tf:"grpc_route_action,omitempty"`
// GRPC status response action resource. The structure is documented below.
// +kubebuilder:validation:Optional
GRPCStatusResponseAction []GRPCStatusResponseActionParameters `json:"grpcStatusResponseAction,omitempty" tf:"grpc_status_response_action,omitempty"`
}
type GRPCStatusResponseActionInitParameters struct {
// The status of the response. Supported values are: ok, invalid_argumet, not_found,
// permission_denied, unauthenticated, unimplemented, internal, unavailable.
Status *string `json:"status,omitempty" tf:"status,omitempty"`
}
type GRPCStatusResponseActionObservation struct {
// The status of the response. Supported values are: ok, invalid_argumet, not_found,
// permission_denied, unauthenticated, unimplemented, internal, unavailable.
Status *string `json:"status,omitempty" tf:"status,omitempty"`
}
type GRPCStatusResponseActionParameters struct {
// The status of the response. Supported values are: ok, invalid_argumet, not_found,
// permission_denied, unauthenticated, unimplemented, internal, unavailable.
// +kubebuilder:validation:Optional
Status *string `json:"status,omitempty" tf:"status,omitempty"`
}
type HTTPMatchInitParameters struct {
// List of methods(strings).
// +listType=set
HTTPMethod []*string `json:"httpMethod,omitempty" tf:"http_method,omitempty"`
// If not set, '/' is assumed. The structure is documented below.
Path []PathInitParameters `json:"path,omitempty" tf:"path,omitempty"`
}
type HTTPMatchObservation struct {
// List of methods(strings).
// +listType=set
HTTPMethod []*string `json:"httpMethod,omitempty" tf:"http_method,omitempty"`
// If not set, '/' is assumed. The structure is documented below.
Path []PathObservation `json:"path,omitempty" tf:"path,omitempty"`
}
type HTTPMatchParameters struct {
// List of methods(strings).
// +kubebuilder:validation:Optional
// +listType=set
HTTPMethod []*string `json:"httpMethod,omitempty" tf:"http_method,omitempty"`
// If not set, '/' is assumed. The structure is documented below.
// +kubebuilder:validation:Optional
Path []PathParameters `json:"path,omitempty" tf:"path,omitempty"`
}
type HTTPRouteActionInitParameters struct {
// If set, will automatically rewrite host.
AutoHostRewrite *bool `json:"autoHostRewrite,omitempty" tf:"auto_host_rewrite,omitempty"`
// Backend group to route requests.
// +crossplane:generate:reference:type=BackendGroup
BackendGroupID *string `json:"backendGroupId,omitempty" tf:"backend_group_id,omitempty"`
// Reference to a BackendGroup to populate backendGroupId.
// +kubebuilder:validation:Optional
BackendGroupIDRef *v1.Reference `json:"backendGroupIdRef,omitempty" tf:"-"`
// Selector for a BackendGroup to populate backendGroupId.
// +kubebuilder:validation:Optional
BackendGroupIDSelector *v1.Selector `json:"backendGroupIdSelector,omitempty" tf:"-"`
// Host rewrite specifier.
HostRewrite *string `json:"hostRewrite,omitempty" tf:"host_rewrite,omitempty"`
// Specifies the idle timeout (time without any data transfer for the active request) for the
// route. It is useful for streaming scenarios (i.e. long-polling, server-sent events) - one should set idle_timeout to
// something meaningful and timeout to the maximum time the stream is allowed to be alive. If not specified, there is no
// per-route idle timeout.
IdleTimeout *string `json:"idleTimeout,omitempty" tf:"idle_timeout,omitempty"`
// If not empty, matched path prefix will be replaced by this value.
PrefixRewrite *string `json:"prefixRewrite,omitempty" tf:"prefix_rewrite,omitempty"`
// Specifies the request timeout (overall time request processing is allowed to take) for the
// route. If not set, default is 60 seconds.
Timeout *string `json:"timeout,omitempty" tf:"timeout,omitempty"`
// List of upgrade types. Only specified upgrade types will be allowed. For example,
// "websocket".
// +listType=set
UpgradeTypes []*string `json:"upgradeTypes,omitempty" tf:"upgrade_types,omitempty"`
}
type HTTPRouteActionObservation struct {
// If set, will automatically rewrite host.
AutoHostRewrite *bool `json:"autoHostRewrite,omitempty" tf:"auto_host_rewrite,omitempty"`
// Backend group to route requests.
BackendGroupID *string `json:"backendGroupId,omitempty" tf:"backend_group_id,omitempty"`
// Host rewrite specifier.
HostRewrite *string `json:"hostRewrite,omitempty" tf:"host_rewrite,omitempty"`
// Specifies the idle timeout (time without any data transfer for the active request) for the
// route. It is useful for streaming scenarios (i.e. long-polling, server-sent events) - one should set idle_timeout to
// something meaningful and timeout to the maximum time the stream is allowed to be alive. If not specified, there is no
// per-route idle timeout.
IdleTimeout *string `json:"idleTimeout,omitempty" tf:"idle_timeout,omitempty"`
// If not empty, matched path prefix will be replaced by this value.
PrefixRewrite *string `json:"prefixRewrite,omitempty" tf:"prefix_rewrite,omitempty"`
// Specifies the request timeout (overall time request processing is allowed to take) for the
// route. If not set, default is 60 seconds.
Timeout *string `json:"timeout,omitempty" tf:"timeout,omitempty"`
// List of upgrade types. Only specified upgrade types will be allowed. For example,
// "websocket".
// +listType=set
UpgradeTypes []*string `json:"upgradeTypes,omitempty" tf:"upgrade_types,omitempty"`
}
type HTTPRouteActionParameters struct {
// If set, will automatically rewrite host.
// +kubebuilder:validation:Optional
AutoHostRewrite *bool `json:"autoHostRewrite,omitempty" tf:"auto_host_rewrite,omitempty"`
// Backend group to route requests.
// +crossplane:generate:reference:type=BackendGroup
// +kubebuilder:validation:Optional
BackendGroupID *string `json:"backendGroupId,omitempty" tf:"backend_group_id,omitempty"`
// Reference to a BackendGroup to populate backendGroupId.
// +kubebuilder:validation:Optional
BackendGroupIDRef *v1.Reference `json:"backendGroupIdRef,omitempty" tf:"-"`
// Selector for a BackendGroup to populate backendGroupId.
// +kubebuilder:validation:Optional
BackendGroupIDSelector *v1.Selector `json:"backendGroupIdSelector,omitempty" tf:"-"`
// Host rewrite specifier.
// +kubebuilder:validation:Optional
HostRewrite *string `json:"hostRewrite,omitempty" tf:"host_rewrite,omitempty"`
// Specifies the idle timeout (time without any data transfer for the active request) for the
// route. It is useful for streaming scenarios (i.e. long-polling, server-sent events) - one should set idle_timeout to
// something meaningful and timeout to the maximum time the stream is allowed to be alive. If not specified, there is no
// per-route idle timeout.
// +kubebuilder:validation:Optional
IdleTimeout *string `json:"idleTimeout,omitempty" tf:"idle_timeout,omitempty"`
// If not empty, matched path prefix will be replaced by this value.
// +kubebuilder:validation:Optional
PrefixRewrite *string `json:"prefixRewrite,omitempty" tf:"prefix_rewrite,omitempty"`
// Specifies the request timeout (overall time request processing is allowed to take) for the
// route. If not set, default is 60 seconds.
// +kubebuilder:validation:Optional
Timeout *string `json:"timeout,omitempty" tf:"timeout,omitempty"`
// List of upgrade types. Only specified upgrade types will be allowed. For example,
// "websocket".
// +kubebuilder:validation:Optional
// +listType=set
UpgradeTypes []*string `json:"upgradeTypes,omitempty" tf:"upgrade_types,omitempty"`
}
type HTTPRouteInitParameters struct {
// Direct response action resource. The structure is documented below.
DirectResponseAction []DirectResponseActionInitParameters `json:"directResponseAction,omitempty" tf:"direct_response_action,omitempty"`
// Checks "/" prefix by default. The structure is documented below.
HTTPMatch []HTTPMatchInitParameters `json:"httpMatch,omitempty" tf:"http_match,omitempty"`
// HTTP route action resource. The structure is documented below.
HTTPRouteAction []HTTPRouteActionInitParameters `json:"httpRouteAction,omitempty" tf:"http_route_action,omitempty"`
// Redirect action resource. The structure is documented below.
RedirectAction []RedirectActionInitParameters `json:"redirectAction,omitempty" tf:"redirect_action,omitempty"`
}
type HTTPRouteObservation struct {
// Direct response action resource. The structure is documented below.
DirectResponseAction []DirectResponseActionObservation `json:"directResponseAction,omitempty" tf:"direct_response_action,omitempty"`
// Checks "/" prefix by default. The structure is documented below.
HTTPMatch []HTTPMatchObservation `json:"httpMatch,omitempty" tf:"http_match,omitempty"`
// HTTP route action resource. The structure is documented below.
HTTPRouteAction []HTTPRouteActionObservation `json:"httpRouteAction,omitempty" tf:"http_route_action,omitempty"`
// Redirect action resource. The structure is documented below.
RedirectAction []RedirectActionObservation `json:"redirectAction,omitempty" tf:"redirect_action,omitempty"`
}
type HTTPRouteParameters struct {
// Direct response action resource. The structure is documented below.
// +kubebuilder:validation:Optional
DirectResponseAction []DirectResponseActionParameters `json:"directResponseAction,omitempty" tf:"direct_response_action,omitempty"`
// Checks "/" prefix by default. The structure is documented below.
// +kubebuilder:validation:Optional
HTTPMatch []HTTPMatchParameters `json:"httpMatch,omitempty" tf:"http_match,omitempty"`
// HTTP route action resource. The structure is documented below.
// +kubebuilder:validation:Optional
HTTPRouteAction []HTTPRouteActionParameters `json:"httpRouteAction,omitempty" tf:"http_route_action,omitempty"`
// Redirect action resource. The structure is documented below.
// +kubebuilder:validation:Optional
RedirectAction []RedirectActionParameters `json:"redirectAction,omitempty" tf:"redirect_action,omitempty"`
}
type HeaderValueInitParameters struct {
// Match exactly.
Exact *string `json:"exact,omitempty" tf:"exact,omitempty"`
// Match prefix.
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Match regex.
Regex *string `json:"regex,omitempty" tf:"regex,omitempty"`
}
type HeaderValueObservation struct {
// Match exactly.
Exact *string `json:"exact,omitempty" tf:"exact,omitempty"`
// Match prefix.
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Match regex.
Regex *string `json:"regex,omitempty" tf:"regex,omitempty"`
}
type HeaderValueParameters struct {
// Match exactly.
// +kubebuilder:validation:Optional
Exact *string `json:"exact,omitempty" tf:"exact,omitempty"`
// Match prefix.
// +kubebuilder:validation:Optional
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Match regex.
// +kubebuilder:validation:Optional
Regex *string `json:"regex,omitempty" tf:"regex,omitempty"`
}
type ModifyRequestHeadersInitParameters struct {
// Append string to the header value.
Append *string `json:"append,omitempty" tf:"append,omitempty"`
// name of the header to modify.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// If set, remove the header.
Remove *bool `json:"remove,omitempty" tf:"remove,omitempty"`
// New value for a header. Header values support the following
// formatters.
Replace *string `json:"replace,omitempty" tf:"replace,omitempty"`
}
type ModifyRequestHeadersObservation struct {
// Append string to the header value.
Append *string `json:"append,omitempty" tf:"append,omitempty"`
// name of the header to modify.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// If set, remove the header.
Remove *bool `json:"remove,omitempty" tf:"remove,omitempty"`
// New value for a header. Header values support the following
// formatters.
Replace *string `json:"replace,omitempty" tf:"replace,omitempty"`
}
type ModifyRequestHeadersParameters struct {
// Append string to the header value.
// +kubebuilder:validation:Optional
Append *string `json:"append,omitempty" tf:"append,omitempty"`
// name of the header to modify.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// If set, remove the header.
// +kubebuilder:validation:Optional
Remove *bool `json:"remove,omitempty" tf:"remove,omitempty"`
// New value for a header. Header values support the following
// formatters.
// +kubebuilder:validation:Optional
Replace *string `json:"replace,omitempty" tf:"replace,omitempty"`
}
type ModifyResponseHeadersInitParameters struct {
// Append string to the header value.
Append *string `json:"append,omitempty" tf:"append,omitempty"`
// name of the route.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// If set, remove the header.
Remove *bool `json:"remove,omitempty" tf:"remove,omitempty"`
// New value for a header. Header values support the following
// formatters.
Replace *string `json:"replace,omitempty" tf:"replace,omitempty"`
}
type ModifyResponseHeadersObservation struct {
// Append string to the header value.
Append *string `json:"append,omitempty" tf:"append,omitempty"`
// name of the route.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// If set, remove the header.
Remove *bool `json:"remove,omitempty" tf:"remove,omitempty"`
// New value for a header. Header values support the following
// formatters.
Replace *string `json:"replace,omitempty" tf:"replace,omitempty"`
}
type ModifyResponseHeadersParameters struct {
// Append string to the header value.
// +kubebuilder:validation:Optional
Append *string `json:"append,omitempty" tf:"append,omitempty"`
// name of the route.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// If set, remove the header.
// +kubebuilder:validation:Optional
Remove *bool `json:"remove,omitempty" tf:"remove,omitempty"`
// New value for a header. Header values support the following
// formatters.
// +kubebuilder:validation:Optional
Replace *string `json:"replace,omitempty" tf:"replace,omitempty"`
}
type PathInitParameters struct {
// Match exactly.
Exact *string `json:"exact,omitempty" tf:"exact,omitempty"`
// Match prefix.
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Match regex.
Regex *string `json:"regex,omitempty" tf:"regex,omitempty"`
}
type PathObservation struct {
// Match exactly.
Exact *string `json:"exact,omitempty" tf:"exact,omitempty"`
// Match prefix.
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Match regex.
Regex *string `json:"regex,omitempty" tf:"regex,omitempty"`
}
type PathParameters struct {
// Match exactly.
// +kubebuilder:validation:Optional
Exact *string `json:"exact,omitempty" tf:"exact,omitempty"`
// Match prefix.
// +kubebuilder:validation:Optional
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
// Match regex.
// +kubebuilder:validation:Optional
Regex *string `json:"regex,omitempty" tf:"regex,omitempty"`
}
type PrincipalsAndPrincipalsHeaderInitParameters struct {
// name of the route.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
Value []HeaderValueInitParameters `json:"value,omitempty" tf:"value,omitempty"`
}
type PrincipalsAndPrincipalsHeaderObservation struct {
// name of the route.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
Value []HeaderValueObservation `json:"value,omitempty" tf:"value,omitempty"`
}
type PrincipalsAndPrincipalsHeaderParameters struct {
// name of the route.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// +kubebuilder:validation:Optional
Value []HeaderValueParameters `json:"value,omitempty" tf:"value,omitempty"`
}
type PrincipalsAndPrincipalsInitParameters struct {
Any *bool `json:"any,omitempty" tf:"any,omitempty"`
Header []PrincipalsAndPrincipalsHeaderInitParameters `json:"header,omitempty" tf:"header,omitempty"`
RemoteIP *string `json:"remoteIp,omitempty" tf:"remote_ip,omitempty"`
}
type PrincipalsAndPrincipalsObservation struct {
Any *bool `json:"any,omitempty" tf:"any,omitempty"`
Header []PrincipalsAndPrincipalsHeaderObservation `json:"header,omitempty" tf:"header,omitempty"`
RemoteIP *string `json:"remoteIp,omitempty" tf:"remote_ip,omitempty"`
}
type PrincipalsAndPrincipalsParameters struct {
// +kubebuilder:validation:Optional
Any *bool `json:"any,omitempty" tf:"any,omitempty"`
// +kubebuilder:validation:Optional
Header []PrincipalsAndPrincipalsHeaderParameters `json:"header,omitempty" tf:"header,omitempty"`
// +kubebuilder:validation:Optional
RemoteIP *string `json:"remoteIp,omitempty" tf:"remote_ip,omitempty"`
}
type RbacPrincipalsAndPrincipalsHeaderInitParameters struct {
// name of the route.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
Value []AndPrincipalsHeaderValueInitParameters `json:"value,omitempty" tf:"value,omitempty"`
}
type RbacPrincipalsAndPrincipalsHeaderObservation struct {
// name of the route.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
Value []AndPrincipalsHeaderValueObservation `json:"value,omitempty" tf:"value,omitempty"`
}
type RbacPrincipalsAndPrincipalsHeaderParameters struct {
// name of the route.
// +kubebuilder:validation:Optional
Name *string `json:"name" tf:"name,omitempty"`
// +kubebuilder:validation:Optional
Value []AndPrincipalsHeaderValueParameters `json:"value,omitempty" tf:"value,omitempty"`
}
type RbacPrincipalsAndPrincipalsInitParameters struct {
Any *bool `json:"any,omitempty" tf:"any,omitempty"`
Header []RbacPrincipalsAndPrincipalsHeaderInitParameters `json:"header,omitempty" tf:"header,omitempty"`
RemoteIP *string `json:"remoteIp,omitempty" tf:"remote_ip,omitempty"`
}
type RbacPrincipalsAndPrincipalsObservation struct {
Any *bool `json:"any,omitempty" tf:"any,omitempty"`
Header []RbacPrincipalsAndPrincipalsHeaderObservation `json:"header,omitempty" tf:"header,omitempty"`
RemoteIP *string `json:"remoteIp,omitempty" tf:"remote_ip,omitempty"`
}
type RbacPrincipalsAndPrincipalsParameters struct {
// +kubebuilder:validation:Optional
Any *bool `json:"any,omitempty" tf:"any,omitempty"`
// +kubebuilder:validation:Optional
Header []RbacPrincipalsAndPrincipalsHeaderParameters `json:"header,omitempty" tf:"header,omitempty"`
// +kubebuilder:validation:Optional
RemoteIP *string `json:"remoteIp,omitempty" tf:"remote_ip,omitempty"`
}
type RbacPrincipalsInitParameters struct {
AndPrincipals []PrincipalsAndPrincipalsInitParameters `json:"andPrincipals,omitempty" tf:"and_principals,omitempty"`
}
type RbacPrincipalsObservation struct {
AndPrincipals []PrincipalsAndPrincipalsObservation `json:"andPrincipals,omitempty" tf:"and_principals,omitempty"`
}
type RbacPrincipalsParameters struct {
// +kubebuilder:validation:Optional
AndPrincipals []PrincipalsAndPrincipalsParameters `json:"andPrincipals" tf:"and_principals,omitempty"`
}
type RedirectActionInitParameters struct {
RemoveQuery *bool `json:"removeQuery,omitempty" tf:"remove_query,omitempty"`
// Replaces hostname.
ReplaceHost *string `json:"replaceHost,omitempty" tf:"replace_host,omitempty"`
// Replace path.
ReplacePath *string `json:"replacePath,omitempty" tf:"replace_path,omitempty"`
// Replaces port.
ReplacePort *float64 `json:"replacePort,omitempty" tf:"replace_port,omitempty"`
// Replace only matched prefix. Example: match:{ prefix_match: "/some" }
// redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
ReplacePrefix *string `json:"replacePrefix,omitempty" tf:"replace_prefix,omitempty"`
// Replaces scheme. If the original scheme is http or https, will also remove the
// 80 or 443 port, if present.
ReplaceScheme *string `json:"replaceScheme,omitempty" tf:"replace_scheme,omitempty"`
// The HTTP status code to use in the redirect response. Supported values are:
// moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
ResponseCode *string `json:"responseCode,omitempty" tf:"response_code,omitempty"`
}
type RedirectActionObservation struct {
RemoveQuery *bool `json:"removeQuery,omitempty" tf:"remove_query,omitempty"`
// Replaces hostname.
ReplaceHost *string `json:"replaceHost,omitempty" tf:"replace_host,omitempty"`
// Replace path.
ReplacePath *string `json:"replacePath,omitempty" tf:"replace_path,omitempty"`
// Replaces port.
ReplacePort *float64 `json:"replacePort,omitempty" tf:"replace_port,omitempty"`
// Replace only matched prefix. Example: match:{ prefix_match: "/some" }
// redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
ReplacePrefix *string `json:"replacePrefix,omitempty" tf:"replace_prefix,omitempty"`
// Replaces scheme. If the original scheme is http or https, will also remove the
// 80 or 443 port, if present.
ReplaceScheme *string `json:"replaceScheme,omitempty" tf:"replace_scheme,omitempty"`
// The HTTP status code to use in the redirect response. Supported values are:
// moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
ResponseCode *string `json:"responseCode,omitempty" tf:"response_code,omitempty"`
}
type RedirectActionParameters struct {
// +kubebuilder:validation:Optional
RemoveQuery *bool `json:"removeQuery,omitempty" tf:"remove_query,omitempty"`
// Replaces hostname.
// +kubebuilder:validation:Optional
ReplaceHost *string `json:"replaceHost,omitempty" tf:"replace_host,omitempty"`
// Replace path.
// +kubebuilder:validation:Optional
ReplacePath *string `json:"replacePath,omitempty" tf:"replace_path,omitempty"`
// Replaces port.
// +kubebuilder:validation:Optional
ReplacePort *float64 `json:"replacePort,omitempty" tf:"replace_port,omitempty"`
// Replace only matched prefix. Example: match:{ prefix_match: "/some" }
// redirect: { replace_prefix: "/other" } will redirect "/something" to "/otherthing".
// +kubebuilder:validation:Optional
ReplacePrefix *string `json:"replacePrefix,omitempty" tf:"replace_prefix,omitempty"`
// Replaces scheme. If the original scheme is http or https, will also remove the
// 80 or 443 port, if present.
// +kubebuilder:validation:Optional
ReplaceScheme *string `json:"replaceScheme,omitempty" tf:"replace_scheme,omitempty"`
// The HTTP status code to use in the redirect response. Supported values are:
// moved_permanently, found, see_other, temporary_redirect, permanent_redirect.
// +kubebuilder:validation:Optional
ResponseCode *string `json:"responseCode,omitempty" tf:"response_code,omitempty"`
}
type RouteInitParameters struct {
// GRPC route resource. The structure is documented below.
GRPCRoute []GRPCRouteInitParameters `json:"grpcRoute,omitempty" tf:"grpc_route,omitempty"`
// HTTP route resource. The structure is documented below.
HTTPRoute []HTTPRouteInitParameters `json:"httpRoute,omitempty" tf:"http_route,omitempty"`
// name of the route.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Route options for the virtual host. The structure is documented below.
RouteOptions []RouteRouteOptionsInitParameters `json:"routeOptions,omitempty" tf:"route_options,omitempty"`
}
type RouteObservation struct {
// GRPC route resource. The structure is documented below.
GRPCRoute []GRPCRouteObservation `json:"grpcRoute,omitempty" tf:"grpc_route,omitempty"`
// HTTP route resource. The structure is documented below.
HTTPRoute []HTTPRouteObservation `json:"httpRoute,omitempty" tf:"http_route,omitempty"`
// name of the route.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Route options for the virtual host. The structure is documented below.
RouteOptions []RouteRouteOptionsObservation `json:"routeOptions,omitempty" tf:"route_options,omitempty"`
}
type RouteOptionsRbacInitParameters struct {
Action *string `json:"action,omitempty" tf:"action,omitempty"`
Principals []RbacPrincipalsInitParameters `json:"principals,omitempty" tf:"principals,omitempty"`
}
type RouteOptionsRbacObservation struct {
Action *string `json:"action,omitempty" tf:"action,omitempty"`
Principals []RbacPrincipalsObservation `json:"principals,omitempty" tf:"principals,omitempty"`
}
type RouteOptionsRbacParameters struct {
// +kubebuilder:validation:Optional
Action *string `json:"action,omitempty" tf:"action,omitempty"`
// +kubebuilder:validation:Optional
Principals []RbacPrincipalsParameters `json:"principals" tf:"principals,omitempty"`
}
type RouteOptionsRbacPrincipalsInitParameters struct {
AndPrincipals []RbacPrincipalsAndPrincipalsInitParameters `json:"andPrincipals,omitempty" tf:"and_principals,omitempty"`
}
type RouteOptionsRbacPrincipalsObservation struct {
AndPrincipals []RbacPrincipalsAndPrincipalsObservation `json:"andPrincipals,omitempty" tf:"and_principals,omitempty"`
}
type RouteOptionsRbacPrincipalsParameters struct {
// +kubebuilder:validation:Optional
AndPrincipals []RbacPrincipalsAndPrincipalsParameters `json:"andPrincipals" tf:"and_principals,omitempty"`
}
type RouteParameters struct {
// GRPC route resource. The structure is documented below.
// +kubebuilder:validation:Optional
GRPCRoute []GRPCRouteParameters `json:"grpcRoute,omitempty" tf:"grpc_route,omitempty"`
// HTTP route resource. The structure is documented below.
// +kubebuilder:validation:Optional
HTTPRoute []HTTPRouteParameters `json:"httpRoute,omitempty" tf:"http_route,omitempty"`
// name of the route.
// +kubebuilder:validation:Optional
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// Route options for the virtual host. The structure is documented below.
// +kubebuilder:validation:Optional
RouteOptions []RouteRouteOptionsParameters `json:"routeOptions,omitempty" tf:"route_options,omitempty"`
}
type RouteRouteOptionsInitParameters struct {
// RBAC configuration.
Rbac []RouteOptionsRbacInitParameters `json:"rbac,omitempty" tf:"rbac,omitempty"`
// SWS profile ID.
SecurityProfileID *string `json:"securityProfileId,omitempty" tf:"security_profile_id,omitempty"`
}
type RouteRouteOptionsObservation struct {
// RBAC configuration.
Rbac []RouteOptionsRbacObservation `json:"rbac,omitempty" tf:"rbac,omitempty"`
// SWS profile ID.
SecurityProfileID *string `json:"securityProfileId,omitempty" tf:"security_profile_id,omitempty"`
}
type RouteRouteOptionsParameters struct {
// RBAC configuration.
// +kubebuilder:validation:Optional
Rbac []RouteOptionsRbacParameters `json:"rbac,omitempty" tf:"rbac,omitempty"`
// SWS profile ID.
// +kubebuilder:validation:Optional
SecurityProfileID *string `json:"securityProfileId,omitempty" tf:"security_profile_id,omitempty"`
}
type VirtualHostInitParameters struct {
// A list of domains (host/authority header) that will be matched to this virtual host. Wildcard
// hosts are supported in the form of '.foo.com' or '-bar.foo.com'. If not specified, all domains will be matched.
// +listType=set
Authority []*string `json:"authority,omitempty" tf:"authority,omitempty"`