@aws-sdk/client-mgn 3.354.0 → 3.358.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.
|
@@ -1548,7 +1548,7 @@ const de_AssociateApplicationsCommand = async (output, context) => {
|
|
|
1548
1548
|
const contents = (0, smithy_client_1.map)({
|
|
1549
1549
|
$metadata: deserializeMetadata(output),
|
|
1550
1550
|
});
|
|
1551
|
-
await collectBody(output.body, context);
|
|
1551
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1552
1552
|
return contents;
|
|
1553
1553
|
};
|
|
1554
1554
|
exports.de_AssociateApplicationsCommand = de_AssociateApplicationsCommand;
|
|
@@ -1587,7 +1587,7 @@ const de_AssociateSourceServersCommand = async (output, context) => {
|
|
|
1587
1587
|
const contents = (0, smithy_client_1.map)({
|
|
1588
1588
|
$metadata: deserializeMetadata(output),
|
|
1589
1589
|
});
|
|
1590
|
-
await collectBody(output.body, context);
|
|
1590
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1591
1591
|
return contents;
|
|
1592
1592
|
};
|
|
1593
1593
|
exports.de_AssociateSourceServersCommand = de_AssociateSourceServersCommand;
|
|
@@ -1888,7 +1888,7 @@ const de_DeleteApplicationCommand = 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_DeleteApplicationCommand = de_DeleteApplicationCommand;
|
|
@@ -1924,7 +1924,7 @@ const de_DeleteJobCommand = async (output, context) => {
|
|
|
1924
1924
|
const contents = (0, smithy_client_1.map)({
|
|
1925
1925
|
$metadata: deserializeMetadata(output),
|
|
1926
1926
|
});
|
|
1927
|
-
await collectBody(output.body, context);
|
|
1927
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1928
1928
|
return contents;
|
|
1929
1929
|
};
|
|
1930
1930
|
exports.de_DeleteJobCommand = de_DeleteJobCommand;
|
|
@@ -1960,7 +1960,7 @@ const de_DeleteLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
|
1960
1960
|
const contents = (0, smithy_client_1.map)({
|
|
1961
1961
|
$metadata: deserializeMetadata(output),
|
|
1962
1962
|
});
|
|
1963
|
-
await collectBody(output.body, context);
|
|
1963
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1964
1964
|
return contents;
|
|
1965
1965
|
};
|
|
1966
1966
|
exports.de_DeleteLaunchConfigurationTemplateCommand = de_DeleteLaunchConfigurationTemplateCommand;
|
|
@@ -1996,7 +1996,7 @@ const de_DeleteReplicationConfigurationTemplateCommand = async (output, context)
|
|
|
1996
1996
|
const contents = (0, smithy_client_1.map)({
|
|
1997
1997
|
$metadata: deserializeMetadata(output),
|
|
1998
1998
|
});
|
|
1999
|
-
await collectBody(output.body, context);
|
|
1999
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2000
2000
|
return contents;
|
|
2001
2001
|
};
|
|
2002
2002
|
exports.de_DeleteReplicationConfigurationTemplateCommand = de_DeleteReplicationConfigurationTemplateCommand;
|
|
@@ -2032,7 +2032,7 @@ const de_DeleteSourceServerCommand = async (output, context) => {
|
|
|
2032
2032
|
const contents = (0, smithy_client_1.map)({
|
|
2033
2033
|
$metadata: deserializeMetadata(output),
|
|
2034
2034
|
});
|
|
2035
|
-
await collectBody(output.body, context);
|
|
2035
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2036
2036
|
return contents;
|
|
2037
2037
|
};
|
|
2038
2038
|
exports.de_DeleteSourceServerCommand = de_DeleteSourceServerCommand;
|
|
@@ -2068,7 +2068,7 @@ const de_DeleteVcenterClientCommand = async (output, context) => {
|
|
|
2068
2068
|
const contents = (0, smithy_client_1.map)({
|
|
2069
2069
|
$metadata: deserializeMetadata(output),
|
|
2070
2070
|
});
|
|
2071
|
-
await collectBody(output.body, context);
|
|
2071
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2072
2072
|
return contents;
|
|
2073
2073
|
};
|
|
2074
2074
|
exports.de_DeleteVcenterClientCommand = de_DeleteVcenterClientCommand;
|
|
@@ -2104,7 +2104,7 @@ const de_DeleteWaveCommand = async (output, context) => {
|
|
|
2104
2104
|
const contents = (0, smithy_client_1.map)({
|
|
2105
2105
|
$metadata: deserializeMetadata(output),
|
|
2106
2106
|
});
|
|
2107
|
-
await collectBody(output.body, context);
|
|
2107
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2108
2108
|
return contents;
|
|
2109
2109
|
};
|
|
2110
2110
|
exports.de_DeleteWaveCommand = de_DeleteWaveCommand;
|
|
@@ -2377,7 +2377,7 @@ const de_DisassociateApplicationsCommand = async (output, context) => {
|
|
|
2377
2377
|
const contents = (0, smithy_client_1.map)({
|
|
2378
2378
|
$metadata: deserializeMetadata(output),
|
|
2379
2379
|
});
|
|
2380
|
-
await collectBody(output.body, context);
|
|
2380
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2381
2381
|
return contents;
|
|
2382
2382
|
};
|
|
2383
2383
|
exports.de_DisassociateApplicationsCommand = de_DisassociateApplicationsCommand;
|
|
@@ -2413,7 +2413,7 @@ const de_DisassociateSourceServersCommand = async (output, context) => {
|
|
|
2413
2413
|
const contents = (0, smithy_client_1.map)({
|
|
2414
2414
|
$metadata: deserializeMetadata(output),
|
|
2415
2415
|
});
|
|
2416
|
-
await collectBody(output.body, context);
|
|
2416
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2417
2417
|
return contents;
|
|
2418
2418
|
};
|
|
2419
2419
|
exports.de_DisassociateSourceServersCommand = de_DisassociateSourceServersCommand;
|
|
@@ -2655,7 +2655,7 @@ const de_InitializeServiceCommand = async (output, context) => {
|
|
|
2655
2655
|
const contents = (0, smithy_client_1.map)({
|
|
2656
2656
|
$metadata: deserializeMetadata(output),
|
|
2657
2657
|
});
|
|
2658
|
-
await collectBody(output.body, context);
|
|
2658
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2659
2659
|
return contents;
|
|
2660
2660
|
};
|
|
2661
2661
|
exports.de_InitializeServiceCommand = de_InitializeServiceCommand;
|
|
@@ -3190,7 +3190,7 @@ const de_RemoveSourceServerActionCommand = async (output, context) => {
|
|
|
3190
3190
|
const contents = (0, smithy_client_1.map)({
|
|
3191
3191
|
$metadata: deserializeMetadata(output),
|
|
3192
3192
|
});
|
|
3193
|
-
await collectBody(output.body, context);
|
|
3193
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3194
3194
|
return contents;
|
|
3195
3195
|
};
|
|
3196
3196
|
exports.de_RemoveSourceServerActionCommand = de_RemoveSourceServerActionCommand;
|
|
@@ -3226,7 +3226,7 @@ const de_RemoveTemplateActionCommand = async (output, context) => {
|
|
|
3226
3226
|
const contents = (0, smithy_client_1.map)({
|
|
3227
3227
|
$metadata: deserializeMetadata(output),
|
|
3228
3228
|
});
|
|
3229
|
-
await collectBody(output.body, context);
|
|
3229
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3230
3230
|
return contents;
|
|
3231
3231
|
};
|
|
3232
3232
|
exports.de_RemoveTemplateActionCommand = de_RemoveTemplateActionCommand;
|
|
@@ -3538,7 +3538,7 @@ const de_TagResourceCommand = async (output, context) => {
|
|
|
3538
3538
|
const contents = (0, smithy_client_1.map)({
|
|
3539
3539
|
$metadata: deserializeMetadata(output),
|
|
3540
3540
|
});
|
|
3541
|
-
await collectBody(output.body, context);
|
|
3541
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3542
3542
|
return contents;
|
|
3543
3543
|
};
|
|
3544
3544
|
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
@@ -3717,7 +3717,7 @@ const de_UntagResourceCommand = async (output, context) => {
|
|
|
3717
3717
|
const contents = (0, smithy_client_1.map)({
|
|
3718
3718
|
$metadata: deserializeMetadata(output),
|
|
3719
3719
|
});
|
|
3720
|
-
await collectBody(output.body, context);
|
|
3720
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3721
3721
|
return contents;
|
|
3722
3722
|
};
|
|
3723
3723
|
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
@@ -4320,13 +4320,7 @@ const deserializeMetadata = (output) => ({
|
|
|
4320
4320
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4321
4321
|
cfId: output.headers["x-amz-cf-id"],
|
|
4322
4322
|
});
|
|
4323
|
-
const
|
|
4324
|
-
if (streamBody instanceof Uint8Array) {
|
|
4325
|
-
return Promise.resolve(streamBody);
|
|
4326
|
-
}
|
|
4327
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4328
|
-
};
|
|
4329
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4323
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4330
4324
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
4331
4325
|
value !== null &&
|
|
4332
4326
|
value !== "" &&
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _json, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, resolvedPath as __resolvedPath, strictParseLong as __strictParseLong, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseFloat32 as __limitedParseFloat32, map, resolvedPath as __resolvedPath, strictParseLong as __strictParseLong, take, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { MgnServiceException as __BaseException } from "../models/MgnServiceException";
|
|
@@ -4193,12 +4193,6 @@ const deserializeMetadata = (output) => ({
|
|
|
4193
4193
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4194
4194
|
cfId: output.headers["x-amz-cf-id"],
|
|
4195
4195
|
});
|
|
4196
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
4197
|
-
if (streamBody instanceof Uint8Array) {
|
|
4198
|
-
return Promise.resolve(streamBody);
|
|
4199
|
-
}
|
|
4200
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
4201
|
-
};
|
|
4202
4196
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4203
4197
|
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
4204
4198
|
value !== null &&
|
|
@@ -134,7 +134,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
134
134
|
*/
|
|
135
135
|
runtime?: string;
|
|
136
136
|
/**
|
|
137
|
-
* Disable
|
|
137
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
138
138
|
* trait of an operation.
|
|
139
139
|
*/
|
|
140
140
|
disableHostPrefix?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mgn",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mgn Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.358.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,36 +21,36 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
31
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
32
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
33
|
-
"@aws-sdk/middleware-logger": "3.
|
|
34
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
35
|
-
"@aws-sdk/middleware-retry": "3.
|
|
36
|
-
"@aws-sdk/middleware-serde": "3.
|
|
37
|
-
"@aws-sdk/middleware-signing": "3.
|
|
38
|
-
"@aws-sdk/middleware-stack": "3.
|
|
39
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
40
|
-
"@aws-sdk/node-config-provider": "3.
|
|
41
|
-
"@aws-sdk/node-http-handler": "3.
|
|
42
|
-
"@aws-sdk/smithy-client": "3.
|
|
43
|
-
"@aws-sdk/types": "3.
|
|
44
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.358.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.357.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.358.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.357.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.357.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.357.0",
|
|
30
|
+
"@aws-sdk/middleware-content-length": "3.357.0",
|
|
31
|
+
"@aws-sdk/middleware-endpoint": "3.357.0",
|
|
32
|
+
"@aws-sdk/middleware-host-header": "3.357.0",
|
|
33
|
+
"@aws-sdk/middleware-logger": "3.357.0",
|
|
34
|
+
"@aws-sdk/middleware-recursion-detection": "3.357.0",
|
|
35
|
+
"@aws-sdk/middleware-retry": "3.357.0",
|
|
36
|
+
"@aws-sdk/middleware-serde": "3.357.0",
|
|
37
|
+
"@aws-sdk/middleware-signing": "3.357.0",
|
|
38
|
+
"@aws-sdk/middleware-stack": "3.357.0",
|
|
39
|
+
"@aws-sdk/middleware-user-agent": "3.357.0",
|
|
40
|
+
"@aws-sdk/node-config-provider": "3.357.0",
|
|
41
|
+
"@aws-sdk/node-http-handler": "3.357.0",
|
|
42
|
+
"@aws-sdk/smithy-client": "3.358.0",
|
|
43
|
+
"@aws-sdk/types": "3.357.0",
|
|
44
|
+
"@aws-sdk/url-parser": "3.357.0",
|
|
45
45
|
"@aws-sdk/util-base64": "3.310.0",
|
|
46
46
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
47
47
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
48
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
49
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
50
|
-
"@aws-sdk/util-endpoints": "3.
|
|
51
|
-
"@aws-sdk/util-retry": "3.
|
|
52
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
53
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
48
|
+
"@aws-sdk/util-defaults-mode-browser": "3.358.0",
|
|
49
|
+
"@aws-sdk/util-defaults-mode-node": "3.358.0",
|
|
50
|
+
"@aws-sdk/util-endpoints": "3.357.0",
|
|
51
|
+
"@aws-sdk/util-retry": "3.357.0",
|
|
52
|
+
"@aws-sdk/util-user-agent-browser": "3.357.0",
|
|
53
|
+
"@aws-sdk/util-user-agent-node": "3.357.0",
|
|
54
54
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
55
55
|
"@smithy/protocol-http": "^1.0.1",
|
|
56
56
|
"@smithy/types": "^1.0.0",
|