-
Notifications
You must be signed in to change notification settings - Fork 121
/
zz_domain_types.go
executable file
·666 lines (477 loc) · 33.1 KB
/
zz_domain_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
/*
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 AdvancedSecurityOptionsObservation struct {
// Whether Anonymous auth is enabled. Enables fine-grained access control on an existing domain. Ignored unless advanced_security_options are enabled. Can only be enabled on an existing domain.
AnonymousAuthEnabled *bool `json:"anonymousAuthEnabled,omitempty" tf:"anonymous_auth_enabled,omitempty"`
// Whether advanced security is enabled.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Whether the internal user database is enabled. Default is false.
InternalUserDatabaseEnabled *bool `json:"internalUserDatabaseEnabled,omitempty" tf:"internal_user_database_enabled,omitempty"`
// Configuration block for the main user. Detailed below.
MasterUserOptions []MasterUserOptionsObservation `json:"masterUserOptions,omitempty" tf:"master_user_options,omitempty"`
}
type AdvancedSecurityOptionsParameters struct {
// Whether Anonymous auth is enabled. Enables fine-grained access control on an existing domain. Ignored unless advanced_security_options are enabled. Can only be enabled on an existing domain.
// +kubebuilder:validation:Optional
AnonymousAuthEnabled *bool `json:"anonymousAuthEnabled,omitempty" tf:"anonymous_auth_enabled,omitempty"`
// Whether advanced security is enabled.
// +kubebuilder:validation:Required
Enabled *bool `json:"enabled" tf:"enabled,omitempty"`
// Whether the internal user database is enabled. Default is false.
// +kubebuilder:validation:Optional
InternalUserDatabaseEnabled *bool `json:"internalUserDatabaseEnabled,omitempty" tf:"internal_user_database_enabled,omitempty"`
// Configuration block for the main user. Detailed below.
// +kubebuilder:validation:Optional
MasterUserOptions []MasterUserOptionsParameters `json:"masterUserOptions,omitempty" tf:"master_user_options,omitempty"`
}
type AutoTuneOptionsObservation struct {
// Auto-Tune desired state for the domain. Valid values: ENABLED or DISABLED.
DesiredState *string `json:"desiredState,omitempty" tf:"desired_state,omitempty"`
// Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below.
MaintenanceSchedule []MaintenanceScheduleObservation `json:"maintenanceSchedule,omitempty" tf:"maintenance_schedule,omitempty"`
// Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACK or NO_ROLLBACK.
RollbackOnDisable *string `json:"rollbackOnDisable,omitempty" tf:"rollback_on_disable,omitempty"`
}
type AutoTuneOptionsParameters struct {
// Auto-Tune desired state for the domain. Valid values: ENABLED or DISABLED.
// +kubebuilder:validation:Required
DesiredState *string `json:"desiredState" tf:"desired_state,omitempty"`
// Configuration block for Auto-Tune maintenance windows. Can be specified multiple times for each maintenance window. Detailed below.
// +kubebuilder:validation:Optional
MaintenanceSchedule []MaintenanceScheduleParameters `json:"maintenanceSchedule,omitempty" tf:"maintenance_schedule,omitempty"`
// Whether to roll back to default Auto-Tune settings when disabling Auto-Tune. Valid values: DEFAULT_ROLLBACK or NO_ROLLBACK.
// +kubebuilder:validation:Optional
RollbackOnDisable *string `json:"rollbackOnDisable,omitempty" tf:"rollback_on_disable,omitempty"`
}
type ClusterConfigObservation struct {
// Configuration block containing cold storage configuration. Detailed below.
ColdStorageOptions []ColdStorageOptionsObservation `json:"coldStorageOptions,omitempty" tf:"cold_storage_options,omitempty"`
// Number of dedicated main nodes in the cluster.
DedicatedMasterCount *float64 `json:"dedicatedMasterCount,omitempty" tf:"dedicated_master_count,omitempty"`
// Whether dedicated main nodes are enabled for the cluster.
DedicatedMasterEnabled *bool `json:"dedicatedMasterEnabled,omitempty" tf:"dedicated_master_enabled,omitempty"`
// Instance type of the dedicated main nodes in the cluster.
DedicatedMasterType *string `json:"dedicatedMasterType,omitempty" tf:"dedicated_master_type,omitempty"`
// Number of instances in the cluster.
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
// Instance type of data nodes in the cluster.
InstanceType *string `json:"instanceType,omitempty" tf:"instance_type,omitempty"`
// Number of warm nodes in the cluster. Valid values are between 2 and 150. warm_count can be only and must be set when warm_enabled is set to true.
WarmCount *float64 `json:"warmCount,omitempty" tf:"warm_count,omitempty"`
// Whether to enable warm storage.
WarmEnabled *bool `json:"warmEnabled,omitempty" tf:"warm_enabled,omitempty"`
// Instance type for the OpenSearch cluster's warm nodes. Valid values are ultrawarm1.medium.search, ultrawarm1.large.search and ultrawarm1.xlarge.search. warm_type can be only and must be set when warm_enabled is set to true.
WarmType *string `json:"warmType,omitempty" tf:"warm_type,omitempty"`
// Configuration block containing zone awareness settings. Detailed below.
ZoneAwarenessConfig []ZoneAwarenessConfigObservation `json:"zoneAwarenessConfig,omitempty" tf:"zone_awareness_config,omitempty"`
// Whether zone awareness is enabled, set to true for multi-az deployment. To enable awareness with three Availability Zones, the availability_zone_count within the zone_awareness_config must be set to 3.
ZoneAwarenessEnabled *bool `json:"zoneAwarenessEnabled,omitempty" tf:"zone_awareness_enabled,omitempty"`
}
type ClusterConfigParameters struct {
// Configuration block containing cold storage configuration. Detailed below.
// +kubebuilder:validation:Optional
ColdStorageOptions []ColdStorageOptionsParameters `json:"coldStorageOptions,omitempty" tf:"cold_storage_options,omitempty"`
// Number of dedicated main nodes in the cluster.
// +kubebuilder:validation:Optional
DedicatedMasterCount *float64 `json:"dedicatedMasterCount,omitempty" tf:"dedicated_master_count,omitempty"`
// Whether dedicated main nodes are enabled for the cluster.
// +kubebuilder:validation:Optional
DedicatedMasterEnabled *bool `json:"dedicatedMasterEnabled,omitempty" tf:"dedicated_master_enabled,omitempty"`
// Instance type of the dedicated main nodes in the cluster.
// +kubebuilder:validation:Optional
DedicatedMasterType *string `json:"dedicatedMasterType,omitempty" tf:"dedicated_master_type,omitempty"`
// Number of instances in the cluster.
// +kubebuilder:validation:Optional
InstanceCount *float64 `json:"instanceCount,omitempty" tf:"instance_count,omitempty"`
// Instance type of data nodes in the cluster.
// +kubebuilder:validation:Optional
InstanceType *string `json:"instanceType,omitempty" tf:"instance_type,omitempty"`
// Number of warm nodes in the cluster. Valid values are between 2 and 150. warm_count can be only and must be set when warm_enabled is set to true.
// +kubebuilder:validation:Optional
WarmCount *float64 `json:"warmCount,omitempty" tf:"warm_count,omitempty"`
// Whether to enable warm storage.
// +kubebuilder:validation:Optional
WarmEnabled *bool `json:"warmEnabled,omitempty" tf:"warm_enabled,omitempty"`
// Instance type for the OpenSearch cluster's warm nodes. Valid values are ultrawarm1.medium.search, ultrawarm1.large.search and ultrawarm1.xlarge.search. warm_type can be only and must be set when warm_enabled is set to true.
// +kubebuilder:validation:Optional
WarmType *string `json:"warmType,omitempty" tf:"warm_type,omitempty"`
// Configuration block containing zone awareness settings. Detailed below.
// +kubebuilder:validation:Optional
ZoneAwarenessConfig []ZoneAwarenessConfigParameters `json:"zoneAwarenessConfig,omitempty" tf:"zone_awareness_config,omitempty"`
// Whether zone awareness is enabled, set to true for multi-az deployment. To enable awareness with three Availability Zones, the availability_zone_count within the zone_awareness_config must be set to 3.
// +kubebuilder:validation:Optional
ZoneAwarenessEnabled *bool `json:"zoneAwarenessEnabled,omitempty" tf:"zone_awareness_enabled,omitempty"`
}
type CognitoOptionsObservation struct {
// Whether Amazon Cognito authentication with Kibana is enabled or not. Default is false.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// ID of the Cognito Identity Pool to use.
IdentityPoolID *string `json:"identityPoolId,omitempty" tf:"identity_pool_id,omitempty"`
// ARN of the IAM role that has the AmazonOpenSearchServiceCognitoAccess policy attached.
RoleArn *string `json:"roleArn,omitempty" tf:"role_arn,omitempty"`
// ID of the Cognito User Pool to use.
UserPoolID *string `json:"userPoolId,omitempty" tf:"user_pool_id,omitempty"`
}
type CognitoOptionsParameters struct {
// Whether Amazon Cognito authentication with Kibana is enabled or not. Default is false.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// ID of the Cognito Identity Pool to use.
// +kubebuilder:validation:Required
IdentityPoolID *string `json:"identityPoolId" tf:"identity_pool_id,omitempty"`
// ARN of the IAM role that has the AmazonOpenSearchServiceCognitoAccess policy attached.
// +kubebuilder:validation:Required
RoleArn *string `json:"roleArn" tf:"role_arn,omitempty"`
// ID of the Cognito User Pool to use.
// +kubebuilder:validation:Required
UserPoolID *string `json:"userPoolId" tf:"user_pool_id,omitempty"`
}
type ColdStorageOptionsObservation struct {
// Boolean to enable cold storage for an OpenSearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type ColdStorageOptionsParameters struct {
// Boolean to enable cold storage for an OpenSearch domain. Defaults to false. Master and ultrawarm nodes must be enabled for cold storage.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type DomainEndpointOptionsObservation struct {
// Fully qualified domain for your custom endpoint.
CustomEndpoint *string `json:"customEndpoint,omitempty" tf:"custom_endpoint,omitempty"`
// ACM certificate ARN for your custom endpoint.
CustomEndpointCertificateArn *string `json:"customEndpointCertificateArn,omitempty" tf:"custom_endpoint_certificate_arn,omitempty"`
// Whether to enable custom endpoint for the OpenSearch domain.
CustomEndpointEnabled *bool `json:"customEndpointEnabled,omitempty" tf:"custom_endpoint_enabled,omitempty"`
// Whether or not to require HTTPS. Defaults to true.
EnforceHTTPS *bool `json:"enforceHttps,omitempty" tf:"enforce_https,omitempty"`
// Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07 and Policy-Min-TLS-1-2-2019-07.
TLSSecurityPolicy *string `json:"tlsSecurityPolicy,omitempty" tf:"tls_security_policy,omitempty"`
}
type DomainEndpointOptionsParameters struct {
// Fully qualified domain for your custom endpoint.
// +kubebuilder:validation:Optional
CustomEndpoint *string `json:"customEndpoint,omitempty" tf:"custom_endpoint,omitempty"`
// ACM certificate ARN for your custom endpoint.
// +kubebuilder:validation:Optional
CustomEndpointCertificateArn *string `json:"customEndpointCertificateArn,omitempty" tf:"custom_endpoint_certificate_arn,omitempty"`
// Whether to enable custom endpoint for the OpenSearch domain.
// +kubebuilder:validation:Optional
CustomEndpointEnabled *bool `json:"customEndpointEnabled,omitempty" tf:"custom_endpoint_enabled,omitempty"`
// Whether or not to require HTTPS. Defaults to true.
// +kubebuilder:validation:Optional
EnforceHTTPS *bool `json:"enforceHttps,omitempty" tf:"enforce_https,omitempty"`
// Name of the TLS security policy that needs to be applied to the HTTPS endpoint. Valid values: Policy-Min-TLS-1-0-2019-07 and Policy-Min-TLS-1-2-2019-07.
// +kubebuilder:validation:Optional
TLSSecurityPolicy *string `json:"tlsSecurityPolicy,omitempty" tf:"tls_security_policy,omitempty"`
}
type DomainObservation struct {
// , are prefaced with es: for both.
AccessPolicies *string `json:"accessPolicies,omitempty" tf:"access_policies,omitempty"`
// Key-value string pairs to specify advanced configuration options.
AdvancedOptions map[string]*string `json:"advancedOptions,omitempty" tf:"advanced_options,omitempty"`
// Configuration block for fine-grained access control. Detailed below.
AdvancedSecurityOptions []AdvancedSecurityOptionsObservation `json:"advancedSecurityOptions,omitempty" tf:"advanced_security_options,omitempty"`
// ARN of the domain.
Arn *string `json:"arn,omitempty" tf:"arn,omitempty"`
// Configuration block for the Auto-Tune options of the domain. Detailed below.
AutoTuneOptions []AutoTuneOptionsObservation `json:"autoTuneOptions,omitempty" tf:"auto_tune_options,omitempty"`
// Configuration block for the cluster of the domain. Detailed below.
ClusterConfig []ClusterConfigObservation `json:"clusterConfig,omitempty" tf:"cluster_config,omitempty"`
// Configuration block for authenticating Kibana with Cognito. Detailed below.
CognitoOptions []CognitoOptionsObservation `json:"cognitoOptions,omitempty" tf:"cognito_options,omitempty"`
// Configuration block for domain endpoint HTTP(S) related options. Detailed below.
DomainEndpointOptions []DomainEndpointOptionsObservation `json:"domainEndpointOptions,omitempty" tf:"domain_endpoint_options,omitempty"`
// Unique identifier for the domain.
DomainID *string `json:"domainId,omitempty" tf:"domain_id,omitempty"`
// Name of the domain.
DomainName *string `json:"domainName,omitempty" tf:"domain_name,omitempty"`
// Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
EBSOptions []EBSOptionsObservation `json:"ebsOptions,omitempty" tf:"ebs_options,omitempty"`
// Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
EncryptAtRest []EncryptAtRestObservation `json:"encryptAtRest,omitempty" tf:"encrypt_at_rest,omitempty"`
// Domain-specific endpoint used to submit index, search, and data upload requests.
Endpoint *string `json:"endpoint,omitempty" tf:"endpoint,omitempty"`
// while Elasticsearch has elasticsearch_version
EngineVersion *string `json:"engineVersion,omitempty" tf:"engine_version,omitempty"`
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// Domain-specific endpoint for kibana without https scheme.
KibanaEndpoint *string `json:"kibanaEndpoint,omitempty" tf:"kibana_endpoint,omitempty"`
// Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
LogPublishingOptions []LogPublishingOptionsObservation `json:"logPublishingOptions,omitempty" tf:"log_publishing_options,omitempty"`
// Configuration block for node-to-node encryption options. Detailed below.
NodeToNodeEncryption []NodeToNodeEncryptionObservation `json:"nodeToNodeEncryption,omitempty" tf:"node_to_node_encryption,omitempty"`
// Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running OpenSearch 5.3 and later, Amazon OpenSearch takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions, OpenSearch takes daily automated snapshots.
SnapshotOptions []SnapshotOptionsObservation `json:"snapshotOptions,omitempty" tf:"snapshot_options,omitempty"`
// Key-value map of resource tags.
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// 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"`
// Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
VPCOptions []VPCOptionsObservation `json:"vpcOptions,omitempty" tf:"vpc_options,omitempty"`
}
type DomainParameters struct {
// Key-value string pairs to specify advanced configuration options.
// +kubebuilder:validation:Optional
AdvancedOptions map[string]*string `json:"advancedOptions,omitempty" tf:"advanced_options,omitempty"`
// Configuration block for fine-grained access control. Detailed below.
// +kubebuilder:validation:Optional
AdvancedSecurityOptions []AdvancedSecurityOptionsParameters `json:"advancedSecurityOptions,omitempty" tf:"advanced_security_options,omitempty"`
// Configuration block for the Auto-Tune options of the domain. Detailed below.
// +kubebuilder:validation:Optional
AutoTuneOptions []AutoTuneOptionsParameters `json:"autoTuneOptions,omitempty" tf:"auto_tune_options,omitempty"`
// Configuration block for the cluster of the domain. Detailed below.
// +kubebuilder:validation:Optional
ClusterConfig []ClusterConfigParameters `json:"clusterConfig,omitempty" tf:"cluster_config,omitempty"`
// Configuration block for authenticating Kibana with Cognito. Detailed below.
// +kubebuilder:validation:Optional
CognitoOptions []CognitoOptionsParameters `json:"cognitoOptions,omitempty" tf:"cognito_options,omitempty"`
// Configuration block for domain endpoint HTTP(S) related options. Detailed below.
// +kubebuilder:validation:Optional
DomainEndpointOptions []DomainEndpointOptionsParameters `json:"domainEndpointOptions,omitempty" tf:"domain_endpoint_options,omitempty"`
// Name of the domain.
// +kubebuilder:validation:Optional
DomainName *string `json:"domainName,omitempty" tf:"domain_name,omitempty"`
// Configuration block for EBS related options, may be required based on chosen instance size. Detailed below.
// +kubebuilder:validation:Optional
EBSOptions []EBSOptionsParameters `json:"ebsOptions,omitempty" tf:"ebs_options,omitempty"`
// Configuration block for encrypt at rest options. Only available for certain instance types. Detailed below.
// +kubebuilder:validation:Optional
EncryptAtRest []EncryptAtRestParameters `json:"encryptAtRest,omitempty" tf:"encrypt_at_rest,omitempty"`
// while Elasticsearch has elasticsearch_version
// +kubebuilder:validation:Optional
EngineVersion *string `json:"engineVersion,omitempty" tf:"engine_version,omitempty"`
// Configuration block for publishing slow and application logs to CloudWatch Logs. This block can be declared multiple times, for each log_type, within the same resource. Detailed below.
// +kubebuilder:validation:Optional
LogPublishingOptions []LogPublishingOptionsParameters `json:"logPublishingOptions,omitempty" tf:"log_publishing_options,omitempty"`
// Configuration block for node-to-node encryption options. Detailed below.
// +kubebuilder:validation:Optional
NodeToNodeEncryption []NodeToNodeEncryptionParameters `json:"nodeToNodeEncryption,omitempty" tf:"node_to_node_encryption,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:"-"`
// Configuration block for snapshot related options. Detailed below. DEPRECATED. For domains running OpenSearch 5.3 and later, Amazon OpenSearch takes hourly automated snapshots, making this setting irrelevant. For domains running earlier versions, OpenSearch takes daily automated snapshots.
// +kubebuilder:validation:Optional
SnapshotOptions []SnapshotOptionsParameters `json:"snapshotOptions,omitempty" tf:"snapshot_options,omitempty"`
// Key-value map of resource tags.
// +kubebuilder:validation:Optional
Tags map[string]*string `json:"tags,omitempty" tf:"tags,omitempty"`
// Configuration block for VPC related options. Adding or removing this configuration forces a new resource (documentation). Detailed below.
// +kubebuilder:validation:Optional
VPCOptions []VPCOptionsParameters `json:"vpcOptions,omitempty" tf:"vpc_options,omitempty"`
}
type DurationObservation struct {
// Unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: HOURS.
Unit *string `json:"unit,omitempty" tf:"unit,omitempty"`
// An integer specifying the value of the duration of an Auto-Tune maintenance window.
Value *float64 `json:"value,omitempty" tf:"value,omitempty"`
}
type DurationParameters struct {
// Unit of time specifying the duration of an Auto-Tune maintenance window. Valid values: HOURS.
// +kubebuilder:validation:Required
Unit *string `json:"unit" tf:"unit,omitempty"`
// An integer specifying the value of the duration of an Auto-Tune maintenance window.
// +kubebuilder:validation:Required
Value *float64 `json:"value" tf:"value,omitempty"`
}
type EBSOptionsObservation struct {
// Whether EBS volumes are attached to data nodes in the domain.
EBSEnabled *bool `json:"ebsEnabled,omitempty" tf:"ebs_enabled,omitempty"`
// Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types.
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type. Valid values are between 125 and 1000.
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// Size of EBS volumes attached to data nodes (in GiB).
VolumeSize *float64 `json:"volumeSize,omitempty" tf:"volume_size,omitempty"`
// Type of EBS volumes attached to data nodes.
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type EBSOptionsParameters struct {
// Whether EBS volumes are attached to data nodes in the domain.
// +kubebuilder:validation:Required
EBSEnabled *bool `json:"ebsEnabled" tf:"ebs_enabled,omitempty"`
// Baseline input/output (I/O) performance of EBS volumes attached to data nodes. Applicable only for the GP3 and Provisioned IOPS EBS volume types.
// +kubebuilder:validation:Optional
Iops *float64 `json:"iops,omitempty" tf:"iops,omitempty"`
// Specifies the throughput (in MiB/s) of the EBS volumes attached to data nodes. Applicable only for the gp3 volume type. Valid values are between 125 and 1000.
// +kubebuilder:validation:Optional
Throughput *float64 `json:"throughput,omitempty" tf:"throughput,omitempty"`
// Size of EBS volumes attached to data nodes (in GiB).
// +kubebuilder:validation:Optional
VolumeSize *float64 `json:"volumeSize,omitempty" tf:"volume_size,omitempty"`
// Type of EBS volumes attached to data nodes.
// +kubebuilder:validation:Optional
VolumeType *string `json:"volumeType,omitempty" tf:"volume_type,omitempty"`
}
type EncryptAtRestObservation struct {
// Whether to enable encryption at rest. If the encrypt_at_rest block is not provided then this defaults to false. Enabling encryption on new domains requires an engine_version of OpenSearch_X.Y or Elasticsearch_5.1 or greater.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/es service KMS key. Note that KMS will accept a KMS key ID but will return the key ARN.
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
}
type EncryptAtRestParameters struct {
// Whether to enable encryption at rest. If the encrypt_at_rest block is not provided then this defaults to false. Enabling encryption on new domains requires an engine_version of OpenSearch_X.Y or Elasticsearch_5.1 or greater.
// +kubebuilder:validation:Required
Enabled *bool `json:"enabled" tf:"enabled,omitempty"`
// KMS key ARN to encrypt the Elasticsearch domain with. If not specified then it defaults to using the aws/es service KMS key. Note that KMS will accept a KMS key ID but will return the key ARN.
// +kubebuilder:validation:Optional
KMSKeyID *string `json:"kmsKeyId,omitempty" tf:"kms_key_id,omitempty"`
}
type LogPublishingOptionsObservation struct {
// ARN of the Cloudwatch log group to which log needs to be published.
CloudwatchLogGroupArn *string `json:"cloudwatchLogGroupArn,omitempty" tf:"cloudwatch_log_group_arn,omitempty"`
// Whether given log publishing option is enabled or not.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Type of OpenSearch log. Valid values: INDEX_SLOW_LOGS, SEARCH_SLOW_LOGS, ES_APPLICATION_LOGS, AUDIT_LOGS.
LogType *string `json:"logType,omitempty" tf:"log_type,omitempty"`
}
type LogPublishingOptionsParameters struct {
// ARN of the Cloudwatch log group to which log needs to be published.
// +crossplane:generate:reference:type=github.com/upbound/provider-aws/apis/cloudwatchlogs/v1beta1.Group
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("arn",true)
// +kubebuilder:validation:Optional
CloudwatchLogGroupArn *string `json:"cloudwatchLogGroupArn,omitempty" tf:"cloudwatch_log_group_arn,omitempty"`
// Reference to a Group in cloudwatchlogs to populate cloudwatchLogGroupArn.
// +kubebuilder:validation:Optional
CloudwatchLogGroupArnRef *v1.Reference `json:"cloudwatchLogGroupArnRef,omitempty" tf:"-"`
// Selector for a Group in cloudwatchlogs to populate cloudwatchLogGroupArn.
// +kubebuilder:validation:Optional
CloudwatchLogGroupArnSelector *v1.Selector `json:"cloudwatchLogGroupArnSelector,omitempty" tf:"-"`
// Whether given log publishing option is enabled or not.
// +kubebuilder:validation:Optional
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
// Type of OpenSearch log. Valid values: INDEX_SLOW_LOGS, SEARCH_SLOW_LOGS, ES_APPLICATION_LOGS, AUDIT_LOGS.
// +kubebuilder:validation:Required
LogType *string `json:"logType" tf:"log_type,omitempty"`
}
type MaintenanceScheduleObservation struct {
// A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
CronExpressionForRecurrence *string `json:"cronExpressionForRecurrence,omitempty" tf:"cron_expression_for_recurrence,omitempty"`
// Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
Duration []DurationObservation `json:"duration,omitempty" tf:"duration,omitempty"`
// Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format.
StartAt *string `json:"startAt,omitempty" tf:"start_at,omitempty"`
}
type MaintenanceScheduleParameters struct {
// A cron expression specifying the recurrence pattern for an Auto-Tune maintenance schedule.
// +kubebuilder:validation:Required
CronExpressionForRecurrence *string `json:"cronExpressionForRecurrence" tf:"cron_expression_for_recurrence,omitempty"`
// Configuration block for the duration of the Auto-Tune maintenance window. Detailed below.
// +kubebuilder:validation:Required
Duration []DurationParameters `json:"duration" tf:"duration,omitempty"`
// Date and time at which to start the Auto-Tune maintenance schedule in RFC3339 format.
// +kubebuilder:validation:Required
StartAt *string `json:"startAt" tf:"start_at,omitempty"`
}
type MasterUserOptionsObservation struct {
// ARN for the main user. Only specify if internal_user_database_enabled is not set or set to false.
MasterUserArn *string `json:"masterUserArn,omitempty" tf:"master_user_arn,omitempty"`
// Main user's username, which is stored in the Amazon OpenSearch Service domain's internal database. Only specify if internal_user_database_enabled is set to true.
MasterUserName *string `json:"masterUserName,omitempty" tf:"master_user_name,omitempty"`
}
type MasterUserOptionsParameters struct {
// ARN for the main user. Only specify if internal_user_database_enabled is not set or set to false.
// +kubebuilder:validation:Optional
MasterUserArn *string `json:"masterUserArn,omitempty" tf:"master_user_arn,omitempty"`
// Main user's username, which is stored in the Amazon OpenSearch Service domain's internal database. Only specify if internal_user_database_enabled is set to true.
// +kubebuilder:validation:Optional
MasterUserName *string `json:"masterUserName,omitempty" tf:"master_user_name,omitempty"`
// Main user's password, which is stored in the Amazon OpenSearch Service domain's internal database. Only specify if internal_user_database_enabled is set to true.
// +kubebuilder:validation:Optional
MasterUserPasswordSecretRef *v1.SecretKeySelector `json:"masterUserPasswordSecretRef,omitempty" tf:"-"`
}
type NodeToNodeEncryptionObservation struct {
// Whether to enable node-to-node encryption. If the node_to_node_encryption block is not provided then this defaults to false. Enabling node-to-node encryption of a new domain requires an engine_version of OpenSearch_X.Y or Elasticsearch_6.0 or greater.
Enabled *bool `json:"enabled,omitempty" tf:"enabled,omitempty"`
}
type NodeToNodeEncryptionParameters struct {
// Whether to enable node-to-node encryption. If the node_to_node_encryption block is not provided then this defaults to false. Enabling node-to-node encryption of a new domain requires an engine_version of OpenSearch_X.Y or Elasticsearch_6.0 or greater.
// +kubebuilder:validation:Required
Enabled *bool `json:"enabled" tf:"enabled,omitempty"`
}
type SnapshotOptionsObservation struct {
// Hour during which the service takes an automated daily snapshot of the indices in the domain.
AutomatedSnapshotStartHour *float64 `json:"automatedSnapshotStartHour,omitempty" tf:"automated_snapshot_start_hour,omitempty"`
}
type SnapshotOptionsParameters struct {
// Hour during which the service takes an automated daily snapshot of the indices in the domain.
// +kubebuilder:validation:Required
AutomatedSnapshotStartHour *float64 `json:"automatedSnapshotStartHour" tf:"automated_snapshot_start_hour,omitempty"`
}
type VPCOptionsObservation struct {
// If the domain was created inside a VPC, the names of the availability zones the configured subnet_ids were created inside.
AvailabilityZones []*string `json:"availabilityZones,omitempty" tf:"availability_zones,omitempty"`
// List of VPC Security Group IDs to be applied to the OpenSearch domain endpoints. If omitted, the default Security Group for the VPC will be used.
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// List of VPC Subnet IDs for the OpenSearch domain endpoints to be created in.
SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"`
// If the domain was created inside a VPC, the ID of the VPC.
VPCID *string `json:"vpcId,omitempty" tf:"vpc_id,omitempty"`
}
type VPCOptionsParameters struct {
// List of VPC Security Group IDs to be applied to the OpenSearch domain endpoints. If omitted, the default Security Group for the VPC will be used.
// +kubebuilder:validation:Optional
SecurityGroupIds []*string `json:"securityGroupIds,omitempty" tf:"security_group_ids,omitempty"`
// List of VPC Subnet IDs for the OpenSearch domain endpoints to be created in.
// +kubebuilder:validation:Optional
SubnetIds []*string `json:"subnetIds,omitempty" tf:"subnet_ids,omitempty"`
}
type ZoneAwarenessConfigObservation struct {
// Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to 2. Valid values: 2 or 3.
AvailabilityZoneCount *float64 `json:"availabilityZoneCount,omitempty" tf:"availability_zone_count,omitempty"`
}
type ZoneAwarenessConfigParameters struct {
// Number of Availability Zones for the domain to use with zone_awareness_enabled. Defaults to 2. Valid values: 2 or 3.
// +kubebuilder:validation:Optional
AvailabilityZoneCount *float64 `json:"availabilityZoneCount,omitempty" tf:"availability_zone_count,omitempty"`
}
// DomainSpec defines the desired state of Domain
type DomainSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider DomainParameters `json:"forProvider"`
}
// DomainStatus defines the observed state of Domain.
type DomainStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider DomainObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Domain is the Schema for the Domains 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 Domain struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.domainName)",message="domainName is a required parameter"
Spec DomainSpec `json:"spec"`
Status DomainStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// DomainList contains a list of Domains
type DomainList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Domain `json:"items"`
}
// Repository type metadata.
var (
Domain_Kind = "Domain"
Domain_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Domain_Kind}.String()
Domain_KindAPIVersion = Domain_Kind + "." + CRDGroupVersion.String()
Domain_GroupVersionKind = CRDGroupVersion.WithKind(Domain_Kind)
)
func init() {
SchemeBuilder.Register(&Domain{}, &DomainList{})
}