@aws-sdk/client-opensearchserverless 3.301.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.
Files changed (32) hide show
  1. package/dist-cjs/endpoint/ruleset.js +3 -3
  2. package/dist-cjs/models/models_0.js +57 -33
  3. package/dist-cjs/protocols/Aws_json1_0.js +56 -0
  4. package/dist-es/endpoint/ruleset.js +3 -3
  5. package/dist-es/models/models_0.js +54 -32
  6. package/dist-es/protocols/Aws_json1_0.js +57 -1
  7. package/dist-types/OpenSearchServerless.d.ts +5 -5
  8. package/dist-types/OpenSearchServerlessClient.d.ts +2 -2
  9. package/dist-types/commands/CreateAccessPolicyCommand.d.ts +5 -2
  10. package/dist-types/commands/CreateCollectionCommand.d.ts +8 -2
  11. package/dist-types/commands/CreateSecurityConfigCommand.d.ts +5 -2
  12. package/dist-types/commands/CreateSecurityPolicyCommand.d.ts +5 -2
  13. package/dist-types/commands/CreateVpcEndpointCommand.d.ts +5 -2
  14. package/dist-types/commands/DeleteAccessPolicyCommand.d.ts +2 -2
  15. package/dist-types/commands/DeleteCollectionCommand.d.ts +2 -2
  16. package/dist-types/commands/DeleteSecurityConfigCommand.d.ts +2 -2
  17. package/dist-types/commands/DeleteSecurityPolicyCommand.d.ts +2 -2
  18. package/dist-types/commands/DeleteVpcEndpointCommand.d.ts +2 -2
  19. package/dist-types/commands/ListCollectionsCommand.d.ts +2 -2
  20. package/dist-types/commands/TagResourceCommand.d.ts +5 -2
  21. package/dist-types/commands/UntagResourceCommand.d.ts +2 -2
  22. package/dist-types/commands/UpdateAccessPolicyCommand.d.ts +2 -2
  23. package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +1 -1
  24. package/dist-types/commands/UpdateCollectionCommand.d.ts +2 -2
  25. package/dist-types/commands/UpdateSecurityConfigCommand.d.ts +2 -2
  26. package/dist-types/commands/UpdateSecurityPolicyCommand.d.ts +5 -2
  27. package/dist-types/commands/UpdateVpcEndpointCommand.d.ts +2 -2
  28. package/dist-types/endpoint/EndpointParameters.d.ts +1 -1
  29. package/dist-types/models/models_0.d.ts +109 -36
  30. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +1 -1
  31. package/dist-types/ts3.4/models/models_0.d.ts +56 -26
  32. package/package.json +34 -34
@@ -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";
@@ -35,6 +37,17 @@ export declare class InternalServerException extends __BaseException {
35
37
  opts: __ExceptionOptionType<InternalServerException, __BaseException>
36
38
  );
37
39
  }
40
+ export declare class ServiceQuotaExceededException extends __BaseException {
41
+ readonly name: "ServiceQuotaExceededException";
42
+ readonly $fault: "client";
43
+ resourceId?: string;
44
+ resourceType?: string;
45
+ serviceCode: string | undefined;
46
+ quotaCode?: string;
47
+ constructor(
48
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
49
+ );
50
+ }
38
51
  export declare class ValidationException extends __BaseException {
39
52
  readonly name: "ValidationException";
40
53
  readonly $fault: "client";
@@ -105,16 +118,20 @@ export interface BatchGetCollectionRequest {
105
118
  ids?: string[];
106
119
  names?: string[];
107
120
  }
108
- export declare enum CollectionStatus {
109
- ACTIVE = "ACTIVE",
110
- CREATING = "CREATING",
111
- DELETING = "DELETING",
112
- FAILED = "FAILED",
113
- }
114
- export declare enum CollectionType {
115
- SEARCH = "SEARCH",
116
- TIMESERIES = "TIMESERIES",
117
- }
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];
118
135
  export interface CollectionDetail {
119
136
  id?: string;
120
137
  name?: string;
@@ -141,12 +158,14 @@ export interface BatchGetCollectionResponse {
141
158
  export interface BatchGetVpcEndpointRequest {
142
159
  ids: string[] | undefined;
143
160
  }
144
- export declare enum VpcEndpointStatus {
145
- ACTIVE = "ACTIVE",
146
- DELETING = "DELETING",
147
- FAILED = "FAILED",
148
- PENDING = "PENDING",
149
- }
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];
150
169
  export interface VpcEndpointDetail {
151
170
  id?: string;
152
171
  name?: string;
@@ -190,6 +209,13 @@ export interface CreateCollectionDetail {
190
209
  export interface CreateCollectionResponse {
191
210
  createCollectionDetail?: CreateCollectionDetail;
192
211
  }
212
+ export declare class OcuLimitExceededException extends __BaseException {
213
+ readonly name: "OcuLimitExceededException";
214
+ readonly $fault: "client";
215
+ constructor(
216
+ opts: __ExceptionOptionType<OcuLimitExceededException, __BaseException>
217
+ );
218
+ }
193
219
  export interface DeleteCollectionRequest {
194
220
  id: string | undefined;
195
221
  clientToken?: string;
@@ -245,9 +271,11 @@ export interface SamlConfigOptions {
245
271
  groupAttribute?: string;
246
272
  sessionTimeout?: number;
247
273
  }
248
- export declare enum SecurityConfigType {
249
- saml = "saml",
250
- }
274
+ export declare const SecurityConfigType: {
275
+ readonly saml: "saml";
276
+ };
277
+ export type SecurityConfigType =
278
+ (typeof SecurityConfigType)[keyof typeof SecurityConfigType];
251
279
  export interface CreateSecurityConfigRequest {
252
280
  type: SecurityConfigType | string | undefined;
253
281
  name: string | undefined;
@@ -267,10 +295,12 @@ export interface SecurityConfigDetail {
267
295
  export interface CreateSecurityConfigResponse {
268
296
  securityConfigDetail?: SecurityConfigDetail;
269
297
  }
270
- export declare enum SecurityPolicyType {
271
- encryption = "encryption",
272
- network = "network",
273
- }
298
+ export declare const SecurityPolicyType: {
299
+ readonly encryption: "encryption";
300
+ readonly network: "network";
301
+ };
302
+ export type SecurityPolicyType =
303
+ (typeof SecurityPolicyType)[keyof typeof SecurityPolicyType];
274
304
  export interface CreateSecurityPolicyRequest {
275
305
  type: SecurityPolicyType | string | undefined;
276
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.301.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",