@aws-sdk/client-storage-gateway 3.987.0 → 3.989.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 { defaultStorageGatewayHttpAuthSchemeProvider } 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-06-30",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_1Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.storagegateway",
30
+ errorTypeRegistries,
29
31
  xmlNamespace: "http://storagegateway.amazonaws.com/doc/2013-06-30",
30
32
  version: "2013-06-30",
31
33
  serviceTarget: "StorageGateway_20130630",
@@ -561,12 +561,38 @@ const _eC = "errorCode";
561
561
  const _eD = "errorDetails";
562
562
  const _hE = "httpError";
563
563
  const _m = "message";
564
- const _s = "server";
565
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.storagegateway";
564
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.storagegateway";
565
+ const _se = "server";
566
566
  const n0 = "com.amazonaws.storagegateway";
567
567
  import { TypeRegistry } from "@smithy/core/schema";
568
568
  import { InternalServerError, InvalidGatewayRequestException, ServiceUnavailableError } from "../models/errors";
569
569
  import { StorageGatewayServiceException } from "../models/StorageGatewayServiceException";
570
+ const _s_registry = TypeRegistry.for(_s);
571
+ export var StorageGatewayServiceException$ = [-3, _s, "StorageGatewayServiceException", 0, [], []];
572
+ _s_registry.registerError(StorageGatewayServiceException$, StorageGatewayServiceException);
573
+ const n0_registry = TypeRegistry.for(n0);
574
+ export var InternalServerError$ = [-3, n0, _ISE,
575
+ { [_e]: _se, [_hE]: 500 },
576
+ [_m, _e],
577
+ [0, () => StorageGatewayError$]
578
+ ];
579
+ n0_registry.registerError(InternalServerError$, InternalServerError);
580
+ export var InvalidGatewayRequestException$ = [-3, n0, _IGRE,
581
+ { [_e]: _c, [_hE]: 400 },
582
+ [_m, _e],
583
+ [0, () => StorageGatewayError$]
584
+ ];
585
+ n0_registry.registerError(InvalidGatewayRequestException$, InvalidGatewayRequestException);
586
+ export var ServiceUnavailableError$ = [-3, n0, _SUE,
587
+ { [_e]: _se, [_hE]: 503 },
588
+ [_m, _e],
589
+ [0, () => StorageGatewayError$]
590
+ ];
591
+ n0_registry.registerError(ServiceUnavailableError$, ServiceUnavailableError);
592
+ export const errorTypeRegistries = [
593
+ _s_registry,
594
+ n0_registry,
595
+ ];
570
596
  var ChapSecret = [0, n0, _CS, 8, 0];
571
597
  var DomainUserPassword = [0, n0, _DUP, 8, 0];
572
598
  var LocalConsolePassword = [0, n0, _LCP, 8, 0];
@@ -1211,18 +1237,6 @@ export var GatewayInfo$ = [3, n0, _GIa,
1211
1237
  [_GI, _GARN, _GTa, _GOS, _GN, _EII, _EIR, _HE, _HEI, _DD, _SV],
1212
1238
  [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
1213
1239
  ];
1214
- export var InternalServerError$ = [-3, n0, _ISE,
1215
- { [_e]: _s, [_hE]: 500 },
1216
- [_m, _e],
1217
- [0, () => StorageGatewayError$]
1218
- ];
1219
- TypeRegistry.for(n0).registerError(InternalServerError$, InternalServerError);
1220
- export var InvalidGatewayRequestException$ = [-3, n0, _IGRE,
1221
- { [_e]: _c, [_hE]: 400 },
1222
- [_m, _e],
1223
- [0, () => StorageGatewayError$]
1224
- ];
1225
- TypeRegistry.for(n0).registerError(InvalidGatewayRequestException$, InvalidGatewayRequestException);
1226
1240
  export var JoinDomainInput$ = [3, n0, _JDI,
1227
1241
  0,
1228
1242
  [_GARN, _DN, _UN, _P, _OU, _DC, _TIS],
@@ -1433,12 +1447,6 @@ export var RetrieveTapeRecoveryPointOutput$ = [3, n0, _RTRPO,
1433
1447
  [_TARN],
1434
1448
  [0]
1435
1449
  ];
1436
- export var ServiceUnavailableError$ = [-3, n0, _SUE,
1437
- { [_e]: _s, [_hE]: 503 },
1438
- [_m, _e],
1439
- [0, () => StorageGatewayError$]
1440
- ];
1441
- TypeRegistry.for(n0).registerError(ServiceUnavailableError$, ServiceUnavailableError);
1442
1450
  export var SetLocalConsolePasswordInput$ = [3, n0, _SLCPI,
1443
1451
  0,
1444
1452
  [_GARN, _LCP],
@@ -1719,8 +1727,6 @@ export var VTLDevice$ = [3, n0, _VTLDe,
1719
1727
  [_VTLDARNe, _VTLDT, _VTLDV, _VTLDPI, _DSCSIA],
1720
1728
  [0, 0, 0, 0, () => DeviceiSCSIAttributes$]
1721
1729
  ];
1722
- export var StorageGatewayServiceException$ = [-3, _sm, "StorageGatewayServiceException", 0, [], []];
1723
- TypeRegistry.for(_sm).registerError(StorageGatewayServiceException$, StorageGatewayServiceException);
1724
1730
  var AutomaticTapeCreationPolicyInfos = [1, n0, _ATCPIu,
1725
1731
  0, () => AutomaticTapeCreationPolicyInfo$
1726
1732
  ];
@@ -1,4 +1,15 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var StorageGatewayServiceException$: StaticErrorSchema;
4
+ export declare var InternalServerError$: StaticErrorSchema;
5
+ export declare var InvalidGatewayRequestException$: StaticErrorSchema;
6
+ export declare var ServiceUnavailableError$: StaticErrorSchema;
7
+ /**
8
+ * TypeRegistry instances containing modeled errors.
9
+ * @internal
10
+ *
11
+ */
12
+ export declare const errorTypeRegistries: TypeRegistry[];
2
13
  export declare var ActivateGatewayInput$: StaticStructureSchema;
3
14
  export declare var ActivateGatewayOutput$: StaticStructureSchema;
4
15
  export declare var AddCacheInput$: StaticStructureSchema;
@@ -127,8 +138,6 @@ export declare var FileSystemAssociationInfo$: StaticStructureSchema;
127
138
  export declare var FileSystemAssociationStatusDetail$: StaticStructureSchema;
128
139
  export declare var FileSystemAssociationSummary$: StaticStructureSchema;
129
140
  export declare var GatewayInfo$: StaticStructureSchema;
130
- export declare var InternalServerError$: StaticErrorSchema;
131
- export declare var InvalidGatewayRequestException$: StaticErrorSchema;
132
141
  export declare var JoinDomainInput$: StaticStructureSchema;
133
142
  export declare var JoinDomainOutput$: StaticStructureSchema;
134
143
  export declare var ListAutomaticTapeCreationPoliciesInput$: StaticStructureSchema;
@@ -171,7 +180,6 @@ export declare var RetrieveTapeArchiveInput$: StaticStructureSchema;
171
180
  export declare var RetrieveTapeArchiveOutput$: StaticStructureSchema;
172
181
  export declare var RetrieveTapeRecoveryPointInput$: StaticStructureSchema;
173
182
  export declare var RetrieveTapeRecoveryPointOutput$: StaticStructureSchema;
174
- export declare var ServiceUnavailableError$: StaticErrorSchema;
175
183
  export declare var SetLocalConsolePasswordInput$: StaticStructureSchema;
176
184
  export declare var SetLocalConsolePasswordOutput$: StaticStructureSchema;
177
185
  export declare var SetSMBGuestPasswordInput$: StaticStructureSchema;
@@ -228,7 +236,6 @@ export declare var VolumeInfo$: StaticStructureSchema;
228
236
  export declare var VolumeiSCSIAttributes$: StaticStructureSchema;
229
237
  export declare var VolumeRecoveryPointInfo$: StaticStructureSchema;
230
238
  export declare var VTLDevice$: StaticStructureSchema;
231
- export declare var StorageGatewayServiceException$: StaticErrorSchema;
232
239
  export declare var ActivateGateway$: StaticOperationSchema;
233
240
  export declare var AddCache$: StaticOperationSchema;
234
241
  export declare var AddTagsToResource$: StaticOperationSchema;
@@ -1,8 +1,14 @@
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 StorageGatewayServiceException$: StaticErrorSchema;
8
+ export declare var InternalServerError$: StaticErrorSchema;
9
+ export declare var InvalidGatewayRequestException$: StaticErrorSchema;
10
+ export declare var ServiceUnavailableError$: StaticErrorSchema;
11
+ export declare const errorTypeRegistries: TypeRegistry[];
6
12
  export declare var ActivateGatewayInput$: StaticStructureSchema;
7
13
  export declare var ActivateGatewayOutput$: StaticStructureSchema;
8
14
  export declare var AddCacheInput$: StaticStructureSchema;
@@ -131,8 +137,6 @@ export declare var FileSystemAssociationInfo$: StaticStructureSchema;
131
137
  export declare var FileSystemAssociationStatusDetail$: StaticStructureSchema;
132
138
  export declare var FileSystemAssociationSummary$: StaticStructureSchema;
133
139
  export declare var GatewayInfo$: StaticStructureSchema;
134
- export declare var InternalServerError$: StaticErrorSchema;
135
- export declare var InvalidGatewayRequestException$: StaticErrorSchema;
136
140
  export declare var JoinDomainInput$: StaticStructureSchema;
137
141
  export declare var JoinDomainOutput$: StaticStructureSchema;
138
142
  export declare var ListAutomaticTapeCreationPoliciesInput$: StaticStructureSchema;
@@ -175,7 +179,6 @@ export declare var RetrieveTapeArchiveInput$: StaticStructureSchema;
175
179
  export declare var RetrieveTapeArchiveOutput$: StaticStructureSchema;
176
180
  export declare var RetrieveTapeRecoveryPointInput$: StaticStructureSchema;
177
181
  export declare var RetrieveTapeRecoveryPointOutput$: StaticStructureSchema;
178
- export declare var ServiceUnavailableError$: StaticErrorSchema;
179
182
  export declare var SetLocalConsolePasswordInput$: StaticStructureSchema;
180
183
  export declare var SetLocalConsolePasswordOutput$: StaticStructureSchema;
181
184
  export declare var SetSMBGuestPasswordInput$: StaticStructureSchema;
@@ -232,7 +235,6 @@ export declare var VolumeInfo$: StaticStructureSchema;
232
235
  export declare var VolumeiSCSIAttributes$: StaticStructureSchema;
233
236
  export declare var VolumeRecoveryPointInfo$: StaticStructureSchema;
234
237
  export declare var VTLDevice$: StaticStructureSchema;
235
- export declare var StorageGatewayServiceException$: StaticErrorSchema;
236
238
  export declare var ActivateGateway$: StaticOperationSchema;
237
239
  export declare var AddCache$: StaticOperationSchema;
238
240
  export declare var AddTagsToResource$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-storage-gateway",
3
3
  "description": "AWS SDK for JavaScript Storage Gateway Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.989.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-storage-gateway",
@@ -23,38 +23,38 @@
23
23
  "dependencies": {
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
- "@aws-sdk/core": "^3.973.7",
27
- "@aws-sdk/credential-provider-node": "^3.972.6",
26
+ "@aws-sdk/core": "^3.973.9",
27
+ "@aws-sdk/credential-provider-node": "^3.972.8",
28
28
  "@aws-sdk/middleware-host-header": "^3.972.3",
29
29
  "@aws-sdk/middleware-logger": "^3.972.3",
30
30
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
31
- "@aws-sdk/middleware-user-agent": "^3.972.7",
31
+ "@aws-sdk/middleware-user-agent": "^3.972.9",
32
32
  "@aws-sdk/region-config-resolver": "^3.972.3",
33
33
  "@aws-sdk/types": "^3.973.1",
34
- "@aws-sdk/util-endpoints": "3.987.0",
34
+ "@aws-sdk/util-endpoints": "3.989.0",
35
35
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
36
- "@aws-sdk/util-user-agent-node": "^3.972.5",
36
+ "@aws-sdk/util-user-agent-node": "^3.972.7",
37
37
  "@smithy/config-resolver": "^4.4.6",
38
- "@smithy/core": "^3.22.1",
38
+ "@smithy/core": "^3.23.0",
39
39
  "@smithy/fetch-http-handler": "^5.3.9",
40
40
  "@smithy/hash-node": "^4.2.8",
41
41
  "@smithy/invalid-dependency": "^4.2.8",
42
42
  "@smithy/middleware-content-length": "^4.2.8",
43
- "@smithy/middleware-endpoint": "^4.4.13",
44
- "@smithy/middleware-retry": "^4.4.30",
43
+ "@smithy/middleware-endpoint": "^4.4.14",
44
+ "@smithy/middleware-retry": "^4.4.31",
45
45
  "@smithy/middleware-serde": "^4.2.9",
46
46
  "@smithy/middleware-stack": "^4.2.8",
47
47
  "@smithy/node-config-provider": "^4.3.8",
48
- "@smithy/node-http-handler": "^4.4.9",
48
+ "@smithy/node-http-handler": "^4.4.10",
49
49
  "@smithy/protocol-http": "^5.3.8",
50
- "@smithy/smithy-client": "^4.11.2",
50
+ "@smithy/smithy-client": "^4.11.3",
51
51
  "@smithy/types": "^4.12.0",
52
52
  "@smithy/url-parser": "^4.2.8",
53
53
  "@smithy/util-base64": "^4.3.0",
54
54
  "@smithy/util-body-length-browser": "^4.2.0",
55
55
  "@smithy/util-body-length-node": "^4.2.1",
56
- "@smithy/util-defaults-mode-browser": "^4.3.29",
57
- "@smithy/util-defaults-mode-node": "^4.2.32",
56
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
57
+ "@smithy/util-defaults-mode-node": "^4.2.33",
58
58
  "@smithy/util-endpoints": "^3.2.8",
59
59
  "@smithy/util-middleware": "^4.2.8",
60
60
  "@smithy/util-retry": "^4.2.8",