@aws-sdk/client-opensearch 3.461.0 → 3.465.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 (40) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/OpenSearch.js +10 -0
  3. package/dist-cjs/commands/AddDataSourceCommand.js +51 -0
  4. package/dist-cjs/commands/DeleteDataSourceCommand.js +51 -0
  5. package/dist-cjs/commands/GetDataSourceCommand.js +51 -0
  6. package/dist-cjs/commands/ListDataSourcesCommand.js +51 -0
  7. package/dist-cjs/commands/UpdateDataSourceCommand.js +51 -0
  8. package/dist-cjs/commands/index.js +5 -0
  9. package/dist-cjs/models/models_0.js +23 -15
  10. package/dist-cjs/protocols/Aws_restJson1.js +360 -3
  11. package/dist-es/OpenSearch.js +10 -0
  12. package/dist-es/commands/AddDataSourceCommand.js +47 -0
  13. package/dist-es/commands/DeleteDataSourceCommand.js +47 -0
  14. package/dist-es/commands/GetDataSourceCommand.js +47 -0
  15. package/dist-es/commands/ListDataSourcesCommand.js +47 -0
  16. package/dist-es/commands/UpdateDataSourceCommand.js +47 -0
  17. package/dist-es/commands/index.js +5 -0
  18. package/dist-es/models/models_0.js +20 -12
  19. package/dist-es/protocols/Aws_restJson1.js +347 -0
  20. package/dist-types/OpenSearch.d.ts +35 -0
  21. package/dist-types/OpenSearchClient.d.ts +7 -2
  22. package/dist-types/commands/AddDataSourceCommand.d.ts +101 -0
  23. package/dist-types/commands/DeleteDataSourceCommand.d.ts +92 -0
  24. package/dist-types/commands/GetDataSourceCommand.d.ts +98 -0
  25. package/dist-types/commands/ListDataSourcesCommand.d.ts +101 -0
  26. package/dist-types/commands/UpdateDataSourceCommand.d.ts +98 -0
  27. package/dist-types/commands/index.d.ts +5 -0
  28. package/dist-types/models/models_0.d.ts +291 -54
  29. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  30. package/dist-types/ts3.4/OpenSearch.d.ts +85 -0
  31. package/dist-types/ts3.4/OpenSearchClient.d.ts +30 -0
  32. package/dist-types/ts3.4/commands/AddDataSourceCommand.d.ts +38 -0
  33. package/dist-types/ts3.4/commands/DeleteDataSourceCommand.d.ts +38 -0
  34. package/dist-types/ts3.4/commands/GetDataSourceCommand.d.ts +38 -0
  35. package/dist-types/ts3.4/commands/ListDataSourcesCommand.d.ts +38 -0
  36. package/dist-types/ts3.4/commands/UpdateDataSourceCommand.d.ts +38 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +82 -16
  39. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  40. package/package.json +14 -16
@@ -3,6 +3,10 @@ import {
3
3
  AcceptInboundConnectionCommandInput,
4
4
  AcceptInboundConnectionCommandOutput,
5
5
  } from "./commands/AcceptInboundConnectionCommand";
6
+ import {
7
+ AddDataSourceCommandInput,
8
+ AddDataSourceCommandOutput,
9
+ } from "./commands/AddDataSourceCommand";
6
10
  import {
7
11
  AddTagsCommandInput,
8
12
  AddTagsCommandOutput,
@@ -35,6 +39,10 @@ import {
35
39
  CreateVpcEndpointCommandInput,
36
40
  CreateVpcEndpointCommandOutput,
37
41
  } from "./commands/CreateVpcEndpointCommand";
42
+ import {
43
+ DeleteDataSourceCommandInput,
44
+ DeleteDataSourceCommandOutput,
45
+ } from "./commands/DeleteDataSourceCommand";
38
46
  import {
39
47
  DeleteDomainCommandInput,
40
48
  DeleteDomainCommandOutput,
@@ -123,6 +131,10 @@ import {
123
131
  GetCompatibleVersionsCommandInput,
124
132
  GetCompatibleVersionsCommandOutput,
125
133
  } from "./commands/GetCompatibleVersionsCommand";
134
+ import {
135
+ GetDataSourceCommandInput,
136
+ GetDataSourceCommandOutput,
137
+ } from "./commands/GetDataSourceCommand";
126
138
  import {
127
139
  GetDomainMaintenanceStatusCommandInput,
128
140
  GetDomainMaintenanceStatusCommandOutput,
@@ -139,6 +151,10 @@ import {
139
151
  GetUpgradeStatusCommandInput,
140
152
  GetUpgradeStatusCommandOutput,
141
153
  } from "./commands/GetUpgradeStatusCommand";
154
+ import {
155
+ ListDataSourcesCommandInput,
156
+ ListDataSourcesCommandOutput,
157
+ } from "./commands/ListDataSourcesCommand";
142
158
  import {
143
159
  ListDomainMaintenancesCommandInput,
144
160
  ListDomainMaintenancesCommandOutput,
@@ -207,6 +223,10 @@ import {
207
223
  StartServiceSoftwareUpdateCommandInput,
208
224
  StartServiceSoftwareUpdateCommandOutput,
209
225
  } from "./commands/StartServiceSoftwareUpdateCommand";
226
+ import {
227
+ UpdateDataSourceCommandInput,
228
+ UpdateDataSourceCommandOutput,
229
+ } from "./commands/UpdateDataSourceCommand";
210
230
  import {
211
231
  UpdateDomainConfigCommandInput,
212
232
  UpdateDomainConfigCommandOutput,
@@ -242,6 +262,19 @@ export interface OpenSearch {
242
262
  options: __HttpHandlerOptions,
243
263
  cb: (err: any, data?: AcceptInboundConnectionCommandOutput) => void
244
264
  ): void;
265
+ addDataSource(
266
+ args: AddDataSourceCommandInput,
267
+ options?: __HttpHandlerOptions
268
+ ): Promise<AddDataSourceCommandOutput>;
269
+ addDataSource(
270
+ args: AddDataSourceCommandInput,
271
+ cb: (err: any, data?: AddDataSourceCommandOutput) => void
272
+ ): void;
273
+ addDataSource(
274
+ args: AddDataSourceCommandInput,
275
+ options: __HttpHandlerOptions,
276
+ cb: (err: any, data?: AddDataSourceCommandOutput) => void
277
+ ): void;
245
278
  addTags(
246
279
  args: AddTagsCommandInput,
247
280
  options?: __HttpHandlerOptions
@@ -346,6 +379,19 @@ export interface OpenSearch {
346
379
  options: __HttpHandlerOptions,
347
380
  cb: (err: any, data?: CreateVpcEndpointCommandOutput) => void
348
381
  ): void;
382
+ deleteDataSource(
383
+ args: DeleteDataSourceCommandInput,
384
+ options?: __HttpHandlerOptions
385
+ ): Promise<DeleteDataSourceCommandOutput>;
386
+ deleteDataSource(
387
+ args: DeleteDataSourceCommandInput,
388
+ cb: (err: any, data?: DeleteDataSourceCommandOutput) => void
389
+ ): void;
390
+ deleteDataSource(
391
+ args: DeleteDataSourceCommandInput,
392
+ options: __HttpHandlerOptions,
393
+ cb: (err: any, data?: DeleteDataSourceCommandOutput) => void
394
+ ): void;
349
395
  deleteDomain(
350
396
  args: DeleteDomainCommandInput,
351
397
  options?: __HttpHandlerOptions
@@ -638,6 +684,19 @@ export interface OpenSearch {
638
684
  options: __HttpHandlerOptions,
639
685
  cb: (err: any, data?: GetCompatibleVersionsCommandOutput) => void
640
686
  ): void;
687
+ getDataSource(
688
+ args: GetDataSourceCommandInput,
689
+ options?: __HttpHandlerOptions
690
+ ): Promise<GetDataSourceCommandOutput>;
691
+ getDataSource(
692
+ args: GetDataSourceCommandInput,
693
+ cb: (err: any, data?: GetDataSourceCommandOutput) => void
694
+ ): void;
695
+ getDataSource(
696
+ args: GetDataSourceCommandInput,
697
+ options: __HttpHandlerOptions,
698
+ cb: (err: any, data?: GetDataSourceCommandOutput) => void
699
+ ): void;
641
700
  getDomainMaintenanceStatus(
642
701
  args: GetDomainMaintenanceStatusCommandInput,
643
702
  options?: __HttpHandlerOptions
@@ -690,6 +749,19 @@ export interface OpenSearch {
690
749
  options: __HttpHandlerOptions,
691
750
  cb: (err: any, data?: GetUpgradeStatusCommandOutput) => void
692
751
  ): void;
752
+ listDataSources(
753
+ args: ListDataSourcesCommandInput,
754
+ options?: __HttpHandlerOptions
755
+ ): Promise<ListDataSourcesCommandOutput>;
756
+ listDataSources(
757
+ args: ListDataSourcesCommandInput,
758
+ cb: (err: any, data?: ListDataSourcesCommandOutput) => void
759
+ ): void;
760
+ listDataSources(
761
+ args: ListDataSourcesCommandInput,
762
+ options: __HttpHandlerOptions,
763
+ cb: (err: any, data?: ListDataSourcesCommandOutput) => void
764
+ ): void;
693
765
  listDomainMaintenances(
694
766
  args: ListDomainMaintenancesCommandInput,
695
767
  options?: __HttpHandlerOptions
@@ -911,6 +983,19 @@ export interface OpenSearch {
911
983
  options: __HttpHandlerOptions,
912
984
  cb: (err: any, data?: StartServiceSoftwareUpdateCommandOutput) => void
913
985
  ): void;
986
+ updateDataSource(
987
+ args: UpdateDataSourceCommandInput,
988
+ options?: __HttpHandlerOptions
989
+ ): Promise<UpdateDataSourceCommandOutput>;
990
+ updateDataSource(
991
+ args: UpdateDataSourceCommandInput,
992
+ cb: (err: any, data?: UpdateDataSourceCommandOutput) => void
993
+ ): void;
994
+ updateDataSource(
995
+ args: UpdateDataSourceCommandInput,
996
+ options: __HttpHandlerOptions,
997
+ cb: (err: any, data?: UpdateDataSourceCommandOutput) => void
998
+ ): void;
914
999
  updateDomainConfig(
915
1000
  args: UpdateDomainConfigCommandInput,
916
1001
  options?: __HttpHandlerOptions
@@ -49,6 +49,10 @@ import {
49
49
  AcceptInboundConnectionCommandInput,
50
50
  AcceptInboundConnectionCommandOutput,
51
51
  } from "./commands/AcceptInboundConnectionCommand";
52
+ import {
53
+ AddDataSourceCommandInput,
54
+ AddDataSourceCommandOutput,
55
+ } from "./commands/AddDataSourceCommand";
52
56
  import {
53
57
  AddTagsCommandInput,
54
58
  AddTagsCommandOutput,
@@ -81,6 +85,10 @@ import {
81
85
  CreateVpcEndpointCommandInput,
82
86
  CreateVpcEndpointCommandOutput,
83
87
  } from "./commands/CreateVpcEndpointCommand";
88
+ import {
89
+ DeleteDataSourceCommandInput,
90
+ DeleteDataSourceCommandOutput,
91
+ } from "./commands/DeleteDataSourceCommand";
84
92
  import {
85
93
  DeleteDomainCommandInput,
86
94
  DeleteDomainCommandOutput,
@@ -169,6 +177,10 @@ import {
169
177
  GetCompatibleVersionsCommandInput,
170
178
  GetCompatibleVersionsCommandOutput,
171
179
  } from "./commands/GetCompatibleVersionsCommand";
180
+ import {
181
+ GetDataSourceCommandInput,
182
+ GetDataSourceCommandOutput,
183
+ } from "./commands/GetDataSourceCommand";
172
184
  import {
173
185
  GetDomainMaintenanceStatusCommandInput,
174
186
  GetDomainMaintenanceStatusCommandOutput,
@@ -185,6 +197,10 @@ import {
185
197
  GetUpgradeStatusCommandInput,
186
198
  GetUpgradeStatusCommandOutput,
187
199
  } from "./commands/GetUpgradeStatusCommand";
200
+ import {
201
+ ListDataSourcesCommandInput,
202
+ ListDataSourcesCommandOutput,
203
+ } from "./commands/ListDataSourcesCommand";
188
204
  import {
189
205
  ListDomainMaintenancesCommandInput,
190
206
  ListDomainMaintenancesCommandOutput,
@@ -253,6 +269,10 @@ import {
253
269
  StartServiceSoftwareUpdateCommandInput,
254
270
  StartServiceSoftwareUpdateCommandOutput,
255
271
  } from "./commands/StartServiceSoftwareUpdateCommand";
272
+ import {
273
+ UpdateDataSourceCommandInput,
274
+ UpdateDataSourceCommandOutput,
275
+ } from "./commands/UpdateDataSourceCommand";
256
276
  import {
257
277
  UpdateDomainConfigCommandInput,
258
278
  UpdateDomainConfigCommandOutput,
@@ -282,6 +302,7 @@ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
282
302
  export { __Client };
283
303
  export type ServiceInputTypes =
284
304
  | AcceptInboundConnectionCommandInput
305
+ | AddDataSourceCommandInput
285
306
  | AddTagsCommandInput
286
307
  | AssociatePackageCommandInput
287
308
  | AuthorizeVpcEndpointAccessCommandInput
@@ -290,6 +311,7 @@ export type ServiceInputTypes =
290
311
  | CreateOutboundConnectionCommandInput
291
312
  | CreatePackageCommandInput
292
313
  | CreateVpcEndpointCommandInput
314
+ | DeleteDataSourceCommandInput
293
315
  | DeleteDomainCommandInput
294
316
  | DeleteInboundConnectionCommandInput
295
317
  | DeleteOutboundConnectionCommandInput
@@ -312,10 +334,12 @@ export type ServiceInputTypes =
312
334
  | DescribeVpcEndpointsCommandInput
313
335
  | DissociatePackageCommandInput
314
336
  | GetCompatibleVersionsCommandInput
337
+ | GetDataSourceCommandInput
315
338
  | GetDomainMaintenanceStatusCommandInput
316
339
  | GetPackageVersionHistoryCommandInput
317
340
  | GetUpgradeHistoryCommandInput
318
341
  | GetUpgradeStatusCommandInput
342
+ | ListDataSourcesCommandInput
319
343
  | ListDomainMaintenancesCommandInput
320
344
  | ListDomainNamesCommandInput
321
345
  | ListDomainsForPackageCommandInput
@@ -333,6 +357,7 @@ export type ServiceInputTypes =
333
357
  | RevokeVpcEndpointAccessCommandInput
334
358
  | StartDomainMaintenanceCommandInput
335
359
  | StartServiceSoftwareUpdateCommandInput
360
+ | UpdateDataSourceCommandInput
336
361
  | UpdateDomainConfigCommandInput
337
362
  | UpdatePackageCommandInput
338
363
  | UpdateScheduledActionCommandInput
@@ -340,6 +365,7 @@ export type ServiceInputTypes =
340
365
  | UpgradeDomainCommandInput;
341
366
  export type ServiceOutputTypes =
342
367
  | AcceptInboundConnectionCommandOutput
368
+ | AddDataSourceCommandOutput
343
369
  | AddTagsCommandOutput
344
370
  | AssociatePackageCommandOutput
345
371
  | AuthorizeVpcEndpointAccessCommandOutput
@@ -348,6 +374,7 @@ export type ServiceOutputTypes =
348
374
  | CreateOutboundConnectionCommandOutput
349
375
  | CreatePackageCommandOutput
350
376
  | CreateVpcEndpointCommandOutput
377
+ | DeleteDataSourceCommandOutput
351
378
  | DeleteDomainCommandOutput
352
379
  | DeleteInboundConnectionCommandOutput
353
380
  | DeleteOutboundConnectionCommandOutput
@@ -370,10 +397,12 @@ export type ServiceOutputTypes =
370
397
  | DescribeVpcEndpointsCommandOutput
371
398
  | DissociatePackageCommandOutput
372
399
  | GetCompatibleVersionsCommandOutput
400
+ | GetDataSourceCommandOutput
373
401
  | GetDomainMaintenanceStatusCommandOutput
374
402
  | GetPackageVersionHistoryCommandOutput
375
403
  | GetUpgradeHistoryCommandOutput
376
404
  | GetUpgradeStatusCommandOutput
405
+ | ListDataSourcesCommandOutput
377
406
  | ListDomainMaintenancesCommandOutput
378
407
  | ListDomainNamesCommandOutput
379
408
  | ListDomainsForPackageCommandOutput
@@ -391,6 +420,7 @@ export type ServiceOutputTypes =
391
420
  | RevokeVpcEndpointAccessCommandOutput
392
421
  | StartDomainMaintenanceCommandOutput
393
422
  | StartServiceSoftwareUpdateCommandOutput
423
+ | UpdateDataSourceCommandOutput
394
424
  | UpdateDomainConfigCommandOutput
395
425
  | UpdatePackageCommandOutput
396
426
  | UpdateScheduledActionCommandOutput
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ AddDataSourceRequest,
11
+ AddDataSourceResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ OpenSearchClientResolvedConfig,
15
+ ServiceInputTypes,
16
+ ServiceOutputTypes,
17
+ } from "../OpenSearchClient";
18
+ export { __MetadataBearer, $Command };
19
+ export interface AddDataSourceCommandInput extends AddDataSourceRequest {}
20
+ export interface AddDataSourceCommandOutput
21
+ extends AddDataSourceResponse,
22
+ __MetadataBearer {}
23
+ export declare class AddDataSourceCommand extends $Command<
24
+ AddDataSourceCommandInput,
25
+ AddDataSourceCommandOutput,
26
+ OpenSearchClientResolvedConfig
27
+ > {
28
+ readonly input: AddDataSourceCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: AddDataSourceCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: OpenSearchClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<AddDataSourceCommandInput, AddDataSourceCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ DeleteDataSourceRequest,
11
+ DeleteDataSourceResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ OpenSearchClientResolvedConfig,
15
+ ServiceInputTypes,
16
+ ServiceOutputTypes,
17
+ } from "../OpenSearchClient";
18
+ export { __MetadataBearer, $Command };
19
+ export interface DeleteDataSourceCommandInput extends DeleteDataSourceRequest {}
20
+ export interface DeleteDataSourceCommandOutput
21
+ extends DeleteDataSourceResponse,
22
+ __MetadataBearer {}
23
+ export declare class DeleteDataSourceCommand extends $Command<
24
+ DeleteDataSourceCommandInput,
25
+ DeleteDataSourceCommandOutput,
26
+ OpenSearchClientResolvedConfig
27
+ > {
28
+ readonly input: DeleteDataSourceCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: DeleteDataSourceCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: OpenSearchClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<DeleteDataSourceCommandInput, DeleteDataSourceCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ GetDataSourceRequest,
11
+ GetDataSourceResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ OpenSearchClientResolvedConfig,
15
+ ServiceInputTypes,
16
+ ServiceOutputTypes,
17
+ } from "../OpenSearchClient";
18
+ export { __MetadataBearer, $Command };
19
+ export interface GetDataSourceCommandInput extends GetDataSourceRequest {}
20
+ export interface GetDataSourceCommandOutput
21
+ extends GetDataSourceResponse,
22
+ __MetadataBearer {}
23
+ export declare class GetDataSourceCommand extends $Command<
24
+ GetDataSourceCommandInput,
25
+ GetDataSourceCommandOutput,
26
+ OpenSearchClientResolvedConfig
27
+ > {
28
+ readonly input: GetDataSourceCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: GetDataSourceCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: OpenSearchClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<GetDataSourceCommandInput, GetDataSourceCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ ListDataSourcesRequest,
11
+ ListDataSourcesResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ OpenSearchClientResolvedConfig,
15
+ ServiceInputTypes,
16
+ ServiceOutputTypes,
17
+ } from "../OpenSearchClient";
18
+ export { __MetadataBearer, $Command };
19
+ export interface ListDataSourcesCommandInput extends ListDataSourcesRequest {}
20
+ export interface ListDataSourcesCommandOutput
21
+ extends ListDataSourcesResponse,
22
+ __MetadataBearer {}
23
+ export declare class ListDataSourcesCommand extends $Command<
24
+ ListDataSourcesCommandInput,
25
+ ListDataSourcesCommandOutput,
26
+ OpenSearchClientResolvedConfig
27
+ > {
28
+ readonly input: ListDataSourcesCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: ListDataSourcesCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: OpenSearchClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<ListDataSourcesCommandInput, ListDataSourcesCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -0,0 +1,38 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ UpdateDataSourceRequest,
11
+ UpdateDataSourceResponse,
12
+ } from "../models/models_0";
13
+ import {
14
+ OpenSearchClientResolvedConfig,
15
+ ServiceInputTypes,
16
+ ServiceOutputTypes,
17
+ } from "../OpenSearchClient";
18
+ export { __MetadataBearer, $Command };
19
+ export interface UpdateDataSourceCommandInput extends UpdateDataSourceRequest {}
20
+ export interface UpdateDataSourceCommandOutput
21
+ extends UpdateDataSourceResponse,
22
+ __MetadataBearer {}
23
+ export declare class UpdateDataSourceCommand extends $Command<
24
+ UpdateDataSourceCommandInput,
25
+ UpdateDataSourceCommandOutput,
26
+ OpenSearchClientResolvedConfig
27
+ > {
28
+ readonly input: UpdateDataSourceCommandInput;
29
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
30
+ constructor(input: UpdateDataSourceCommandInput);
31
+ resolveMiddleware(
32
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
33
+ configuration: OpenSearchClientResolvedConfig,
34
+ options?: __HttpHandlerOptions
35
+ ): Handler<UpdateDataSourceCommandInput, UpdateDataSourceCommandOutput>;
36
+ private serialize;
37
+ private deserialize;
38
+ }
@@ -1,4 +1,5 @@
1
1
  export * from "./AcceptInboundConnectionCommand";
2
+ export * from "./AddDataSourceCommand";
2
3
  export * from "./AddTagsCommand";
3
4
  export * from "./AssociatePackageCommand";
4
5
  export * from "./AuthorizeVpcEndpointAccessCommand";
@@ -7,6 +8,7 @@ export * from "./CreateDomainCommand";
7
8
  export * from "./CreateOutboundConnectionCommand";
8
9
  export * from "./CreatePackageCommand";
9
10
  export * from "./CreateVpcEndpointCommand";
11
+ export * from "./DeleteDataSourceCommand";
10
12
  export * from "./DeleteDomainCommand";
11
13
  export * from "./DeleteInboundConnectionCommand";
12
14
  export * from "./DeleteOutboundConnectionCommand";
@@ -29,10 +31,12 @@ export * from "./DescribeReservedInstancesCommand";
29
31
  export * from "./DescribeVpcEndpointsCommand";
30
32
  export * from "./DissociatePackageCommand";
31
33
  export * from "./GetCompatibleVersionsCommand";
34
+ export * from "./GetDataSourceCommand";
32
35
  export * from "./GetDomainMaintenanceStatusCommand";
33
36
  export * from "./GetPackageVersionHistoryCommand";
34
37
  export * from "./GetUpgradeHistoryCommand";
35
38
  export * from "./GetUpgradeStatusCommand";
39
+ export * from "./ListDataSourcesCommand";
36
40
  export * from "./ListDomainMaintenancesCommand";
37
41
  export * from "./ListDomainNamesCommand";
38
42
  export * from "./ListDomainsForPackageCommand";
@@ -50,6 +54,7 @@ export * from "./RemoveTagsCommand";
50
54
  export * from "./RevokeVpcEndpointAccessCommand";
51
55
  export * from "./StartDomainMaintenanceCommand";
52
56
  export * from "./StartServiceSoftwareUpdateCommand";
57
+ export * from "./UpdateDataSourceCommand";
53
58
  export * from "./UpdateDomainConfigCommand";
54
59
  export * from "./UpdatePackageCommand";
55
60
  export * from "./UpdateScheduledActionCommand";
@@ -110,23 +110,48 @@ export declare const ActionType: {
110
110
  readonly SERVICE_SOFTWARE_UPDATE: "SERVICE_SOFTWARE_UPDATE";
111
111
  };
112
112
  export type ActionType = (typeof ActionType)[keyof typeof ActionType];
113
- export interface AdditionalLimit {
114
- LimitName?: string;
115
- LimitValues?: string[];
113
+ export interface S3GlueDataCatalog {
114
+ RoleArn?: string;
116
115
  }
117
- export interface Tag {
118
- Key: string | undefined;
119
- Value: string | undefined;
116
+ export type DataSourceType =
117
+ | DataSourceType.S3GlueDataCatalogMember
118
+ | DataSourceType.$UnknownMember;
119
+ export declare namespace DataSourceType {
120
+ interface S3GlueDataCatalogMember {
121
+ S3GlueDataCatalog: S3GlueDataCatalog;
122
+ $unknown?: never;
123
+ }
124
+ interface $UnknownMember {
125
+ S3GlueDataCatalog?: never;
126
+ $unknown: [string, any];
127
+ }
128
+ interface Visitor<T> {
129
+ S3GlueDataCatalog: (value: S3GlueDataCatalog) => T;
130
+ _: (name: string, value: any) => T;
131
+ }
132
+ const visit: <T>(value: DataSourceType, visitor: Visitor<T>) => T;
133
+ }
134
+ export interface AddDataSourceRequest {
135
+ DomainName: string | undefined;
136
+ Name: string | undefined;
137
+ DataSourceType: DataSourceType | undefined;
138
+ Description?: string;
120
139
  }
121
- export interface AddTagsRequest {
122
- ARN: string | undefined;
123
- TagList: Tag[] | undefined;
140
+ export interface AddDataSourceResponse {
141
+ Message?: string;
124
142
  }
125
143
  export declare class BaseException extends __BaseException {
126
144
  readonly name: "BaseException";
127
145
  readonly $fault: "client";
128
146
  constructor(opts: __ExceptionOptionType<BaseException, __BaseException>);
129
147
  }
148
+ export declare class DependencyFailureException extends __BaseException {
149
+ readonly name: "DependencyFailureException";
150
+ readonly $fault: "client";
151
+ constructor(
152
+ opts: __ExceptionOptionType<DependencyFailureException, __BaseException>
153
+ );
154
+ }
130
155
  export declare class InternalException extends __BaseException {
131
156
  readonly name: "InternalException";
132
157
  readonly $fault: "server";
@@ -139,6 +164,18 @@ export declare class ValidationException extends __BaseException {
139
164
  opts: __ExceptionOptionType<ValidationException, __BaseException>
140
165
  );
141
166
  }
167
+ export interface AdditionalLimit {
168
+ LimitName?: string;
169
+ LimitValues?: string[];
170
+ }
171
+ export interface Tag {
172
+ Key: string | undefined;
173
+ Value: string | undefined;
174
+ }
175
+ export interface AddTagsRequest {
176
+ ARN: string | undefined;
177
+ TagList: Tag[] | undefined;
178
+ }
142
179
  export interface AdvancedOptionsStatus {
143
180
  Options: Record<string, string> | undefined;
144
181
  Status: OptionStatus | undefined;
@@ -709,6 +746,13 @@ export interface VpcEndpoint {
709
746
  export interface CreateVpcEndpointResponse {
710
747
  VpcEndpoint: VpcEndpoint | undefined;
711
748
  }
749
+ export interface DeleteDataSourceRequest {
750
+ DomainName: string | undefined;
751
+ Name: string | undefined;
752
+ }
753
+ export interface DeleteDataSourceResponse {
754
+ Message?: string;
755
+ }
712
756
  export interface DeleteDomainRequest {
713
757
  DomainName: string | undefined;
714
758
  }
@@ -985,13 +1029,6 @@ export interface DescribeDomainHealthResponse {
985
1029
  TotalUnAssignedShards?: string;
986
1030
  EnvironmentInformation?: EnvironmentInfo[];
987
1031
  }
988
- export declare class DependencyFailureException extends __BaseException {
989
- readonly name: "DependencyFailureException";
990
- readonly $fault: "client";
991
- constructor(
992
- opts: __ExceptionOptionType<DependencyFailureException, __BaseException>
993
- );
994
- }
995
1032
  export interface DescribeDomainNodesRequest {
996
1033
  DomainName: string | undefined;
997
1034
  }
@@ -1224,6 +1261,15 @@ export interface CompatibleVersionsMap {
1224
1261
  export interface GetCompatibleVersionsResponse {
1225
1262
  CompatibleVersions?: CompatibleVersionsMap[];
1226
1263
  }
1264
+ export interface GetDataSourceRequest {
1265
+ DomainName: string | undefined;
1266
+ Name: string | undefined;
1267
+ }
1268
+ export interface GetDataSourceResponse {
1269
+ DataSourceType?: DataSourceType;
1270
+ Name?: string;
1271
+ Description?: string;
1272
+ }
1227
1273
  export interface GetDomainMaintenanceStatusRequest {
1228
1274
  DomainName: string | undefined;
1229
1275
  MaintenanceId: string | undefined;
@@ -1310,6 +1356,17 @@ export interface GetUpgradeStatusResponse {
1310
1356
  StepStatus?: UpgradeStatus;
1311
1357
  UpgradeName?: string;
1312
1358
  }
1359
+ export interface ListDataSourcesRequest {
1360
+ DomainName: string | undefined;
1361
+ }
1362
+ export interface DataSourceDetails {
1363
+ DataSourceType?: DataSourceType;
1364
+ Name?: string;
1365
+ Description?: string;
1366
+ }
1367
+ export interface ListDataSourcesResponse {
1368
+ DataSources?: DataSourceDetails[];
1369
+ }
1313
1370
  export interface ListDomainMaintenancesRequest {
1314
1371
  DomainName: string | undefined;
1315
1372
  Action?: MaintenanceType;
@@ -1494,6 +1551,15 @@ export interface StartServiceSoftwareUpdateRequest {
1494
1551
  export interface StartServiceSoftwareUpdateResponse {
1495
1552
  ServiceSoftwareOptions?: ServiceSoftwareOptions;
1496
1553
  }
1554
+ export interface UpdateDataSourceRequest {
1555
+ DomainName: string | undefined;
1556
+ Name: string | undefined;
1557
+ DataSourceType: DataSourceType | undefined;
1558
+ Description?: string;
1559
+ }
1560
+ export interface UpdateDataSourceResponse {
1561
+ Message?: string;
1562
+ }
1497
1563
  export declare const DryRunMode: {
1498
1564
  readonly Basic: "Basic";
1499
1565
  readonly Verbose: "Verbose";