@aws-sdk/client-opensearch 3.931.0 → 3.933.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +171 -1
  3. package/dist-es/OpenSearch.js +8 -0
  4. package/dist-es/commands/CreateIndexCommand.js +16 -0
  5. package/dist-es/commands/DeleteIndexCommand.js +16 -0
  6. package/dist-es/commands/GetIndexCommand.js +16 -0
  7. package/dist-es/commands/UpdateIndexCommand.js +16 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/models/models_0.js +17 -4
  10. package/dist-es/models/models_1.js +4 -0
  11. package/dist-es/schemas/schemas_0.js +96 -1
  12. package/dist-types/OpenSearch.d.ts +28 -0
  13. package/dist-types/OpenSearchClient.d.ts +6 -2
  14. package/dist-types/commands/CreateIndexCommand.d.ts +100 -0
  15. package/dist-types/commands/CreateOutboundConnectionCommand.d.ts +3 -2
  16. package/dist-types/commands/DeleteIndexCommand.d.ts +96 -0
  17. package/dist-types/commands/DissociatePackagesCommand.d.ts +1 -1
  18. package/dist-types/commands/GetDirectQueryDataSourceCommand.d.ts +1 -1
  19. package/dist-types/commands/GetIndexCommand.d.ts +96 -0
  20. package/dist-types/commands/GetPackageVersionHistoryCommand.d.ts +4 -4
  21. package/dist-types/commands/GetUpgradeHistoryCommand.d.ts +2 -2
  22. package/dist-types/commands/GetUpgradeStatusCommand.d.ts +2 -2
  23. package/dist-types/commands/ListDataSourcesCommand.d.ts +2 -1
  24. package/dist-types/commands/ListDirectQueryDataSourcesCommand.d.ts +1 -1
  25. package/dist-types/commands/ListDomainMaintenancesCommand.d.ts +1 -1
  26. package/dist-types/commands/UpdateIndexCommand.d.ts +97 -0
  27. package/dist-types/commands/index.d.ts +4 -0
  28. package/dist-types/models/models_0.d.ts +229 -329
  29. package/dist-types/models/models_1.d.ts +231 -5
  30. package/dist-types/schemas/schemas_0.d.ts +13 -0
  31. package/dist-types/ts3.4/OpenSearch.d.ts +68 -0
  32. package/dist-types/ts3.4/OpenSearchClient.d.ts +24 -0
  33. package/dist-types/ts3.4/commands/CreateIndexCommand.d.ts +47 -0
  34. package/dist-types/ts3.4/commands/DeleteIndexCommand.d.ts +47 -0
  35. package/dist-types/ts3.4/commands/GetIndexCommand.d.ts +47 -0
  36. package/dist-types/ts3.4/commands/ListDataSourcesCommand.d.ts +2 -4
  37. package/dist-types/ts3.4/commands/ListDirectQueryDataSourcesCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/ListDomainMaintenancesCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +47 -0
  40. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  41. package/dist-types/ts3.4/models/models_0.d.ts +36 -44
  42. package/dist-types/ts3.4/models/models_1.d.ts +56 -1
  43. package/dist-types/ts3.4/schemas/schemas_0.d.ts +13 -0
  44. package/package.json +6 -6
@@ -1,6 +1,201 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { ActionSeverity, ActionStatus, ActionType, AdvancedSecurityOptionsInput, AIMLOptionsInput, AppConfig, AuthorizedPrincipal, AutoTuneOptions, AWSServicePrincipal, ChangeProgressDetails, ClusterConfig, CognitoOptions, DataSource, DataSourceStatus, DataSourceType, DirectQueryDataSourceType, DomainConfig, DomainEndpointOptions, DomainPackageDetails, DryRunProgressStatus, DryRunResults, EBSOptions, EncryptionAtRestOptions, EngineType, IamIdentityCenterOptions, IdentityCenterOptionsInput, InboundConnection, IPAddressType, LogPublishingOption, LogType, MaintenanceType, NodeToNodeEncryptionOptions, OffPeakWindowOptions, OpenSearchPartitionInstanceType, PackageConfiguration, PackageDetails, PackageEncryptionOptions, PackageSource, ServiceSoftwareOptions, SnapshotOptions, SoftwareUpdateOptions, Tag, VpcEndpoint, VpcEndpointSummary, VPCOptions } from "./models_0";
2
+ import { DocumentType as __DocumentType } from "@smithy/types";
3
+ import { ActionSeverity, ActionStatus, ActionType, AdvancedSecurityOptionsInput, AIMLOptionsInput, AppConfig, AuthorizedPrincipal, AutoTuneOptions, AWSServicePrincipal, ChangeProgressDetails, ClusterConfig, CognitoOptions, DataSource, DataSourceDetails, DataSourceStatus, DataSourceType, DirectQueryDataSourceType, DomainConfig, DomainEndpointOptions, DomainPackageDetails, DryRunProgressStatus, DryRunResults, EBSOptions, EncryptionAtRestOptions, IamIdentityCenterOptions, IdentityCenterOptionsInput, InboundConnection, IndexStatus, IPAddressType, LogPublishingOption, LogType, MaintenanceStatus, MaintenanceType, NodeToNodeEncryptionOptions, OffPeakWindowOptions, OpenSearchPartitionInstanceType, PackageConfiguration, PackageDetails, PackageEncryptionOptions, PackageSource, ServiceSoftwareOptions, SnapshotOptions, SoftwareUpdateOptions, Tag, VpcEndpoint, VpcEndpointSummary, VPCOptions } from "./models_0";
3
4
  import { OpenSearchServiceException as __BaseException } from "./OpenSearchServiceException";
5
+ /**
6
+ * <p>The result of a <code>ListDataSources</code> operation.</p>
7
+ * @public
8
+ */
9
+ export interface ListDataSourcesResponse {
10
+ /**
11
+ * <p>A list of data sources associated with specified domain.</p>
12
+ * @public
13
+ */
14
+ DataSources?: DataSourceDetails[] | undefined;
15
+ }
16
+ /**
17
+ * @public
18
+ */
19
+ export interface ListDirectQueryDataSourcesRequest {
20
+ /**
21
+ * <p>When <code>nextToken</code> is returned, there are more results available. The value
22
+ * of <code>nextToken</code> is a unique pagination token for each page. Send the request
23
+ * again using the returned token to retrieve the next page.</p>
24
+ * @public
25
+ */
26
+ NextToken?: string | undefined;
27
+ }
28
+ /**
29
+ * <p> The configuration details for a data source that can be directly queried. </p>
30
+ * @public
31
+ */
32
+ export interface DirectQueryDataSource {
33
+ /**
34
+ * <p> A unique, user-defined label to identify the data source within your OpenSearch
35
+ * Service environment. </p>
36
+ * @public
37
+ */
38
+ DataSourceName?: string | undefined;
39
+ /**
40
+ * <p> The supported Amazon Web Services service that is used as the source for direct
41
+ * queries in OpenSearch Service. </p>
42
+ * @public
43
+ */
44
+ DataSourceType?: DirectQueryDataSourceType | undefined;
45
+ /**
46
+ * <p> A description that provides additional context and details about the data
47
+ * source.</p>
48
+ * @public
49
+ */
50
+ Description?: string | undefined;
51
+ /**
52
+ * <p> A list of Amazon Resource Names (ARNs) for the OpenSearch collections that are
53
+ * associated with the direct query data source. </p>
54
+ * @public
55
+ */
56
+ OpenSearchArns?: string[] | undefined;
57
+ /**
58
+ * <p> The unique, system-generated identifier that represents the data source.</p>
59
+ * @public
60
+ */
61
+ DataSourceArn?: string | undefined;
62
+ /**
63
+ * <p> A list of tags attached to a direct query data source.</p>
64
+ * @public
65
+ */
66
+ TagList?: Tag[] | undefined;
67
+ }
68
+ /**
69
+ * @public
70
+ */
71
+ export interface ListDirectQueryDataSourcesResponse {
72
+ /**
73
+ * <p>When <code>nextToken</code> is returned, there are more results available. The value
74
+ * of <code>nextToken</code> is a unique pagination token for each page. Send the request
75
+ * again using the returned token to retrieve the next page.</p>
76
+ * @public
77
+ */
78
+ NextToken?: string | undefined;
79
+ /**
80
+ * <p> A list of the direct query data sources that are returned by the
81
+ * <code>ListDirectQueryDataSources</code> API operation. </p>
82
+ * @public
83
+ */
84
+ DirectQueryDataSources?: DirectQueryDataSource[] | undefined;
85
+ }
86
+ /**
87
+ * <p>Container for the parameters to the <code>ListDomainMaintenances</code>
88
+ * operation.</p>
89
+ * @public
90
+ */
91
+ export interface ListDomainMaintenancesRequest {
92
+ /**
93
+ * <p>The name of the domain.</p>
94
+ * @public
95
+ */
96
+ DomainName: string | undefined;
97
+ /**
98
+ * <p>The name of the action.</p>
99
+ * @public
100
+ */
101
+ Action?: MaintenanceType | undefined;
102
+ /**
103
+ * <p>The status of the action.</p>
104
+ * @public
105
+ */
106
+ Status?: MaintenanceStatus | undefined;
107
+ /**
108
+ * <p>An optional parameter that specifies the maximum number of results to return. You can
109
+ * use <code>nextToken</code> to get the next page of results.</p>
110
+ * @public
111
+ */
112
+ MaxResults?: number | undefined;
113
+ /**
114
+ * <p>If your initial <code>ListDomainMaintenances</code> operation returns a
115
+ * <code>nextToken</code>, include the returned <code>nextToken</code> in subsequent
116
+ * <code>ListDomainMaintenances</code> operations, which returns results in the next
117
+ * page.</p>
118
+ * @public
119
+ */
120
+ NextToken?: string | undefined;
121
+ }
122
+ /**
123
+ * <p>Container for the domain maintenance details.</p>
124
+ * @public
125
+ */
126
+ export interface DomainMaintenanceDetails {
127
+ /**
128
+ * <p>The ID of the requested action.</p>
129
+ * @public
130
+ */
131
+ MaintenanceId?: string | undefined;
132
+ /**
133
+ * <p>The name of the domain.</p>
134
+ * @public
135
+ */
136
+ DomainName?: string | undefined;
137
+ /**
138
+ * <p>The name of the action.</p>
139
+ * @public
140
+ */
141
+ Action?: MaintenanceType | undefined;
142
+ /**
143
+ * <p>The ID of the data node.</p>
144
+ * @public
145
+ */
146
+ NodeId?: string | undefined;
147
+ /**
148
+ * <p>The status of the action.</p>
149
+ * @public
150
+ */
151
+ Status?: MaintenanceStatus | undefined;
152
+ /**
153
+ * <p>The status message for the action.</p>
154
+ * @public
155
+ */
156
+ StatusMessage?: string | undefined;
157
+ /**
158
+ * <p>The time at which the action was created.</p>
159
+ * @public
160
+ */
161
+ CreatedAt?: Date | undefined;
162
+ /**
163
+ * <p>The time at which the action was updated.</p>
164
+ * @public
165
+ */
166
+ UpdatedAt?: Date | undefined;
167
+ }
168
+ /**
169
+ * <p>The result of a <code>ListDomainMaintenances</code> request that contains information
170
+ * about the requested actions. </p>
171
+ * @public
172
+ */
173
+ export interface ListDomainMaintenancesResponse {
174
+ /**
175
+ * <p>A list of the submitted maintenance actions.</p>
176
+ * @public
177
+ */
178
+ DomainMaintenances?: DomainMaintenanceDetails[] | undefined;
179
+ /**
180
+ * <p>When <code>nextToken</code> is returned, there are more results available. The value
181
+ * of <code>nextToken</code> is a unique pagination token for each page. Send the request
182
+ * again using the returned token to retrieve the next page.</p>
183
+ * @public
184
+ */
185
+ NextToken?: string | undefined;
186
+ }
187
+ /**
188
+ * @public
189
+ * @enum
190
+ */
191
+ export declare const EngineType: {
192
+ readonly Elasticsearch: "Elasticsearch";
193
+ readonly OpenSearch: "OpenSearch";
194
+ };
195
+ /**
196
+ * @public
197
+ */
198
+ export type EngineType = (typeof EngineType)[keyof typeof EngineType];
4
199
  /**
5
200
  * <p>Container for the parameters to the <code>ListDomainNames</code> operation.</p>
6
201
  * @public
@@ -129,8 +324,8 @@ export interface ListInstanceTypeDetailsRequest {
129
324
  InstanceType?: string | undefined;
130
325
  }
131
326
  /**
132
- * <p>Lists all instance types and available features for a given OpenSearch or
133
- * Elasticsearch version.</p>
327
+ * <p>Lists all instance types and available features for a given OpenSearch or Elasticsearch
328
+ * version.</p>
134
329
  * @public
135
330
  */
136
331
  export interface InstanceTypeDetails {
@@ -141,7 +336,7 @@ export interface InstanceTypeDetails {
141
336
  InstanceType?: OpenSearchPartitionInstanceType | undefined;
142
337
  /**
143
338
  * <p>Whether encryption at rest and node-to-node encryption are supported for the instance
144
- * type.</p>
339
+ * type.</p>
145
340
  * @public
146
341
  */
147
342
  EncryptionEnabled?: boolean | undefined;
@@ -167,7 +362,7 @@ export interface InstanceTypeDetails {
167
362
  WarmEnabled?: boolean | undefined;
168
363
  /**
169
364
  * <p>Whether the instance acts as a data node, a dedicated master node, or an UltraWarm
170
- * node.</p>
365
+ * node.</p>
171
366
  * @public
172
367
  */
173
368
  InstanceRole?: string[] | undefined;
@@ -1093,6 +1288,37 @@ export interface UpdateDomainConfigResponse {
1093
1288
  */
1094
1289
  DryRunProgressStatus?: DryRunProgressStatus | undefined;
1095
1290
  }
1291
+ /**
1292
+ * @public
1293
+ */
1294
+ export interface UpdateIndexRequest {
1295
+ /**
1296
+ * <p>The name of an OpenSearch Service domain. Domain names are unique across the domains
1297
+ * owned by an account within an Amazon Web Services Region.</p>
1298
+ * @public
1299
+ */
1300
+ DomainName: string | undefined;
1301
+ /**
1302
+ * <p>The name of the index to update.</p>
1303
+ * @public
1304
+ */
1305
+ IndexName: string | undefined;
1306
+ /**
1307
+ * <p>The updated JSON schema for the index including any changes to mappings, settings, and semantic enrichment configuration.</p>
1308
+ * @public
1309
+ */
1310
+ IndexSchema: __DocumentType | undefined;
1311
+ }
1312
+ /**
1313
+ * @public
1314
+ */
1315
+ export interface UpdateIndexResponse {
1316
+ /**
1317
+ * <p>The status of the index update operation.</p>
1318
+ * @public
1319
+ */
1320
+ Status: IndexStatus | undefined;
1321
+ }
1096
1322
  /**
1097
1323
  * <p>Container for request parameters to the <code>UpdatePackage</code> operation.</p>
1098
1324
  * @public
@@ -59,6 +59,8 @@ export declare var CreateApplicationRequest: StaticStructureSchema;
59
59
  export declare var CreateApplicationResponse: StaticStructureSchema;
60
60
  export declare var CreateDomainRequest: StaticStructureSchema;
61
61
  export declare var CreateDomainResponse: StaticStructureSchema;
62
+ export declare var CreateIndexRequest: StaticStructureSchema;
63
+ export declare var CreateIndexResponse: StaticStructureSchema;
62
64
  export declare var CreateOutboundConnectionRequest: StaticStructureSchema;
63
65
  export declare var CreateOutboundConnectionResponse: StaticStructureSchema;
64
66
  export declare var CreatePackageRequest: StaticStructureSchema;
@@ -77,6 +79,8 @@ export declare var DeleteDomainRequest: StaticStructureSchema;
77
79
  export declare var DeleteDomainResponse: StaticStructureSchema;
78
80
  export declare var DeleteInboundConnectionRequest: StaticStructureSchema;
79
81
  export declare var DeleteInboundConnectionResponse: StaticStructureSchema;
82
+ export declare var DeleteIndexRequest: StaticStructureSchema;
83
+ export declare var DeleteIndexResponse: StaticStructureSchema;
80
84
  export declare var DeleteOutboundConnectionRequest: StaticStructureSchema;
81
85
  export declare var DeleteOutboundConnectionResponse: StaticStructureSchema;
82
86
  export declare var DeletePackageRequest: StaticStructureSchema;
@@ -152,6 +156,8 @@ export declare var GetDirectQueryDataSourceRequest: StaticStructureSchema;
152
156
  export declare var GetDirectQueryDataSourceResponse: StaticStructureSchema;
153
157
  export declare var GetDomainMaintenanceStatusRequest: StaticStructureSchema;
154
158
  export declare var GetDomainMaintenanceStatusResponse: StaticStructureSchema;
159
+ export declare var GetIndexRequest: StaticStructureSchema;
160
+ export declare var GetIndexResponse: StaticStructureSchema;
155
161
  export declare var GetPackageVersionHistoryRequest: StaticStructureSchema;
156
162
  export declare var GetPackageVersionHistoryResponse: StaticStructureSchema;
157
163
  export declare var GetUpgradeHistoryRequest: StaticStructureSchema;
@@ -267,6 +273,7 @@ export declare var StartServiceSoftwareUpdateResponse: StaticStructureSchema;
267
273
  export declare var StorageType: StaticStructureSchema;
268
274
  export declare var StorageTypeLimit: StaticStructureSchema;
269
275
  export declare var Tag: StaticStructureSchema;
276
+ export declare var ThrottlingException: StaticErrorSchema;
270
277
  export declare var UpdateApplicationRequest: StaticStructureSchema;
271
278
  export declare var UpdateApplicationResponse: StaticStructureSchema;
272
279
  export declare var UpdateDataSourceRequest: StaticStructureSchema;
@@ -275,6 +282,8 @@ export declare var UpdateDirectQueryDataSourceRequest: StaticStructureSchema;
275
282
  export declare var UpdateDirectQueryDataSourceResponse: StaticStructureSchema;
276
283
  export declare var UpdateDomainConfigRequest: StaticStructureSchema;
277
284
  export declare var UpdateDomainConfigResponse: StaticStructureSchema;
285
+ export declare var UpdateIndexRequest: StaticStructureSchema;
286
+ export declare var UpdateIndexResponse: StaticStructureSchema;
278
287
  export declare var UpdatePackageRequest: StaticStructureSchema;
279
288
  export declare var UpdatePackageResponse: StaticStructureSchema;
280
289
  export declare var UpdatePackageScopeRequest: StaticStructureSchema;
@@ -375,6 +384,7 @@ export declare var CancelDomainConfigChange: StaticOperationSchema;
375
384
  export declare var CancelServiceSoftwareUpdate: StaticOperationSchema;
376
385
  export declare var CreateApplication: StaticOperationSchema;
377
386
  export declare var CreateDomain: StaticOperationSchema;
387
+ export declare var CreateIndex: StaticOperationSchema;
378
388
  export declare var CreateOutboundConnection: StaticOperationSchema;
379
389
  export declare var CreatePackage: StaticOperationSchema;
380
390
  export declare var CreateVpcEndpoint: StaticOperationSchema;
@@ -383,6 +393,7 @@ export declare var DeleteDataSource: StaticOperationSchema;
383
393
  export declare var DeleteDirectQueryDataSource: StaticOperationSchema;
384
394
  export declare var DeleteDomain: StaticOperationSchema;
385
395
  export declare var DeleteInboundConnection: StaticOperationSchema;
396
+ export declare var DeleteIndex: StaticOperationSchema;
386
397
  export declare var DeleteOutboundConnection: StaticOperationSchema;
387
398
  export declare var DeletePackage: StaticOperationSchema;
388
399
  export declare var DeleteVpcEndpoint: StaticOperationSchema;
@@ -409,6 +420,7 @@ export declare var GetDataSource: StaticOperationSchema;
409
420
  export declare var GetDefaultApplicationSetting: StaticOperationSchema;
410
421
  export declare var GetDirectQueryDataSource: StaticOperationSchema;
411
422
  export declare var GetDomainMaintenanceStatus: StaticOperationSchema;
423
+ export declare var GetIndex: StaticOperationSchema;
412
424
  export declare var GetPackageVersionHistory: StaticOperationSchema;
413
425
  export declare var GetUpgradeHistory: StaticOperationSchema;
414
426
  export declare var GetUpgradeStatus: StaticOperationSchema;
@@ -437,6 +449,7 @@ export declare var UpdateApplication: StaticOperationSchema;
437
449
  export declare var UpdateDataSource: StaticOperationSchema;
438
450
  export declare var UpdateDirectQueryDataSource: StaticOperationSchema;
439
451
  export declare var UpdateDomainConfig: StaticOperationSchema;
452
+ export declare var UpdateIndex: StaticOperationSchema;
440
453
  export declare var UpdatePackage: StaticOperationSchema;
441
454
  export declare var UpdatePackageScope: StaticOperationSchema;
442
455
  export declare var UpdateScheduledAction: StaticOperationSchema;
@@ -43,6 +43,10 @@ import {
43
43
  CreateDomainCommandInput,
44
44
  CreateDomainCommandOutput,
45
45
  } from "./commands/CreateDomainCommand";
46
+ import {
47
+ CreateIndexCommandInput,
48
+ CreateIndexCommandOutput,
49
+ } from "./commands/CreateIndexCommand";
46
50
  import {
47
51
  CreateOutboundConnectionCommandInput,
48
52
  CreateOutboundConnectionCommandOutput,
@@ -75,6 +79,10 @@ import {
75
79
  DeleteInboundConnectionCommandInput,
76
80
  DeleteInboundConnectionCommandOutput,
77
81
  } from "./commands/DeleteInboundConnectionCommand";
82
+ import {
83
+ DeleteIndexCommandInput,
84
+ DeleteIndexCommandOutput,
85
+ } from "./commands/DeleteIndexCommand";
78
86
  import {
79
87
  DeleteOutboundConnectionCommandInput,
80
88
  DeleteOutboundConnectionCommandOutput,
@@ -179,6 +187,10 @@ import {
179
187
  GetDomainMaintenanceStatusCommandInput,
180
188
  GetDomainMaintenanceStatusCommandOutput,
181
189
  } from "./commands/GetDomainMaintenanceStatusCommand";
190
+ import {
191
+ GetIndexCommandInput,
192
+ GetIndexCommandOutput,
193
+ } from "./commands/GetIndexCommand";
182
194
  import {
183
195
  GetPackageVersionHistoryCommandInput,
184
196
  GetPackageVersionHistoryCommandOutput,
@@ -291,6 +303,10 @@ import {
291
303
  UpdateDomainConfigCommandInput,
292
304
  UpdateDomainConfigCommandOutput,
293
305
  } from "./commands/UpdateDomainConfigCommand";
306
+ import {
307
+ UpdateIndexCommandInput,
308
+ UpdateIndexCommandOutput,
309
+ } from "./commands/UpdateIndexCommand";
294
310
  import {
295
311
  UpdatePackageCommandInput,
296
312
  UpdatePackageCommandOutput,
@@ -456,6 +472,19 @@ export interface OpenSearch {
456
472
  options: __HttpHandlerOptions,
457
473
  cb: (err: any, data?: CreateDomainCommandOutput) => void
458
474
  ): void;
475
+ createIndex(
476
+ args: CreateIndexCommandInput,
477
+ options?: __HttpHandlerOptions
478
+ ): Promise<CreateIndexCommandOutput>;
479
+ createIndex(
480
+ args: CreateIndexCommandInput,
481
+ cb: (err: any, data?: CreateIndexCommandOutput) => void
482
+ ): void;
483
+ createIndex(
484
+ args: CreateIndexCommandInput,
485
+ options: __HttpHandlerOptions,
486
+ cb: (err: any, data?: CreateIndexCommandOutput) => void
487
+ ): void;
459
488
  createOutboundConnection(
460
489
  args: CreateOutboundConnectionCommandInput,
461
490
  options?: __HttpHandlerOptions
@@ -560,6 +589,19 @@ export interface OpenSearch {
560
589
  options: __HttpHandlerOptions,
561
590
  cb: (err: any, data?: DeleteInboundConnectionCommandOutput) => void
562
591
  ): void;
592
+ deleteIndex(
593
+ args: DeleteIndexCommandInput,
594
+ options?: __HttpHandlerOptions
595
+ ): Promise<DeleteIndexCommandOutput>;
596
+ deleteIndex(
597
+ args: DeleteIndexCommandInput,
598
+ cb: (err: any, data?: DeleteIndexCommandOutput) => void
599
+ ): void;
600
+ deleteIndex(
601
+ args: DeleteIndexCommandInput,
602
+ options: __HttpHandlerOptions,
603
+ cb: (err: any, data?: DeleteIndexCommandOutput) => void
604
+ ): void;
563
605
  deleteOutboundConnection(
564
606
  args: DeleteOutboundConnectionCommandInput,
565
607
  options?: __HttpHandlerOptions
@@ -911,6 +953,19 @@ export interface OpenSearch {
911
953
  options: __HttpHandlerOptions,
912
954
  cb: (err: any, data?: GetDomainMaintenanceStatusCommandOutput) => void
913
955
  ): void;
956
+ getIndex(
957
+ args: GetIndexCommandInput,
958
+ options?: __HttpHandlerOptions
959
+ ): Promise<GetIndexCommandOutput>;
960
+ getIndex(
961
+ args: GetIndexCommandInput,
962
+ cb: (err: any, data?: GetIndexCommandOutput) => void
963
+ ): void;
964
+ getIndex(
965
+ args: GetIndexCommandInput,
966
+ options: __HttpHandlerOptions,
967
+ cb: (err: any, data?: GetIndexCommandOutput) => void
968
+ ): void;
914
969
  getPackageVersionHistory(
915
970
  args: GetPackageVersionHistoryCommandInput,
916
971
  options?: __HttpHandlerOptions
@@ -1280,6 +1335,19 @@ export interface OpenSearch {
1280
1335
  options: __HttpHandlerOptions,
1281
1336
  cb: (err: any, data?: UpdateDomainConfigCommandOutput) => void
1282
1337
  ): void;
1338
+ updateIndex(
1339
+ args: UpdateIndexCommandInput,
1340
+ options?: __HttpHandlerOptions
1341
+ ): Promise<UpdateIndexCommandOutput>;
1342
+ updateIndex(
1343
+ args: UpdateIndexCommandInput,
1344
+ cb: (err: any, data?: UpdateIndexCommandOutput) => void
1345
+ ): void;
1346
+ updateIndex(
1347
+ args: UpdateIndexCommandInput,
1348
+ options: __HttpHandlerOptions,
1349
+ cb: (err: any, data?: UpdateIndexCommandOutput) => void
1350
+ ): void;
1283
1351
  updatePackage(
1284
1352
  args: UpdatePackageCommandInput,
1285
1353
  options?: __HttpHandlerOptions
@@ -92,6 +92,10 @@ import {
92
92
  CreateDomainCommandInput,
93
93
  CreateDomainCommandOutput,
94
94
  } from "./commands/CreateDomainCommand";
95
+ import {
96
+ CreateIndexCommandInput,
97
+ CreateIndexCommandOutput,
98
+ } from "./commands/CreateIndexCommand";
95
99
  import {
96
100
  CreateOutboundConnectionCommandInput,
97
101
  CreateOutboundConnectionCommandOutput,
@@ -124,6 +128,10 @@ import {
124
128
  DeleteInboundConnectionCommandInput,
125
129
  DeleteInboundConnectionCommandOutput,
126
130
  } from "./commands/DeleteInboundConnectionCommand";
131
+ import {
132
+ DeleteIndexCommandInput,
133
+ DeleteIndexCommandOutput,
134
+ } from "./commands/DeleteIndexCommand";
127
135
  import {
128
136
  DeleteOutboundConnectionCommandInput,
129
137
  DeleteOutboundConnectionCommandOutput,
@@ -228,6 +236,10 @@ import {
228
236
  GetDomainMaintenanceStatusCommandInput,
229
237
  GetDomainMaintenanceStatusCommandOutput,
230
238
  } from "./commands/GetDomainMaintenanceStatusCommand";
239
+ import {
240
+ GetIndexCommandInput,
241
+ GetIndexCommandOutput,
242
+ } from "./commands/GetIndexCommand";
231
243
  import {
232
244
  GetPackageVersionHistoryCommandInput,
233
245
  GetPackageVersionHistoryCommandOutput,
@@ -340,6 +352,10 @@ import {
340
352
  UpdateDomainConfigCommandInput,
341
353
  UpdateDomainConfigCommandOutput,
342
354
  } from "./commands/UpdateDomainConfigCommand";
355
+ import {
356
+ UpdateIndexCommandInput,
357
+ UpdateIndexCommandOutput,
358
+ } from "./commands/UpdateIndexCommand";
343
359
  import {
344
360
  UpdatePackageCommandInput,
345
361
  UpdatePackageCommandOutput,
@@ -379,6 +395,7 @@ export type ServiceInputTypes =
379
395
  | CancelServiceSoftwareUpdateCommandInput
380
396
  | CreateApplicationCommandInput
381
397
  | CreateDomainCommandInput
398
+ | CreateIndexCommandInput
382
399
  | CreateOutboundConnectionCommandInput
383
400
  | CreatePackageCommandInput
384
401
  | CreateVpcEndpointCommandInput
@@ -387,6 +404,7 @@ export type ServiceInputTypes =
387
404
  | DeleteDirectQueryDataSourceCommandInput
388
405
  | DeleteDomainCommandInput
389
406
  | DeleteInboundConnectionCommandInput
407
+ | DeleteIndexCommandInput
390
408
  | DeleteOutboundConnectionCommandInput
391
409
  | DeletePackageCommandInput
392
410
  | DeleteVpcEndpointCommandInput
@@ -413,6 +431,7 @@ export type ServiceInputTypes =
413
431
  | GetDefaultApplicationSettingCommandInput
414
432
  | GetDirectQueryDataSourceCommandInput
415
433
  | GetDomainMaintenanceStatusCommandInput
434
+ | GetIndexCommandInput
416
435
  | GetPackageVersionHistoryCommandInput
417
436
  | GetUpgradeHistoryCommandInput
418
437
  | GetUpgradeStatusCommandInput
@@ -441,6 +460,7 @@ export type ServiceInputTypes =
441
460
  | UpdateDataSourceCommandInput
442
461
  | UpdateDirectQueryDataSourceCommandInput
443
462
  | UpdateDomainConfigCommandInput
463
+ | UpdateIndexCommandInput
444
464
  | UpdatePackageCommandInput
445
465
  | UpdatePackageScopeCommandInput
446
466
  | UpdateScheduledActionCommandInput
@@ -458,6 +478,7 @@ export type ServiceOutputTypes =
458
478
  | CancelServiceSoftwareUpdateCommandOutput
459
479
  | CreateApplicationCommandOutput
460
480
  | CreateDomainCommandOutput
481
+ | CreateIndexCommandOutput
461
482
  | CreateOutboundConnectionCommandOutput
462
483
  | CreatePackageCommandOutput
463
484
  | CreateVpcEndpointCommandOutput
@@ -466,6 +487,7 @@ export type ServiceOutputTypes =
466
487
  | DeleteDirectQueryDataSourceCommandOutput
467
488
  | DeleteDomainCommandOutput
468
489
  | DeleteInboundConnectionCommandOutput
490
+ | DeleteIndexCommandOutput
469
491
  | DeleteOutboundConnectionCommandOutput
470
492
  | DeletePackageCommandOutput
471
493
  | DeleteVpcEndpointCommandOutput
@@ -492,6 +514,7 @@ export type ServiceOutputTypes =
492
514
  | GetDefaultApplicationSettingCommandOutput
493
515
  | GetDirectQueryDataSourceCommandOutput
494
516
  | GetDomainMaintenanceStatusCommandOutput
517
+ | GetIndexCommandOutput
495
518
  | GetPackageVersionHistoryCommandOutput
496
519
  | GetUpgradeHistoryCommandOutput
497
520
  | GetUpgradeStatusCommandOutput
@@ -520,6 +543,7 @@ export type ServiceOutputTypes =
520
543
  | UpdateDataSourceCommandOutput
521
544
  | UpdateDirectQueryDataSourceCommandOutput
522
545
  | UpdateDomainConfigCommandOutput
546
+ | UpdateIndexCommandOutput
523
547
  | UpdatePackageCommandOutput
524
548
  | UpdatePackageScopeCommandOutput
525
549
  | UpdateScheduledActionCommandOutput
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { CreateIndexRequest, CreateIndexResponse } from "../models/models_0";
4
+ import {
5
+ OpenSearchClientResolvedConfig,
6
+ ServiceInputTypes,
7
+ ServiceOutputTypes,
8
+ } from "../OpenSearchClient";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface CreateIndexCommandInput extends CreateIndexRequest {}
12
+ export interface CreateIndexCommandOutput
13
+ extends CreateIndexResponse,
14
+ __MetadataBearer {}
15
+ declare const CreateIndexCommand_base: {
16
+ new (
17
+ input: CreateIndexCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ CreateIndexCommandInput,
20
+ CreateIndexCommandOutput,
21
+ OpenSearchClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ input: CreateIndexCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ CreateIndexCommandInput,
29
+ CreateIndexCommandOutput,
30
+ OpenSearchClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class CreateIndexCommand extends CreateIndexCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: CreateIndexRequest;
40
+ output: CreateIndexResponse;
41
+ };
42
+ sdk: {
43
+ input: CreateIndexCommandInput;
44
+ output: CreateIndexCommandOutput;
45
+ };
46
+ };
47
+ }
@@ -0,0 +1,47 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DeleteIndexRequest, DeleteIndexResponse } from "../models/models_0";
4
+ import {
5
+ OpenSearchClientResolvedConfig,
6
+ ServiceInputTypes,
7
+ ServiceOutputTypes,
8
+ } from "../OpenSearchClient";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface DeleteIndexCommandInput extends DeleteIndexRequest {}
12
+ export interface DeleteIndexCommandOutput
13
+ extends DeleteIndexResponse,
14
+ __MetadataBearer {}
15
+ declare const DeleteIndexCommand_base: {
16
+ new (
17
+ input: DeleteIndexCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ DeleteIndexCommandInput,
20
+ DeleteIndexCommandOutput,
21
+ OpenSearchClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ input: DeleteIndexCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ DeleteIndexCommandInput,
29
+ DeleteIndexCommandOutput,
30
+ OpenSearchClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class DeleteIndexCommand extends DeleteIndexCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: DeleteIndexRequest;
40
+ output: DeleteIndexResponse;
41
+ };
42
+ sdk: {
43
+ input: DeleteIndexCommandInput;
44
+ output: DeleteIndexCommandOutput;
45
+ };
46
+ };
47
+ }