@aws-sdk/client-opensearchserverless 3.858.0 → 3.862.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 (29) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +173 -0
  3. package/dist-es/OpenSearchServerless.js +8 -0
  4. package/dist-es/commands/CreateIndexCommand.js +22 -0
  5. package/dist-es/commands/DeleteIndexCommand.js +22 -0
  6. package/dist-es/commands/GetIndexCommand.js +22 -0
  7. package/dist-es/commands/UpdateIndexCommand.js +22 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/protocols/Aws_json1_0.js +101 -0
  10. package/dist-types/OpenSearchServerless.d.ts +28 -0
  11. package/dist-types/OpenSearchServerlessClient.d.ts +6 -2
  12. package/dist-types/commands/CreateCollectionCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateIndexCommand.d.ts +90 -0
  14. package/dist-types/commands/DeleteIndexCommand.d.ts +83 -0
  15. package/dist-types/commands/GetIndexCommand.d.ts +85 -0
  16. package/dist-types/commands/UpdateIndexCommand.d.ts +85 -0
  17. package/dist-types/commands/index.d.ts +4 -0
  18. package/dist-types/models/models_0.d.ts +105 -6
  19. package/dist-types/protocols/Aws_json1_0.d.ts +36 -0
  20. package/dist-types/ts3.4/OpenSearchServerless.d.ts +68 -0
  21. package/dist-types/ts3.4/OpenSearchServerlessClient.d.ts +24 -0
  22. package/dist-types/ts3.4/commands/CreateIndexCommand.d.ts +47 -0
  23. package/dist-types/ts3.4/commands/DeleteIndexCommand.d.ts +47 -0
  24. package/dist-types/ts3.4/commands/GetIndexCommand.d.ts +47 -0
  25. package/dist-types/ts3.4/commands/UpdateIndexCommand.d.ts +47 -0
  26. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  27. package/dist-types/ts3.4/models/models_0.d.ts +24 -0
  28. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +48 -0
  29. package/package.json +33 -33
@@ -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
+ OpenSearchServerlessClientResolvedConfig,
6
+ ServiceInputTypes,
7
+ ServiceOutputTypes,
8
+ } from "../OpenSearchServerlessClient";
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
+ OpenSearchServerlessClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ input: DeleteIndexCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ DeleteIndexCommandInput,
29
+ DeleteIndexCommandOutput,
30
+ OpenSearchServerlessClientResolvedConfig,
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: {};
41
+ };
42
+ sdk: {
43
+ input: DeleteIndexCommandInput;
44
+ output: DeleteIndexCommandOutput;
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 { GetIndexRequest, GetIndexResponse } from "../models/models_0";
4
+ import {
5
+ OpenSearchServerlessClientResolvedConfig,
6
+ ServiceInputTypes,
7
+ ServiceOutputTypes,
8
+ } from "../OpenSearchServerlessClient";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface GetIndexCommandInput extends GetIndexRequest {}
12
+ export interface GetIndexCommandOutput
13
+ extends GetIndexResponse,
14
+ __MetadataBearer {}
15
+ declare const GetIndexCommand_base: {
16
+ new (
17
+ input: GetIndexCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ GetIndexCommandInput,
20
+ GetIndexCommandOutput,
21
+ OpenSearchServerlessClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ input: GetIndexCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ GetIndexCommandInput,
29
+ GetIndexCommandOutput,
30
+ OpenSearchServerlessClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class GetIndexCommand extends GetIndexCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: GetIndexRequest;
40
+ output: GetIndexResponse;
41
+ };
42
+ sdk: {
43
+ input: GetIndexCommandInput;
44
+ output: GetIndexCommandOutput;
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 { UpdateIndexRequest, UpdateIndexResponse } from "../models/models_0";
4
+ import {
5
+ OpenSearchServerlessClientResolvedConfig,
6
+ ServiceInputTypes,
7
+ ServiceOutputTypes,
8
+ } from "../OpenSearchServerlessClient";
9
+ export { __MetadataBearer };
10
+ export { $Command };
11
+ export interface UpdateIndexCommandInput extends UpdateIndexRequest {}
12
+ export interface UpdateIndexCommandOutput
13
+ extends UpdateIndexResponse,
14
+ __MetadataBearer {}
15
+ declare const UpdateIndexCommand_base: {
16
+ new (
17
+ input: UpdateIndexCommandInput
18
+ ): import("@smithy/smithy-client").CommandImpl<
19
+ UpdateIndexCommandInput,
20
+ UpdateIndexCommandOutput,
21
+ OpenSearchServerlessClientResolvedConfig,
22
+ ServiceInputTypes,
23
+ ServiceOutputTypes
24
+ >;
25
+ new (
26
+ input: UpdateIndexCommandInput
27
+ ): import("@smithy/smithy-client").CommandImpl<
28
+ UpdateIndexCommandInput,
29
+ UpdateIndexCommandOutput,
30
+ OpenSearchServerlessClientResolvedConfig,
31
+ ServiceInputTypes,
32
+ ServiceOutputTypes
33
+ >;
34
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
35
+ };
36
+ export declare class UpdateIndexCommand extends UpdateIndexCommand_base {
37
+ protected static __types: {
38
+ api: {
39
+ input: UpdateIndexRequest;
40
+ output: {};
41
+ };
42
+ sdk: {
43
+ input: UpdateIndexCommandInput;
44
+ output: UpdateIndexCommandOutput;
45
+ };
46
+ };
47
+ }
@@ -4,18 +4,21 @@ export * from "./BatchGetLifecyclePolicyCommand";
4
4
  export * from "./BatchGetVpcEndpointCommand";
5
5
  export * from "./CreateAccessPolicyCommand";
6
6
  export * from "./CreateCollectionCommand";
7
+ export * from "./CreateIndexCommand";
7
8
  export * from "./CreateLifecyclePolicyCommand";
8
9
  export * from "./CreateSecurityConfigCommand";
9
10
  export * from "./CreateSecurityPolicyCommand";
10
11
  export * from "./CreateVpcEndpointCommand";
11
12
  export * from "./DeleteAccessPolicyCommand";
12
13
  export * from "./DeleteCollectionCommand";
14
+ export * from "./DeleteIndexCommand";
13
15
  export * from "./DeleteLifecyclePolicyCommand";
14
16
  export * from "./DeleteSecurityConfigCommand";
15
17
  export * from "./DeleteSecurityPolicyCommand";
16
18
  export * from "./DeleteVpcEndpointCommand";
17
19
  export * from "./GetAccessPolicyCommand";
18
20
  export * from "./GetAccountSettingsCommand";
21
+ export * from "./GetIndexCommand";
19
22
  export * from "./GetPoliciesStatsCommand";
20
23
  export * from "./GetSecurityConfigCommand";
21
24
  export * from "./GetSecurityPolicyCommand";
@@ -31,6 +34,7 @@ export * from "./UntagResourceCommand";
31
34
  export * from "./UpdateAccessPolicyCommand";
32
35
  export * from "./UpdateAccountSettingsCommand";
33
36
  export * from "./UpdateCollectionCommand";
37
+ export * from "./UpdateIndexCommand";
34
38
  export * from "./UpdateLifecyclePolicyCommand";
35
39
  export * from "./UpdateSecurityConfigCommand";
36
40
  export * from "./UpdateSecurityPolicyCommand";
@@ -361,6 +361,12 @@ export interface CreateIamIdentityCenterConfigOptions {
361
361
  userAttribute?: IamIdentityCenterUserAttribute | undefined;
362
362
  groupAttribute?: IamIdentityCenterGroupAttribute | undefined;
363
363
  }
364
+ export interface CreateIndexRequest {
365
+ id: string | undefined;
366
+ indexName: string | undefined;
367
+ indexSchema?: __DocumentType | undefined;
368
+ }
369
+ export interface CreateIndexResponse {}
364
370
  export interface CreateLifecyclePolicyRequest {
365
371
  type: LifecyclePolicyType | undefined;
366
372
  name: string | undefined;
@@ -460,6 +466,11 @@ export interface CreateVpcEndpointDetail {
460
466
  export interface CreateVpcEndpointResponse {
461
467
  createVpcEndpointDetail?: CreateVpcEndpointDetail | undefined;
462
468
  }
469
+ export interface DeleteIndexRequest {
470
+ id: string | undefined;
471
+ indexName: string | undefined;
472
+ }
473
+ export interface DeleteIndexResponse {}
463
474
  export interface DeleteLifecyclePolicyRequest {
464
475
  type: LifecyclePolicyType | undefined;
465
476
  name: string | undefined;
@@ -493,6 +504,13 @@ export interface GetAccountSettingsRequest {}
493
504
  export interface GetAccountSettingsResponse {
494
505
  accountSettingsDetail?: AccountSettingsDetail | undefined;
495
506
  }
507
+ export interface GetIndexRequest {
508
+ id: string | undefined;
509
+ indexName: string | undefined;
510
+ }
511
+ export interface GetIndexResponse {
512
+ indexSchema?: __DocumentType | undefined;
513
+ }
496
514
  export interface GetPoliciesStatsRequest {}
497
515
  export interface LifecyclePolicyStats {
498
516
  RetentionPolicyCount?: number | undefined;
@@ -524,6 +542,12 @@ export interface GetSecurityPolicyRequest {
524
542
  export interface GetSecurityPolicyResponse {
525
543
  securityPolicyDetail?: SecurityPolicyDetail | undefined;
526
544
  }
545
+ export interface UpdateIndexRequest {
546
+ id: string | undefined;
547
+ indexName: string | undefined;
548
+ indexSchema?: __DocumentType | undefined;
549
+ }
550
+ export interface UpdateIndexResponse {}
527
551
  export interface ListLifecyclePoliciesRequest {
528
552
  type: LifecyclePolicyType | undefined;
529
553
  resources?: string[] | undefined;
@@ -27,6 +27,10 @@ import {
27
27
  CreateCollectionCommandInput,
28
28
  CreateCollectionCommandOutput,
29
29
  } from "../commands/CreateCollectionCommand";
30
+ import {
31
+ CreateIndexCommandInput,
32
+ CreateIndexCommandOutput,
33
+ } from "../commands/CreateIndexCommand";
30
34
  import {
31
35
  CreateLifecyclePolicyCommandInput,
32
36
  CreateLifecyclePolicyCommandOutput,
@@ -51,6 +55,10 @@ import {
51
55
  DeleteCollectionCommandInput,
52
56
  DeleteCollectionCommandOutput,
53
57
  } from "../commands/DeleteCollectionCommand";
58
+ import {
59
+ DeleteIndexCommandInput,
60
+ DeleteIndexCommandOutput,
61
+ } from "../commands/DeleteIndexCommand";
54
62
  import {
55
63
  DeleteLifecyclePolicyCommandInput,
56
64
  DeleteLifecyclePolicyCommandOutput,
@@ -75,6 +83,10 @@ import {
75
83
  GetAccountSettingsCommandInput,
76
84
  GetAccountSettingsCommandOutput,
77
85
  } from "../commands/GetAccountSettingsCommand";
86
+ import {
87
+ GetIndexCommandInput,
88
+ GetIndexCommandOutput,
89
+ } from "../commands/GetIndexCommand";
78
90
  import {
79
91
  GetPoliciesStatsCommandInput,
80
92
  GetPoliciesStatsCommandOutput,
@@ -135,6 +147,10 @@ import {
135
147
  UpdateCollectionCommandInput,
136
148
  UpdateCollectionCommandOutput,
137
149
  } from "../commands/UpdateCollectionCommand";
150
+ import {
151
+ UpdateIndexCommandInput,
152
+ UpdateIndexCommandOutput,
153
+ } from "../commands/UpdateIndexCommand";
138
154
  import {
139
155
  UpdateLifecyclePolicyCommandInput,
140
156
  UpdateLifecyclePolicyCommandOutput,
@@ -175,6 +191,10 @@ export declare const se_CreateCollectionCommand: (
175
191
  input: CreateCollectionCommandInput,
176
192
  context: __SerdeContext
177
193
  ) => Promise<__HttpRequest>;
194
+ export declare const se_CreateIndexCommand: (
195
+ input: CreateIndexCommandInput,
196
+ context: __SerdeContext
197
+ ) => Promise<__HttpRequest>;
178
198
  export declare const se_CreateLifecyclePolicyCommand: (
179
199
  input: CreateLifecyclePolicyCommandInput,
180
200
  context: __SerdeContext
@@ -199,6 +219,10 @@ export declare const se_DeleteCollectionCommand: (
199
219
  input: DeleteCollectionCommandInput,
200
220
  context: __SerdeContext
201
221
  ) => Promise<__HttpRequest>;
222
+ export declare const se_DeleteIndexCommand: (
223
+ input: DeleteIndexCommandInput,
224
+ context: __SerdeContext
225
+ ) => Promise<__HttpRequest>;
202
226
  export declare const se_DeleteLifecyclePolicyCommand: (
203
227
  input: DeleteLifecyclePolicyCommandInput,
204
228
  context: __SerdeContext
@@ -223,6 +247,10 @@ export declare const se_GetAccountSettingsCommand: (
223
247
  input: GetAccountSettingsCommandInput,
224
248
  context: __SerdeContext
225
249
  ) => Promise<__HttpRequest>;
250
+ export declare const se_GetIndexCommand: (
251
+ input: GetIndexCommandInput,
252
+ context: __SerdeContext
253
+ ) => Promise<__HttpRequest>;
226
254
  export declare const se_GetPoliciesStatsCommand: (
227
255
  input: GetPoliciesStatsCommandInput,
228
256
  context: __SerdeContext
@@ -283,6 +311,10 @@ export declare const se_UpdateCollectionCommand: (
283
311
  input: UpdateCollectionCommandInput,
284
312
  context: __SerdeContext
285
313
  ) => Promise<__HttpRequest>;
314
+ export declare const se_UpdateIndexCommand: (
315
+ input: UpdateIndexCommandInput,
316
+ context: __SerdeContext
317
+ ) => Promise<__HttpRequest>;
286
318
  export declare const se_UpdateLifecyclePolicyCommand: (
287
319
  input: UpdateLifecyclePolicyCommandInput,
288
320
  context: __SerdeContext
@@ -323,6 +355,10 @@ export declare const de_CreateCollectionCommand: (
323
355
  output: __HttpResponse,
324
356
  context: __SerdeContext
325
357
  ) => Promise<CreateCollectionCommandOutput>;
358
+ export declare const de_CreateIndexCommand: (
359
+ output: __HttpResponse,
360
+ context: __SerdeContext
361
+ ) => Promise<CreateIndexCommandOutput>;
326
362
  export declare const de_CreateLifecyclePolicyCommand: (
327
363
  output: __HttpResponse,
328
364
  context: __SerdeContext
@@ -347,6 +383,10 @@ export declare const de_DeleteCollectionCommand: (
347
383
  output: __HttpResponse,
348
384
  context: __SerdeContext
349
385
  ) => Promise<DeleteCollectionCommandOutput>;
386
+ export declare const de_DeleteIndexCommand: (
387
+ output: __HttpResponse,
388
+ context: __SerdeContext
389
+ ) => Promise<DeleteIndexCommandOutput>;
350
390
  export declare const de_DeleteLifecyclePolicyCommand: (
351
391
  output: __HttpResponse,
352
392
  context: __SerdeContext
@@ -371,6 +411,10 @@ export declare const de_GetAccountSettingsCommand: (
371
411
  output: __HttpResponse,
372
412
  context: __SerdeContext
373
413
  ) => Promise<GetAccountSettingsCommandOutput>;
414
+ export declare const de_GetIndexCommand: (
415
+ output: __HttpResponse,
416
+ context: __SerdeContext
417
+ ) => Promise<GetIndexCommandOutput>;
374
418
  export declare const de_GetPoliciesStatsCommand: (
375
419
  output: __HttpResponse,
376
420
  context: __SerdeContext
@@ -431,6 +475,10 @@ export declare const de_UpdateCollectionCommand: (
431
475
  output: __HttpResponse,
432
476
  context: __SerdeContext
433
477
  ) => Promise<UpdateCollectionCommandOutput>;
478
+ export declare const de_UpdateIndexCommand: (
479
+ output: __HttpResponse,
480
+ context: __SerdeContext
481
+ ) => Promise<UpdateIndexCommandOutput>;
434
482
  export declare const de_UpdateLifecyclePolicyCommand: (
435
483
  output: __HttpResponse,
436
484
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-opensearchserverless",
3
3
  "description": "AWS SDK for JavaScript Opensearchserverless Client for Node.js, Browser and React Native",
4
- "version": "3.858.0",
4
+ "version": "3.862.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-opensearchserverless",
@@ -20,41 +20,41 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.858.0",
24
- "@aws-sdk/credential-provider-node": "3.858.0",
25
- "@aws-sdk/middleware-host-header": "3.840.0",
26
- "@aws-sdk/middleware-logger": "3.840.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.840.0",
28
- "@aws-sdk/middleware-user-agent": "3.858.0",
29
- "@aws-sdk/region-config-resolver": "3.840.0",
30
- "@aws-sdk/types": "3.840.0",
31
- "@aws-sdk/util-endpoints": "3.848.0",
32
- "@aws-sdk/util-user-agent-browser": "3.840.0",
33
- "@aws-sdk/util-user-agent-node": "3.858.0",
34
- "@smithy/config-resolver": "^4.1.4",
35
- "@smithy/core": "^3.7.2",
36
- "@smithy/fetch-http-handler": "^5.1.0",
37
- "@smithy/hash-node": "^4.0.4",
38
- "@smithy/invalid-dependency": "^4.0.4",
39
- "@smithy/middleware-content-length": "^4.0.4",
40
- "@smithy/middleware-endpoint": "^4.1.17",
41
- "@smithy/middleware-retry": "^4.1.18",
42
- "@smithy/middleware-serde": "^4.0.8",
43
- "@smithy/middleware-stack": "^4.0.4",
44
- "@smithy/node-config-provider": "^4.1.3",
45
- "@smithy/node-http-handler": "^4.1.0",
46
- "@smithy/protocol-http": "^5.1.2",
47
- "@smithy/smithy-client": "^4.4.9",
48
- "@smithy/types": "^4.3.1",
49
- "@smithy/url-parser": "^4.0.4",
23
+ "@aws-sdk/core": "3.862.0",
24
+ "@aws-sdk/credential-provider-node": "3.862.0",
25
+ "@aws-sdk/middleware-host-header": "3.862.0",
26
+ "@aws-sdk/middleware-logger": "3.862.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.862.0",
28
+ "@aws-sdk/middleware-user-agent": "3.862.0",
29
+ "@aws-sdk/region-config-resolver": "3.862.0",
30
+ "@aws-sdk/types": "3.862.0",
31
+ "@aws-sdk/util-endpoints": "3.862.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.862.0",
33
+ "@aws-sdk/util-user-agent-node": "3.862.0",
34
+ "@smithy/config-resolver": "^4.1.5",
35
+ "@smithy/core": "^3.8.0",
36
+ "@smithy/fetch-http-handler": "^5.1.1",
37
+ "@smithy/hash-node": "^4.0.5",
38
+ "@smithy/invalid-dependency": "^4.0.5",
39
+ "@smithy/middleware-content-length": "^4.0.5",
40
+ "@smithy/middleware-endpoint": "^4.1.18",
41
+ "@smithy/middleware-retry": "^4.1.19",
42
+ "@smithy/middleware-serde": "^4.0.9",
43
+ "@smithy/middleware-stack": "^4.0.5",
44
+ "@smithy/node-config-provider": "^4.1.4",
45
+ "@smithy/node-http-handler": "^4.1.1",
46
+ "@smithy/protocol-http": "^5.1.3",
47
+ "@smithy/smithy-client": "^4.4.10",
48
+ "@smithy/types": "^4.3.2",
49
+ "@smithy/url-parser": "^4.0.5",
50
50
  "@smithy/util-base64": "^4.0.0",
51
51
  "@smithy/util-body-length-browser": "^4.0.0",
52
52
  "@smithy/util-body-length-node": "^4.0.0",
53
- "@smithy/util-defaults-mode-browser": "^4.0.25",
54
- "@smithy/util-defaults-mode-node": "^4.0.25",
55
- "@smithy/util-endpoints": "^3.0.6",
56
- "@smithy/util-middleware": "^4.0.4",
57
- "@smithy/util-retry": "^4.0.6",
53
+ "@smithy/util-defaults-mode-browser": "^4.0.26",
54
+ "@smithy/util-defaults-mode-node": "^4.0.26",
55
+ "@smithy/util-endpoints": "^3.0.7",
56
+ "@smithy/util-middleware": "^4.0.5",
57
+ "@smithy/util-retry": "^4.0.7",
58
58
  "@smithy/util-utf8": "^4.0.0",
59
59
  "@types/uuid": "^9.0.1",
60
60
  "tslib": "^2.6.2",