-
Notifications
You must be signed in to change notification settings - Fork 598
/
types.go
2375 lines (1756 loc) · 70.5 KB
/
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
// Code generated by smithy-go-codegen DO NOT EDIT.
package types
import (
smithydocument "github.com/aws/smithy-go/document"
"time"
)
// The configured access rules for the domain's search endpoint, and the current
// status of those rules.
type AccessPoliciesStatus struct {
// The access policy configured for the domain. Access policies can be
// resource-based, IP-based, or IAM-based. For more information, see [Configuring access policies].
//
// [Configuring access policies]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html#createdomain-configure-access-policies
//
// This member is required.
Options *string
// The status of the access policy for the domain.
//
// This member is required.
Status *OptionStatus
noSmithyDocumentSerde
}
// List of limits that are specific to a given instance type.
type AdditionalLimit struct {
// - MaximumNumberOfDataNodesSupported - This attribute only applies to master
// nodes and specifies the maximum number of data nodes of a given instance type a
// master node can support.
//
// - MaximumNumberOfDataNodesWithoutMasterNode - This attribute only applies to
// data nodes and specifies the maximum number of data nodes of a given instance
// type can exist without a master node governing them.
LimitName *string
// The values of the additional instance type limits.
LimitValues []string
noSmithyDocumentSerde
}
// Status of the advanced options for the specified domain. The following options
// are available:
//
// - "rest.action.multi.allow_explicit_index": "true" | "false" - Note the use of
// a string rather than a boolean. Specifies whether explicit references to indexes
// are allowed inside the body of HTTP requests. If you want to configure access
// policies for domain sub-resources, such as specific indexes and domain APIs, you
// must disable this property. Default is true.
//
// - "indices.fielddata.cache.size": "80" - Note the use of a string rather than
// a boolean. Specifies the percentage of heap space allocated to field data.
// Default is unbounded.
//
// - "indices.query.bool.max_clause_count": "1024" - Note the use of a string
// rather than a boolean. Specifies the maximum number of clauses allowed in a
// Lucene boolean query. Default is 1,024. Queries with more than the permitted
// number of clauses result in a TooManyClauses error.
//
// - "override_main_response_version": "true" | "false" - Note the use of a
// string rather than a boolean. Specifies whether the domain reports its version
// as 7.10 to allow Elasticsearch OSS clients and plugins to continue working with
// it. Default is false when creating a domain and true when upgrading a domain.
//
// For more information, see [Advanced cluster parameters].
//
// [Advanced cluster parameters]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html#createdomain-configure-advanced-options
type AdvancedOptionsStatus struct {
// The status of advanced options for the specified domain.
//
// This member is required.
Options map[string]string
// The status of advanced options for the specified domain.
//
// This member is required.
Status *OptionStatus
noSmithyDocumentSerde
}
// Container for fine-grained access control settings.
type AdvancedSecurityOptions struct {
// Date and time when the migration period will be disabled. Only necessary when [enabling fine-grained access control on an existing domain].
//
// [enabling fine-grained access control on an existing domain]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/fgac.html#fgac-enabling-existing
AnonymousAuthDisableDate *time.Time
// True if a 30-day migration period is enabled, during which administrators can
// create role mappings. Only necessary when [enabling fine-grained access control on an existing domain].
//
// [enabling fine-grained access control on an existing domain]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/fgac.html#fgac-enabling-existing
AnonymousAuthEnabled *bool
// True if fine-grained access control is enabled.
Enabled *bool
// True if the internal user database is enabled.
InternalUserDatabaseEnabled *bool
// Container for information about the SAML configuration for OpenSearch
// Dashboards.
SAMLOptions *SAMLOptionsOutput
noSmithyDocumentSerde
}
// Options for enabling and configuring fine-grained access control. For more
// information, see [Fine-grained access control in Amazon OpenSearch Service].
//
// [Fine-grained access control in Amazon OpenSearch Service]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/fgac.html
type AdvancedSecurityOptionsInput struct {
// True to enable a 30-day migration period during which administrators can create
// role mappings. Only necessary when [enabling fine-grained access control on an existing domain].
//
// [enabling fine-grained access control on an existing domain]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/fgac.html#fgac-enabling-existing
AnonymousAuthEnabled *bool
// True to enable fine-grained access control.
Enabled *bool
// True to enable the internal user database.
InternalUserDatabaseEnabled *bool
// Container for information about the master user.
MasterUserOptions *MasterUserOptions
// Container for information about the SAML configuration for OpenSearch
// Dashboards.
SAMLOptions *SAMLOptionsInput
noSmithyDocumentSerde
}
// The status of fine-grained access control settings for a domain.
type AdvancedSecurityOptionsStatus struct {
// Container for fine-grained access control settings.
//
// This member is required.
Options *AdvancedSecurityOptions
// Status of the fine-grained access control settings for a domain.
//
// This member is required.
Status *OptionStatus
noSmithyDocumentSerde
}
// Information about an Amazon Web Services account or service that has access to
// an Amazon OpenSearch Service domain through the use of an interface VPC
// endpoint.
type AuthorizedPrincipal struct {
// The [IAM principal] that is allowed access to the domain.
//
// [IAM principal]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_principal.html
Principal *string
// The type of principal.
PrincipalType PrincipalType
noSmithyDocumentSerde
}
// Information about an Auto-Tune action. For more information, see [Auto-Tune for Amazon OpenSearch Service].
//
// [Auto-Tune for Amazon OpenSearch Service]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/auto-tune.html
type AutoTune struct {
// Details about an Auto-Tune action.
AutoTuneDetails *AutoTuneDetails
// The type of Auto-Tune action.
AutoTuneType AutoTuneType
noSmithyDocumentSerde
}
// Specifies details about a scheduled Auto-Tune action. For more information, see [Auto-Tune for Amazon OpenSearch Service]
// .
//
// [Auto-Tune for Amazon OpenSearch Service]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/auto-tune.html
type AutoTuneDetails struct {
// Container for details about a scheduled Auto-Tune action.
ScheduledAutoTuneDetails *ScheduledAutoTuneDetails
noSmithyDocumentSerde
}
// This object is deprecated. Use the domain's [off-peak window] to schedule Auto-Tune
// optimizations. For migration instructions, see [Migrating from Auto-Tune maintenance windows].
//
// The Auto-Tune maintenance schedule. For more information, see [Auto-Tune for Amazon OpenSearch Service].
//
// [off-peak window]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/off-peak.html
// [Auto-Tune for Amazon OpenSearch Service]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/auto-tune.html
// [Migrating from Auto-Tune maintenance windows]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/off-peak.html#off-peak-migrate
type AutoTuneMaintenanceSchedule struct {
// A cron expression for a recurring maintenance schedule during which Auto-Tune
// can deploy changes.
CronExpressionForRecurrence *string
// The duration of the maintenance schedule. For example, "Duration": {"Value": 2,
// "Unit": "HOURS"} .
Duration *Duration
// The Epoch timestamp at which the Auto-Tune maintenance schedule starts.
StartAt *time.Time
noSmithyDocumentSerde
}
// Auto-Tune settings when updating a domain. For more information, see [Auto-Tune for Amazon OpenSearch Service].
//
// [Auto-Tune for Amazon OpenSearch Service]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/auto-tune.html
type AutoTuneOptions struct {
// Whether Auto-Tune is enabled or disabled.
DesiredState AutoTuneDesiredState
// DEPRECATED. Use [off-peak window] instead.
//
// A list of maintenance schedules during which Auto-Tune can deploy changes.
//
// [off-peak window]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/off-peak.html
MaintenanceSchedules []AutoTuneMaintenanceSchedule
// When disabling Auto-Tune, specify NO_ROLLBACK to retain all prior Auto-Tune
// settings or DEFAULT_ROLLBACK to revert to the OpenSearch Service defaults. If
// you specify DEFAULT_ROLLBACK , you must include a MaintenanceSchedule in the
// request. Otherwise, OpenSearch Service is unable to perform the rollback.
RollbackOnDisable RollbackOnDisable
// Whether to use the domain's [off-peak window] to deploy configuration changes on the domain
// rather than a maintenance schedule.
//
// [off-peak window]: https://docs.aws.amazon.com/opensearch-service/latest/APIReference/API_OffPeakWindow.html
UseOffPeakWindow *bool
noSmithyDocumentSerde
}
// Options for configuring Auto-Tune. For more information, see [Auto-Tune for Amazon OpenSearch Service]
//
// [Auto-Tune for Amazon OpenSearch Service]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/auto-tune.html
type AutoTuneOptionsInput struct {
// Whether Auto-Tune is enabled or disabled.
DesiredState AutoTuneDesiredState
// A list of maintenance schedules during which Auto-Tune can deploy changes.
// Maintenance windows are deprecated and have been replaced with [off-peak windows].
//
// [off-peak windows]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/off-peak.html
MaintenanceSchedules []AutoTuneMaintenanceSchedule
// Whether to schedule Auto-Tune optimizations that require blue/green deployments
// during the domain's configured daily off-peak window.
UseOffPeakWindow *bool
noSmithyDocumentSerde
}
// The Auto-Tune settings for a domain, displayed when enabling or disabling
// Auto-Tune.
type AutoTuneOptionsOutput struct {
// Any errors that occurred while enabling or disabling Auto-Tune.
ErrorMessage *string
// The current state of Auto-Tune on the domain.
State AutoTuneState
// Whether the domain's off-peak window will be used to deploy Auto-Tune changes
// rather than a maintenance schedule.
UseOffPeakWindow *bool
noSmithyDocumentSerde
}
// The Auto-Tune status for the domain.
type AutoTuneOptionsStatus struct {
// Auto-Tune settings for updating a domain.
Options *AutoTuneOptions
// The current status of Auto-Tune for a domain.
Status *AutoTuneStatus
noSmithyDocumentSerde
}
// The current status of Auto-Tune for the domain. For more information, see [Auto-Tune for Amazon OpenSearch Service].
//
// [Auto-Tune for Amazon OpenSearch Service]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/auto-tune.html
type AutoTuneStatus struct {
// Date and time when Auto-Tune was enabled for the domain.
//
// This member is required.
CreationDate *time.Time
// The current state of Auto-Tune on the domain.
//
// This member is required.
State AutoTuneState
// Date and time when the Auto-Tune options were last updated for the domain.
//
// This member is required.
UpdateDate *time.Time
// Any errors that occurred while enabling or disabling Auto-Tune.
ErrorMessage *string
// Indicates whether the domain is being deleted.
PendingDeletion *bool
// The latest version of the Auto-Tune options.
UpdateVersion int32
noSmithyDocumentSerde
}
// Information about an Availability Zone on a domain.
type AvailabilityZoneInfo struct {
// The name of the Availability Zone.
AvailabilityZoneName *string
// The number of data nodes active in the Availability Zone.
AvailableDataNodeCount *string
// The total number of data nodes configured in the Availability Zone.
ConfiguredDataNodeCount *string
// The total number of primary and replica shards in the Availability Zone.
TotalShards *string
// The total number of primary and replica shards that aren't allocated to any of
// the nodes in the Availability Zone.
TotalUnAssignedShards *string
// The current state of the Availability Zone. Current options are Active and
// StandBy .
//
// - Active - Data nodes in the Availability Zone are in use.
//
// - StandBy - Data nodes in the Availability Zone are in a standby state.
//
// - NotAvailable - Unable to retrieve information.
ZoneStatus ZoneStatus
noSmithyDocumentSerde
}
// Information about an Amazon OpenSearch Service domain.
type AWSDomainInformation struct {
// Name of the domain.
//
// This member is required.
DomainName *string
// The Amazon Web Services account ID of the domain owner.
OwnerId *string
// The Amazon Web Services Region in which the domain is located.
Region *string
noSmithyDocumentSerde
}
// A property change that was cancelled for an Amazon OpenSearch Service domain.
type CancelledChangeProperty struct {
// The current value of the property, after the change was cancelled.
ActiveValue *string
// The pending value of the property that was cancelled. This would have been the
// eventual value of the property if the chance had not been cancelled.
CancelledValue *string
// The name of the property whose change was cancelled.
PropertyName *string
noSmithyDocumentSerde
}
// Container for information about a configuration change happening on a domain.
type ChangeProgressDetails struct {
// The ID of the configuration change.
ChangeId *string
// The current status of the configuration change.
ConfigChangeStatus ConfigChangeStatus
// The IAM principal who initiated the configuration change.
InitiatedBy InitiatedBy
// The last time that the configuration change was updated.
LastUpdatedTime *time.Time
// A message corresponding to the status of the configuration change.
Message *string
// The time that the configuration change was initiated, in Universal Coordinated
// Time (UTC).
StartTime *time.Time
noSmithyDocumentSerde
}
// Progress details for each stage of a domain update.
type ChangeProgressStage struct {
// The description of the stage.
Description *string
// The most recent updated timestamp of the stage.
LastUpdated *time.Time
// The name of the stage.
Name *string
// The status of the stage.
Status *string
noSmithyDocumentSerde
}
// The progress details of a specific domain configuration change.
type ChangeProgressStatusDetails struct {
// The unique change identifier associated with a specific domain configuration
// change.
ChangeId *string
// The specific stages that the domain is going through to perform the
// configuration change.
ChangeProgressStages []ChangeProgressStage
// The list of properties in the domain configuration change that have completed.
CompletedProperties []string
// The current status of the configuration change.
ConfigChangeStatus ConfigChangeStatus
// The IAM principal who initiated the configuration change.
InitiatedBy InitiatedBy
// The last time that the status of the configuration change was updated.
LastUpdatedTime *time.Time
// The list of properties in the domain configuration change that are still
// pending.
PendingProperties []string
// The time at which the configuration change is made on the domain.
StartTime *time.Time
// The overall status of the domain configuration change.
Status OverallChangeStatus
// The total number of stages required for the configuration change.
TotalNumberOfStages int32
noSmithyDocumentSerde
}
// Container for the cluster configuration of an OpenSearch Service domain. For
// more information, see [Creating and managing Amazon OpenSearch Service domains].
//
// [Creating and managing Amazon OpenSearch Service domains]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html
type ClusterConfig struct {
// Container for cold storage configuration options.
ColdStorageOptions *ColdStorageOptions
// Number of dedicated master nodes in the cluster. This number must be greater
// than 2 and not 4, otherwise you receive a validation exception.
DedicatedMasterCount *int32
// Indicates whether dedicated master nodes are enabled for the cluster. True if
// the cluster will use a dedicated master node. False if the cluster will not.
DedicatedMasterEnabled *bool
// OpenSearch Service instance type of the dedicated master nodes in the cluster.
DedicatedMasterType OpenSearchPartitionInstanceType
// Number of data nodes in the cluster. This number must be greater than 1,
// otherwise you receive a validation exception.
InstanceCount *int32
// Instance type of data nodes in the cluster.
InstanceType OpenSearchPartitionInstanceType
// A boolean that indicates whether a multi-AZ domain is turned on with a standby
// AZ. For more information, see [Configuring a multi-AZ domain in Amazon OpenSearch Service].
//
// [Configuring a multi-AZ domain in Amazon OpenSearch Service]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html
MultiAZWithStandbyEnabled *bool
// The number of warm nodes in the cluster.
WarmCount *int32
// Whether to enable warm storage for the cluster.
WarmEnabled *bool
// The instance type for the cluster's warm nodes.
WarmType OpenSearchWarmPartitionInstanceType
// Container for zone awareness configuration options. Only required if
// ZoneAwarenessEnabled is true .
ZoneAwarenessConfig *ZoneAwarenessConfig
// Indicates whether multiple Availability Zones are enabled. For more
// information, see [Configuring a multi-AZ domain in Amazon OpenSearch Service].
//
// [Configuring a multi-AZ domain in Amazon OpenSearch Service]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/managedomains-multiaz.html
ZoneAwarenessEnabled *bool
noSmithyDocumentSerde
}
// The cluster configuration status for a domain.
type ClusterConfigStatus struct {
// Cluster configuration options for the specified domain.
//
// This member is required.
Options *ClusterConfig
// The status of cluster configuration options for the specified domain.
//
// This member is required.
Status *OptionStatus
noSmithyDocumentSerde
}
// Container for the parameters required to enable Cognito authentication for an
// OpenSearch Service domain. For more information, see [Configuring Amazon Cognito authentication for OpenSearch Dashboards].
//
// [Configuring Amazon Cognito authentication for OpenSearch Dashboards]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/cognito-auth.html
type CognitoOptions struct {
// Whether to enable or disable Amazon Cognito authentication for OpenSearch
// Dashboards.
Enabled *bool
// The Amazon Cognito identity pool ID that you want OpenSearch Service to use for
// OpenSearch Dashboards authentication.
IdentityPoolId *string
// The AmazonOpenSearchServiceCognitoAccess role that allows OpenSearch Service to
// configure your user pool and identity pool.
RoleArn *string
// The Amazon Cognito user pool ID that you want OpenSearch Service to use for
// OpenSearch Dashboards authentication.
UserPoolId *string
noSmithyDocumentSerde
}
// The status of the Cognito options for the specified domain.
type CognitoOptionsStatus struct {
// Cognito options for the specified domain.
//
// This member is required.
Options *CognitoOptions
// The status of the Cognito options for the specified domain.
//
// This member is required.
Status *OptionStatus
noSmithyDocumentSerde
}
// Container for the parameters required to enable cold storage for an OpenSearch
// Service domain. For more information, see [Cold storage for Amazon OpenSearch Service].
//
// [Cold storage for Amazon OpenSearch Service]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/cold-storage.html
type ColdStorageOptions struct {
// Whether to enable or disable cold storage on the domain. You must enable
// UltraWarm storage to enable cold storage.
//
// This member is required.
Enabled *bool
noSmithyDocumentSerde
}
// A map of OpenSearch or Elasticsearch versions and the versions you can upgrade
// them to.
type CompatibleVersionsMap struct {
// The current version that the OpenSearch Service domain is running.
SourceVersion *string
// The possible versions that you can upgrade the domain to.
TargetVersions []string
noSmithyDocumentSerde
}
// The connection properties of an outbound connection.
type ConnectionProperties struct {
// The connection properties for cross cluster search.
CrossClusterSearch *CrossClusterSearchConnectionProperties
// The Endpoint attribute cannot be modified.
//
// The endpoint of the remote domain. Applicable for VPC_ENDPOINT connection mode.
Endpoint *string
noSmithyDocumentSerde
}
// Cross-cluster search specific connection properties.
type CrossClusterSearchConnectionProperties struct {
// The status of the SkipUnavailable setting for the outbound connection. This
// feature allows you to specify some clusters as optional and ensure that your
// cross-cluster queries return partial results despite failures on one or more
// remote clusters.
SkipUnavailable SkipUnavailableStatus
noSmithyDocumentSerde
}
// Details about a direct-query data source.
type DataSourceDetails struct {
// The type of data source.
DataSourceType DataSourceType
// A description of the data source.
Description *string
// The name of the data source.
Name *string
noSmithyDocumentSerde
}
// The type of data source.
//
// The following types satisfy this interface:
//
// DataSourceTypeMemberS3GlueDataCatalog
type DataSourceType interface {
isDataSourceType()
}
// An Amazon S3 data source.
type DataSourceTypeMemberS3GlueDataCatalog struct {
Value S3GlueDataCatalog
noSmithyDocumentSerde
}
func (*DataSourceTypeMemberS3GlueDataCatalog) isDataSourceType() {}
// A filter to apply to the DescribePackage response.
type DescribePackagesFilter struct {
// Any field from PackageDetails .
Name DescribePackagesFilterName
// A non-empty list of values for the specified filter field.
Value []string
noSmithyDocumentSerde
}
// Container for the configuration of an OpenSearch Service domain.
type DomainConfig struct {
// Specifies the access policies for the domain.
AccessPolicies *AccessPoliciesStatus
// Key-value pairs to specify advanced configuration options. For more
// information, see [Advanced options].
//
// [Advanced options]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/createupdatedomains.html#createdomain-configure-advanced-options
AdvancedOptions *AdvancedOptionsStatus
// Container for fine-grained access control settings for the domain.
AdvancedSecurityOptions *AdvancedSecurityOptionsStatus
// Container for Auto-Tune settings for the domain.
AutoTuneOptions *AutoTuneOptionsStatus
// Container for information about the progress of an existing configuration
// change.
ChangeProgressDetails *ChangeProgressDetails
// Container for the cluster configuration of a the domain.
ClusterConfig *ClusterConfigStatus
// Container for Amazon Cognito options for the domain.
CognitoOptions *CognitoOptionsStatus
// Additional options for the domain endpoint, such as whether to require HTTPS
// for all traffic.
DomainEndpointOptions *DomainEndpointOptionsStatus
// Container for EBS options configured for the domain.
EBSOptions *EBSOptionsStatus
// Key-value pairs to enable encryption at rest.
EncryptionAtRestOptions *EncryptionAtRestOptionsStatus
// The OpenSearch or Elasticsearch version that the domain is running.
EngineVersion *VersionStatus
// Choose either dual stack or IPv4 as your IP address type. Dual stack allows you
// to share domain resources across IPv4 and IPv6 address types, and is the
// recommended option. If you set your IP address type to dual stack, you can't
// change your address type later.
IPAddressType *IPAddressTypeStatus
// Key-value pairs to configure log publishing.
LogPublishingOptions *LogPublishingOptionsStatus
// Information about the domain properties that are currently being modified.
ModifyingProperties []ModifyingProperties
// Whether node-to-node encryption is enabled or disabled.
NodeToNodeEncryptionOptions *NodeToNodeEncryptionOptionsStatus
// Container for off-peak window options for the domain.
OffPeakWindowOptions *OffPeakWindowOptionsStatus
// DEPRECATED. Container for parameters required to configure automated snapshots
// of domain indexes.
SnapshotOptions *SnapshotOptionsStatus
// Software update options for the domain.
SoftwareUpdateOptions *SoftwareUpdateOptionsStatus
// The current VPC options for the domain and the status of any updates to their
// configuration.
VPCOptions *VPCDerivedInfoStatus
noSmithyDocumentSerde
}
// Options to configure a custom endpoint for an OpenSearch Service domain.
type DomainEndpointOptions struct {
// The fully qualified URL for the custom endpoint.
CustomEndpoint *string
// The ARN for your security certificate, managed in Amazon Web Services
// Certificate Manager (ACM).
CustomEndpointCertificateArn *string
// Whether to enable a custom endpoint for the domain.
CustomEndpointEnabled *bool
// True to require that all traffic to the domain arrive over HTTPS.
EnforceHTTPS *bool
// Specify the TLS security policy to apply to the HTTPS endpoint of the domain.
// The policy can be one of the following values:
//
// - Policy-Min-TLS-1-0-2019-07: TLS security policy that supports TLS version
// 1.0 to TLS version 1.2
//
// - Policy-Min-TLS-1-2-2019-07: TLS security policy that supports only TLS
// version 1.2
//
// - Policy-Min-TLS-1-2-PFS-2023-10: TLS security policy that supports TLS
// version 1.2 to TLS version 1.3 with perfect forward secrecy cipher suites
TLSSecurityPolicy TLSSecurityPolicy
noSmithyDocumentSerde
}
// The configured endpoint options for a domain and their current status.
type DomainEndpointOptionsStatus struct {
// Options to configure the endpoint for a domain.
//
// This member is required.
Options *DomainEndpointOptions
// The status of the endpoint options for a domain.
//
// This member is required.
Status *OptionStatus
noSmithyDocumentSerde
}
// Information about an OpenSearch Service domain.
type DomainInfo struct {
// Name of the domain.
DomainName *string
// The type of search engine that the domain is running. OpenSearch for an
// OpenSearch engine, or Elasticsearch for a legacy Elasticsearch OSS engine.
EngineType EngineType
noSmithyDocumentSerde
}
// Container for information about an OpenSearch Service domain.
type DomainInformationContainer struct {
// Information about an Amazon OpenSearch Service domain.
AWSDomainInformation *AWSDomainInformation
noSmithyDocumentSerde
}
// Container for the domain maintenance details.
type DomainMaintenanceDetails struct {
// The name of the action.
Action MaintenanceType
// The time at which the action was created.
CreatedAt *time.Time
// The name of the domain.
DomainName *string
// The ID of the requested action.
MaintenanceId *string
// The ID of the data node.
NodeId *string
// The status of the action.
Status MaintenanceStatus
// The status message for the action.
StatusMessage *string
// The time at which the action was updated.
UpdatedAt *time.Time
noSmithyDocumentSerde
}
// Container for information about nodes on the domain.
type DomainNodesStatus struct {
// The Availability Zone of the node.
AvailabilityZone *string
// The instance type information of the node.
InstanceType OpenSearchPartitionInstanceType
// The ID of the node.
NodeId *string
// Indicates if the node is active or in standby.
NodeStatus NodeStatus
// Indicates whether the nodes is a data, master, or ultrawarm node.
NodeType NodeType
// The storage size of the node, in GiB.
StorageSize *string
// Indicates if the node has EBS or instance storage.
StorageType *string
// If the nodes has EBS storage, indicates if the volume type is GP2 or GP3. Only
// applicable for data nodes.
StorageVolumeType VolumeType
noSmithyDocumentSerde
}
// Information about a package that is associated with a domain. For more
// information, see [Custom packages for Amazon OpenSearch Service].
//
// [Custom packages for Amazon OpenSearch Service]: https://docs.aws.amazon.com/opensearch-service/latest/developerguide/custom-packages.html
type DomainPackageDetails struct {
// Name of the domain that the package is associated with.
DomainName *string
// State of the association.
DomainPackageStatus DomainPackageStatus
// Additional information if the package is in an error state. Null otherwise.
ErrorDetails *ErrorDetails
// Timestamp of the most recent update to the package association status.
LastUpdated *time.Time
// Internal ID of the package.
PackageID *string
// User-specified name of the package.
PackageName *string
// The type of package.
PackageType PackageType
// The current version of the package.
PackageVersion *string
// The relative path of the package on the OpenSearch Service cluster nodes. This
// is synonym_path when the package is for synonym files.
ReferencePath *string
noSmithyDocumentSerde
}
// The current status of an OpenSearch Service domain.
type DomainStatus struct {
// The Amazon Resource Name (ARN) of the domain. For more information, see [IAM identifiers] in the
// AWS Identity and Access Management User Guide.
//
// [IAM identifiers]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html
//
// This member is required.
ARN *string
// Container for the cluster configuration of the domain.
//
// This member is required.
ClusterConfig *ClusterConfig
// Unique identifier for the domain.
//
// This member is required.
DomainId *string
// Name of the domain. Domain names are unique across all domains owned by the
// same account within an Amazon Web Services Region.
//
// This member is required.
DomainName *string
// Identity and Access Management (IAM) policy document specifying the access
// policies for the domain.
AccessPolicies *string
// Key-value pairs that specify advanced configuration options.
AdvancedOptions map[string]string
// Settings for fine-grained access control.
AdvancedSecurityOptions *AdvancedSecurityOptions
// Auto-Tune settings for the domain.
AutoTuneOptions *AutoTuneOptionsOutput
// Information about a configuration change happening on the domain.
ChangeProgressDetails *ChangeProgressDetails
// Key-value pairs to configure Amazon Cognito authentication for OpenSearch
// Dashboards.
CognitoOptions *CognitoOptions
// Creation status of an OpenSearch Service domain. True if domain creation is
// complete. False if domain creation is still in progress.
Created *bool
// Deletion status of an OpenSearch Service domain. True if domain deletion is
// complete. False if domain deletion is still in progress. Once deletion is
// complete, the status of the domain is no longer returned.
Deleted *bool
// Additional options for the domain endpoint, such as whether to require HTTPS
// for all traffic.
DomainEndpointOptions *DomainEndpointOptions
// The DualStack Hosted Zone Id for the domain.
DomainEndpointV2HostedZoneId *string
// The status of any changes that are currently in progress for the domain.