@aws-sdk/client-opensearch 3.699.0 → 3.709.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 (45) hide show
  1. package/README.md +40 -0
  2. package/dist-cjs/index.js +240 -5
  3. package/dist-es/OpenSearch.js +10 -0
  4. package/dist-es/commands/AddDirectQueryDataSourceCommand.js +22 -0
  5. package/dist-es/commands/DeleteDirectQueryDataSourceCommand.js +22 -0
  6. package/dist-es/commands/GetDirectQueryDataSourceCommand.js +22 -0
  7. package/dist-es/commands/ListDirectQueryDataSourcesCommand.js +22 -0
  8. package/dist-es/commands/UpdateDirectQueryDataSourceCommand.js +22 -0
  9. package/dist-es/commands/index.js +5 -0
  10. package/dist-es/models/models_0.js +10 -4
  11. package/dist-es/models/models_1.js +4 -0
  12. package/dist-es/protocols/Aws_restJson1.js +134 -0
  13. package/dist-types/OpenSearch.d.ts +36 -0
  14. package/dist-types/OpenSearchClient.d.ts +7 -2
  15. package/dist-types/commands/AddDirectQueryDataSourceCommand.d.ts +110 -0
  16. package/dist-types/commands/AddTagsCommand.d.ts +4 -4
  17. package/dist-types/commands/DeleteDirectQueryDataSourceCommand.d.ts +87 -0
  18. package/dist-types/commands/GetDirectQueryDataSourceCommand.d.ts +102 -0
  19. package/dist-types/commands/ListDirectQueryDataSourcesCommand.d.ts +113 -0
  20. package/dist-types/commands/ListInstanceTypeDetailsCommand.d.ts +1 -1
  21. package/dist-types/commands/ListPackagesForDomainCommand.d.ts +1 -1
  22. package/dist-types/commands/ListScheduledActionsCommand.d.ts +1 -1
  23. package/dist-types/commands/ListTagsCommand.d.ts +4 -3
  24. package/dist-types/commands/RemoveTagsCommand.d.ts +2 -2
  25. package/dist-types/commands/UpdateDirectQueryDataSourceCommand.d.ts +101 -0
  26. package/dist-types/commands/index.d.ts +5 -0
  27. package/dist-types/models/models_0.d.ts +307 -298
  28. package/dist-types/models/models_1.d.ts +331 -4
  29. package/dist-types/protocols/Aws_restJson1.d.ts +45 -0
  30. package/dist-types/ts3.4/OpenSearch.d.ts +86 -0
  31. package/dist-types/ts3.4/OpenSearchClient.d.ts +30 -0
  32. package/dist-types/ts3.4/commands/AddDirectQueryDataSourceCommand.d.ts +51 -0
  33. package/dist-types/ts3.4/commands/DeleteDirectQueryDataSourceCommand.d.ts +47 -0
  34. package/dist-types/ts3.4/commands/GetDirectQueryDataSourceCommand.d.ts +51 -0
  35. package/dist-types/ts3.4/commands/ListDirectQueryDataSourcesCommand.d.ts +51 -0
  36. package/dist-types/ts3.4/commands/ListInstanceTypeDetailsCommand.d.ts +1 -1
  37. package/dist-types/ts3.4/commands/ListPackagesForDomainCommand.d.ts +1 -1
  38. package/dist-types/ts3.4/commands/ListScheduledActionsCommand.d.ts +1 -1
  39. package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +1 -1
  40. package/dist-types/ts3.4/commands/UpdateDirectQueryDataSourceCommand.d.ts +51 -0
  41. package/dist-types/ts3.4/commands/index.d.ts +5 -0
  42. package/dist-types/ts3.4/models/models_0.d.ts +74 -65
  43. package/dist-types/ts3.4/models/models_1.d.ts +77 -1
  44. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +60 -0
  45. package/package.json +35 -35
@@ -1,5 +1,7 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import {
3
+ ActionSeverity,
4
+ ActionStatus,
3
5
  ActionType,
4
6
  AdvancedSecurityOptionsInput,
5
7
  AIMLOptionsInput,
@@ -13,8 +15,10 @@ import {
13
15
  DataSource,
14
16
  DataSourceStatus,
15
17
  DataSourceType,
18
+ DirectQueryDataSourceType,
16
19
  DomainConfig,
17
20
  DomainEndpointOptions,
21
+ DomainPackageDetails,
18
22
  DryRunProgressStatus,
19
23
  DryRunResults,
20
24
  EBSOptions,
@@ -28,19 +32,82 @@ import {
28
32
  MaintenanceType,
29
33
  NodeToNodeEncryptionOptions,
30
34
  OffPeakWindowOptions,
35
+ OpenSearchPartitionInstanceType,
31
36
  PackageConfiguration,
32
37
  PackageDetails,
33
38
  PackageEncryptionOptions,
34
39
  PackageSource,
35
- ScheduledAction,
36
40
  ServiceSoftwareOptions,
37
41
  SnapshotOptions,
38
42
  SoftwareUpdateOptions,
43
+ Tag,
39
44
  VpcEndpoint,
40
45
  VpcEndpointSummary,
41
46
  VPCOptions,
42
47
  } from "./models_0";
43
48
  import { OpenSearchServiceException as __BaseException } from "./OpenSearchServiceException";
49
+ export interface ListInstanceTypeDetailsRequest {
50
+ EngineVersion: string | undefined;
51
+ DomainName?: string | undefined;
52
+ MaxResults?: number | undefined;
53
+ NextToken?: string | undefined;
54
+ RetrieveAZs?: boolean | undefined;
55
+ InstanceType?: string | undefined;
56
+ }
57
+ export interface InstanceTypeDetails {
58
+ InstanceType?: OpenSearchPartitionInstanceType | undefined;
59
+ EncryptionEnabled?: boolean | undefined;
60
+ CognitoEnabled?: boolean | undefined;
61
+ AppLogsEnabled?: boolean | undefined;
62
+ AdvancedSecurityEnabled?: boolean | undefined;
63
+ WarmEnabled?: boolean | undefined;
64
+ InstanceRole?: string[] | undefined;
65
+ AvailabilityZones?: string[] | undefined;
66
+ }
67
+ export interface ListInstanceTypeDetailsResponse {
68
+ InstanceTypeDetails?: InstanceTypeDetails[] | undefined;
69
+ NextToken?: string | undefined;
70
+ }
71
+ export interface ListPackagesForDomainRequest {
72
+ DomainName: string | undefined;
73
+ MaxResults?: number | undefined;
74
+ NextToken?: string | undefined;
75
+ }
76
+ export interface ListPackagesForDomainResponse {
77
+ DomainPackageDetailsList?: DomainPackageDetails[] | undefined;
78
+ NextToken?: string | undefined;
79
+ }
80
+ export interface ListScheduledActionsRequest {
81
+ DomainName: string | undefined;
82
+ MaxResults?: number | undefined;
83
+ NextToken?: string | undefined;
84
+ }
85
+ export declare const ScheduledBy: {
86
+ readonly CUSTOMER: "CUSTOMER";
87
+ readonly SYSTEM: "SYSTEM";
88
+ };
89
+ export type ScheduledBy = (typeof ScheduledBy)[keyof typeof ScheduledBy];
90
+ export interface ScheduledAction {
91
+ Id: string | undefined;
92
+ Type: ActionType | undefined;
93
+ Severity: ActionSeverity | undefined;
94
+ ScheduledTime: number | undefined;
95
+ Description?: string | undefined;
96
+ ScheduledBy?: ScheduledBy | undefined;
97
+ Status?: ActionStatus | undefined;
98
+ Mandatory?: boolean | undefined;
99
+ Cancellable?: boolean | undefined;
100
+ }
101
+ export interface ListScheduledActionsResponse {
102
+ ScheduledActions?: ScheduledAction[] | undefined;
103
+ NextToken?: string | undefined;
104
+ }
105
+ export interface ListTagsRequest {
106
+ ARN: string | undefined;
107
+ }
108
+ export interface ListTagsResponse {
109
+ TagList?: Tag[] | undefined;
110
+ }
44
111
  export interface ListVersionsRequest {
45
112
  MaxResults?: number | undefined;
46
113
  NextToken?: string | undefined;
@@ -144,6 +211,15 @@ export interface UpdateDataSourceRequest {
144
211
  export interface UpdateDataSourceResponse {
145
212
  Message?: string | undefined;
146
213
  }
214
+ export interface UpdateDirectQueryDataSourceRequest {
215
+ DataSourceName: string | undefined;
216
+ DataSourceType: DirectQueryDataSourceType | undefined;
217
+ Description?: string | undefined;
218
+ OpenSearchArns: string[] | undefined;
219
+ }
220
+ export interface UpdateDirectQueryDataSourceResponse {
221
+ DataSourceArn?: string | undefined;
222
+ }
147
223
  export declare const DryRunMode: {
148
224
  readonly Basic: "Basic";
149
225
  readonly Verbose: "Verbose";
@@ -11,6 +11,10 @@ import {
11
11
  AddDataSourceCommandInput,
12
12
  AddDataSourceCommandOutput,
13
13
  } from "../commands/AddDataSourceCommand";
14
+ import {
15
+ AddDirectQueryDataSourceCommandInput,
16
+ AddDirectQueryDataSourceCommandOutput,
17
+ } from "../commands/AddDirectQueryDataSourceCommand";
14
18
  import {
15
19
  AddTagsCommandInput,
16
20
  AddTagsCommandOutput,
@@ -63,6 +67,10 @@ import {
63
67
  DeleteDataSourceCommandInput,
64
68
  DeleteDataSourceCommandOutput,
65
69
  } from "../commands/DeleteDataSourceCommand";
70
+ import {
71
+ DeleteDirectQueryDataSourceCommandInput,
72
+ DeleteDirectQueryDataSourceCommandOutput,
73
+ } from "../commands/DeleteDirectQueryDataSourceCommand";
66
74
  import {
67
75
  DeleteDomainCommandInput,
68
76
  DeleteDomainCommandOutput,
@@ -163,6 +171,10 @@ import {
163
171
  GetDataSourceCommandInput,
164
172
  GetDataSourceCommandOutput,
165
173
  } from "../commands/GetDataSourceCommand";
174
+ import {
175
+ GetDirectQueryDataSourceCommandInput,
176
+ GetDirectQueryDataSourceCommandOutput,
177
+ } from "../commands/GetDirectQueryDataSourceCommand";
166
178
  import {
167
179
  GetDomainMaintenanceStatusCommandInput,
168
180
  GetDomainMaintenanceStatusCommandOutput,
@@ -187,6 +199,10 @@ import {
187
199
  ListDataSourcesCommandInput,
188
200
  ListDataSourcesCommandOutput,
189
201
  } from "../commands/ListDataSourcesCommand";
202
+ import {
203
+ ListDirectQueryDataSourcesCommandInput,
204
+ ListDirectQueryDataSourcesCommandOutput,
205
+ } from "../commands/ListDirectQueryDataSourcesCommand";
190
206
  import {
191
207
  ListDomainMaintenancesCommandInput,
192
208
  ListDomainMaintenancesCommandOutput,
@@ -263,6 +279,10 @@ import {
263
279
  UpdateDataSourceCommandInput,
264
280
  UpdateDataSourceCommandOutput,
265
281
  } from "../commands/UpdateDataSourceCommand";
282
+ import {
283
+ UpdateDirectQueryDataSourceCommandInput,
284
+ UpdateDirectQueryDataSourceCommandOutput,
285
+ } from "../commands/UpdateDirectQueryDataSourceCommand";
266
286
  import {
267
287
  UpdateDomainConfigCommandInput,
268
288
  UpdateDomainConfigCommandOutput,
@@ -295,6 +315,10 @@ export declare const se_AddDataSourceCommand: (
295
315
  input: AddDataSourceCommandInput,
296
316
  context: __SerdeContext
297
317
  ) => Promise<__HttpRequest>;
318
+ export declare const se_AddDirectQueryDataSourceCommand: (
319
+ input: AddDirectQueryDataSourceCommandInput,
320
+ context: __SerdeContext
321
+ ) => Promise<__HttpRequest>;
298
322
  export declare const se_AddTagsCommand: (
299
323
  input: AddTagsCommandInput,
300
324
  context: __SerdeContext
@@ -347,6 +371,10 @@ export declare const se_DeleteDataSourceCommand: (
347
371
  input: DeleteDataSourceCommandInput,
348
372
  context: __SerdeContext
349
373
  ) => Promise<__HttpRequest>;
374
+ export declare const se_DeleteDirectQueryDataSourceCommand: (
375
+ input: DeleteDirectQueryDataSourceCommandInput,
376
+ context: __SerdeContext
377
+ ) => Promise<__HttpRequest>;
350
378
  export declare const se_DeleteDomainCommand: (
351
379
  input: DeleteDomainCommandInput,
352
380
  context: __SerdeContext
@@ -447,6 +475,10 @@ export declare const se_GetDataSourceCommand: (
447
475
  input: GetDataSourceCommandInput,
448
476
  context: __SerdeContext
449
477
  ) => Promise<__HttpRequest>;
478
+ export declare const se_GetDirectQueryDataSourceCommand: (
479
+ input: GetDirectQueryDataSourceCommandInput,
480
+ context: __SerdeContext
481
+ ) => Promise<__HttpRequest>;
450
482
  export declare const se_GetDomainMaintenanceStatusCommand: (
451
483
  input: GetDomainMaintenanceStatusCommandInput,
452
484
  context: __SerdeContext
@@ -471,6 +503,10 @@ export declare const se_ListDataSourcesCommand: (
471
503
  input: ListDataSourcesCommandInput,
472
504
  context: __SerdeContext
473
505
  ) => Promise<__HttpRequest>;
506
+ export declare const se_ListDirectQueryDataSourcesCommand: (
507
+ input: ListDirectQueryDataSourcesCommandInput,
508
+ context: __SerdeContext
509
+ ) => Promise<__HttpRequest>;
474
510
  export declare const se_ListDomainMaintenancesCommand: (
475
511
  input: ListDomainMaintenancesCommandInput,
476
512
  context: __SerdeContext
@@ -547,6 +583,10 @@ export declare const se_UpdateDataSourceCommand: (
547
583
  input: UpdateDataSourceCommandInput,
548
584
  context: __SerdeContext
549
585
  ) => Promise<__HttpRequest>;
586
+ export declare const se_UpdateDirectQueryDataSourceCommand: (
587
+ input: UpdateDirectQueryDataSourceCommandInput,
588
+ context: __SerdeContext
589
+ ) => Promise<__HttpRequest>;
550
590
  export declare const se_UpdateDomainConfigCommand: (
551
591
  input: UpdateDomainConfigCommandInput,
552
592
  context: __SerdeContext
@@ -579,6 +619,10 @@ export declare const de_AddDataSourceCommand: (
579
619
  output: __HttpResponse,
580
620
  context: __SerdeContext
581
621
  ) => Promise<AddDataSourceCommandOutput>;
622
+ export declare const de_AddDirectQueryDataSourceCommand: (
623
+ output: __HttpResponse,
624
+ context: __SerdeContext
625
+ ) => Promise<AddDirectQueryDataSourceCommandOutput>;
582
626
  export declare const de_AddTagsCommand: (
583
627
  output: __HttpResponse,
584
628
  context: __SerdeContext
@@ -631,6 +675,10 @@ export declare const de_DeleteDataSourceCommand: (
631
675
  output: __HttpResponse,
632
676
  context: __SerdeContext
633
677
  ) => Promise<DeleteDataSourceCommandOutput>;
678
+ export declare const de_DeleteDirectQueryDataSourceCommand: (
679
+ output: __HttpResponse,
680
+ context: __SerdeContext
681
+ ) => Promise<DeleteDirectQueryDataSourceCommandOutput>;
634
682
  export declare const de_DeleteDomainCommand: (
635
683
  output: __HttpResponse,
636
684
  context: __SerdeContext
@@ -731,6 +779,10 @@ export declare const de_GetDataSourceCommand: (
731
779
  output: __HttpResponse,
732
780
  context: __SerdeContext
733
781
  ) => Promise<GetDataSourceCommandOutput>;
782
+ export declare const de_GetDirectQueryDataSourceCommand: (
783
+ output: __HttpResponse,
784
+ context: __SerdeContext
785
+ ) => Promise<GetDirectQueryDataSourceCommandOutput>;
734
786
  export declare const de_GetDomainMaintenanceStatusCommand: (
735
787
  output: __HttpResponse,
736
788
  context: __SerdeContext
@@ -755,6 +807,10 @@ export declare const de_ListDataSourcesCommand: (
755
807
  output: __HttpResponse,
756
808
  context: __SerdeContext
757
809
  ) => Promise<ListDataSourcesCommandOutput>;
810
+ export declare const de_ListDirectQueryDataSourcesCommand: (
811
+ output: __HttpResponse,
812
+ context: __SerdeContext
813
+ ) => Promise<ListDirectQueryDataSourcesCommandOutput>;
758
814
  export declare const de_ListDomainMaintenancesCommand: (
759
815
  output: __HttpResponse,
760
816
  context: __SerdeContext
@@ -831,6 +887,10 @@ export declare const de_UpdateDataSourceCommand: (
831
887
  output: __HttpResponse,
832
888
  context: __SerdeContext
833
889
  ) => Promise<UpdateDataSourceCommandOutput>;
890
+ export declare const de_UpdateDirectQueryDataSourceCommand: (
891
+ output: __HttpResponse,
892
+ context: __SerdeContext
893
+ ) => Promise<UpdateDirectQueryDataSourceCommandOutput>;
834
894
  export declare const de_UpdateDomainConfigCommand: (
835
895
  output: __HttpResponse,
836
896
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-opensearch",
3
3
  "description": "AWS SDK for JavaScript Opensearch Client for Node.js, Browser and React Native",
4
- "version": "3.699.0",
4
+ "version": "3.709.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-opensearch",
@@ -20,43 +20,43 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.699.0",
24
- "@aws-sdk/client-sts": "3.699.0",
25
- "@aws-sdk/core": "3.696.0",
26
- "@aws-sdk/credential-provider-node": "3.699.0",
27
- "@aws-sdk/middleware-host-header": "3.696.0",
28
- "@aws-sdk/middleware-logger": "3.696.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.696.0",
30
- "@aws-sdk/middleware-user-agent": "3.696.0",
31
- "@aws-sdk/region-config-resolver": "3.696.0",
32
- "@aws-sdk/types": "3.696.0",
33
- "@aws-sdk/util-endpoints": "3.696.0",
34
- "@aws-sdk/util-user-agent-browser": "3.696.0",
35
- "@aws-sdk/util-user-agent-node": "3.696.0",
36
- "@smithy/config-resolver": "^3.0.12",
37
- "@smithy/core": "^2.5.3",
38
- "@smithy/fetch-http-handler": "^4.1.1",
39
- "@smithy/hash-node": "^3.0.10",
40
- "@smithy/invalid-dependency": "^3.0.10",
41
- "@smithy/middleware-content-length": "^3.0.12",
42
- "@smithy/middleware-endpoint": "^3.2.3",
43
- "@smithy/middleware-retry": "^3.0.27",
44
- "@smithy/middleware-serde": "^3.0.10",
45
- "@smithy/middleware-stack": "^3.0.10",
46
- "@smithy/node-config-provider": "^3.1.11",
47
- "@smithy/node-http-handler": "^3.3.1",
48
- "@smithy/protocol-http": "^4.1.7",
49
- "@smithy/smithy-client": "^3.4.4",
50
- "@smithy/types": "^3.7.1",
51
- "@smithy/url-parser": "^3.0.10",
23
+ "@aws-sdk/client-sso-oidc": "3.709.0",
24
+ "@aws-sdk/client-sts": "3.709.0",
25
+ "@aws-sdk/core": "3.709.0",
26
+ "@aws-sdk/credential-provider-node": "3.709.0",
27
+ "@aws-sdk/middleware-host-header": "3.709.0",
28
+ "@aws-sdk/middleware-logger": "3.709.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.709.0",
30
+ "@aws-sdk/middleware-user-agent": "3.709.0",
31
+ "@aws-sdk/region-config-resolver": "3.709.0",
32
+ "@aws-sdk/types": "3.709.0",
33
+ "@aws-sdk/util-endpoints": "3.709.0",
34
+ "@aws-sdk/util-user-agent-browser": "3.709.0",
35
+ "@aws-sdk/util-user-agent-node": "3.709.0",
36
+ "@smithy/config-resolver": "^3.0.13",
37
+ "@smithy/core": "^2.5.5",
38
+ "@smithy/fetch-http-handler": "^4.1.2",
39
+ "@smithy/hash-node": "^3.0.11",
40
+ "@smithy/invalid-dependency": "^3.0.11",
41
+ "@smithy/middleware-content-length": "^3.0.13",
42
+ "@smithy/middleware-endpoint": "^3.2.5",
43
+ "@smithy/middleware-retry": "^3.0.30",
44
+ "@smithy/middleware-serde": "^3.0.11",
45
+ "@smithy/middleware-stack": "^3.0.11",
46
+ "@smithy/node-config-provider": "^3.1.12",
47
+ "@smithy/node-http-handler": "^3.3.2",
48
+ "@smithy/protocol-http": "^4.1.8",
49
+ "@smithy/smithy-client": "^3.5.0",
50
+ "@smithy/types": "^3.7.2",
51
+ "@smithy/url-parser": "^3.0.11",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.27",
56
- "@smithy/util-defaults-mode-node": "^3.0.27",
57
- "@smithy/util-endpoints": "^2.1.6",
58
- "@smithy/util-middleware": "^3.0.10",
59
- "@smithy/util-retry": "^3.0.10",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.30",
56
+ "@smithy/util-defaults-mode-node": "^3.0.30",
57
+ "@smithy/util-endpoints": "^2.1.7",
58
+ "@smithy/util-middleware": "^3.0.11",
59
+ "@smithy/util-retry": "^3.0.11",
60
60
  "@smithy/util-utf8": "^3.0.0",
61
61
  "@types/uuid": "^9.0.1",
62
62
  "tslib": "^2.6.2",