@aws-sdk/client-fsx 3.526.0 → 3.529.1
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/index.js +48 -88
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -369,6 +369,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
369
369
|
var import_types = require("@smithy/types");
|
|
370
370
|
|
|
371
371
|
// src/protocols/Aws_json1_1.ts
|
|
372
|
+
var import_core2 = require("@aws-sdk/core");
|
|
372
373
|
|
|
373
374
|
|
|
374
375
|
var import_uuid = require("uuid");
|
|
@@ -1843,7 +1844,7 @@ var de_AssociateFileSystemAliasesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1843
1844
|
if (output.statusCode >= 300) {
|
|
1844
1845
|
return de_CommandError(output, context);
|
|
1845
1846
|
}
|
|
1846
|
-
const data = await
|
|
1847
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1847
1848
|
let contents = {};
|
|
1848
1849
|
contents = (0, import_smithy_client._json)(data);
|
|
1849
1850
|
const response = {
|
|
@@ -1856,7 +1857,7 @@ var de_CancelDataRepositoryTaskCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1856
1857
|
if (output.statusCode >= 300) {
|
|
1857
1858
|
return de_CommandError(output, context);
|
|
1858
1859
|
}
|
|
1859
|
-
const data = await
|
|
1860
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1860
1861
|
let contents = {};
|
|
1861
1862
|
contents = (0, import_smithy_client._json)(data);
|
|
1862
1863
|
const response = {
|
|
@@ -1869,7 +1870,7 @@ var de_CopyBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1869
1870
|
if (output.statusCode >= 300) {
|
|
1870
1871
|
return de_CommandError(output, context);
|
|
1871
1872
|
}
|
|
1872
|
-
const data = await
|
|
1873
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1873
1874
|
let contents = {};
|
|
1874
1875
|
contents = de_CopyBackupResponse(data, context);
|
|
1875
1876
|
const response = {
|
|
@@ -1882,7 +1883,7 @@ var de_CopySnapshotAndUpdateVolumeCommand = /* @__PURE__ */ __name(async (output
|
|
|
1882
1883
|
if (output.statusCode >= 300) {
|
|
1883
1884
|
return de_CommandError(output, context);
|
|
1884
1885
|
}
|
|
1885
|
-
const data = await
|
|
1886
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1886
1887
|
let contents = {};
|
|
1887
1888
|
contents = de_CopySnapshotAndUpdateVolumeResponse(data, context);
|
|
1888
1889
|
const response = {
|
|
@@ -1895,7 +1896,7 @@ var de_CreateBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1895
1896
|
if (output.statusCode >= 300) {
|
|
1896
1897
|
return de_CommandError(output, context);
|
|
1897
1898
|
}
|
|
1898
|
-
const data = await
|
|
1899
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1899
1900
|
let contents = {};
|
|
1900
1901
|
contents = de_CreateBackupResponse(data, context);
|
|
1901
1902
|
const response = {
|
|
@@ -1908,7 +1909,7 @@ var de_CreateDataRepositoryAssociationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1908
1909
|
if (output.statusCode >= 300) {
|
|
1909
1910
|
return de_CommandError(output, context);
|
|
1910
1911
|
}
|
|
1911
|
-
const data = await
|
|
1912
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1912
1913
|
let contents = {};
|
|
1913
1914
|
contents = de_CreateDataRepositoryAssociationResponse(data, context);
|
|
1914
1915
|
const response = {
|
|
@@ -1921,7 +1922,7 @@ var de_CreateDataRepositoryTaskCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1921
1922
|
if (output.statusCode >= 300) {
|
|
1922
1923
|
return de_CommandError(output, context);
|
|
1923
1924
|
}
|
|
1924
|
-
const data = await
|
|
1925
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1925
1926
|
let contents = {};
|
|
1926
1927
|
contents = de_CreateDataRepositoryTaskResponse(data, context);
|
|
1927
1928
|
const response = {
|
|
@@ -1934,7 +1935,7 @@ var de_CreateFileCacheCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1934
1935
|
if (output.statusCode >= 300) {
|
|
1935
1936
|
return de_CommandError(output, context);
|
|
1936
1937
|
}
|
|
1937
|
-
const data = await
|
|
1938
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1938
1939
|
let contents = {};
|
|
1939
1940
|
contents = de_CreateFileCacheResponse(data, context);
|
|
1940
1941
|
const response = {
|
|
@@ -1947,7 +1948,7 @@ var de_CreateFileSystemCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1947
1948
|
if (output.statusCode >= 300) {
|
|
1948
1949
|
return de_CommandError(output, context);
|
|
1949
1950
|
}
|
|
1950
|
-
const data = await
|
|
1951
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1951
1952
|
let contents = {};
|
|
1952
1953
|
contents = de_CreateFileSystemResponse(data, context);
|
|
1953
1954
|
const response = {
|
|
@@ -1960,7 +1961,7 @@ var de_CreateFileSystemFromBackupCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1960
1961
|
if (output.statusCode >= 300) {
|
|
1961
1962
|
return de_CommandError(output, context);
|
|
1962
1963
|
}
|
|
1963
|
-
const data = await
|
|
1964
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1964
1965
|
let contents = {};
|
|
1965
1966
|
contents = de_CreateFileSystemFromBackupResponse(data, context);
|
|
1966
1967
|
const response = {
|
|
@@ -1973,7 +1974,7 @@ var de_CreateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1973
1974
|
if (output.statusCode >= 300) {
|
|
1974
1975
|
return de_CommandError(output, context);
|
|
1975
1976
|
}
|
|
1976
|
-
const data = await
|
|
1977
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1977
1978
|
let contents = {};
|
|
1978
1979
|
contents = de_CreateSnapshotResponse(data, context);
|
|
1979
1980
|
const response = {
|
|
@@ -1986,7 +1987,7 @@ var de_CreateStorageVirtualMachineCommand = /* @__PURE__ */ __name(async (output
|
|
|
1986
1987
|
if (output.statusCode >= 300) {
|
|
1987
1988
|
return de_CommandError(output, context);
|
|
1988
1989
|
}
|
|
1989
|
-
const data = await
|
|
1990
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1990
1991
|
let contents = {};
|
|
1991
1992
|
contents = de_CreateStorageVirtualMachineResponse(data, context);
|
|
1992
1993
|
const response = {
|
|
@@ -1999,7 +2000,7 @@ var de_CreateVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1999
2000
|
if (output.statusCode >= 300) {
|
|
2000
2001
|
return de_CommandError(output, context);
|
|
2001
2002
|
}
|
|
2002
|
-
const data = await
|
|
2003
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2003
2004
|
let contents = {};
|
|
2004
2005
|
contents = de_CreateVolumeResponse(data, context);
|
|
2005
2006
|
const response = {
|
|
@@ -2012,7 +2013,7 @@ var de_CreateVolumeFromBackupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2012
2013
|
if (output.statusCode >= 300) {
|
|
2013
2014
|
return de_CommandError(output, context);
|
|
2014
2015
|
}
|
|
2015
|
-
const data = await
|
|
2016
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2016
2017
|
let contents = {};
|
|
2017
2018
|
contents = de_CreateVolumeFromBackupResponse(data, context);
|
|
2018
2019
|
const response = {
|
|
@@ -2025,7 +2026,7 @@ var de_DeleteBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2025
2026
|
if (output.statusCode >= 300) {
|
|
2026
2027
|
return de_CommandError(output, context);
|
|
2027
2028
|
}
|
|
2028
|
-
const data = await
|
|
2029
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2029
2030
|
let contents = {};
|
|
2030
2031
|
contents = (0, import_smithy_client._json)(data);
|
|
2031
2032
|
const response = {
|
|
@@ -2038,7 +2039,7 @@ var de_DeleteDataRepositoryAssociationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2038
2039
|
if (output.statusCode >= 300) {
|
|
2039
2040
|
return de_CommandError(output, context);
|
|
2040
2041
|
}
|
|
2041
|
-
const data = await
|
|
2042
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2042
2043
|
let contents = {};
|
|
2043
2044
|
contents = (0, import_smithy_client._json)(data);
|
|
2044
2045
|
const response = {
|
|
@@ -2051,7 +2052,7 @@ var de_DeleteFileCacheCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2051
2052
|
if (output.statusCode >= 300) {
|
|
2052
2053
|
return de_CommandError(output, context);
|
|
2053
2054
|
}
|
|
2054
|
-
const data = await
|
|
2055
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2055
2056
|
let contents = {};
|
|
2056
2057
|
contents = (0, import_smithy_client._json)(data);
|
|
2057
2058
|
const response = {
|
|
@@ -2064,7 +2065,7 @@ var de_DeleteFileSystemCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2064
2065
|
if (output.statusCode >= 300) {
|
|
2065
2066
|
return de_CommandError(output, context);
|
|
2066
2067
|
}
|
|
2067
|
-
const data = await
|
|
2068
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2068
2069
|
let contents = {};
|
|
2069
2070
|
contents = (0, import_smithy_client._json)(data);
|
|
2070
2071
|
const response = {
|
|
@@ -2077,7 +2078,7 @@ var de_DeleteSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2077
2078
|
if (output.statusCode >= 300) {
|
|
2078
2079
|
return de_CommandError(output, context);
|
|
2079
2080
|
}
|
|
2080
|
-
const data = await
|
|
2081
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2081
2082
|
let contents = {};
|
|
2082
2083
|
contents = (0, import_smithy_client._json)(data);
|
|
2083
2084
|
const response = {
|
|
@@ -2090,7 +2091,7 @@ var de_DeleteStorageVirtualMachineCommand = /* @__PURE__ */ __name(async (output
|
|
|
2090
2091
|
if (output.statusCode >= 300) {
|
|
2091
2092
|
return de_CommandError(output, context);
|
|
2092
2093
|
}
|
|
2093
|
-
const data = await
|
|
2094
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2094
2095
|
let contents = {};
|
|
2095
2096
|
contents = (0, import_smithy_client._json)(data);
|
|
2096
2097
|
const response = {
|
|
@@ -2103,7 +2104,7 @@ var de_DeleteVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2103
2104
|
if (output.statusCode >= 300) {
|
|
2104
2105
|
return de_CommandError(output, context);
|
|
2105
2106
|
}
|
|
2106
|
-
const data = await
|
|
2107
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2107
2108
|
let contents = {};
|
|
2108
2109
|
contents = (0, import_smithy_client._json)(data);
|
|
2109
2110
|
const response = {
|
|
@@ -2116,7 +2117,7 @@ var de_DescribeBackupsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2116
2117
|
if (output.statusCode >= 300) {
|
|
2117
2118
|
return de_CommandError(output, context);
|
|
2118
2119
|
}
|
|
2119
|
-
const data = await
|
|
2120
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2120
2121
|
let contents = {};
|
|
2121
2122
|
contents = de_DescribeBackupsResponse(data, context);
|
|
2122
2123
|
const response = {
|
|
@@ -2129,7 +2130,7 @@ var de_DescribeDataRepositoryAssociationsCommand = /* @__PURE__ */ __name(async
|
|
|
2129
2130
|
if (output.statusCode >= 300) {
|
|
2130
2131
|
return de_CommandError(output, context);
|
|
2131
2132
|
}
|
|
2132
|
-
const data = await
|
|
2133
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2133
2134
|
let contents = {};
|
|
2134
2135
|
contents = de_DescribeDataRepositoryAssociationsResponse(data, context);
|
|
2135
2136
|
const response = {
|
|
@@ -2142,7 +2143,7 @@ var de_DescribeDataRepositoryTasksCommand = /* @__PURE__ */ __name(async (output
|
|
|
2142
2143
|
if (output.statusCode >= 300) {
|
|
2143
2144
|
return de_CommandError(output, context);
|
|
2144
2145
|
}
|
|
2145
|
-
const data = await
|
|
2146
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2146
2147
|
let contents = {};
|
|
2147
2148
|
contents = de_DescribeDataRepositoryTasksResponse(data, context);
|
|
2148
2149
|
const response = {
|
|
@@ -2155,7 +2156,7 @@ var de_DescribeFileCachesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
2155
2156
|
if (output.statusCode >= 300) {
|
|
2156
2157
|
return de_CommandError(output, context);
|
|
2157
2158
|
}
|
|
2158
|
-
const data = await
|
|
2159
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2159
2160
|
let contents = {};
|
|
2160
2161
|
contents = de_DescribeFileCachesResponse(data, context);
|
|
2161
2162
|
const response = {
|
|
@@ -2168,7 +2169,7 @@ var de_DescribeFileSystemAliasesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2168
2169
|
if (output.statusCode >= 300) {
|
|
2169
2170
|
return de_CommandError(output, context);
|
|
2170
2171
|
}
|
|
2171
|
-
const data = await
|
|
2172
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2172
2173
|
let contents = {};
|
|
2173
2174
|
contents = (0, import_smithy_client._json)(data);
|
|
2174
2175
|
const response = {
|
|
@@ -2181,7 +2182,7 @@ var de_DescribeFileSystemsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2181
2182
|
if (output.statusCode >= 300) {
|
|
2182
2183
|
return de_CommandError(output, context);
|
|
2183
2184
|
}
|
|
2184
|
-
const data = await
|
|
2185
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2185
2186
|
let contents = {};
|
|
2186
2187
|
contents = de_DescribeFileSystemsResponse(data, context);
|
|
2187
2188
|
const response = {
|
|
@@ -2194,7 +2195,7 @@ var de_DescribeSharedVpcConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
2194
2195
|
if (output.statusCode >= 300) {
|
|
2195
2196
|
return de_CommandError(output, context);
|
|
2196
2197
|
}
|
|
2197
|
-
const data = await
|
|
2198
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2198
2199
|
let contents = {};
|
|
2199
2200
|
contents = (0, import_smithy_client._json)(data);
|
|
2200
2201
|
const response = {
|
|
@@ -2207,7 +2208,7 @@ var de_DescribeSnapshotsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2207
2208
|
if (output.statusCode >= 300) {
|
|
2208
2209
|
return de_CommandError(output, context);
|
|
2209
2210
|
}
|
|
2210
|
-
const data = await
|
|
2211
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2211
2212
|
let contents = {};
|
|
2212
2213
|
contents = de_DescribeSnapshotsResponse(data, context);
|
|
2213
2214
|
const response = {
|
|
@@ -2220,7 +2221,7 @@ var de_DescribeStorageVirtualMachinesCommand = /* @__PURE__ */ __name(async (out
|
|
|
2220
2221
|
if (output.statusCode >= 300) {
|
|
2221
2222
|
return de_CommandError(output, context);
|
|
2222
2223
|
}
|
|
2223
|
-
const data = await
|
|
2224
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2224
2225
|
let contents = {};
|
|
2225
2226
|
contents = de_DescribeStorageVirtualMachinesResponse(data, context);
|
|
2226
2227
|
const response = {
|
|
@@ -2233,7 +2234,7 @@ var de_DescribeVolumesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2233
2234
|
if (output.statusCode >= 300) {
|
|
2234
2235
|
return de_CommandError(output, context);
|
|
2235
2236
|
}
|
|
2236
|
-
const data = await
|
|
2237
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2237
2238
|
let contents = {};
|
|
2238
2239
|
contents = de_DescribeVolumesResponse(data, context);
|
|
2239
2240
|
const response = {
|
|
@@ -2246,7 +2247,7 @@ var de_DisassociateFileSystemAliasesCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2246
2247
|
if (output.statusCode >= 300) {
|
|
2247
2248
|
return de_CommandError(output, context);
|
|
2248
2249
|
}
|
|
2249
|
-
const data = await
|
|
2250
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2250
2251
|
let contents = {};
|
|
2251
2252
|
contents = (0, import_smithy_client._json)(data);
|
|
2252
2253
|
const response = {
|
|
@@ -2259,7 +2260,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2259
2260
|
if (output.statusCode >= 300) {
|
|
2260
2261
|
return de_CommandError(output, context);
|
|
2261
2262
|
}
|
|
2262
|
-
const data = await
|
|
2263
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2263
2264
|
let contents = {};
|
|
2264
2265
|
contents = (0, import_smithy_client._json)(data);
|
|
2265
2266
|
const response = {
|
|
@@ -2272,7 +2273,7 @@ var de_ReleaseFileSystemNfsV3LocksCommand = /* @__PURE__ */ __name(async (output
|
|
|
2272
2273
|
if (output.statusCode >= 300) {
|
|
2273
2274
|
return de_CommandError(output, context);
|
|
2274
2275
|
}
|
|
2275
|
-
const data = await
|
|
2276
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2276
2277
|
let contents = {};
|
|
2277
2278
|
contents = de_ReleaseFileSystemNfsV3LocksResponse(data, context);
|
|
2278
2279
|
const response = {
|
|
@@ -2285,7 +2286,7 @@ var de_RestoreVolumeFromSnapshotCommand = /* @__PURE__ */ __name(async (output,
|
|
|
2285
2286
|
if (output.statusCode >= 300) {
|
|
2286
2287
|
return de_CommandError(output, context);
|
|
2287
2288
|
}
|
|
2288
|
-
const data = await
|
|
2289
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2289
2290
|
let contents = {};
|
|
2290
2291
|
contents = de_RestoreVolumeFromSnapshotResponse(data, context);
|
|
2291
2292
|
const response = {
|
|
@@ -2298,7 +2299,7 @@ var de_StartMisconfiguredStateRecoveryCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2298
2299
|
if (output.statusCode >= 300) {
|
|
2299
2300
|
return de_CommandError(output, context);
|
|
2300
2301
|
}
|
|
2301
|
-
const data = await
|
|
2302
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2302
2303
|
let contents = {};
|
|
2303
2304
|
contents = de_StartMisconfiguredStateRecoveryResponse(data, context);
|
|
2304
2305
|
const response = {
|
|
@@ -2311,7 +2312,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2311
2312
|
if (output.statusCode >= 300) {
|
|
2312
2313
|
return de_CommandError(output, context);
|
|
2313
2314
|
}
|
|
2314
|
-
const data = await
|
|
2315
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2315
2316
|
let contents = {};
|
|
2316
2317
|
contents = (0, import_smithy_client._json)(data);
|
|
2317
2318
|
const response = {
|
|
@@ -2324,7 +2325,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2324
2325
|
if (output.statusCode >= 300) {
|
|
2325
2326
|
return de_CommandError(output, context);
|
|
2326
2327
|
}
|
|
2327
|
-
const data = await
|
|
2328
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2328
2329
|
let contents = {};
|
|
2329
2330
|
contents = (0, import_smithy_client._json)(data);
|
|
2330
2331
|
const response = {
|
|
@@ -2337,7 +2338,7 @@ var de_UpdateDataRepositoryAssociationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2337
2338
|
if (output.statusCode >= 300) {
|
|
2338
2339
|
return de_CommandError(output, context);
|
|
2339
2340
|
}
|
|
2340
|
-
const data = await
|
|
2341
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2341
2342
|
let contents = {};
|
|
2342
2343
|
contents = de_UpdateDataRepositoryAssociationResponse(data, context);
|
|
2343
2344
|
const response = {
|
|
@@ -2350,7 +2351,7 @@ var de_UpdateFileCacheCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2350
2351
|
if (output.statusCode >= 300) {
|
|
2351
2352
|
return de_CommandError(output, context);
|
|
2352
2353
|
}
|
|
2353
|
-
const data = await
|
|
2354
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2354
2355
|
let contents = {};
|
|
2355
2356
|
contents = de_UpdateFileCacheResponse(data, context);
|
|
2356
2357
|
const response = {
|
|
@@ -2363,7 +2364,7 @@ var de_UpdateFileSystemCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2363
2364
|
if (output.statusCode >= 300) {
|
|
2364
2365
|
return de_CommandError(output, context);
|
|
2365
2366
|
}
|
|
2366
|
-
const data = await
|
|
2367
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2367
2368
|
let contents = {};
|
|
2368
2369
|
contents = de_UpdateFileSystemResponse(data, context);
|
|
2369
2370
|
const response = {
|
|
@@ -2376,7 +2377,7 @@ var de_UpdateSharedVpcConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
2376
2377
|
if (output.statusCode >= 300) {
|
|
2377
2378
|
return de_CommandError(output, context);
|
|
2378
2379
|
}
|
|
2379
|
-
const data = await
|
|
2380
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2380
2381
|
let contents = {};
|
|
2381
2382
|
contents = (0, import_smithy_client._json)(data);
|
|
2382
2383
|
const response = {
|
|
@@ -2389,7 +2390,7 @@ var de_UpdateSnapshotCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2389
2390
|
if (output.statusCode >= 300) {
|
|
2390
2391
|
return de_CommandError(output, context);
|
|
2391
2392
|
}
|
|
2392
|
-
const data = await
|
|
2393
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2393
2394
|
let contents = {};
|
|
2394
2395
|
contents = de_UpdateSnapshotResponse(data, context);
|
|
2395
2396
|
const response = {
|
|
@@ -2402,7 +2403,7 @@ var de_UpdateStorageVirtualMachineCommand = /* @__PURE__ */ __name(async (output
|
|
|
2402
2403
|
if (output.statusCode >= 300) {
|
|
2403
2404
|
return de_CommandError(output, context);
|
|
2404
2405
|
}
|
|
2405
|
-
const data = await
|
|
2406
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2406
2407
|
let contents = {};
|
|
2407
2408
|
contents = de_UpdateStorageVirtualMachineResponse(data, context);
|
|
2408
2409
|
const response = {
|
|
@@ -2415,7 +2416,7 @@ var de_UpdateVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2415
2416
|
if (output.statusCode >= 300) {
|
|
2416
2417
|
return de_CommandError(output, context);
|
|
2417
2418
|
}
|
|
2418
|
-
const data = await
|
|
2419
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2419
2420
|
let contents = {};
|
|
2420
2421
|
contents = de_UpdateVolumeResponse(data, context);
|
|
2421
2422
|
const response = {
|
|
@@ -2427,9 +2428,9 @@ var de_UpdateVolumeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2427
2428
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2428
2429
|
const parsedOutput = {
|
|
2429
2430
|
...output,
|
|
2430
|
-
body: await
|
|
2431
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
2431
2432
|
};
|
|
2432
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2433
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
2433
2434
|
switch (errorCode) {
|
|
2434
2435
|
case "BadRequest":
|
|
2435
2436
|
case "com.amazonaws.fsx#BadRequest":
|
|
@@ -3557,7 +3558,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
3557
3558
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3558
3559
|
cfId: output.headers["x-amz-cf-id"]
|
|
3559
3560
|
}), "deserializeMetadata");
|
|
3560
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
3561
3561
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(FSxServiceException);
|
|
3562
3562
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
3563
3563
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -3584,46 +3584,6 @@ function sharedHeaders(operation) {
|
|
|
3584
3584
|
};
|
|
3585
3585
|
}
|
|
3586
3586
|
__name(sharedHeaders, "sharedHeaders");
|
|
3587
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3588
|
-
if (encoded.length) {
|
|
3589
|
-
return JSON.parse(encoded);
|
|
3590
|
-
}
|
|
3591
|
-
return {};
|
|
3592
|
-
}), "parseBody");
|
|
3593
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
3594
|
-
const value = await parseBody(errorBody, context);
|
|
3595
|
-
value.message = value.message ?? value.Message;
|
|
3596
|
-
return value;
|
|
3597
|
-
}, "parseErrorBody");
|
|
3598
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
3599
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
3600
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
3601
|
-
let cleanValue = rawValue;
|
|
3602
|
-
if (typeof cleanValue === "number") {
|
|
3603
|
-
cleanValue = cleanValue.toString();
|
|
3604
|
-
}
|
|
3605
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3606
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3607
|
-
}
|
|
3608
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3609
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3610
|
-
}
|
|
3611
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3612
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3613
|
-
}
|
|
3614
|
-
return cleanValue;
|
|
3615
|
-
}, "sanitizeErrorCode");
|
|
3616
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3617
|
-
if (headerKey !== void 0) {
|
|
3618
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3619
|
-
}
|
|
3620
|
-
if (data.code !== void 0) {
|
|
3621
|
-
return sanitizeErrorCode(data.code);
|
|
3622
|
-
}
|
|
3623
|
-
if (data["__type"] !== void 0) {
|
|
3624
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3625
|
-
}
|
|
3626
|
-
}, "loadRestJsonErrorCode");
|
|
3627
3587
|
|
|
3628
3588
|
// src/commands/AssociateFileSystemAliasesCommand.ts
|
|
3629
3589
|
var _AssociateFileSystemAliasesCommand = class _AssociateFileSystemAliasesCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -2035,43 +2036,3 @@ function sharedHeaders(operation) {
|
|
|
2035
2036
|
"x-amz-target": `AWSSimbaAPIService_v20180301.${operation}`,
|
|
2036
2037
|
};
|
|
2037
2038
|
}
|
|
2038
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2039
|
-
if (encoded.length) {
|
|
2040
|
-
return JSON.parse(encoded);
|
|
2041
|
-
}
|
|
2042
|
-
return {};
|
|
2043
|
-
});
|
|
2044
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
2045
|
-
const value = await parseBody(errorBody, context);
|
|
2046
|
-
value.message = value.message ?? value.Message;
|
|
2047
|
-
return value;
|
|
2048
|
-
};
|
|
2049
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
2050
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
2051
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
2052
|
-
let cleanValue = rawValue;
|
|
2053
|
-
if (typeof cleanValue === "number") {
|
|
2054
|
-
cleanValue = cleanValue.toString();
|
|
2055
|
-
}
|
|
2056
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2057
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2058
|
-
}
|
|
2059
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2060
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2061
|
-
}
|
|
2062
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2063
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2064
|
-
}
|
|
2065
|
-
return cleanValue;
|
|
2066
|
-
};
|
|
2067
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2068
|
-
if (headerKey !== undefined) {
|
|
2069
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2070
|
-
}
|
|
2071
|
-
if (data.code !== undefined) {
|
|
2072
|
-
return sanitizeErrorCode(data.code);
|
|
2073
|
-
}
|
|
2074
|
-
if (data["__type"] !== undefined) {
|
|
2075
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2076
|
-
}
|
|
2077
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-fsx",
|
|
3
3
|
"description": "AWS SDK for JavaScript Fsx Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-fsx",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|