@aws-sdk/client-evs 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 { defaultEvsHttpAuthSchemeProvider } 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: "2023-07-27",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_0Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.evs",
30
+ errorTypeRegistries,
29
31
  version: "2023-07-27",
30
32
  serviceTarget: "AmazonElasticVMwareService",
31
33
  },
@@ -81,17 +81,17 @@ const _VVL = "VcfVersionList";
81
81
  const _aI = "allocationId";
82
82
  const _aIs = "associationId";
83
83
  const _aZ = "availabilityZone";
84
- const _c = "checks";
84
+ const _c = "client";
85
85
  const _cA = "createdAt";
86
86
  const _cB = "cloudBuilder";
87
87
  const _cI = "connectivityInfo";
88
88
  const _cT = "clientToken";
89
+ const _ch = "checks";
89
90
  const _ci = "cidr";
90
- const _cl = "client";
91
91
  const _cr = "credentials";
92
92
  const _dEV = "defaultEsxVersion";
93
93
  const _dHI = "dedicatedHostId";
94
- const _e = "environment";
94
+ const _e = "error";
95
95
  const _eA = "environmentArn";
96
96
  const _eAi = "eipAssociations";
97
97
  const _eH = "environmentHosts";
@@ -108,7 +108,7 @@ const _eVn = "environmentVlans";
108
108
  const _eVs = "esxVersions";
109
109
  const _eVx = "expansionVlan1";
110
110
  const _eVxp = "expansionVlan2";
111
- const _er = "error";
111
+ const _en = "environment";
112
112
  const _fL = "fieldList";
113
113
  const _fN = "functionName";
114
114
  const _h = "host";
@@ -148,13 +148,13 @@ const _nU = "nsxUplink";
148
148
  const _ns = "nsx";
149
149
  const _pGI = "placementGroupId";
150
150
  const _pRSP = "privateRouteServerPeerings";
151
- const _r = "result";
151
+ const _r = "reason";
152
152
  const _rA = "resourceArn";
153
153
  const _rAS = "retryAfterSeconds";
154
154
  const _rI = "resourceId";
155
155
  const _rT = "resourceType";
156
- const _re = "reason";
157
- const _s = "server";
156
+ const _re = "result";
157
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.evs";
158
158
  const _sA = "secretArn";
159
159
  const _sASG = "serviceAccessSecurityGroups";
160
160
  const _sASI = "serviceAccessSubnetId";
@@ -164,7 +164,7 @@ const _sI = "siteId";
164
164
  const _sIu = "subnetId";
165
165
  const _sK = "solutionKey";
166
166
  const _sM = "sddcManager";
167
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.evs";
167
+ const _se = "server";
168
168
  const _st = "state";
169
169
  const _sta = "status";
170
170
  const _t = "type";
@@ -190,6 +190,56 @@ const n0 = "com.amazonaws.evs";
190
190
  import { TypeRegistry } from "@smithy/core/schema";
191
191
  import { InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, TagPolicyException, ThrottlingException, TooManyTagsException, ValidationException, } from "../models/errors";
192
192
  import { EvsServiceException } from "../models/EvsServiceException";
193
+ const _s_registry = TypeRegistry.for(_s);
194
+ export var EvsServiceException$ = [-3, _s, "EvsServiceException", 0, [], []];
195
+ _s_registry.registerError(EvsServiceException$, EvsServiceException);
196
+ const n0_registry = TypeRegistry.for(n0);
197
+ export var InternalServerException$ = [-3, n0, _ISE,
198
+ { [_e]: _se, [_hE]: 500 },
199
+ [_m],
200
+ [0], 1
201
+ ];
202
+ n0_registry.registerError(InternalServerException$, InternalServerException);
203
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
204
+ { [_e]: _c, [_hE]: 404 },
205
+ [_m, _rI, _rT],
206
+ [0, 0, 0], 3
207
+ ];
208
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
209
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
210
+ { [_e]: _c, [_hE]: 402 },
211
+ [_m],
212
+ [0], 1
213
+ ];
214
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
215
+ export var TagPolicyException$ = [-3, n0, _TPE,
216
+ { [_e]: _c, [_hE]: 400 },
217
+ [_m],
218
+ [0], 1
219
+ ];
220
+ n0_registry.registerError(TagPolicyException$, TagPolicyException);
221
+ export var ThrottlingException$ = [-3, n0, _TE,
222
+ { [_e]: _c, [_hE]: 429 },
223
+ [_m, _rAS],
224
+ [0, [1, { [_hH]: _RA }]], 1
225
+ ];
226
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
227
+ export var TooManyTagsException$ = [-3, n0, _TMTE,
228
+ { [_e]: _c, [_hE]: 400 },
229
+ [_m],
230
+ [0], 1
231
+ ];
232
+ n0_registry.registerError(TooManyTagsException$, TooManyTagsException);
233
+ export var ValidationException$ = [-3, n0, _VE,
234
+ { [_e]: _c, [_hE]: 400 },
235
+ [_m, _r, _fL],
236
+ [0, 0, () => ValidationExceptionFieldList], 2
237
+ ];
238
+ n0_registry.registerError(ValidationException$, ValidationException);
239
+ export const errorTypeRegistries = [
240
+ _s_registry,
241
+ n0_registry,
242
+ ];
193
243
  export var AssociateEipToVlanRequest$ = [3, n0, _AETVR,
194
244
  0,
195
245
  [_eI, _vN, _aI, _cT],
@@ -202,7 +252,7 @@ export var AssociateEipToVlanResponse$ = [3, n0, _AETVRs,
202
252
  ];
203
253
  export var Check$ = [3, n0, _C,
204
254
  0,
205
- [_t, _r, _iS],
255
+ [_t, _re, _iS],
206
256
  [0, 0, 4]
207
257
  ];
208
258
  export var ConnectivityInfo$ = [3, n0, _CI,
@@ -227,7 +277,7 @@ export var CreateEnvironmentRequest$ = [3, n0, _CER,
227
277
  ];
228
278
  export var CreateEnvironmentResponse$ = [3, n0, _CERr,
229
279
  0,
230
- [_e],
280
+ [_en],
231
281
  [() => Environment$]
232
282
  ];
233
283
  export var DeleteEnvironmentHostRequest$ = [3, n0, _DEHR,
@@ -247,7 +297,7 @@ export var DeleteEnvironmentRequest$ = [3, n0, _DER,
247
297
  ];
248
298
  export var DeleteEnvironmentResponse$ = [3, n0, _DERe,
249
299
  0,
250
- [_e],
300
+ [_en],
251
301
  [() => Environment$]
252
302
  ];
253
303
  export var DisassociateEipFromVlanRequest$ = [3, n0, _DEFVR,
@@ -267,7 +317,7 @@ export var EipAssociation$ = [3, n0, _EA,
267
317
  ];
268
318
  export var Environment$ = [3, n0, _E,
269
319
  0,
270
- [_eI, _eSn, _sD, _cA, _mA, _eA, _eN, _vI, _sASI, _vV, _tA, _lI, _sI, _eSnv, _c, _cI, _vH, _kKI, _sASG, _cr],
320
+ [_eI, _eSn, _sD, _cA, _mA, _eA, _eN, _vI, _sASI, _vV, _tA, _lI, _sI, _eSnv, _ch, _cI, _vH, _kKI, _sASG, _cr],
271
321
  [0, 0, 0, 4, 4, 0, 0, 0, 0, 0, 2, () => LicenseInfoList, 0, 0, () => ChecksList, () => ConnectivityInfo$, () => VcfHostnames$, 0, () => ServiceAccessSecurityGroups$, () => SecretList]
272
322
  ];
273
323
  export var EnvironmentSummary$ = [3, n0, _ES,
@@ -282,7 +332,7 @@ export var GetEnvironmentRequest$ = [3, n0, _GER,
282
332
  ];
283
333
  export var GetEnvironmentResponse$ = [3, n0, _GERe,
284
334
  0,
285
- [_e],
335
+ [_en],
286
336
  [() => Environment$]
287
337
  ];
288
338
  export var GetVersionsRequest$ = [3, n0, _GVR,
@@ -320,12 +370,6 @@ export var InstanceTypeEsxVersionsInfo$ = [3, n0, _ITEVI,
320
370
  [_iT, _eVs],
321
371
  [0, 64 | 0], 2
322
372
  ];
323
- export var InternalServerException$ = [-3, n0, _ISE,
324
- { [_er]: _s, [_hE]: 500 },
325
- [_m],
326
- [0], 1
327
- ];
328
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
329
373
  export var LicenseInfo$ = [3, n0, _LI,
330
374
  0,
331
375
  [_sK, _vK],
@@ -376,12 +420,6 @@ export var NetworkInterface$ = [3, n0, _NI,
376
420
  [_nII],
377
421
  [0]
378
422
  ];
379
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
380
- { [_er]: _cl, [_hE]: 404 },
381
- [_m, _rI, _rT],
382
- [0, 0, 0], 3
383
- ];
384
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
385
423
  export var Secret$ = [3, n0, _S,
386
424
  0,
387
425
  [_sA],
@@ -392,18 +430,6 @@ export var ServiceAccessSecurityGroups$ = [3, n0, _SASG,
392
430
  [_sG],
393
431
  [64 | 0]
394
432
  ];
395
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
396
- { [_er]: _cl, [_hE]: 402 },
397
- [_m],
398
- [0], 1
399
- ];
400
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
401
- export var TagPolicyException$ = [-3, n0, _TPE,
402
- { [_er]: _cl, [_hE]: 400 },
403
- [_m],
404
- [0], 1
405
- ];
406
- TypeRegistry.for(n0).registerError(TagPolicyException$, TagPolicyException);
407
433
  export var TagResourceRequest$ = [3, n0, _TRR,
408
434
  0,
409
435
  [_rA, _ta],
@@ -414,18 +440,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
414
440
  [],
415
441
  []
416
442
  ];
417
- export var ThrottlingException$ = [-3, n0, _TE,
418
- { [_er]: _cl, [_hE]: 429 },
419
- [_m, _rAS],
420
- [0, [1, { [_hH]: _RA }]], 1
421
- ];
422
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
423
- export var TooManyTagsException$ = [-3, n0, _TMTE,
424
- { [_er]: _cl, [_hE]: 400 },
425
- [_m],
426
- [0], 1
427
- ];
428
- TypeRegistry.for(n0).registerError(TooManyTagsException$, TooManyTagsException);
429
443
  export var UntagResourceRequest$ = [3, n0, _URR,
430
444
  0,
431
445
  [_rA, _tK],
@@ -436,12 +450,6 @@ export var UntagResourceResponse$ = [3, n0, _URRn,
436
450
  [],
437
451
  []
438
452
  ];
439
- export var ValidationException$ = [-3, n0, _VE,
440
- { [_er]: _cl, [_hE]: 400 },
441
- [_m, _re, _fL],
442
- [0, 0, () => ValidationExceptionFieldList], 2
443
- ];
444
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
445
453
  export var ValidationExceptionField$ = [3, n0, _VEF,
446
454
  0,
447
455
  [_n, _m],
@@ -462,8 +470,6 @@ export var Vlan$ = [3, n0, _V,
462
470
  [_vIl, _ci, _aZ, _fN, _sIu, _cA, _mA, _vSl, _sD, _eAi, _iP, _nAI],
463
471
  [1, 0, 0, 0, 0, 4, 4, 0, 0, () => EipAssociationList, 2, 0]
464
472
  ];
465
- export var EvsServiceException$ = [-3, _sm, "EvsServiceException", 0, [], []];
466
- TypeRegistry.for(_sm).registerError(EvsServiceException$, EvsServiceException);
467
473
  var ChecksList = [1, n0, _CL,
468
474
  0, () => Check$
469
475
  ];
@@ -1,4 +1,19 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var EvsServiceException$: StaticErrorSchema;
4
+ export declare var InternalServerException$: StaticErrorSchema;
5
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
6
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
7
+ export declare var TagPolicyException$: StaticErrorSchema;
8
+ export declare var ThrottlingException$: StaticErrorSchema;
9
+ export declare var TooManyTagsException$: StaticErrorSchema;
10
+ export declare var ValidationException$: StaticErrorSchema;
11
+ /**
12
+ * TypeRegistry instances containing modeled errors.
13
+ * @internal
14
+ *
15
+ */
16
+ export declare const errorTypeRegistries: TypeRegistry[];
2
17
  export declare var AssociateEipToVlanRequest$: StaticStructureSchema;
3
18
  export declare var AssociateEipToVlanResponse$: StaticStructureSchema;
4
19
  export declare var Check$: StaticStructureSchema;
@@ -25,7 +40,6 @@ export declare var HostInfoForCreate$: StaticStructureSchema;
25
40
  export declare var InitialVlanInfo$: StaticStructureSchema;
26
41
  export declare var InitialVlans$: StaticStructureSchema;
27
42
  export declare var InstanceTypeEsxVersionsInfo$: StaticStructureSchema;
28
- export declare var InternalServerException$: StaticErrorSchema;
29
43
  export declare var LicenseInfo$: StaticStructureSchema;
30
44
  export declare var ListEnvironmentHostsRequest$: StaticStructureSchema;
31
45
  export declare var ListEnvironmentHostsResponse$: StaticStructureSchema;
@@ -36,23 +50,16 @@ export declare var ListEnvironmentVlansResponse$: StaticStructureSchema;
36
50
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
37
51
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
38
52
  export declare var NetworkInterface$: StaticStructureSchema;
39
- export declare var ResourceNotFoundException$: StaticErrorSchema;
40
53
  export declare var Secret$: StaticStructureSchema;
41
54
  export declare var ServiceAccessSecurityGroups$: StaticStructureSchema;
42
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
43
- export declare var TagPolicyException$: StaticErrorSchema;
44
55
  export declare var TagResourceRequest$: StaticStructureSchema;
45
56
  export declare var TagResourceResponse$: StaticStructureSchema;
46
- export declare var ThrottlingException$: StaticErrorSchema;
47
- export declare var TooManyTagsException$: StaticErrorSchema;
48
57
  export declare var UntagResourceRequest$: StaticStructureSchema;
49
58
  export declare var UntagResourceResponse$: StaticStructureSchema;
50
- export declare var ValidationException$: StaticErrorSchema;
51
59
  export declare var ValidationExceptionField$: StaticStructureSchema;
52
60
  export declare var VcfHostnames$: StaticStructureSchema;
53
61
  export declare var VcfVersionInfo$: StaticStructureSchema;
54
62
  export declare var Vlan$: StaticStructureSchema;
55
- export declare var EvsServiceException$: StaticErrorSchema;
56
63
  export declare var AssociateEipToVlan$: StaticOperationSchema;
57
64
  export declare var CreateEnvironment$: StaticOperationSchema;
58
65
  export declare var CreateEnvironmentHost$: StaticOperationSchema;
@@ -1,8 +1,18 @@
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 EvsServiceException$: StaticErrorSchema;
8
+ export declare var InternalServerException$: StaticErrorSchema;
9
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
10
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
11
+ export declare var TagPolicyException$: StaticErrorSchema;
12
+ export declare var ThrottlingException$: StaticErrorSchema;
13
+ export declare var TooManyTagsException$: StaticErrorSchema;
14
+ export declare var ValidationException$: StaticErrorSchema;
15
+ export declare const errorTypeRegistries: TypeRegistry[];
6
16
  export declare var AssociateEipToVlanRequest$: StaticStructureSchema;
7
17
  export declare var AssociateEipToVlanResponse$: StaticStructureSchema;
8
18
  export declare var Check$: StaticStructureSchema;
@@ -29,7 +39,6 @@ export declare var HostInfoForCreate$: StaticStructureSchema;
29
39
  export declare var InitialVlanInfo$: StaticStructureSchema;
30
40
  export declare var InitialVlans$: StaticStructureSchema;
31
41
  export declare var InstanceTypeEsxVersionsInfo$: StaticStructureSchema;
32
- export declare var InternalServerException$: StaticErrorSchema;
33
42
  export declare var LicenseInfo$: StaticStructureSchema;
34
43
  export declare var ListEnvironmentHostsRequest$: StaticStructureSchema;
35
44
  export declare var ListEnvironmentHostsResponse$: StaticStructureSchema;
@@ -40,23 +49,16 @@ export declare var ListEnvironmentVlansResponse$: StaticStructureSchema;
40
49
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
41
50
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
42
51
  export declare var NetworkInterface$: StaticStructureSchema;
43
- export declare var ResourceNotFoundException$: StaticErrorSchema;
44
52
  export declare var Secret$: StaticStructureSchema;
45
53
  export declare var ServiceAccessSecurityGroups$: StaticStructureSchema;
46
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
47
- export declare var TagPolicyException$: StaticErrorSchema;
48
54
  export declare var TagResourceRequest$: StaticStructureSchema;
49
55
  export declare var TagResourceResponse$: StaticStructureSchema;
50
- export declare var ThrottlingException$: StaticErrorSchema;
51
- export declare var TooManyTagsException$: StaticErrorSchema;
52
56
  export declare var UntagResourceRequest$: StaticStructureSchema;
53
57
  export declare var UntagResourceResponse$: StaticStructureSchema;
54
- export declare var ValidationException$: StaticErrorSchema;
55
58
  export declare var ValidationExceptionField$: StaticStructureSchema;
56
59
  export declare var VcfHostnames$: StaticStructureSchema;
57
60
  export declare var VcfVersionInfo$: StaticStructureSchema;
58
61
  export declare var Vlan$: StaticStructureSchema;
59
- export declare var EvsServiceException$: StaticErrorSchema;
60
62
  export declare var AssociateEipToVlan$: StaticOperationSchema;
61
63
  export declare var CreateEnvironment$: StaticOperationSchema;
62
64
  export declare var CreateEnvironmentHost$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-evs",
3
3
  "description": "AWS SDK for JavaScript Evs 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-evs",
@@ -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",