-
Notifications
You must be signed in to change notification settings - Fork 121
/
zz_cluster_types.go
executable file
·897 lines (637 loc) · 45.2 KB
/
zz_cluster_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
// 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 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 BrokerLogsInitParameters struct {
CloudwatchLogs []CloudwatchLogsInitParameters `json:"cloudwatchLogs,omitempty" tf:"cloudwatch_logs,omitempty"`
Firehose []FirehoseInitParameters `json:"firehose,omitempty" tf:"firehose,omitempty"`
S3 []S3InitParameters `json:"s3,omitempty" tf:"s3,omitempty"`
}
type BrokerLogsObservation struct {
CloudwatchLogs []CloudwatchLogsObservation `json:"cloudwatchLogs,omitempty" tf:"cloudwatch_logs,omitempty"`
Firehose []FirehoseObservation `json:"firehose,omitempty" tf:"firehose,omitempty"`
S3 []S3Observation `json:"s3,omitempty" tf:"s3,omitempty"`
}
type BrokerLogsParameters struct {
// +kubebuilder:validation:Optional
CloudwatchLogs []CloudwatchLogsParameters `json:"cloudwatchLogs,omitempty" tf:"cloudwatch_logs,omitempty"`
// +kubebuilder:validation:Optional
Firehose []FirehoseParameters `json:"firehose,omitempty" tf:"firehose,omitempty"`
// +kubebuilder:validation:Optional
S3 []S3Parameters `json:"s3,omitempty" tf:"s3,omitempty"`
}
type BrokerNodeGroupInfoInitParameters struct {
// The distribution of broker nodes across availability zones (documentation). Currently the only valid value is DEFAULT.
AzDistribution *string `json:"azDistribution,omitempty" tf:"az_distribution,omitempty"`
// Information about the cluster access configuration. See below. For security reasons, you can't turn on public access while creating an MSK cluster. However, you can update an existing cluster to make it publicly accessible. You can also create a new cluster and then update it to make it publicly accessible (documentation).
ConnectivityInfo []ConnectivityInfoInitParameters `json:"connectivityInfo,omitempty" tf:"connectivity_info,omitempty"`
// The size in GiB of the EBS volume for the data drive on each broker node.
EBSVolumeSize *float64 `json:"ebsVolumeSize,omitempty" tf:"ebs_volume_size,omitempty"`
// Specify the instance type to use for the kafka brokersE.g., kafka.m5.large. (Pricing info)
InstanceType *string `json:"instanceType,omitempty" tf:"instance_type,omitempty"`
// A block that contains information about storage volumes attached to MSK broker nodes. See below.
StorageInfo []StorageInfoInitParameters `json:"storageInfo,omitempty" tf:"storage_info,omitempty"`
}
type BrokerNodeGroupInfoObservation struct {
// The distribution of broker nodes across availability zones (documentation). Currently the only valid value is DEFAULT.
AzDistribution *string `json:"azDistribution,omitempty" tf:"az_distribution,omitempty"`
// A list of subnets to connect to in client VPC (documentation).
ClientSubnets []*string `json:"clientSubnets,omitempty" tf:"client_subnets,omitempty"`
// Information about the cluster access configuration. See below. For security reasons, you can't turn on public access while creating an MSK cluster. However, you can update an existing cluster to make it publicly accessible. You can also create a new cluster and then update it to make it publicly accessible (documentation).
ConnectivityInfo []ConnectivityInfoObservation `json:"connectivityInfo,omitempty" tf:"connectivity_info,omitempty"`
// The size in GiB of the EBS volume for the data drive on each broker node.
EBSVolumeSize *float64 `json:"ebsVolumeSize,omitempty" tf:"ebs_volume_size,omitempty"`
// Specify the instance type to use for the kafka brokersE.g., kafka.m5.large. (Pricing info)
InstanceType *string `json:"instanceType,omitempty" tf:"instance_type,omitempty"`
// A list of the security groups to associate with the elastic network interfaces to control who can communicate with the cluster.
SecurityGroups []*string `json:"securityGroups,omitempty" tf:"security_groups,omitempty"`
// A block that contains information about storage volumes attached to MSK broker nodes. See below.
StorageInfo []StorageInfoObservation `json:"storageInfo,omitempty" tf:"storage_info,omitempty"`
}
type BrokerNodeGroupInfoParameters struct {
// The distribution of broker nodes across availability zones (documentation). Currently the only valid value is DEFAULT.
// +kubebuilder:validation:Optional
AzDistribution *string `json:"azDistribution,omitempty" tf:"az_distribution,omitempty"`
// A list of subnets to connect to in client VPC (documentation).
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.Subnet
// +kubebuilder:validation:Optional
ClientSubnets []*string `json:"clientSubnets,omitempty" tf:"client_subnets,omitempty"`
// References to Subnet in ec2 to populate clientSubnets.
// +kubebuilder:validation:Optional
ClientSubnetsRefs []v1.Reference `json:"clientSubnetsRefs,omitempty" tf:"-"`
// Selector for a list of Subnet in ec2 to populate clientSubnets.
// +kubebuilder:validation:Optional
ClientSubnetsSelector *v1.Selector `json:"clientSubnetsSelector,omitempty" tf:"-"`
// Information about the cluster access configuration. See below. For security reasons, you can't turn on public access while creating an MSK cluster. However, you can update an existing cluster to make it publicly accessible. You can also create a new cluster and then update it to make it publicly accessible (documentation).
// +kubebuilder:validation:Optional
ConnectivityInfo []ConnectivityInfoParameters `json:"connectivityInfo,omitempty" tf:"connectivity_info,omitempty"`
// The size in GiB of the EBS volume for the data drive on each broker node.
// +kubebuilder:validation:Optional
EBSVolumeSize *float64 `json:"ebsVolumeSize,omitempty" tf:"ebs_volume_size,omitempty"`
// Specify the instance type to use for the kafka brokersE.g., kafka.m5.large. (Pricing info)
// +kubebuilder:validation:Optional
InstanceType *string `json:"instanceType" tf:"instance_type,omitempty"`
// A list of the security groups to associate with the elastic network interfaces to control who can communicate with the cluster.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/ec2/v1beta1.SecurityGroup
// +kubebuilder:validation:Optional
SecurityGroups []*string `json:"securityGroups,omitempty" tf:"security_groups,omitempty"`
// References to SecurityGroup in ec2 to populate securityGroups.
// +kubebuilder:validation:Optional
SecurityGroupsRefs []v1.Reference `json:"securityGroupsRefs,omitempty" tf:"-"`
// Selector for a list of SecurityGroup in ec2 to populate securityGroups.
// +kubebuilder:validation:Optional
SecurityGroupsSelector *v1.Selector `json:"securityGroupsSelector,omitempty" tf:"-"`
// A block that contains information about storage volumes attached to MSK broker nodes. See below.
// +kubebuilder:validation:Optional
StorageInfo []StorageInfoParameters `json:"storageInfo,omitempty" tf:"storage_info,omitempty"`
}
type ClientAuthenticationInitParameters struct {
// Configuration block for specifying SASL client authentication. See below.
Sasl []SaslInitParameters `json:"sasl,omitempty" tf:"sasl,omitempty"`
// Configuration block for specifying TLS client authentication. See below.
TLS []TLSInitParameters `json:"tls,omitempty" tf:"tls,omitempty"`
// Enables unauthenticated access.
Unauthenticated *bool `json:"unauthenticated,omitempty" tf:"unauthenticated,omitempty"`
}
type ClientAuthenticationObservation struct {
// Configuration block for specifying SASL client authentication. See below.
Sasl []SaslObservation `json:"sasl,omitempty" tf:"sasl,omitempty"`
// Configuration block for specifying TLS client authentication. See below.
TLS []TLSObservation `json:"tls,omitempty" tf:"tls,omitempty"`
// Enables unauthenticated access.
Unauthenticated *bool `json:"unauthenticated,omitempty" tf:"unauthenticated,omitempty"`
}
type ClientAuthenticationParameters struct {
// Configuration block for specifying SASL client authentication. See below.
// +kubebuilder:validation:Optional
Sasl []SaslParameters `json:"sasl,omitempty" tf:"sasl,omitempty"`
// Configuration block for specifying TLS client authentication. See below.
// +kubebuilder:validation:Optional
TLS []TLSParameters `json:"tls,omitempty" tf:"tls,omitempty"`
// Enables unauthenticated access.
// +kubebuilder:validation:Optional
Unauthenticated *bool `json:"unauthenticated,omitempty" tf:"unauthenticated,omitempty"`
}
type CloudwatchLogsInitParameters struct {
// Controls whether provisioned throughput is enabled or not. Default value: false.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type CloudwatchLogsObservation struct {
// Controls whether provisioned throughput is enabled or not. Default value: false.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Name of the Cloudwatch Log Group to deliver logs to.
LogGroup *string `json:"logGroup,omitempty" tf:"log_group,omitempty"`
}
type CloudwatchLogsParameters struct {
// Controls whether provisioned throughput is enabled or not. Default value: false.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled" tf:"enabled,omitempty"`
// Name of the Cloudwatch Log Group to deliver logs to.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Group
// +kubebuilder:validation:Optional
LogGroup *string `json:"logGroup,omitempty" tf:"log_group,omitempty"`
// Reference to a Group in cloudwatchlogs to populate logGroup.
// +kubebuilder:validation:Optional
LogGroupRef *v1.Reference `json:"logGroupRef,omitempty" tf:"-"`
// Selector for a Group in cloudwatchlogs to populate logGroup.
// +kubebuilder:validation:Optional
LogGroupSelector *v1.Selector `json:"logGroupSelector,omitempty" tf:"-"`
}
type ClusterInitParameters struct {
// Configuration block for the broker nodes of the Kafka cluster.
BrokerNodeGroupInfo []BrokerNodeGroupInfoInitParameters `json:"brokerNodeGroupInfo,omitempty" tf:"broker_node_group_info,omitempty"`
// Configuration block for specifying a client authentication. See below.
ClientAuthentication []ClientAuthenticationInitParameters `json:"clientAuthentication,omitempty" tf:"client_authentication,omitempty"`
// Name of the MSK cluster.
ClusterName *string `json:"clusterName,omitempty" tf:"cluster_name,omitempty"`
// Configuration block for specifying a MSK Configuration to attach to Kafka brokers. See below.
ConfigurationInfo []ConfigurationInfoInitParameters `json:"configurationInfo,omitempty" tf:"configuration_info,omitempty"`
// Configuration block for specifying encryption. See below.
EncryptionInfo []EncryptionInfoInitParameters `json:"encryptionInfo,omitempty" tf:"encryption_info,omitempty"`
// Specify the desired enhanced MSK CloudWatch monitoring level. See Monitoring Amazon MSK with Amazon CloudWatch
EnhancedMonitoring *string `json:"enhancedMonitoring,omitempty" tf:"enhanced_monitoring,omitempty"`
// Specify the desired Kafka software version.
KafkaVersion *string `json:"kafkaVersion,omitempty" tf:"kafka_version,omitempty"`
// Configuration block for streaming broker logs to Cloudwatch/S3/Kinesis Firehose. See below.
LoggingInfo []LoggingInfoInitParameters `json:"loggingInfo,omitempty" tf:"logging_info,omitempty"`
// The desired total number of broker nodes in the kafka cluster. It must be a multiple of the number of specified client subnets.
NumberOfBrokerNodes *float64 `json:"numberOfBrokerNodes,omitempty" tf:"number_of_broker_nodes,omitempty"`
// Configuration block for JMX and Node monitoring for the MSK cluster. See below.
OpenMonitoring []OpenMonitoringInitParameters `json:"openMonitoring,omitempty" tf:"open_monitoring,omitempty"`
// Controls storage mode for supported storage tiers. Valid values are: LOCAL or TIERED.
StorageMode *string `json:"storageMode,omitempty" tf:"storage_mode,omitempty"`
// Key-value map of resource tags.
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
type ClusterObservation struct {
// Amazon Resource Name (ARN) of the MSK Configuration to use in the cluster.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Comma separated list of one or more hostname:port pairs of kafka brokers suitable to bootstrap connectivity to the kafka cluster. Contains a value if encryption_info.0.encryption_in_transit.0.client_broker is set to PLAINTEXT or TLS_PLAINTEXT. The resource sorts values alphabetically. AWS may not always return all endpoints so this value is not guaranteed to be stable across applies.
BootstrapBrokers *string `json:"bootstrapBrokers,omitempty" tf:"bootstrap_brokers,omitempty"`
// One or more DNS names (or IP addresses) and SASL IAM port pairs. For example, b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9198. This attribute will have a value if encryption_info.0.encryption_in_transit.0.client_broker is set to TLS_PLAINTEXT or TLS and client_authentication.0.sasl.0.iam is set to true and broker_node_group_info.0.connectivity_info.0.public_access.0.type is set to SERVICE_PROVIDED_EIPS and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
BootstrapBrokersPublicSaslIAM *string `json:"bootstrapBrokersPublicSaslIam,omitempty" tf:"bootstrap_brokers_public_sasl_iam,omitempty"`
// One or more DNS names (or IP addresses) and SASL SCRAM port pairs. For example, b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9196. This attribute will have a value if encryption_info.0.encryption_in_transit.0.client_broker is set to TLS_PLAINTEXT or TLS and client_authentication.0.sasl.0.scram is set to true and broker_node_group_info.0.connectivity_info.0.public_access.0.type is set to SERVICE_PROVIDED_EIPS and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
BootstrapBrokersPublicSaslScram *string `json:"bootstrapBrokersPublicSaslScram,omitempty" tf:"bootstrap_brokers_public_sasl_scram,omitempty"`
// One or more DNS names (or IP addresses) and TLS port pairs. For example, b-1-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194,b-2-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194,b-3-public.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9194. This attribute will have a value if encryption_info.0.encryption_in_transit.0.client_broker is set to TLS_PLAINTEXT or TLS and broker_node_group_info.0.connectivity_info.0.public_access.0.type is set to SERVICE_PROVIDED_EIPS and the cluster fulfill all other requirements for public access. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
BootstrapBrokersPublicTLS *string `json:"bootstrapBrokersPublicTls,omitempty" tf:"bootstrap_brokers_public_tls,omitempty"`
// One or more DNS names (or IP addresses) and SASL IAM port pairs. For example, b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9098. This attribute will have a value if encryption_info.0.encryption_in_transit.0.client_broker is set to TLS_PLAINTEXT or TLS and client_authentication.0.sasl.0.iam is set to true. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
BootstrapBrokersSaslIAM *string `json:"bootstrapBrokersSaslIam,omitempty" tf:"bootstrap_brokers_sasl_iam,omitempty"`
// One or more DNS names (or IP addresses) and SASL SCRAM port pairs. For example, b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9096. This attribute will have a value if encryption_info.0.encryption_in_transit.0.client_broker is set to TLS_PLAINTEXT or TLS and client_authentication.0.sasl.0.scram is set to true. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
BootstrapBrokersSaslScram *string `json:"bootstrapBrokersSaslScram,omitempty" tf:"bootstrap_brokers_sasl_scram,omitempty"`
// One or more DNS names (or IP addresses) and TLS port pairs. For example, b-1.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094,b-2.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094,b-3.exampleClusterName.abcde.c2.kafka.us-east-1.amazonaws.com:9094. This attribute will have a value if encryption_info.0.encryption_in_transit.0.client_broker is set to TLS_PLAINTEXT or TLS. The resource sorts the list alphabetically. AWS may not always return all endpoints so the values may not be stable across applies.
BootstrapBrokersTLS *string `json:"bootstrapBrokersTls,omitempty" tf:"bootstrap_brokers_tls,omitempty"`
// Configuration block for the broker nodes of the Kafka cluster.
BrokerNodeGroupInfo []BrokerNodeGroupInfoObservation `json:"brokerNodeGroupInfo,omitempty" tf:"broker_node_group_info,omitempty"`
// Configuration block for specifying a client authentication. See below.
ClientAuthentication []ClientAuthenticationObservation `json:"clientAuthentication,omitempty" tf:"client_authentication,omitempty"`
// Name of the MSK cluster.
ClusterName *string `json:"clusterName,omitempty" tf:"cluster_name,omitempty"`
// Configuration block for specifying a MSK Configuration to attach to Kafka brokers. See below.
ConfigurationInfo []ConfigurationInfoObservation `json:"configurationInfo,omitempty" tf:"configuration_info,omitempty"`
// Current version of the MSK Cluster used for updates, e.g., K13V1IB3VIYZZH
CurrentVersion *string `json:"currentVersion,omitempty" tf:"current_version,omitempty"`
// Configuration block for specifying encryption. See below.
EncryptionInfo []EncryptionInfoObservation `json:"encryptionInfo,omitempty" tf:"encryption_info,omitempty"`
// Specify the desired enhanced MSK CloudWatch monitoring level. See Monitoring Amazon MSK with Amazon CloudWatch
EnhancedMonitoring *string `json:"enhancedMonitoring,omitempty" tf:"enhanced_monitoring,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Specify the desired Kafka software version.
KafkaVersion *string `json:"kafkaVersion,omitempty" tf:"kafka_version,omitempty"`
// Configuration block for streaming broker logs to Cloudwatch/S3/Kinesis Firehose. See below.
LoggingInfo []LoggingInfoObservation `json:"loggingInfo,omitempty" tf:"logging_info,omitempty"`
// The desired total number of broker nodes in the kafka cluster. It must be a multiple of the number of specified client subnets.
NumberOfBrokerNodes *float64 `json:"numberOfBrokerNodes,omitempty" tf:"number_of_broker_nodes,omitempty"`
// Configuration block for JMX and Node monitoring for the MSK cluster. See below.
OpenMonitoring []OpenMonitoringObservation `json:"openMonitoring,omitempty" tf:"open_monitoring,omitempty"`
// Controls storage mode for supported storage tiers. Valid values are: LOCAL or TIERED.
StorageMode *string `json:"storageMode,omitempty" tf:"storage_mode,omitempty"`
// Key-value map of resource tags.
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.
TagsAll map[string]*string `json:"tagsAll,omitempty" tf:"tags_all,omitempty"`
// A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster. The returned values are sorted alphabetically. The AWS API may not return all endpoints, so this value is not guaranteed to be stable across applies.
ZookeeperConnectString *string `json:"zookeeperConnectString,omitempty" tf:"zookeeper_connect_string,omitempty"`
// A comma separated list of one or more hostname:port pairs to use to connect to the Apache Zookeeper cluster via TLS. The returned values are sorted alphabetically. The AWS API may not return all endpoints, so this value is not guaranteed to be stable across applies.
ZookeeperConnectStringTLS *string `json:"zookeeperConnectStringTls,omitempty" tf:"zookeeper_connect_string_tls,omitempty"`
}
type ClusterParameters struct {
// Configuration block for the broker nodes of the Kafka cluster.
// +kubebuilder:validation:Optional
BrokerNodeGroupInfo []BrokerNodeGroupInfoParameters `json:"brokerNodeGroupInfo,omitempty" tf:"broker_node_group_info,omitempty"`
// Configuration block for specifying a client authentication. See below.
// +kubebuilder:validation:Optional
ClientAuthentication []ClientAuthenticationParameters `json:"clientAuthentication,omitempty" tf:"client_authentication,omitempty"`
// Name of the MSK cluster.
// +kubebuilder:validation:Optional
ClusterName *string `json:"clusterName,omitempty" tf:"cluster_name,omitempty"`
// Configuration block for specifying a MSK Configuration to attach to Kafka brokers. See below.
// +kubebuilder:validation:Optional
ConfigurationInfo []ConfigurationInfoParameters `json:"configurationInfo,omitempty" tf:"configuration_info,omitempty"`
// Configuration block for specifying encryption. See below.
// +kubebuilder:validation:Optional
EncryptionInfo []EncryptionInfoParameters `json:"encryptionInfo,omitempty" tf:"encryption_info,omitempty"`
// Specify the desired enhanced MSK CloudWatch monitoring level. See Monitoring Amazon MSK with Amazon CloudWatch
// +kubebuilder:validation:Optional
EnhancedMonitoring *string `json:"enhancedMonitoring,omitempty" tf:"enhanced_monitoring,omitempty"`
// Specify the desired Kafka software version.
// +kubebuilder:validation:Optional
KafkaVersion *string `json:"kafkaVersion,omitempty" tf:"kafka_version,omitempty"`
// Configuration block for streaming broker logs to Cloudwatch/S3/Kinesis Firehose. See below.
// +kubebuilder:validation:Optional
LoggingInfo []LoggingInfoParameters `json:"loggingInfo,omitempty" tf:"logging_info,omitempty"`
// The desired total number of broker nodes in the kafka cluster. It must be a multiple of the number of specified client subnets.
// +kubebuilder:validation:Optional
NumberOfBrokerNodes *float64 `json:"numberOfBrokerNodes,omitempty" tf:"number_of_broker_nodes,omitempty"`
// Configuration block for JMX and Node monitoring for the MSK cluster. See below.
// +kubebuilder:validation:Optional
OpenMonitoring []OpenMonitoringParameters `json:"openMonitoring,omitempty" tf:"open_monitoring,omitempty"`
// Region is the region you'd like your resource to be created in.
// +upjet:crd:field:TFTag=-
// +kubebuilder:validation:Required
Region *string `json:"region" tf:"-"`
// Controls storage mode for supported storage tiers. Valid values are: LOCAL or TIERED.
// +kubebuilder:validation:Optional
StorageMode *string `json:"storageMode,omitempty" tf:"storage_mode,omitempty"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
}
type ConfigurationInfoInitParameters struct {
// Revision of the MSK Configuration to use in the cluster.
Revision *float64 `json:"revision,omitempty" tf:"revision,omitempty"`
}
type ConfigurationInfoObservation struct {
// Amazon Resource Name (ARN) of the MSK Configuration to use in the cluster.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Revision of the MSK Configuration to use in the cluster.
Revision *float64 `json:"revision,omitempty" tf:"revision,omitempty"`
}
type ConfigurationInfoParameters struct {
// Amazon Resource Name (ARN) of the MSK Configuration to use in the cluster.
// +crossplane:generate:reference:type=Configuration
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
// +kubebuilder:validation:Optional
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Reference to a Configuration to populate arn.
// +kubebuilder:validation:Optional
ArnRef *v1.Reference `json:"arnRef,omitempty" tf:"-"`
// Selector for a Configuration to populate arn.
// +kubebuilder:validation:Optional
ArnSelector *v1.Selector `json:"arnSelector,omitempty" tf:"-"`
// Revision of the MSK Configuration to use in the cluster.
// +kubebuilder:validation:Optional
Revision *float64 `json:"revision" tf:"revision,omitempty"`
}
type ConnectivityInfoInitParameters struct {
// Access control settings for brokers. See below.
PublicAccess []PublicAccessInitParameters `json:"publicAccess,omitempty" tf:"public_access,omitempty"`
}
type ConnectivityInfoObservation struct {
// Access control settings for brokers. See below.
PublicAccess []PublicAccessObservation `json:"publicAccess,omitempty" tf:"public_access,omitempty"`
}
type ConnectivityInfoParameters struct {
// Access control settings for brokers. See below.
// +kubebuilder:validation:Optional
PublicAccess []PublicAccessParameters `json:"publicAccess,omitempty" tf:"public_access,omitempty"`
}
type EBSStorageInfoInitParameters struct {
// A block that contains EBS volume provisioned throughput information. To provision storage throughput, you must choose broker type kafka.m5.4xlarge or larger. See below.
ProvisionedThroughput []ProvisionedThroughputInitParameters `json:"provisionedThroughput,omitempty" tf:"provisioned_throughput,omitempty"`
// The size in GiB of the EBS volume for the data drive on each broker node. Minimum value of 1 and maximum value of 16384.
VolumeSize *float64 `json:"volumeSize,omitempty" tf:"volume_size,omitempty"`
}
type EBSStorageInfoObservation struct {
// A block that contains EBS volume provisioned throughput information. To provision storage throughput, you must choose broker type kafka.m5.4xlarge or larger. See below.
ProvisionedThroughput []ProvisionedThroughputObservation `json:"provisionedThroughput,omitempty" tf:"provisioned_throughput,omitempty"`
// The size in GiB of the EBS volume for the data drive on each broker node. Minimum value of 1 and maximum value of 16384.
VolumeSize *float64 `json:"volumeSize,omitempty" tf:"volume_size,omitempty"`
}
type EBSStorageInfoParameters struct {
// A block that contains EBS volume provisioned throughput information. To provision storage throughput, you must choose broker type kafka.m5.4xlarge or larger. See below.
// +kubebuilder:validation:Optional
ProvisionedThroughput []ProvisionedThroughputParameters `json:"provisionedThroughput,omitempty" tf:"provisioned_throughput,omitempty"`
// The size in GiB of the EBS volume for the data drive on each broker node. Minimum value of 1 and maximum value of 16384.
// +kubebuilder:validation:Optional
VolumeSize *float64 `json:"volumeSize,omitempty" tf:"volume_size,omitempty"`
}
type EncryptionInTransitInitParameters struct {
// Encryption setting for data in transit between clients and brokers. Valid values: TLS, TLS_PLAINTEXT, and PLAINTEXT. Default value is TLS.
ClientBroker *string `json:"clientBroker,omitempty" tf:"client_broker,omitempty"`
// Whether data communication among broker nodes is encrypted. Default value: true.
InCluster *bool `json:"inCluster,omitempty" tf:"in_cluster,omitempty"`
}
type EncryptionInTransitObservation struct {
// Encryption setting for data in transit between clients and brokers. Valid values: TLS, TLS_PLAINTEXT, and PLAINTEXT. Default value is TLS.
ClientBroker *string `json:"clientBroker,omitempty" tf:"client_broker,omitempty"`
// Whether data communication among broker nodes is encrypted. Default value: true.
InCluster *bool `json:"inCluster,omitempty" tf:"in_cluster,omitempty"`
}
type EncryptionInTransitParameters struct {
// Encryption setting for data in transit between clients and brokers. Valid values: TLS, TLS_PLAINTEXT, and PLAINTEXT. Default value is TLS.
// +kubebuilder:validation:Optional
ClientBroker *string `json:"clientBroker,omitempty" tf:"client_broker,omitempty"`
// Whether data communication among broker nodes is encrypted. Default value: true.
// +kubebuilder:validation:Optional
InCluster *bool `json:"inCluster,omitempty" tf:"in_cluster,omitempty"`
}
type EncryptionInfoInitParameters struct {
// Configuration block to specify encryption in transit. See below.
EncryptionInTransit []EncryptionInTransitInitParameters `json:"encryptionInTransit,omitempty" tf:"encryption_in_transit,omitempty"`
}
type EncryptionInfoObservation struct {
// The ARN of the KMS key used for encryption at rest of the broker data volumes.
EncryptionAtRestKMSKeyArn *string `json:"encryptionAtRestKmsKeyArn,omitempty" tf:"encryption_at_rest_kms_key_arn,omitempty"`
// Configuration block to specify encryption in transit. See below.
EncryptionInTransit []EncryptionInTransitObservation `json:"encryptionInTransit,omitempty" tf:"encryption_in_transit,omitempty"`
}
type EncryptionInfoParameters struct {
// The ARN of the KMS key used for encryption at rest of the broker data volumes.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/kms/v1beta1.Key
// +crossplane:generate:reference:extractor=github.com/upbound/provider-aws/config/common.ARNExtractor()
// +kubebuilder:validation:Optional
EncryptionAtRestKMSKeyArn *string `json:"encryptionAtRestKmsKeyArn,omitempty" tf:"encryption_at_rest_kms_key_arn,omitempty"`
// Reference to a Key in kms to populate encryptionAtRestKmsKeyArn.
// +kubebuilder:validation:Optional
EncryptionAtRestKMSKeyArnRef *v1.Reference `json:"encryptionAtRestKmsKeyArnRef,omitempty" tf:"-"`
// Selector for a Key in kms to populate encryptionAtRestKmsKeyArn.
// +kubebuilder:validation:Optional
EncryptionAtRestKMSKeyArnSelector *v1.Selector `json:"encryptionAtRestKmsKeyArnSelector,omitempty" tf:"-"`
// Configuration block to specify encryption in transit. See below.
// +kubebuilder:validation:Optional
EncryptionInTransit []EncryptionInTransitParameters `json:"encryptionInTransit,omitempty" tf:"encryption_in_transit,omitempty"`
}
type FirehoseInitParameters struct {
// Controls whether provisioned throughput is enabled or not. Default value: false.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type FirehoseObservation struct {
// Name of the Kinesis Data Firehose delivery stream to deliver logs to.
DeliveryStream *string `json:"deliveryStream,omitempty" tf:"delivery_stream,omitempty"`
// Controls whether provisioned throughput is enabled or not. Default value: false.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type FirehoseParameters struct {
// Name of the Kinesis Data Firehose delivery stream to deliver logs to.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/firehose/v1beta1.DeliveryStream
// +crossplane:generate:reference:extractor=github.com/crossplane/upjet/pkg/resource.ExtractParamPath("name",false)
// +kubebuilder:validation:Optional
DeliveryStream *string `json:"deliveryStream,omitempty" tf:"delivery_stream,omitempty"`
// Reference to a DeliveryStream in firehose to populate deliveryStream.
// +kubebuilder:validation:Optional
DeliveryStreamRef *v1.Reference `json:"deliveryStreamRef,omitempty" tf:"-"`
// Selector for a DeliveryStream in firehose to populate deliveryStream.
// +kubebuilder:validation:Optional
DeliveryStreamSelector *v1.Selector `json:"deliveryStreamSelector,omitempty" tf:"-"`
// Controls whether provisioned throughput is enabled or not. Default value: false.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled" tf:"enabled,omitempty"`
}
type JmxExporterInitParameters struct {
// Indicates whether you want to enable or disable the JMX Exporter.
EnabledInBroker *bool `json:"enabledInBroker,omitempty" tf:"enabled_in_broker,omitempty"`
}
type JmxExporterObservation struct {
// Indicates whether you want to enable or disable the JMX Exporter.
EnabledInBroker *bool `json:"enabledInBroker,omitempty" tf:"enabled_in_broker,omitempty"`
}
type JmxExporterParameters struct {
// Indicates whether you want to enable or disable the JMX Exporter.
// +kubebuilder:validation:Optional
EnabledInBroker *bool `json:"enabledInBroker" tf:"enabled_in_broker,omitempty"`
}
type LoggingInfoInitParameters struct {
// Configuration block for Broker Logs settings for logging info. See below.
BrokerLogs []BrokerLogsInitParameters `json:"brokerLogs,omitempty" tf:"broker_logs,omitempty"`
}
type LoggingInfoObservation struct {
// Configuration block for Broker Logs settings for logging info. See below.
BrokerLogs []BrokerLogsObservation `json:"brokerLogs,omitempty" tf:"broker_logs,omitempty"`
}
type LoggingInfoParameters struct {
// Configuration block for Broker Logs settings for logging info. See below.
// +kubebuilder:validation:Optional
BrokerLogs []BrokerLogsParameters `json:"brokerLogs" tf:"broker_logs,omitempty"`
}
type NodeExporterInitParameters struct {
// Indicates whether you want to enable or disable the JMX Exporter.
EnabledInBroker *bool `json:"enabledInBroker,omitempty" tf:"enabled_in_broker,omitempty"`
}
type NodeExporterObservation struct {
// Indicates whether you want to enable or disable the JMX Exporter.
EnabledInBroker *bool `json:"enabledInBroker,omitempty" tf:"enabled_in_broker,omitempty"`
}
type NodeExporterParameters struct {
// Indicates whether you want to enable or disable the JMX Exporter.
// +kubebuilder:validation:Optional
EnabledInBroker *bool `json:"enabledInBroker" tf:"enabled_in_broker,omitempty"`
}
type OpenMonitoringInitParameters struct {
// Configuration block for Prometheus settings for open monitoring. See below.
Prometheus []PrometheusInitParameters `json:"prometheus,omitempty" tf:"prometheus,omitempty"`
}
type OpenMonitoringObservation struct {
// Configuration block for Prometheus settings for open monitoring. See below.
Prometheus []PrometheusObservation `json:"prometheus,omitempty" tf:"prometheus,omitempty"`
}
type OpenMonitoringParameters struct {
// Configuration block for Prometheus settings for open monitoring. See below.
// +kubebuilder:validation:Optional
Prometheus []PrometheusParameters `json:"prometheus" tf:"prometheus,omitempty"`
}
type PrometheusInitParameters struct {
// Configuration block for JMX Exporter. See below.
JmxExporter []JmxExporterInitParameters `json:"jmxExporter,omitempty" tf:"jmx_exporter,omitempty"`
// Configuration block for Node Exporter. See below.
NodeExporter []NodeExporterInitParameters `json:"nodeExporter,omitempty" tf:"node_exporter,omitempty"`
}
type PrometheusObservation struct {
// Configuration block for JMX Exporter. See below.
JmxExporter []JmxExporterObservation `json:"jmxExporter,omitempty" tf:"jmx_exporter,omitempty"`
// Configuration block for Node Exporter. See below.
NodeExporter []NodeExporterObservation `json:"nodeExporter,omitempty" tf:"node_exporter,omitempty"`
}
type PrometheusParameters struct {
// Configuration block for JMX Exporter. See below.
// +kubebuilder:validation:Optional
JmxExporter []JmxExporterParameters `json:"jmxExporter,omitempty" tf:"jmx_exporter,omitempty"`
// Configuration block for Node Exporter. See below.
// +kubebuilder:validation:Optional
NodeExporter []NodeExporterParameters `json:"nodeExporter,omitempty" tf:"node_exporter,omitempty"`
}
type ProvisionedThroughputInitParameters struct {
// Controls whether provisioned throughput is enabled or not. Default value: false.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second. The minimum value is 250. The maximum value varies between broker type. You can refer to the valid values for the maximum volume throughput at the following documentation on throughput bottlenecks
VolumeThroughput *float64 `json:"volumeThroughput,omitempty" tf:"volume_throughput,omitempty"`
}
type ProvisionedThroughputObservation struct {
// Controls whether provisioned throughput is enabled or not. Default value: false.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second. The minimum value is 250. The maximum value varies between broker type. You can refer to the valid values for the maximum volume throughput at the following documentation on throughput bottlenecks
VolumeThroughput *float64 `json:"volumeThroughput,omitempty" tf:"volume_throughput,omitempty"`
}
type ProvisionedThroughputParameters struct {
// Controls whether provisioned throughput is enabled or not. Default value: false.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second. The minimum value is 250. The maximum value varies between broker type. You can refer to the valid values for the maximum volume throughput at the following documentation on throughput bottlenecks
// +kubebuilder:validation:Optional
VolumeThroughput *float64 `json:"volumeThroughput,omitempty" tf:"volume_throughput,omitempty"`
}
type PublicAccessInitParameters struct {
// Public access type. Valida values: DISABLED, SERVICE_PROVIDED_EIPS.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type PublicAccessObservation struct {
// Public access type. Valida values: DISABLED, SERVICE_PROVIDED_EIPS.
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type PublicAccessParameters struct {
// Public access type. Valida values: DISABLED, SERVICE_PROVIDED_EIPS.
// +kubebuilder:validation:Optional
Type *string `json:"type,omitempty" tf:"type,omitempty"`
}
type S3InitParameters struct {
// Controls whether provisioned throughput is enabled or not. Default value: false.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Prefix to append to the folder name.
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
}
type S3Observation struct {
// Name of the S3 bucket to deliver logs to.
Bucket *string `json:"bucket,omitempty" tf:"bucket,omitempty"`
// Controls whether provisioned throughput is enabled or not. Default value: false.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Prefix to append to the folder name.
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
}
type S3Parameters struct {
// Name of the S3 bucket to deliver logs to.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/s3/v1beta1.Bucket
// +kubebuilder:validation:Optional
Bucket *string `json:"bucket,omitempty" tf:"bucket,omitempty"`
// Reference to a Bucket in s3 to populate bucket.
// +kubebuilder:validation:Optional
BucketRef *v1.Reference `json:"bucketRef,omitempty" tf:"-"`
// Selector for a Bucket in s3 to populate bucket.
// +kubebuilder:validation:Optional
BucketSelector *v1.Selector `json:"bucketSelector,omitempty" tf:"-"`
// Controls whether provisioned throughput is enabled or not. Default value: false.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled" tf:"enabled,omitempty"`
// Prefix to append to the folder name.
// +kubebuilder:validation:Optional
Prefix *string `json:"prefix,omitempty" tf:"prefix,omitempty"`
}
type SaslInitParameters struct {
// Enables IAM client authentication. Defaults to false.
IAM *bool `json:"iam,omitempty" tf:"iam,omitempty"`
// Enables SCRAM client authentication via AWS Secrets Manager. Defaults to false.
Scram *bool `json:"scram,omitempty" tf:"scram,omitempty"`
}
type SaslObservation struct {
// Enables IAM client authentication. Defaults to false.
IAM *bool `json:"iam,omitempty" tf:"iam,omitempty"`
// Enables SCRAM client authentication via AWS Secrets Manager. Defaults to false.
Scram *bool `json:"scram,omitempty" tf:"scram,omitempty"`
}
type SaslParameters struct {
// Enables IAM client authentication. Defaults to false.
// +kubebuilder:validation:Optional
IAM *bool `json:"iam,omitempty" tf:"iam,omitempty"`
// Enables SCRAM client authentication via AWS Secrets Manager. Defaults to false.
// +kubebuilder:validation:Optional
Scram *bool `json:"scram,omitempty" tf:"scram,omitempty"`
}
type StorageInfoInitParameters struct {
// A block that contains EBS volume information. See below.
EBSStorageInfo []EBSStorageInfoInitParameters `json:"ebsStorageInfo,omitempty" tf:"ebs_storage_info,omitempty"`
}
type StorageInfoObservation struct {
// A block that contains EBS volume information. See below.
EBSStorageInfo []EBSStorageInfoObservation `json:"ebsStorageInfo,omitempty" tf:"ebs_storage_info,omitempty"`
}
type StorageInfoParameters struct {
// A block that contains EBS volume information. See below.
// +kubebuilder:validation:Optional
EBSStorageInfo []EBSStorageInfoParameters `json:"ebsStorageInfo,omitempty" tf:"ebs_storage_info,omitempty"`
}
type TLSInitParameters struct {
// List of ACM Certificate Authority Amazon Resource Names (ARNs).
CertificateAuthorityArns []*string `json:"certificateAuthorityArns,omitempty" tf:"certificate_authority_arns,omitempty"`
}
type TLSObservation struct {
// List of ACM Certificate Authority Amazon Resource Names (ARNs).
CertificateAuthorityArns []*string `json:"certificateAuthorityArns,omitempty" tf:"certificate_authority_arns,omitempty"`
}
type TLSParameters struct {
// List of ACM Certificate Authority Amazon Resource Names (ARNs).
// +kubebuilder:validation:Optional
CertificateAuthorityArns []*string `json:"certificateAuthorityArns,omitempty" tf:"certificate_authority_arns,omitempty"`
}
// ClusterSpec defines the desired state of Cluster
type ClusterSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider ClusterParameters `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 ClusterInitParameters `json:"initProvider,omitempty"`
}
// ClusterStatus defines the observed state of Cluster.
type ClusterStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider ClusterObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Cluster is the Schema for the Clusters API.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].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:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,aws}
type Cluster 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.brokerNodeGroupInfo) || (has(self.initProvider) && has(self.initProvider.brokerNodeGroupInfo))",message="spec.forProvider.brokerNodeGroupInfo is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.clusterName) || (has(self.initProvider) && has(self.initProvider.clusterName))",message="spec.forProvider.clusterName is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.kafkaVersion) || (has(self.initProvider) && has(self.initProvider.kafkaVersion))",message="spec.forProvider.kafkaVersion is a required parameter"
// +kubebuilder:validation:XValidation:rule="!('*' in self.managementPolicies || 'Create' in self.managementPolicies || 'Update' in self.managementPolicies) || has(self.forProvider.numberOfBrokerNodes) || (has(self.initProvider) && has(self.initProvider.numberOfBrokerNodes))",message="spec.forProvider.numberOfBrokerNodes is a required parameter"
Spec ClusterSpec `json:"spec"`
Status ClusterStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// ClusterList contains a list of Clusters
type ClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Cluster `json:"items"`
}
// Repository type metadata.
var (
Cluster_Kind = "Cluster"
Cluster_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Cluster_Kind}.String()
Cluster_KindAPIVersion = Cluster_Kind + "." + CRDGroupVersion.String()
Cluster_GroupVersionKind = CRDGroupVersion.WithKind(Cluster_Kind)
)
func init() {
SchemeBuilder.Register(&Cluster{}, &ClusterList{})
}