@aws-sdk/client-cloudsearch 3.986.0 → 3.988.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultCloudSearchHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2013-01-01",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsQueryProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.cloudsearch",
30
+ errorTypeRegistries,
29
31
  xmlNamespace: "http://cloudsearch.amazonaws.com/doc/2013-01-01/",
30
32
  version: "2013-01-01",
31
33
  serviceTarget: "A9SearchCloudConfigService2013",
@@ -187,12 +187,68 @@ const _aQE = "awsQueryError";
187
187
  const _c = "client";
188
188
  const _e = "error";
189
189
  const _hE = "httpError";
190
- const _s = "server";
191
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.cloudsearch";
190
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.cloudsearch";
191
+ const _se = "server";
192
192
  const n0 = "com.amazonaws.cloudsearch";
193
193
  import { TypeRegistry } from "@smithy/core/schema";
194
194
  import { CloudSearchServiceException } from "../models/CloudSearchServiceException";
195
195
  import { BaseException, DisabledOperationException, InternalException, InvalidTypeException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/errors";
196
+ const _s_registry = TypeRegistry.for(_s);
197
+ export var CloudSearchServiceException$ = [-3, _s, "CloudSearchServiceException", 0, [], []];
198
+ _s_registry.registerError(CloudSearchServiceException$, CloudSearchServiceException);
199
+ const n0_registry = TypeRegistry.for(n0);
200
+ export var BaseException$ = [-3, n0, _BE,
201
+ { [_e]: _c },
202
+ [_C, _M],
203
+ [0, 0]
204
+ ];
205
+ n0_registry.registerError(BaseException$, BaseException);
206
+ export var DisabledOperationException$ = [-3, n0, _DOE,
207
+ { [_aQE]: [`DisabledAction`, 409], [_e]: _c, [_hE]: 409 },
208
+ [_C, _M],
209
+ [0, 0]
210
+ ];
211
+ n0_registry.registerError(DisabledOperationException$, DisabledOperationException);
212
+ export var InternalException$ = [-3, n0, _IE,
213
+ { [_aQE]: [`InternalException`, 500], [_e]: _se, [_hE]: 500 },
214
+ [_C, _M],
215
+ [0, 0]
216
+ ];
217
+ n0_registry.registerError(InternalException$, InternalException);
218
+ export var InvalidTypeException$ = [-3, n0, _ITE,
219
+ { [_aQE]: [`InvalidType`, 409], [_e]: _c, [_hE]: 409 },
220
+ [_C, _M],
221
+ [0, 0]
222
+ ];
223
+ n0_registry.registerError(InvalidTypeException$, InvalidTypeException);
224
+ export var LimitExceededException$ = [-3, n0, _LEE,
225
+ { [_aQE]: [`LimitExceeded`, 409], [_e]: _c, [_hE]: 409 },
226
+ [_C, _M],
227
+ [0, 0]
228
+ ];
229
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
230
+ export var ResourceAlreadyExistsException$ = [-3, n0, _RAEE,
231
+ { [_aQE]: [`ResourceAlreadyExists`, 409], [_e]: _c, [_hE]: 409 },
232
+ [_C, _M],
233
+ [0, 0]
234
+ ];
235
+ n0_registry.registerError(ResourceAlreadyExistsException$, ResourceAlreadyExistsException);
236
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
237
+ { [_aQE]: [`ResourceNotFound`, 409], [_e]: _c, [_hE]: 409 },
238
+ [_C, _M],
239
+ [0, 0]
240
+ ];
241
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
242
+ export var ValidationException$ = [-3, n0, _VE,
243
+ { [_e]: _c, [_hE]: 400 },
244
+ [_C, _M],
245
+ [0, 0]
246
+ ];
247
+ n0_registry.registerError(ValidationException$, ValidationException);
248
+ export const errorTypeRegistries = [
249
+ _s_registry,
250
+ n0_registry,
251
+ ];
196
252
  export var AccessPoliciesStatus$ = [3, n0, _APS,
197
253
  0,
198
254
  [_O, _S],
@@ -218,12 +274,6 @@ export var AvailabilityOptionsStatus$ = [3, n0, _AOS,
218
274
  [_O, _S],
219
275
  [2, () => OptionStatus$], 2
220
276
  ];
221
- export var BaseException$ = [-3, n0, _BE,
222
- { [_e]: _c },
223
- [_C, _M],
224
- [0, 0]
225
- ];
226
- TypeRegistry.for(n0).registerError(BaseException$, BaseException);
227
277
  export var BuildSuggestersRequest$ = [3, n0, _BSR,
228
278
  0,
229
279
  [_DN],
@@ -434,12 +484,6 @@ export var DescribeSuggestersResponse$ = [3, n0, _DSResc,
434
484
  [_Sug],
435
485
  [() => SuggesterStatusList], 1
436
486
  ];
437
- export var DisabledOperationException$ = [-3, n0, _DOE,
438
- { [_aQE]: [`DisabledAction`, 409], [_e]: _c, [_hE]: 409 },
439
- [_C, _M],
440
- [0, 0]
441
- ];
442
- TypeRegistry.for(n0).registerError(DisabledOperationException$, DisabledOperationException);
443
487
  export var DocumentSuggesterOptions$ = [3, n0, _DSO,
444
488
  0,
445
489
  [_SFo, _FM, _SEor],
@@ -505,34 +549,16 @@ export var IntArrayOptions$ = [3, n0, _IAO,
505
549
  [_DV, _SF, _FE, _SE, _RE],
506
550
  [1, 0, 2, 2, 2]
507
551
  ];
508
- export var InternalException$ = [-3, n0, _IE,
509
- { [_aQE]: [`InternalException`, 500], [_e]: _s, [_hE]: 500 },
510
- [_C, _M],
511
- [0, 0]
512
- ];
513
- TypeRegistry.for(n0).registerError(InternalException$, InternalException);
514
552
  export var IntOptions$ = [3, n0, _IO,
515
553
  0,
516
554
  [_DV, _SFo, _FE, _SE, _RE, _SEo],
517
555
  [1, 0, 2, 2, 2, 2]
518
556
  ];
519
- export var InvalidTypeException$ = [-3, n0, _ITE,
520
- { [_aQE]: [`InvalidType`, 409], [_e]: _c, [_hE]: 409 },
521
- [_C, _M],
522
- [0, 0]
523
- ];
524
- TypeRegistry.for(n0).registerError(InvalidTypeException$, InvalidTypeException);
525
557
  export var LatLonOptions$ = [3, n0, _LLO,
526
558
  0,
527
559
  [_DV, _SFo, _FE, _SE, _RE, _SEo],
528
560
  [0, 0, 2, 2, 2, 2]
529
561
  ];
530
- export var LimitExceededException$ = [-3, n0, _LEE,
531
- { [_aQE]: [`LimitExceeded`, 409], [_e]: _c, [_hE]: 409 },
532
- [_C, _M],
533
- [0, 0]
534
- ];
535
- TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
536
562
  export var Limits$ = [3, n0, _L,
537
563
  0,
538
564
  [_MRC, _MPC],
@@ -558,18 +584,6 @@ export var OptionStatus$ = [3, n0, _OS,
558
584
  [_CD, _UD, _Sta, _UV, _PD],
559
585
  [4, 4, 0, 1, 2], 3
560
586
  ];
561
- export var ResourceAlreadyExistsException$ = [-3, n0, _RAEE,
562
- { [_aQE]: [`ResourceAlreadyExists`, 409], [_e]: _c, [_hE]: 409 },
563
- [_C, _M],
564
- [0, 0]
565
- ];
566
- TypeRegistry.for(n0).registerError(ResourceAlreadyExistsException$, ResourceAlreadyExistsException);
567
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
568
- { [_aQE]: [`ResourceNotFound`, 409], [_e]: _c, [_hE]: 409 },
569
- [_C, _M],
570
- [0, 0]
571
- ];
572
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
573
587
  export var ScalingParameters$ = [3, n0, _SP,
574
588
  0,
575
589
  [_DIT, _DRC, _DPC],
@@ -645,15 +659,7 @@ export var UpdateServiceAccessPoliciesResponse$ = [3, n0, _USAPRp,
645
659
  [_AP],
646
660
  [() => AccessPoliciesStatus$], 1
647
661
  ];
648
- export var ValidationException$ = [-3, n0, _VE,
649
- { [_e]: _c, [_hE]: 400 },
650
- [_C, _M],
651
- [0, 0]
652
- ];
653
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
654
662
  var __Unit = "unit";
655
- export var CloudSearchServiceException$ = [-3, _sm, "CloudSearchServiceException", 0, [], []];
656
- TypeRegistry.for(_sm).registerError(CloudSearchServiceException$, CloudSearchServiceException);
657
663
  var AnalysisSchemeStatusList = [1, n0, _ASSL,
658
664
  0, () => AnalysisSchemeStatus$
659
665
  ];
@@ -1,10 +1,25 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var CloudSearchServiceException$: StaticErrorSchema;
4
+ export declare var BaseException$: StaticErrorSchema;
5
+ export declare var DisabledOperationException$: StaticErrorSchema;
6
+ export declare var InternalException$: StaticErrorSchema;
7
+ export declare var InvalidTypeException$: StaticErrorSchema;
8
+ export declare var LimitExceededException$: StaticErrorSchema;
9
+ export declare var ResourceAlreadyExistsException$: StaticErrorSchema;
10
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
11
+ export declare var ValidationException$: StaticErrorSchema;
12
+ /**
13
+ * TypeRegistry instances containing modeled errors.
14
+ * @internal
15
+ *
16
+ */
17
+ export declare const errorTypeRegistries: TypeRegistry[];
2
18
  export declare var AccessPoliciesStatus$: StaticStructureSchema;
3
19
  export declare var AnalysisOptions$: StaticStructureSchema;
4
20
  export declare var AnalysisScheme$: StaticStructureSchema;
5
21
  export declare var AnalysisSchemeStatus$: StaticStructureSchema;
6
22
  export declare var AvailabilityOptionsStatus$: StaticStructureSchema;
7
- export declare var BaseException$: StaticErrorSchema;
8
23
  export declare var BuildSuggestersRequest$: StaticStructureSchema;
9
24
  export declare var BuildSuggestersResponse$: StaticStructureSchema;
10
25
  export declare var CreateDomainRequest$: StaticStructureSchema;
@@ -47,7 +62,6 @@ export declare var DescribeServiceAccessPoliciesRequest$: StaticStructureSchema;
47
62
  export declare var DescribeServiceAccessPoliciesResponse$: StaticStructureSchema;
48
63
  export declare var DescribeSuggestersRequest$: StaticStructureSchema;
49
64
  export declare var DescribeSuggestersResponse$: StaticStructureSchema;
50
- export declare var DisabledOperationException$: StaticErrorSchema;
51
65
  export declare var DocumentSuggesterOptions$: StaticStructureSchema;
52
66
  export declare var DomainEndpointOptions$: StaticStructureSchema;
53
67
  export declare var DomainEndpointOptionsStatus$: StaticStructureSchema;
@@ -61,18 +75,13 @@ export declare var IndexDocumentsResponse$: StaticStructureSchema;
61
75
  export declare var IndexField$: StaticStructureSchema;
62
76
  export declare var IndexFieldStatus$: StaticStructureSchema;
63
77
  export declare var IntArrayOptions$: StaticStructureSchema;
64
- export declare var InternalException$: StaticErrorSchema;
65
78
  export declare var IntOptions$: StaticStructureSchema;
66
- export declare var InvalidTypeException$: StaticErrorSchema;
67
79
  export declare var LatLonOptions$: StaticStructureSchema;
68
- export declare var LimitExceededException$: StaticErrorSchema;
69
80
  export declare var Limits$: StaticStructureSchema;
70
81
  export declare var ListDomainNamesResponse$: StaticStructureSchema;
71
82
  export declare var LiteralArrayOptions$: StaticStructureSchema;
72
83
  export declare var LiteralOptions$: StaticStructureSchema;
73
84
  export declare var OptionStatus$: StaticStructureSchema;
74
- export declare var ResourceAlreadyExistsException$: StaticErrorSchema;
75
- export declare var ResourceNotFoundException$: StaticErrorSchema;
76
85
  export declare var ScalingParameters$: StaticStructureSchema;
77
86
  export declare var ScalingParametersStatus$: StaticStructureSchema;
78
87
  export declare var ServiceEndpoint$: StaticStructureSchema;
@@ -88,8 +97,6 @@ export declare var UpdateScalingParametersRequest$: StaticStructureSchema;
88
97
  export declare var UpdateScalingParametersResponse$: StaticStructureSchema;
89
98
  export declare var UpdateServiceAccessPoliciesRequest$: StaticStructureSchema;
90
99
  export declare var UpdateServiceAccessPoliciesResponse$: StaticStructureSchema;
91
- export declare var ValidationException$: StaticErrorSchema;
92
- export declare var CloudSearchServiceException$: StaticErrorSchema;
93
100
  export declare var BuildSuggesters$: StaticOperationSchema;
94
101
  export declare var CreateDomain$: StaticOperationSchema;
95
102
  export declare var DefineAnalysisScheme$: StaticOperationSchema;
@@ -1,14 +1,24 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var CloudSearchServiceException$: StaticErrorSchema;
8
+ export declare var BaseException$: StaticErrorSchema;
9
+ export declare var DisabledOperationException$: StaticErrorSchema;
10
+ export declare var InternalException$: StaticErrorSchema;
11
+ export declare var InvalidTypeException$: StaticErrorSchema;
12
+ export declare var LimitExceededException$: StaticErrorSchema;
13
+ export declare var ResourceAlreadyExistsException$: StaticErrorSchema;
14
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
15
+ export declare var ValidationException$: StaticErrorSchema;
16
+ export declare const errorTypeRegistries: TypeRegistry[];
6
17
  export declare var AccessPoliciesStatus$: StaticStructureSchema;
7
18
  export declare var AnalysisOptions$: StaticStructureSchema;
8
19
  export declare var AnalysisScheme$: StaticStructureSchema;
9
20
  export declare var AnalysisSchemeStatus$: StaticStructureSchema;
10
21
  export declare var AvailabilityOptionsStatus$: StaticStructureSchema;
11
- export declare var BaseException$: StaticErrorSchema;
12
22
  export declare var BuildSuggestersRequest$: StaticStructureSchema;
13
23
  export declare var BuildSuggestersResponse$: StaticStructureSchema;
14
24
  export declare var CreateDomainRequest$: StaticStructureSchema;
@@ -51,7 +61,6 @@ export declare var DescribeServiceAccessPoliciesRequest$: StaticStructureSchema;
51
61
  export declare var DescribeServiceAccessPoliciesResponse$: StaticStructureSchema;
52
62
  export declare var DescribeSuggestersRequest$: StaticStructureSchema;
53
63
  export declare var DescribeSuggestersResponse$: StaticStructureSchema;
54
- export declare var DisabledOperationException$: StaticErrorSchema;
55
64
  export declare var DocumentSuggesterOptions$: StaticStructureSchema;
56
65
  export declare var DomainEndpointOptions$: StaticStructureSchema;
57
66
  export declare var DomainEndpointOptionsStatus$: StaticStructureSchema;
@@ -65,18 +74,13 @@ export declare var IndexDocumentsResponse$: StaticStructureSchema;
65
74
  export declare var IndexField$: StaticStructureSchema;
66
75
  export declare var IndexFieldStatus$: StaticStructureSchema;
67
76
  export declare var IntArrayOptions$: StaticStructureSchema;
68
- export declare var InternalException$: StaticErrorSchema;
69
77
  export declare var IntOptions$: StaticStructureSchema;
70
- export declare var InvalidTypeException$: StaticErrorSchema;
71
78
  export declare var LatLonOptions$: StaticStructureSchema;
72
- export declare var LimitExceededException$: StaticErrorSchema;
73
79
  export declare var Limits$: StaticStructureSchema;
74
80
  export declare var ListDomainNamesResponse$: StaticStructureSchema;
75
81
  export declare var LiteralArrayOptions$: StaticStructureSchema;
76
82
  export declare var LiteralOptions$: StaticStructureSchema;
77
83
  export declare var OptionStatus$: StaticStructureSchema;
78
- export declare var ResourceAlreadyExistsException$: StaticErrorSchema;
79
- export declare var ResourceNotFoundException$: StaticErrorSchema;
80
84
  export declare var ScalingParameters$: StaticStructureSchema;
81
85
  export declare var ScalingParametersStatus$: StaticStructureSchema;
82
86
  export declare var ServiceEndpoint$: StaticStructureSchema;
@@ -92,8 +96,6 @@ export declare var UpdateScalingParametersRequest$: StaticStructureSchema;
92
96
  export declare var UpdateScalingParametersResponse$: StaticStructureSchema;
93
97
  export declare var UpdateServiceAccessPoliciesRequest$: StaticStructureSchema;
94
98
  export declare var UpdateServiceAccessPoliciesResponse$: StaticStructureSchema;
95
- export declare var ValidationException$: StaticErrorSchema;
96
- export declare var CloudSearchServiceException$: StaticErrorSchema;
97
99
  export declare var BuildSuggesters$: StaticOperationSchema;
98
100
  export declare var CreateDomain$: StaticOperationSchema;
99
101
  export declare var DefineAnalysisScheme$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudsearch",
3
3
  "description": "AWS SDK for JavaScript Cloudsearch Client for Node.js, Browser and React Native",
4
- "version": "3.986.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloudsearch",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.986.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",