@aws-sdk/client-glacier 3.353.0 → 3.357.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.
- package/dist-cjs/protocols/Aws_restJson1.js +21 -27
- package/dist-cjs/runtimeConfig.browser.js +0 -2
- package/dist-cjs/runtimeConfig.js +0 -2
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +1 -7
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-types/GlacierClient.d.ts +1 -1
- package/dist-types/commands/UploadArchiveCommand.d.ts +3 -6
- package/dist-types/commands/UploadMultipartPartCommand.d.ts +3 -6
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/package.json +33 -34
|
@@ -732,7 +732,7 @@ const de_AbortMultipartUploadCommand = async (output, context) => {
|
|
|
732
732
|
const contents = (0, smithy_client_1.map)({
|
|
733
733
|
$metadata: deserializeMetadata(output),
|
|
734
734
|
});
|
|
735
|
-
await collectBody(output.body, context);
|
|
735
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
736
736
|
return contents;
|
|
737
737
|
};
|
|
738
738
|
exports.de_AbortMultipartUploadCommand = de_AbortMultipartUploadCommand;
|
|
@@ -771,7 +771,7 @@ const de_AbortVaultLockCommand = async (output, context) => {
|
|
|
771
771
|
const contents = (0, smithy_client_1.map)({
|
|
772
772
|
$metadata: deserializeMetadata(output),
|
|
773
773
|
});
|
|
774
|
-
await collectBody(output.body, context);
|
|
774
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
775
775
|
return contents;
|
|
776
776
|
};
|
|
777
777
|
exports.de_AbortVaultLockCommand = de_AbortVaultLockCommand;
|
|
@@ -810,7 +810,7 @@ const de_AddTagsToVaultCommand = async (output, context) => {
|
|
|
810
810
|
const contents = (0, smithy_client_1.map)({
|
|
811
811
|
$metadata: deserializeMetadata(output),
|
|
812
812
|
});
|
|
813
|
-
await collectBody(output.body, context);
|
|
813
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
814
814
|
return contents;
|
|
815
815
|
};
|
|
816
816
|
exports.de_AddTagsToVaultCommand = de_AddTagsToVaultCommand;
|
|
@@ -855,7 +855,7 @@ const de_CompleteMultipartUploadCommand = async (output, context) => {
|
|
|
855
855
|
checksum: [, output.headers["x-amz-sha256-tree-hash"]],
|
|
856
856
|
archiveId: [, output.headers["x-amz-archive-id"]],
|
|
857
857
|
});
|
|
858
|
-
await collectBody(output.body, context);
|
|
858
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
859
859
|
return contents;
|
|
860
860
|
};
|
|
861
861
|
exports.de_CompleteMultipartUploadCommand = de_CompleteMultipartUploadCommand;
|
|
@@ -894,7 +894,7 @@ const de_CompleteVaultLockCommand = async (output, context) => {
|
|
|
894
894
|
const contents = (0, smithy_client_1.map)({
|
|
895
895
|
$metadata: deserializeMetadata(output),
|
|
896
896
|
});
|
|
897
|
-
await collectBody(output.body, context);
|
|
897
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
898
898
|
return contents;
|
|
899
899
|
};
|
|
900
900
|
exports.de_CompleteVaultLockCommand = de_CompleteVaultLockCommand;
|
|
@@ -934,7 +934,7 @@ const de_CreateVaultCommand = async (output, context) => {
|
|
|
934
934
|
$metadata: deserializeMetadata(output),
|
|
935
935
|
location: [, output.headers["location"]],
|
|
936
936
|
});
|
|
937
|
-
await collectBody(output.body, context);
|
|
937
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
938
938
|
return contents;
|
|
939
939
|
};
|
|
940
940
|
exports.de_CreateVaultCommand = de_CreateVaultCommand;
|
|
@@ -973,7 +973,7 @@ const de_DeleteArchiveCommand = async (output, context) => {
|
|
|
973
973
|
const contents = (0, smithy_client_1.map)({
|
|
974
974
|
$metadata: deserializeMetadata(output),
|
|
975
975
|
});
|
|
976
|
-
await collectBody(output.body, context);
|
|
976
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
977
977
|
return contents;
|
|
978
978
|
};
|
|
979
979
|
exports.de_DeleteArchiveCommand = de_DeleteArchiveCommand;
|
|
@@ -1012,7 +1012,7 @@ const de_DeleteVaultCommand = async (output, context) => {
|
|
|
1012
1012
|
const contents = (0, smithy_client_1.map)({
|
|
1013
1013
|
$metadata: deserializeMetadata(output),
|
|
1014
1014
|
});
|
|
1015
|
-
await collectBody(output.body, context);
|
|
1015
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1016
1016
|
return contents;
|
|
1017
1017
|
};
|
|
1018
1018
|
exports.de_DeleteVaultCommand = de_DeleteVaultCommand;
|
|
@@ -1051,7 +1051,7 @@ const de_DeleteVaultAccessPolicyCommand = async (output, context) => {
|
|
|
1051
1051
|
const contents = (0, smithy_client_1.map)({
|
|
1052
1052
|
$metadata: deserializeMetadata(output),
|
|
1053
1053
|
});
|
|
1054
|
-
await collectBody(output.body, context);
|
|
1054
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1055
1055
|
return contents;
|
|
1056
1056
|
};
|
|
1057
1057
|
exports.de_DeleteVaultAccessPolicyCommand = de_DeleteVaultAccessPolicyCommand;
|
|
@@ -1090,7 +1090,7 @@ const de_DeleteVaultNotificationsCommand = async (output, context) => {
|
|
|
1090
1090
|
const contents = (0, smithy_client_1.map)({
|
|
1091
1091
|
$metadata: deserializeMetadata(output),
|
|
1092
1092
|
});
|
|
1093
|
-
await collectBody(output.body, context);
|
|
1093
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1094
1094
|
return contents;
|
|
1095
1095
|
};
|
|
1096
1096
|
exports.de_DeleteVaultNotificationsCommand = de_DeleteVaultNotificationsCommand;
|
|
@@ -1458,7 +1458,7 @@ const de_InitiateJobCommand = async (output, context) => {
|
|
|
1458
1458
|
jobId: [, output.headers["x-amz-job-id"]],
|
|
1459
1459
|
jobOutputPath: [, output.headers["x-amz-job-output-path"]],
|
|
1460
1460
|
});
|
|
1461
|
-
await collectBody(output.body, context);
|
|
1461
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1462
1462
|
return contents;
|
|
1463
1463
|
};
|
|
1464
1464
|
exports.de_InitiateJobCommand = de_InitiateJobCommand;
|
|
@@ -1505,7 +1505,7 @@ const de_InitiateMultipartUploadCommand = async (output, context) => {
|
|
|
1505
1505
|
location: [, output.headers["location"]],
|
|
1506
1506
|
uploadId: [, output.headers["x-amz-multipart-upload-id"]],
|
|
1507
1507
|
});
|
|
1508
|
-
await collectBody(output.body, context);
|
|
1508
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1509
1509
|
return contents;
|
|
1510
1510
|
};
|
|
1511
1511
|
exports.de_InitiateMultipartUploadCommand = de_InitiateMultipartUploadCommand;
|
|
@@ -1545,7 +1545,7 @@ const de_InitiateVaultLockCommand = async (output, context) => {
|
|
|
1545
1545
|
$metadata: deserializeMetadata(output),
|
|
1546
1546
|
lockId: [, output.headers["x-amz-lock-id"]],
|
|
1547
1547
|
});
|
|
1548
|
-
await collectBody(output.body, context);
|
|
1548
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1549
1549
|
return contents;
|
|
1550
1550
|
};
|
|
1551
1551
|
exports.de_InitiateVaultLockCommand = de_InitiateVaultLockCommand;
|
|
@@ -1849,7 +1849,7 @@ const de_PurchaseProvisionedCapacityCommand = async (output, context) => {
|
|
|
1849
1849
|
$metadata: deserializeMetadata(output),
|
|
1850
1850
|
capacityId: [, output.headers["x-amz-capacity-id"]],
|
|
1851
1851
|
});
|
|
1852
|
-
await collectBody(output.body, context);
|
|
1852
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1853
1853
|
return contents;
|
|
1854
1854
|
};
|
|
1855
1855
|
exports.de_PurchaseProvisionedCapacityCommand = de_PurchaseProvisionedCapacityCommand;
|
|
@@ -1888,7 +1888,7 @@ const de_RemoveTagsFromVaultCommand = async (output, context) => {
|
|
|
1888
1888
|
const contents = (0, smithy_client_1.map)({
|
|
1889
1889
|
$metadata: deserializeMetadata(output),
|
|
1890
1890
|
});
|
|
1891
|
-
await collectBody(output.body, context);
|
|
1891
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1892
1892
|
return contents;
|
|
1893
1893
|
};
|
|
1894
1894
|
exports.de_RemoveTagsFromVaultCommand = de_RemoveTagsFromVaultCommand;
|
|
@@ -1927,7 +1927,7 @@ const de_SetDataRetrievalPolicyCommand = async (output, context) => {
|
|
|
1927
1927
|
const contents = (0, smithy_client_1.map)({
|
|
1928
1928
|
$metadata: deserializeMetadata(output),
|
|
1929
1929
|
});
|
|
1930
|
-
await collectBody(output.body, context);
|
|
1930
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1931
1931
|
return contents;
|
|
1932
1932
|
};
|
|
1933
1933
|
exports.de_SetDataRetrievalPolicyCommand = de_SetDataRetrievalPolicyCommand;
|
|
@@ -1963,7 +1963,7 @@ const de_SetVaultAccessPolicyCommand = async (output, context) => {
|
|
|
1963
1963
|
const contents = (0, smithy_client_1.map)({
|
|
1964
1964
|
$metadata: deserializeMetadata(output),
|
|
1965
1965
|
});
|
|
1966
|
-
await collectBody(output.body, context);
|
|
1966
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1967
1967
|
return contents;
|
|
1968
1968
|
};
|
|
1969
1969
|
exports.de_SetVaultAccessPolicyCommand = de_SetVaultAccessPolicyCommand;
|
|
@@ -2002,7 +2002,7 @@ const de_SetVaultNotificationsCommand = async (output, context) => {
|
|
|
2002
2002
|
const contents = (0, smithy_client_1.map)({
|
|
2003
2003
|
$metadata: deserializeMetadata(output),
|
|
2004
2004
|
});
|
|
2005
|
-
await collectBody(output.body, context);
|
|
2005
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2006
2006
|
return contents;
|
|
2007
2007
|
};
|
|
2008
2008
|
exports.de_SetVaultNotificationsCommand = de_SetVaultNotificationsCommand;
|
|
@@ -2044,7 +2044,7 @@ const de_UploadArchiveCommand = async (output, context) => {
|
|
|
2044
2044
|
checksum: [, output.headers["x-amz-sha256-tree-hash"]],
|
|
2045
2045
|
archiveId: [, output.headers["x-amz-archive-id"]],
|
|
2046
2046
|
});
|
|
2047
|
-
await collectBody(output.body, context);
|
|
2047
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2048
2048
|
return contents;
|
|
2049
2049
|
};
|
|
2050
2050
|
exports.de_UploadArchiveCommand = de_UploadArchiveCommand;
|
|
@@ -2087,7 +2087,7 @@ const de_UploadMultipartPartCommand = async (output, context) => {
|
|
|
2087
2087
|
$metadata: deserializeMetadata(output),
|
|
2088
2088
|
checksum: [, output.headers["x-amz-sha256-tree-hash"]],
|
|
2089
2089
|
});
|
|
2090
|
-
await collectBody(output.body, context);
|
|
2090
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2091
2091
|
return contents;
|
|
2092
2092
|
};
|
|
2093
2093
|
exports.de_UploadMultipartPartCommand = de_UploadMultipartPartCommand;
|
|
@@ -2249,13 +2249,7 @@ const deserializeMetadata = (output) => ({
|
|
|
2249
2249
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2250
2250
|
cfId: output.headers["x-amz-cf-id"],
|
|
2251
2251
|
});
|
|
2252
|
-
const
|
|
2253
|
-
if (streamBody instanceof Uint8Array) {
|
|
2254
|
-
return Promise.resolve(streamBody);
|
|
2255
|
-
}
|
|
2256
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2257
|
-
};
|
|
2258
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2252
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2259
2253
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2260
2254
|
value !== null &&
|
|
2261
2255
|
value !== "" &&
|
|
@@ -10,7 +10,6 @@ const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");
|
|
|
10
10
|
const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
|
|
11
11
|
const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
|
|
12
12
|
const util_retry_1 = require("@aws-sdk/util-retry");
|
|
13
|
-
const util_stream_browser_1 = require("@aws-sdk/util-stream-browser");
|
|
14
13
|
const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
15
14
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
16
15
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
@@ -33,7 +32,6 @@ const getRuntimeConfig = (config) => {
|
|
|
33
32
|
region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
34
33
|
requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
35
34
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE),
|
|
36
|
-
sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_browser_1.sdkStreamMixin,
|
|
37
35
|
sha256: config?.sha256 ?? sha256_browser_1.Sha256,
|
|
38
36
|
streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
|
|
39
37
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
@@ -13,7 +13,6 @@ const node_config_provider_1 = require("@aws-sdk/node-config-provider");
|
|
|
13
13
|
const node_http_handler_1 = require("@aws-sdk/node-http-handler");
|
|
14
14
|
const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
|
|
15
15
|
const util_retry_1 = require("@aws-sdk/util-retry");
|
|
16
|
-
const util_stream_node_1 = require("@aws-sdk/util-stream-node");
|
|
17
16
|
const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
|
|
18
17
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
19
18
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
@@ -42,7 +41,6 @@ const getRuntimeConfig = (config) => {
|
|
|
42
41
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
43
42
|
default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE,
|
|
44
43
|
}),
|
|
45
|
-
sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_node_1.sdkStreamMixin,
|
|
46
44
|
sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"),
|
|
47
45
|
streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
|
|
48
46
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
|
|
|
4
4
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
5
5
|
const url_parser_1 = require("@aws-sdk/url-parser");
|
|
6
6
|
const util_base64_1 = require("@aws-sdk/util-base64");
|
|
7
|
+
const util_stream_1 = require("@aws-sdk/util-stream");
|
|
7
8
|
const util_utf8_1 = require("@aws-sdk/util-utf8");
|
|
8
9
|
const endpointResolver_1 = require("./endpoint/endpointResolver");
|
|
9
10
|
const getRuntimeConfig = (config) => ({
|
|
@@ -13,6 +14,7 @@ const getRuntimeConfig = (config) => ({
|
|
|
13
14
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
14
15
|
endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver,
|
|
15
16
|
logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
|
|
17
|
+
sdkStreamMixin: config?.sdkStreamMixin ?? util_stream_1.sdkStreamMixin,
|
|
16
18
|
serviceId: config?.serviceId ?? "Glacier",
|
|
17
19
|
urlParser: config?.urlParser ?? url_parser_1.parseUrl,
|
|
18
20
|
utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, resolvedPath as __resolvedPath, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { GlacierServiceException as __BaseException } from "../models/GlacierServiceException";
|
|
4
4
|
import { InsufficientCapacityException, InvalidParameterValueException, LimitExceededException, MissingParameterValueException, PolicyEnforcedException, RequestTimeoutException, ResourceNotFoundException, ServiceUnavailableException, } from "../models/models_0";
|
|
@@ -2179,12 +2179,6 @@ const deserializeMetadata = (output) => ({
|
|
|
2179
2179
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2180
2180
|
cfId: output.headers["x-amz-cf-id"],
|
|
2181
2181
|
});
|
|
2182
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2183
|
-
if (streamBody instanceof Uint8Array) {
|
|
2184
|
-
return Promise.resolve(streamBody);
|
|
2185
|
-
}
|
|
2186
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2187
|
-
};
|
|
2188
2182
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2189
2183
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
2190
2184
|
value !== null &&
|
|
@@ -6,7 +6,6 @@ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fe
|
|
|
6
6
|
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
7
7
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
8
8
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
9
|
-
import { sdkStreamMixin } from "@aws-sdk/util-stream-browser";
|
|
10
9
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
11
10
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
12
11
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
@@ -29,7 +28,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
29
28
|
region: config?.region ?? invalidProvider("Region is missing"),
|
|
30
29
|
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
31
30
|
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
32
|
-
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
33
31
|
sha256: config?.sha256 ?? Sha256,
|
|
34
32
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
35
33
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -9,7 +9,6 @@ import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
10
10
|
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
11
11
|
import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
|
|
12
|
-
import { sdkStreamMixin } from "@aws-sdk/util-stream-node";
|
|
13
12
|
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
14
13
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
15
14
|
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
@@ -38,7 +37,6 @@ export const getRuntimeConfig = (config) => {
|
|
|
38
37
|
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
39
38
|
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
40
39
|
}),
|
|
41
|
-
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
42
40
|
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
43
41
|
streamCollector: config?.streamCollector ?? streamCollector,
|
|
44
42
|
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NoOpLogger } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { parseUrl } from "@aws-sdk/url-parser";
|
|
3
3
|
import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
|
|
4
|
+
import { sdkStreamMixin } from "@aws-sdk/util-stream";
|
|
4
5
|
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8";
|
|
5
6
|
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
6
7
|
export const getRuntimeConfig = (config) => ({
|
|
@@ -10,6 +11,7 @@ export const getRuntimeConfig = (config) => ({
|
|
|
10
11
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
11
12
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
12
13
|
logger: config?.logger ?? new NoOpLogger(),
|
|
14
|
+
sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
|
|
13
15
|
serviceId: config?.serviceId ?? "Glacier",
|
|
14
16
|
urlParser: config?.urlParser ?? parseUrl,
|
|
15
17
|
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
@@ -106,7 +106,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
106
106
|
*/
|
|
107
107
|
runtime?: string;
|
|
108
108
|
/**
|
|
109
|
-
* Disable
|
|
109
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
110
110
|
* trait of an operation.
|
|
111
111
|
*/
|
|
112
112
|
disableHostPrefix?: boolean;
|
|
@@ -8,11 +8,6 @@ import { ArchiveCreationOutput, UploadArchiveInput } from "../models/models_0";
|
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
10
|
export { __MetadataBearer, $Command };
|
|
11
|
-
/**
|
|
12
|
-
* @public
|
|
13
|
-
*
|
|
14
|
-
* The input for {@link UploadArchiveCommand}.
|
|
15
|
-
*/
|
|
16
11
|
export type UploadArchiveCommandInputType = Omit<UploadArchiveInput, "body"> & {
|
|
17
12
|
/**
|
|
18
13
|
* For *`UploadArchiveInput["body"]`*, see {@link UploadArchiveInput.body}.
|
|
@@ -20,7 +15,9 @@ export type UploadArchiveCommandInputType = Omit<UploadArchiveInput, "body"> & {
|
|
|
20
15
|
body?: UploadArchiveInput["body"] | string | Uint8Array | Buffer;
|
|
21
16
|
};
|
|
22
17
|
/**
|
|
23
|
-
*
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The input for {@link UploadArchiveCommand}.
|
|
24
21
|
*/
|
|
25
22
|
export interface UploadArchiveCommandInput extends UploadArchiveCommandInputType {
|
|
26
23
|
}
|
|
@@ -8,11 +8,6 @@ import { UploadMultipartPartInput, UploadMultipartPartOutput } from "../models/m
|
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
|
10
10
|
export { __MetadataBearer, $Command };
|
|
11
|
-
/**
|
|
12
|
-
* @public
|
|
13
|
-
*
|
|
14
|
-
* The input for {@link UploadMultipartPartCommand}.
|
|
15
|
-
*/
|
|
16
11
|
export type UploadMultipartPartCommandInputType = Omit<UploadMultipartPartInput, "body"> & {
|
|
17
12
|
/**
|
|
18
13
|
* For *`UploadMultipartPartInput["body"]`*, see {@link UploadMultipartPartInput.body}.
|
|
@@ -20,7 +15,9 @@ export type UploadMultipartPartCommandInputType = Omit<UploadMultipartPartInput,
|
|
|
20
15
|
body?: UploadMultipartPartInput["body"] | string | Uint8Array | Buffer;
|
|
21
16
|
};
|
|
22
17
|
/**
|
|
23
|
-
*
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The input for {@link UploadMultipartPartCommand}.
|
|
24
21
|
*/
|
|
25
22
|
export interface UploadMultipartPartCommandInput extends UploadMultipartPartCommandInputType {
|
|
26
23
|
}
|
|
@@ -17,7 +17,6 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
|
|
|
17
17
|
region: string | import("@aws-sdk/types").Provider<any>;
|
|
18
18
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
|
|
19
19
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
20
|
-
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
21
20
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
22
21
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
23
22
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) & (boolean | import("@aws-sdk/types").Provider<boolean>);
|
|
@@ -31,6 +30,7 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
|
|
|
31
30
|
disableHostPrefix: boolean;
|
|
32
31
|
serviceId: string;
|
|
33
32
|
logger: import("@aws-sdk/types").Logger;
|
|
33
|
+
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
34
34
|
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@smithy/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
35
35
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
36
36
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
@@ -17,7 +17,6 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
|
|
|
17
17
|
region: string | import("@aws-sdk/types").Provider<string>;
|
|
18
18
|
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@smithy/protocol-http").HttpHandler) | RequestHandler;
|
|
19
19
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
20
|
-
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
21
20
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
22
21
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
23
22
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
@@ -31,6 +30,7 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
|
|
|
31
30
|
disableHostPrefix: boolean;
|
|
32
31
|
serviceId: string;
|
|
33
32
|
logger: import("@aws-sdk/types").Logger;
|
|
33
|
+
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
34
34
|
endpoint?: ((string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@aws-sdk/types").Provider<import("@aws-sdk/types").EndpointV2>) & (string | import("@smithy/types").Provider<string> | import("@smithy/types").Endpoint | import("@smithy/types").Provider<import("@smithy/types").Endpoint> | import("@aws-sdk/types").EndpointV2 | import("@smithy/types").Provider<import("@aws-sdk/types").EndpointV2>)) | undefined;
|
|
35
35
|
endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: {
|
|
36
36
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
@@ -11,6 +11,7 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
|
|
|
11
11
|
logger?: import("@aws-sdk/types").Logger | undefined;
|
|
12
12
|
}) => import("@aws-sdk/types").EndpointV2;
|
|
13
13
|
logger: import("@aws-sdk/types").Logger;
|
|
14
|
+
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
14
15
|
serviceId: string;
|
|
15
16
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
16
17
|
utf8Decoder: import("@smithy/types").Decoder;
|
|
@@ -33,7 +33,6 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
|
|
|
33
33
|
import("@smithy/protocol-http").HttpHandler)
|
|
34
34
|
| RequestHandler;
|
|
35
35
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
36
|
-
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
37
36
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
38
37
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
39
38
|
useDualstackEndpoint: (boolean | import("@smithy/types").Provider<boolean>) &
|
|
@@ -49,6 +48,7 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
|
|
|
49
48
|
disableHostPrefix: boolean;
|
|
50
49
|
serviceId: string;
|
|
51
50
|
logger: import("@aws-sdk/types").Logger;
|
|
51
|
+
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
52
52
|
endpoint?:
|
|
53
53
|
| ((
|
|
54
54
|
| string
|
|
@@ -32,7 +32,6 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
|
|
|
32
32
|
import("@smithy/protocol-http").HttpHandler)
|
|
33
33
|
| RequestHandler;
|
|
34
34
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
35
|
-
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
36
35
|
sha256: import("@aws-sdk/types").HashConstructor;
|
|
37
36
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
38
37
|
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
|
|
@@ -46,6 +45,7 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
|
|
|
46
45
|
disableHostPrefix: boolean;
|
|
47
46
|
serviceId: string;
|
|
48
47
|
logger: import("@aws-sdk/types").Logger;
|
|
48
|
+
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
49
49
|
endpoint?:
|
|
50
50
|
| ((
|
|
51
51
|
| string
|
|
@@ -11,6 +11,7 @@ export declare const getRuntimeConfig: (config: GlacierClientConfig) => {
|
|
|
11
11
|
}
|
|
12
12
|
) => import("@aws-sdk/types").EndpointV2;
|
|
13
13
|
logger: import("@aws-sdk/types").Logger;
|
|
14
|
+
sdkStreamMixin: import("@aws-sdk/types").SdkStreamMixinInjector;
|
|
14
15
|
serviceId: string;
|
|
15
16
|
urlParser: import("@aws-sdk/types").UrlParser;
|
|
16
17
|
utf8Decoder: import("@smithy/types").Decoder;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-glacier",
|
|
3
3
|
"description": "AWS SDK for JavaScript Glacier Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.357.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,42 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/body-checksum-browser": "3.
|
|
25
|
-
"@aws-sdk/body-checksum-node": "3.
|
|
26
|
-
"@aws-sdk/client-sts": "3.
|
|
27
|
-
"@aws-sdk/config-resolver": "3.
|
|
28
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
29
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
30
|
-
"@aws-sdk/hash-node": "3.
|
|
31
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
32
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
33
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
34
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
35
|
-
"@aws-sdk/middleware-logger": "3.
|
|
36
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
37
|
-
"@aws-sdk/middleware-retry": "3.
|
|
38
|
-
"@aws-sdk/middleware-sdk-glacier": "3.
|
|
39
|
-
"@aws-sdk/middleware-serde": "3.
|
|
40
|
-
"@aws-sdk/middleware-signing": "3.
|
|
41
|
-
"@aws-sdk/middleware-stack": "3.
|
|
42
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
43
|
-
"@aws-sdk/node-config-provider": "3.
|
|
44
|
-
"@aws-sdk/node-http-handler": "3.
|
|
45
|
-
"@aws-sdk/smithy-client": "3.
|
|
46
|
-
"@aws-sdk/types": "3.
|
|
47
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/body-checksum-browser": "3.357.0",
|
|
25
|
+
"@aws-sdk/body-checksum-node": "3.357.0",
|
|
26
|
+
"@aws-sdk/client-sts": "3.357.0",
|
|
27
|
+
"@aws-sdk/config-resolver": "3.357.0",
|
|
28
|
+
"@aws-sdk/credential-provider-node": "3.357.0",
|
|
29
|
+
"@aws-sdk/fetch-http-handler": "3.357.0",
|
|
30
|
+
"@aws-sdk/hash-node": "3.357.0",
|
|
31
|
+
"@aws-sdk/invalid-dependency": "3.357.0",
|
|
32
|
+
"@aws-sdk/middleware-content-length": "3.357.0",
|
|
33
|
+
"@aws-sdk/middleware-endpoint": "3.357.0",
|
|
34
|
+
"@aws-sdk/middleware-host-header": "3.357.0",
|
|
35
|
+
"@aws-sdk/middleware-logger": "3.357.0",
|
|
36
|
+
"@aws-sdk/middleware-recursion-detection": "3.357.0",
|
|
37
|
+
"@aws-sdk/middleware-retry": "3.357.0",
|
|
38
|
+
"@aws-sdk/middleware-sdk-glacier": "3.357.0",
|
|
39
|
+
"@aws-sdk/middleware-serde": "3.357.0",
|
|
40
|
+
"@aws-sdk/middleware-signing": "3.357.0",
|
|
41
|
+
"@aws-sdk/middleware-stack": "3.357.0",
|
|
42
|
+
"@aws-sdk/middleware-user-agent": "3.357.0",
|
|
43
|
+
"@aws-sdk/node-config-provider": "3.357.0",
|
|
44
|
+
"@aws-sdk/node-http-handler": "3.357.0",
|
|
45
|
+
"@aws-sdk/smithy-client": "3.357.0",
|
|
46
|
+
"@aws-sdk/types": "3.357.0",
|
|
47
|
+
"@aws-sdk/url-parser": "3.357.0",
|
|
48
48
|
"@aws-sdk/util-base64": "3.310.0",
|
|
49
49
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
50
50
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
51
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
52
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
53
|
-
"@aws-sdk/util-endpoints": "3.
|
|
54
|
-
"@aws-sdk/util-retry": "3.
|
|
55
|
-
"@aws-sdk/util-stream
|
|
56
|
-
"@aws-sdk/util-
|
|
57
|
-
"@aws-sdk/util-user-agent-
|
|
58
|
-
"@aws-sdk/util-user-agent-node": "3.353.0",
|
|
51
|
+
"@aws-sdk/util-defaults-mode-browser": "3.357.0",
|
|
52
|
+
"@aws-sdk/util-defaults-mode-node": "3.357.0",
|
|
53
|
+
"@aws-sdk/util-endpoints": "3.357.0",
|
|
54
|
+
"@aws-sdk/util-retry": "3.357.0",
|
|
55
|
+
"@aws-sdk/util-stream": "3.357.0",
|
|
56
|
+
"@aws-sdk/util-user-agent-browser": "3.357.0",
|
|
57
|
+
"@aws-sdk/util-user-agent-node": "3.357.0",
|
|
59
58
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
60
|
-
"@aws-sdk/util-waiter": "3.
|
|
59
|
+
"@aws-sdk/util-waiter": "3.357.0",
|
|
61
60
|
"@smithy/protocol-http": "^1.0.1",
|
|
62
61
|
"@smithy/types": "^1.0.0",
|
|
63
62
|
"tslib": "^2.5.0"
|