@aws-sdk/client-opensearchserverless 3.302.0 → 3.303.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.
@@ -2,10 +2,9 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SecurityPolicyType = exports.SecurityConfigType = exports.OcuLimitExceededException = exports.VpcEndpointStatus = exports.CollectionType = exports.CollectionStatus = exports.ResourceNotFoundException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.AccessPolicyType = void 0;
4
4
  const OpenSearchServerlessServiceException_1 = require("./OpenSearchServerlessServiceException");
5
- var AccessPolicyType;
6
- (function (AccessPolicyType) {
7
- AccessPolicyType["data"] = "data";
8
- })(AccessPolicyType = exports.AccessPolicyType || (exports.AccessPolicyType = {}));
5
+ exports.AccessPolicyType = {
6
+ data: "data",
7
+ };
9
8
  class ConflictException extends OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException {
10
9
  constructor(opts) {
11
10
  super({
@@ -75,25 +74,22 @@ class ResourceNotFoundException extends OpenSearchServerlessServiceException_1.O
75
74
  }
76
75
  }
77
76
  exports.ResourceNotFoundException = ResourceNotFoundException;
78
- var CollectionStatus;
79
- (function (CollectionStatus) {
80
- CollectionStatus["ACTIVE"] = "ACTIVE";
81
- CollectionStatus["CREATING"] = "CREATING";
82
- CollectionStatus["DELETING"] = "DELETING";
83
- CollectionStatus["FAILED"] = "FAILED";
84
- })(CollectionStatus = exports.CollectionStatus || (exports.CollectionStatus = {}));
85
- var CollectionType;
86
- (function (CollectionType) {
87
- CollectionType["SEARCH"] = "SEARCH";
88
- CollectionType["TIMESERIES"] = "TIMESERIES";
89
- })(CollectionType = exports.CollectionType || (exports.CollectionType = {}));
90
- var VpcEndpointStatus;
91
- (function (VpcEndpointStatus) {
92
- VpcEndpointStatus["ACTIVE"] = "ACTIVE";
93
- VpcEndpointStatus["DELETING"] = "DELETING";
94
- VpcEndpointStatus["FAILED"] = "FAILED";
95
- VpcEndpointStatus["PENDING"] = "PENDING";
96
- })(VpcEndpointStatus = exports.VpcEndpointStatus || (exports.VpcEndpointStatus = {}));
77
+ exports.CollectionStatus = {
78
+ ACTIVE: "ACTIVE",
79
+ CREATING: "CREATING",
80
+ DELETING: "DELETING",
81
+ FAILED: "FAILED",
82
+ };
83
+ exports.CollectionType = {
84
+ SEARCH: "SEARCH",
85
+ TIMESERIES: "TIMESERIES",
86
+ };
87
+ exports.VpcEndpointStatus = {
88
+ ACTIVE: "ACTIVE",
89
+ DELETING: "DELETING",
90
+ FAILED: "FAILED",
91
+ PENDING: "PENDING",
92
+ };
97
93
  class OcuLimitExceededException extends OpenSearchServerlessServiceException_1.OpenSearchServerlessServiceException {
98
94
  constructor(opts) {
99
95
  super({
@@ -107,12 +103,10 @@ class OcuLimitExceededException extends OpenSearchServerlessServiceException_1.O
107
103
  }
108
104
  }
109
105
  exports.OcuLimitExceededException = OcuLimitExceededException;
110
- var SecurityConfigType;
111
- (function (SecurityConfigType) {
112
- SecurityConfigType["saml"] = "saml";
113
- })(SecurityConfigType = exports.SecurityConfigType || (exports.SecurityConfigType = {}));
114
- var SecurityPolicyType;
115
- (function (SecurityPolicyType) {
116
- SecurityPolicyType["encryption"] = "encryption";
117
- SecurityPolicyType["network"] = "network";
118
- })(SecurityPolicyType = exports.SecurityPolicyType || (exports.SecurityPolicyType = {}));
106
+ exports.SecurityConfigType = {
107
+ saml: "saml",
108
+ };
109
+ exports.SecurityPolicyType = {
110
+ encryption: "encryption",
111
+ network: "network",
112
+ };
@@ -1,8 +1,7 @@
1
1
  import { OpenSearchServerlessServiceException as __BaseException } from "./OpenSearchServerlessServiceException";
2
- export var AccessPolicyType;
3
- (function (AccessPolicyType) {
4
- AccessPolicyType["data"] = "data";
5
- })(AccessPolicyType || (AccessPolicyType = {}));
2
+ export const AccessPolicyType = {
3
+ data: "data",
4
+ };
6
5
  export class ConflictException extends __BaseException {
7
6
  constructor(opts) {
8
7
  super({
@@ -67,25 +66,22 @@ export class ResourceNotFoundException extends __BaseException {
67
66
  Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
68
67
  }
69
68
  }
70
- export var CollectionStatus;
71
- (function (CollectionStatus) {
72
- CollectionStatus["ACTIVE"] = "ACTIVE";
73
- CollectionStatus["CREATING"] = "CREATING";
74
- CollectionStatus["DELETING"] = "DELETING";
75
- CollectionStatus["FAILED"] = "FAILED";
76
- })(CollectionStatus || (CollectionStatus = {}));
77
- export var CollectionType;
78
- (function (CollectionType) {
79
- CollectionType["SEARCH"] = "SEARCH";
80
- CollectionType["TIMESERIES"] = "TIMESERIES";
81
- })(CollectionType || (CollectionType = {}));
82
- export var VpcEndpointStatus;
83
- (function (VpcEndpointStatus) {
84
- VpcEndpointStatus["ACTIVE"] = "ACTIVE";
85
- VpcEndpointStatus["DELETING"] = "DELETING";
86
- VpcEndpointStatus["FAILED"] = "FAILED";
87
- VpcEndpointStatus["PENDING"] = "PENDING";
88
- })(VpcEndpointStatus || (VpcEndpointStatus = {}));
69
+ export const CollectionStatus = {
70
+ ACTIVE: "ACTIVE",
71
+ CREATING: "CREATING",
72
+ DELETING: "DELETING",
73
+ FAILED: "FAILED",
74
+ };
75
+ export const CollectionType = {
76
+ SEARCH: "SEARCH",
77
+ TIMESERIES: "TIMESERIES",
78
+ };
79
+ export const VpcEndpointStatus = {
80
+ ACTIVE: "ACTIVE",
81
+ DELETING: "DELETING",
82
+ FAILED: "FAILED",
83
+ PENDING: "PENDING",
84
+ };
89
85
  export class OcuLimitExceededException extends __BaseException {
90
86
  constructor(opts) {
91
87
  super({
@@ -98,12 +94,10 @@ export class OcuLimitExceededException extends __BaseException {
98
94
  Object.setPrototypeOf(this, OcuLimitExceededException.prototype);
99
95
  }
100
96
  }
101
- export var SecurityConfigType;
102
- (function (SecurityConfigType) {
103
- SecurityConfigType["saml"] = "saml";
104
- })(SecurityConfigType || (SecurityConfigType = {}));
105
- export var SecurityPolicyType;
106
- (function (SecurityPolicyType) {
107
- SecurityPolicyType["encryption"] = "encryption";
108
- SecurityPolicyType["network"] = "network";
109
- })(SecurityPolicyType || (SecurityPolicyType = {}));
97
+ export const SecurityConfigType = {
98
+ saml: "saml",
99
+ };
100
+ export const SecurityPolicyType = {
101
+ encryption: "encryption",
102
+ network: "network",
103
+ };
@@ -3,13 +3,18 @@ import { DocumentType as __DocumentType } from "@aws-sdk/types";
3
3
  import { OpenSearchServerlessServiceException as __BaseException } from "./OpenSearchServerlessServiceException";
4
4
  /**
5
5
  * @public
6
+ * @enum
6
7
  */
7
- export declare enum AccessPolicyType {
8
+ export declare const AccessPolicyType: {
8
9
  /**
9
10
  * data policy type
10
11
  */
11
- data = "data"
12
- }
12
+ readonly data: "data";
13
+ };
14
+ /**
15
+ * @public
16
+ */
17
+ export type AccessPolicyType = (typeof AccessPolicyType)[keyof typeof AccessPolicyType];
13
18
  /**
14
19
  * @public
15
20
  * <p>When creating a resource, thrown when a resource with the same name already exists
@@ -367,38 +372,48 @@ export interface BatchGetCollectionRequest {
367
372
  }
368
373
  /**
369
374
  * @public
375
+ * @enum
370
376
  */
371
- export declare enum CollectionStatus {
377
+ export declare const CollectionStatus: {
372
378
  /**
373
379
  * Collection resource is ready to use
374
380
  */
375
- ACTIVE = "ACTIVE",
381
+ readonly ACTIVE: "ACTIVE";
376
382
  /**
377
383
  * Creating collection resource
378
384
  */
379
- CREATING = "CREATING",
385
+ readonly CREATING: "CREATING";
380
386
  /**
381
387
  * Deleting collection resource
382
388
  */
383
- DELETING = "DELETING",
389
+ readonly DELETING: "DELETING";
384
390
  /**
385
391
  * Collection resource create or delete failed
386
392
  */
387
- FAILED = "FAILED"
388
- }
393
+ readonly FAILED: "FAILED";
394
+ };
395
+ /**
396
+ * @public
397
+ */
398
+ export type CollectionStatus = (typeof CollectionStatus)[keyof typeof CollectionStatus];
389
399
  /**
390
400
  * @public
401
+ * @enum
391
402
  */
392
- export declare enum CollectionType {
403
+ export declare const CollectionType: {
393
404
  /**
394
405
  * Search collection type
395
406
  */
396
- SEARCH = "SEARCH",
407
+ readonly SEARCH: "SEARCH";
397
408
  /**
398
409
  * Timeseries collection type
399
410
  */
400
- TIMESERIES = "TIMESERIES"
401
- }
411
+ readonly TIMESERIES: "TIMESERIES";
412
+ };
413
+ /**
414
+ * @public
415
+ */
416
+ export type CollectionType = (typeof CollectionType)[keyof typeof CollectionType];
402
417
  /**
403
418
  * @public
404
419
  * <p>Details about each OpenSearch Serverless collection, including the collection endpoint and the
@@ -501,25 +516,30 @@ export interface BatchGetVpcEndpointRequest {
501
516
  }
502
517
  /**
503
518
  * @public
519
+ * @enum
504
520
  */
505
- export declare enum VpcEndpointStatus {
521
+ export declare const VpcEndpointStatus: {
506
522
  /**
507
523
  * VPCEndpoint resource is ready to use
508
524
  */
509
- ACTIVE = "ACTIVE",
525
+ readonly ACTIVE: "ACTIVE";
510
526
  /**
511
527
  * Deleting VPCEndpoint resource
512
528
  */
513
- DELETING = "DELETING",
529
+ readonly DELETING: "DELETING";
514
530
  /**
515
531
  * VPCEndpoint resource create or delete failed
516
532
  */
517
- FAILED = "FAILED",
533
+ readonly FAILED: "FAILED";
518
534
  /**
519
535
  * Pending VPCEndpoint resource
520
536
  */
521
- PENDING = "PENDING"
522
- }
537
+ readonly PENDING: "PENDING";
538
+ };
539
+ /**
540
+ * @public
541
+ */
542
+ export type VpcEndpointStatus = (typeof VpcEndpointStatus)[keyof typeof VpcEndpointStatus];
523
543
  /**
524
544
  * @public
525
545
  * <p>Details about an OpenSearch Serverless-managed interface endpoint.</p>
@@ -890,13 +910,18 @@ export interface SamlConfigOptions {
890
910
  }
891
911
  /**
892
912
  * @public
913
+ * @enum
893
914
  */
894
- export declare enum SecurityConfigType {
915
+ export declare const SecurityConfigType: {
895
916
  /**
896
917
  * saml provider
897
918
  */
898
- saml = "saml"
899
- }
919
+ readonly saml: "saml";
920
+ };
921
+ /**
922
+ * @public
923
+ */
924
+ export type SecurityConfigType = (typeof SecurityConfigType)[keyof typeof SecurityConfigType];
900
925
  /**
901
926
  * @public
902
927
  */
@@ -968,17 +993,22 @@ export interface CreateSecurityConfigResponse {
968
993
  }
969
994
  /**
970
995
  * @public
996
+ * @enum
971
997
  */
972
- export declare enum SecurityPolicyType {
998
+ export declare const SecurityPolicyType: {
973
999
  /**
974
1000
  * encryption policy type
975
1001
  */
976
- encryption = "encryption",
1002
+ readonly encryption: "encryption";
977
1003
  /**
978
1004
  * network policy type
979
1005
  */
980
- network = "network"
981
- }
1006
+ readonly network: "network";
1007
+ };
1008
+ /**
1009
+ * @public
1010
+ */
1011
+ export type SecurityPolicyType = (typeof SecurityPolicyType)[keyof typeof SecurityPolicyType];
982
1012
  /**
983
1013
  * @public
984
1014
  */
@@ -1,9 +1,11 @@
1
1
  import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { DocumentType as __DocumentType } from "@aws-sdk/types";
3
3
  import { OpenSearchServerlessServiceException as __BaseException } from "./OpenSearchServerlessServiceException";
4
- export declare enum AccessPolicyType {
5
- data = "data",
6
- }
4
+ export declare const AccessPolicyType: {
5
+ readonly data: "data";
6
+ };
7
+ export type AccessPolicyType =
8
+ (typeof AccessPolicyType)[keyof typeof AccessPolicyType];
7
9
  export declare class ConflictException extends __BaseException {
8
10
  readonly name: "ConflictException";
9
11
  readonly $fault: "client";
@@ -116,16 +118,20 @@ export interface BatchGetCollectionRequest {
116
118
  ids?: string[];
117
119
  names?: string[];
118
120
  }
119
- export declare enum CollectionStatus {
120
- ACTIVE = "ACTIVE",
121
- CREATING = "CREATING",
122
- DELETING = "DELETING",
123
- FAILED = "FAILED",
124
- }
125
- export declare enum CollectionType {
126
- SEARCH = "SEARCH",
127
- TIMESERIES = "TIMESERIES",
128
- }
121
+ export declare const CollectionStatus: {
122
+ readonly ACTIVE: "ACTIVE";
123
+ readonly CREATING: "CREATING";
124
+ readonly DELETING: "DELETING";
125
+ readonly FAILED: "FAILED";
126
+ };
127
+ export type CollectionStatus =
128
+ (typeof CollectionStatus)[keyof typeof CollectionStatus];
129
+ export declare const CollectionType: {
130
+ readonly SEARCH: "SEARCH";
131
+ readonly TIMESERIES: "TIMESERIES";
132
+ };
133
+ export type CollectionType =
134
+ (typeof CollectionType)[keyof typeof CollectionType];
129
135
  export interface CollectionDetail {
130
136
  id?: string;
131
137
  name?: string;
@@ -152,12 +158,14 @@ export interface BatchGetCollectionResponse {
152
158
  export interface BatchGetVpcEndpointRequest {
153
159
  ids: string[] | undefined;
154
160
  }
155
- export declare enum VpcEndpointStatus {
156
- ACTIVE = "ACTIVE",
157
- DELETING = "DELETING",
158
- FAILED = "FAILED",
159
- PENDING = "PENDING",
160
- }
161
+ export declare const VpcEndpointStatus: {
162
+ readonly ACTIVE: "ACTIVE";
163
+ readonly DELETING: "DELETING";
164
+ readonly FAILED: "FAILED";
165
+ readonly PENDING: "PENDING";
166
+ };
167
+ export type VpcEndpointStatus =
168
+ (typeof VpcEndpointStatus)[keyof typeof VpcEndpointStatus];
161
169
  export interface VpcEndpointDetail {
162
170
  id?: string;
163
171
  name?: string;
@@ -263,9 +271,11 @@ export interface SamlConfigOptions {
263
271
  groupAttribute?: string;
264
272
  sessionTimeout?: number;
265
273
  }
266
- export declare enum SecurityConfigType {
267
- saml = "saml",
268
- }
274
+ export declare const SecurityConfigType: {
275
+ readonly saml: "saml";
276
+ };
277
+ export type SecurityConfigType =
278
+ (typeof SecurityConfigType)[keyof typeof SecurityConfigType];
269
279
  export interface CreateSecurityConfigRequest {
270
280
  type: SecurityConfigType | string | undefined;
271
281
  name: string | undefined;
@@ -285,10 +295,12 @@ export interface SecurityConfigDetail {
285
295
  export interface CreateSecurityConfigResponse {
286
296
  securityConfigDetail?: SecurityConfigDetail;
287
297
  }
288
- export declare enum SecurityPolicyType {
289
- encryption = "encryption",
290
- network = "network",
291
- }
298
+ export declare const SecurityPolicyType: {
299
+ readonly encryption: "encryption";
300
+ readonly network: "network";
301
+ };
302
+ export type SecurityPolicyType =
303
+ (typeof SecurityPolicyType)[keyof typeof SecurityPolicyType];
292
304
  export interface CreateSecurityPolicyRequest {
293
305
  type: SecurityPolicyType | string | undefined;
294
306
  name: string | undefined;
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.302.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.301.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.301.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "@types/uuid": "^8.3.0",