@aws-sdk/client-outposts 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 { defaultOutpostsHttpAuthSchemeProvider } 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: "2019-12-03",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.outposts",
30
+ errorTypeRegistries,
29
31
  version: "2019-12-03",
30
32
  serviceTarget: "OutpostsOlafService",
31
33
  },
@@ -227,9 +227,9 @@ const _Q = "Quantity";
227
227
  const _R = "Reason";
228
228
  const _RA = "ResourceArn";
229
229
  const _RE = "RackElevation";
230
- const _RI = "RackId";
230
+ const _RI = "ResourceId";
231
231
  const _RIP = "RequestedInstancePools";
232
- const _RIe = "ResourceId";
232
+ const _RIa = "RackId";
233
233
  const _RPP = "RackPhysicalProperties";
234
234
  const _RT = "ResourceType";
235
235
  const _S = "State";
@@ -304,20 +304,58 @@ const _h = "http";
304
304
  const _hE = "httpError";
305
305
  const _hQ = "httpQuery";
306
306
  const _oLD = "outpostListDefinition";
307
- const _s = "server";
307
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.outposts";
308
308
  const _sLD = "siteListDefinition";
309
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.outposts";
309
+ const _se = "server";
310
310
  const _tK = "tagKeys";
311
311
  const n0 = "com.amazonaws.outposts";
312
312
  import { TypeRegistry } from "@smithy/core/schema";
313
313
  import { AccessDeniedException, ConflictException, InternalServerException, NotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/errors";
314
314
  import { OutpostsServiceException } from "../models/OutpostsServiceException";
315
+ const _s_registry = TypeRegistry.for(_s);
316
+ export var OutpostsServiceException$ = [-3, _s, "OutpostsServiceException", 0, [], []];
317
+ _s_registry.registerError(OutpostsServiceException$, OutpostsServiceException);
318
+ const n0_registry = TypeRegistry.for(n0);
315
319
  export var AccessDeniedException$ = [-3, n0, _ADE,
316
320
  { [_e]: _c, [_hE]: 403 },
317
321
  [_M],
318
322
  [0]
319
323
  ];
320
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
324
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
325
+ export var ConflictException$ = [-3, n0, _CE,
326
+ { [_e]: _c, [_hE]: 409 },
327
+ [_M, _RI, _RT],
328
+ [0, 0, 0]
329
+ ];
330
+ n0_registry.registerError(ConflictException$, ConflictException);
331
+ export var InternalServerException$ = [-3, n0, _ISE,
332
+ { [_e]: _se, [_hE]: 500 },
333
+ [_M],
334
+ [0]
335
+ ];
336
+ n0_registry.registerError(InternalServerException$, InternalServerException);
337
+ export var NotFoundException$ = [-3, n0, _NFE,
338
+ { [_e]: _c, [_hE]: 404 },
339
+ [_M],
340
+ [0]
341
+ ];
342
+ n0_registry.registerError(NotFoundException$, NotFoundException);
343
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
344
+ { [_e]: _c, [_hE]: 402 },
345
+ [_M],
346
+ [0]
347
+ ];
348
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
349
+ export var ValidationException$ = [-3, n0, _VE,
350
+ { [_e]: _c, [_hE]: 400 },
351
+ [_M],
352
+ [0]
353
+ ];
354
+ n0_registry.registerError(ValidationException$, ValidationException);
355
+ export const errorTypeRegistries = [
356
+ _s_registry,
357
+ n0_registry,
358
+ ];
321
359
  export var Address$ = [3, n0, _A,
322
360
  0,
323
361
  [_CN, _CPN, _AL, _C, _SOR, _PC, _CC, _ALd, _ALdd, _DOC, _Mu],
@@ -325,7 +363,7 @@ export var Address$ = [3, n0, _A,
325
363
  ];
326
364
  export var AssetInfo$ = [3, n0, _AI,
327
365
  0,
328
- [_AIs, _RI, _AT, _CA, _ALs],
366
+ [_AIs, _RIa, _AT, _CA, _ALs],
329
367
  [0, 0, 0, () => ComputeAttributes$, () => AssetLocation$]
330
368
  ];
331
369
  export var AssetInstance$ = [3, n0, _AIss,
@@ -388,12 +426,6 @@ export var ComputeAttributes$ = [3, n0, _CA,
388
426
  [_HI, _S, _IF, _ITC, _MV],
389
427
  [0, 0, 64 | 0, () => AssetInstanceCapacityList, 1]
390
428
  ];
391
- export var ConflictException$ = [-3, n0, _CE,
392
- { [_e]: _c, [_hE]: 409 },
393
- [_M, _RIe, _RT],
394
- [0, 0, 0]
395
- ];
396
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
397
429
  export var ConnectionDetails$ = [3, n0, _CDon,
398
430
  0,
399
431
  [_CPK, _SPK, _SE, _CTA, _STA, _AIl],
@@ -569,12 +601,6 @@ export var InstanceTypeItem$ = [3, n0, _ITI,
569
601
  [_IT, _VCPU],
570
602
  [0, 1]
571
603
  ];
572
- export var InternalServerException$ = [-3, n0, _ISE,
573
- { [_e]: _s, [_hE]: 500 },
574
- [_M],
575
- [0]
576
- ];
577
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
578
604
  export var LineItem$ = [3, n0, _LIi,
579
605
  0,
580
606
  [_CII, _LII, _Q, _St, _SIh, _AIL, _PLII, _POI],
@@ -680,12 +706,6 @@ export var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
680
706
  [_Ta],
681
707
  [128 | 0]
682
708
  ];
683
- export var NotFoundException$ = [-3, n0, _NFE,
684
- { [_e]: _c, [_hE]: 404 },
685
- [_M],
686
- [0]
687
- ];
688
- TypeRegistry.for(n0).registerError(NotFoundException$, NotFoundException);
689
709
  export var Order$ = [3, n0, _O,
690
710
  0,
691
711
  [_OIu, _OIr, _St, _LI, _PO, _OSD, _OFD, _PT, _OT],
@@ -706,12 +726,6 @@ export var RackPhysicalProperties$ = [3, n0, _RPP,
706
726
  [_PDK, _PP, _PCo, _PFD, _UG, _UC, _FOCT, _OSp, _MSWL],
707
727
  [0, 0, 0, 0, 0, 0, 0, 0, 0]
708
728
  ];
709
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
710
- { [_e]: _c, [_hE]: 402 },
711
- [_M],
712
- [0]
713
- ];
714
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
715
729
  export var ShipmentInformation$ = [3, n0, _SIh,
716
730
  0,
717
731
  [_STN, _SC],
@@ -817,14 +831,6 @@ export var UpdateSiteRackPhysicalPropertiesOutput$ = [3, n0, _USRPPO,
817
831
  [_Si],
818
832
  [() => Site$]
819
833
  ];
820
- export var ValidationException$ = [-3, n0, _VE,
821
- { [_e]: _c, [_hE]: 400 },
822
- [_M],
823
- [0]
824
- ];
825
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
826
- export var OutpostsServiceException$ = [-3, _sm, "OutpostsServiceException", 0, [], []];
827
- TypeRegistry.for(_sm).registerError(OutpostsServiceException$, OutpostsServiceException);
828
834
  var AccountIdList = 64 | 0;
829
835
  var AssetIdList = 64 | 0;
830
836
  var AssetInstanceCapacityList = [1, n0, _AICL,
@@ -1,5 +1,18 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var OutpostsServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var InternalServerException$: StaticErrorSchema;
7
+ export declare var NotFoundException$: StaticErrorSchema;
8
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
9
+ export declare var ValidationException$: StaticErrorSchema;
10
+ /**
11
+ * TypeRegistry instances containing modeled errors.
12
+ * @internal
13
+ *
14
+ */
15
+ export declare const errorTypeRegistries: TypeRegistry[];
3
16
  export declare var Address$: StaticStructureSchema;
4
17
  export declare var AssetInfo$: StaticStructureSchema;
5
18
  export declare var AssetInstance$: StaticStructureSchema;
@@ -14,7 +27,6 @@ export declare var CapacityTaskFailure$: StaticStructureSchema;
14
27
  export declare var CapacityTaskSummary$: StaticStructureSchema;
15
28
  export declare var CatalogItem$: StaticStructureSchema;
16
29
  export declare var ComputeAttributes$: StaticStructureSchema;
17
- export declare var ConflictException$: StaticErrorSchema;
18
30
  export declare var ConnectionDetails$: StaticStructureSchema;
19
31
  export declare var CreateOrderInput$: StaticStructureSchema;
20
32
  export declare var CreateOrderOutput$: StaticStructureSchema;
@@ -50,7 +62,6 @@ export declare var GetSiteOutput$: StaticStructureSchema;
50
62
  export declare var InstancesToExclude$: StaticStructureSchema;
51
63
  export declare var InstanceTypeCapacity$: StaticStructureSchema;
52
64
  export declare var InstanceTypeItem$: StaticStructureSchema;
53
- export declare var InternalServerException$: StaticErrorSchema;
54
65
  export declare var LineItem$: StaticStructureSchema;
55
66
  export declare var LineItemAssetInformation$: StaticStructureSchema;
56
67
  export declare var LineItemRequest$: StaticStructureSchema;
@@ -72,12 +83,10 @@ export declare var ListSitesInput$: StaticStructureSchema;
72
83
  export declare var ListSitesOutput$: StaticStructureSchema;
73
84
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
74
85
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
75
- export declare var NotFoundException$: StaticErrorSchema;
76
86
  export declare var Order$: StaticStructureSchema;
77
87
  export declare var OrderSummary$: StaticStructureSchema;
78
88
  export declare var Outpost$: StaticStructureSchema;
79
89
  export declare var RackPhysicalProperties$: StaticStructureSchema;
80
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
81
90
  export declare var ShipmentInformation$: StaticStructureSchema;
82
91
  export declare var Site$: StaticStructureSchema;
83
92
  export declare var StartCapacityTaskInput$: StaticStructureSchema;
@@ -99,8 +108,6 @@ export declare var UpdateSiteInput$: StaticStructureSchema;
99
108
  export declare var UpdateSiteOutput$: StaticStructureSchema;
100
109
  export declare var UpdateSiteRackPhysicalPropertiesInput$: StaticStructureSchema;
101
110
  export declare var UpdateSiteRackPhysicalPropertiesOutput$: StaticStructureSchema;
102
- export declare var ValidationException$: StaticErrorSchema;
103
- export declare var OutpostsServiceException$: StaticErrorSchema;
104
111
  export declare var CancelCapacityTask$: StaticOperationSchema;
105
112
  export declare var CancelOrder$: StaticOperationSchema;
106
113
  export declare var CreateOrder$: StaticOperationSchema;
@@ -1,9 +1,17 @@
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 OutpostsServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
9
+ export declare var ConflictException$: StaticErrorSchema;
10
+ export declare var InternalServerException$: StaticErrorSchema;
11
+ export declare var NotFoundException$: StaticErrorSchema;
12
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
13
+ export declare var ValidationException$: StaticErrorSchema;
14
+ export declare const errorTypeRegistries: TypeRegistry[];
7
15
  export declare var Address$: StaticStructureSchema;
8
16
  export declare var AssetInfo$: StaticStructureSchema;
9
17
  export declare var AssetInstance$: StaticStructureSchema;
@@ -18,7 +26,6 @@ export declare var CapacityTaskFailure$: StaticStructureSchema;
18
26
  export declare var CapacityTaskSummary$: StaticStructureSchema;
19
27
  export declare var CatalogItem$: StaticStructureSchema;
20
28
  export declare var ComputeAttributes$: StaticStructureSchema;
21
- export declare var ConflictException$: StaticErrorSchema;
22
29
  export declare var ConnectionDetails$: StaticStructureSchema;
23
30
  export declare var CreateOrderInput$: StaticStructureSchema;
24
31
  export declare var CreateOrderOutput$: StaticStructureSchema;
@@ -54,7 +61,6 @@ export declare var GetSiteOutput$: StaticStructureSchema;
54
61
  export declare var InstancesToExclude$: StaticStructureSchema;
55
62
  export declare var InstanceTypeCapacity$: StaticStructureSchema;
56
63
  export declare var InstanceTypeItem$: StaticStructureSchema;
57
- export declare var InternalServerException$: StaticErrorSchema;
58
64
  export declare var LineItem$: StaticStructureSchema;
59
65
  export declare var LineItemAssetInformation$: StaticStructureSchema;
60
66
  export declare var LineItemRequest$: StaticStructureSchema;
@@ -76,12 +82,10 @@ export declare var ListSitesInput$: StaticStructureSchema;
76
82
  export declare var ListSitesOutput$: StaticStructureSchema;
77
83
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
78
84
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
79
- export declare var NotFoundException$: StaticErrorSchema;
80
85
  export declare var Order$: StaticStructureSchema;
81
86
  export declare var OrderSummary$: StaticStructureSchema;
82
87
  export declare var Outpost$: StaticStructureSchema;
83
88
  export declare var RackPhysicalProperties$: StaticStructureSchema;
84
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
85
89
  export declare var ShipmentInformation$: StaticStructureSchema;
86
90
  export declare var Site$: StaticStructureSchema;
87
91
  export declare var StartCapacityTaskInput$: StaticStructureSchema;
@@ -103,8 +107,6 @@ export declare var UpdateSiteInput$: StaticStructureSchema;
103
107
  export declare var UpdateSiteOutput$: StaticStructureSchema;
104
108
  export declare var UpdateSiteRackPhysicalPropertiesInput$: StaticStructureSchema;
105
109
  export declare var UpdateSiteRackPhysicalPropertiesOutput$: StaticStructureSchema;
106
- export declare var ValidationException$: StaticErrorSchema;
107
- export declare var OutpostsServiceException$: StaticErrorSchema;
108
110
  export declare var CancelCapacityTask$: StaticOperationSchema;
109
111
  export declare var CancelOrder$: StaticOperationSchema;
110
112
  export declare var CreateOrder$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-outposts",
3
3
  "description": "AWS SDK for JavaScript Outposts 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-outposts",
@@ -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",