@aws-sdk/client-backup 3.504.0 → 3.509.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/index.js +123 -2622
- package/dist-es/protocols/Aws_restJson1.js +235 -2734
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -2038,7 +2038,7 @@ var se_UpdateRestoreTestingSelectionCommand = /* @__PURE__ */ __name(async (inpu
|
|
|
2038
2038
|
}, "se_UpdateRestoreTestingSelectionCommand");
|
|
2039
2039
|
var de_CancelLegalHoldCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2040
2040
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2041
|
-
return
|
|
2041
|
+
return de_CommandError(output, context);
|
|
2042
2042
|
}
|
|
2043
2043
|
const contents = (0, import_smithy_client.map)({
|
|
2044
2044
|
$metadata: deserializeMetadata(output)
|
|
@@ -2046,40 +2046,9 @@ var de_CancelLegalHoldCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2046
2046
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2047
2047
|
return contents;
|
|
2048
2048
|
}, "de_CancelLegalHoldCommand");
|
|
2049
|
-
var de_CancelLegalHoldCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2050
|
-
const parsedOutput = {
|
|
2051
|
-
...output,
|
|
2052
|
-
body: await parseErrorBody(output.body, context)
|
|
2053
|
-
};
|
|
2054
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2055
|
-
switch (errorCode) {
|
|
2056
|
-
case "InvalidParameterValueException":
|
|
2057
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2058
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2059
|
-
case "InvalidResourceStateException":
|
|
2060
|
-
case "com.amazonaws.backup#InvalidResourceStateException":
|
|
2061
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
2062
|
-
case "MissingParameterValueException":
|
|
2063
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2064
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2065
|
-
case "ResourceNotFoundException":
|
|
2066
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2067
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2068
|
-
case "ServiceUnavailableException":
|
|
2069
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2070
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2071
|
-
default:
|
|
2072
|
-
const parsedBody = parsedOutput.body;
|
|
2073
|
-
return throwDefaultError({
|
|
2074
|
-
output,
|
|
2075
|
-
parsedBody,
|
|
2076
|
-
errorCode
|
|
2077
|
-
});
|
|
2078
|
-
}
|
|
2079
|
-
}, "de_CancelLegalHoldCommandError");
|
|
2080
2049
|
var de_CreateBackupPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2081
2050
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2082
|
-
return
|
|
2051
|
+
return de_CommandError(output, context);
|
|
2083
2052
|
}
|
|
2084
2053
|
const contents = (0, import_smithy_client.map)({
|
|
2085
2054
|
$metadata: deserializeMetadata(output)
|
|
@@ -2095,40 +2064,9 @@ var de_CreateBackupPlanCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2095
2064
|
Object.assign(contents, doc);
|
|
2096
2065
|
return contents;
|
|
2097
2066
|
}, "de_CreateBackupPlanCommand");
|
|
2098
|
-
var de_CreateBackupPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2099
|
-
const parsedOutput = {
|
|
2100
|
-
...output,
|
|
2101
|
-
body: await parseErrorBody(output.body, context)
|
|
2102
|
-
};
|
|
2103
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2104
|
-
switch (errorCode) {
|
|
2105
|
-
case "AlreadyExistsException":
|
|
2106
|
-
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2107
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2108
|
-
case "InvalidParameterValueException":
|
|
2109
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2110
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2111
|
-
case "LimitExceededException":
|
|
2112
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
2113
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2114
|
-
case "MissingParameterValueException":
|
|
2115
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2116
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2117
|
-
case "ServiceUnavailableException":
|
|
2118
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2119
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2120
|
-
default:
|
|
2121
|
-
const parsedBody = parsedOutput.body;
|
|
2122
|
-
return throwDefaultError({
|
|
2123
|
-
output,
|
|
2124
|
-
parsedBody,
|
|
2125
|
-
errorCode
|
|
2126
|
-
});
|
|
2127
|
-
}
|
|
2128
|
-
}, "de_CreateBackupPlanCommandError");
|
|
2129
2067
|
var de_CreateBackupSelectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2130
2068
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2131
|
-
return
|
|
2069
|
+
return de_CommandError(output, context);
|
|
2132
2070
|
}
|
|
2133
2071
|
const contents = (0, import_smithy_client.map)({
|
|
2134
2072
|
$metadata: deserializeMetadata(output)
|
|
@@ -2142,40 +2080,9 @@ var de_CreateBackupSelectionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2142
2080
|
Object.assign(contents, doc);
|
|
2143
2081
|
return contents;
|
|
2144
2082
|
}, "de_CreateBackupSelectionCommand");
|
|
2145
|
-
var de_CreateBackupSelectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2146
|
-
const parsedOutput = {
|
|
2147
|
-
...output,
|
|
2148
|
-
body: await parseErrorBody(output.body, context)
|
|
2149
|
-
};
|
|
2150
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2151
|
-
switch (errorCode) {
|
|
2152
|
-
case "AlreadyExistsException":
|
|
2153
|
-
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2154
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2155
|
-
case "InvalidParameterValueException":
|
|
2156
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2157
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "LimitExceededException":
|
|
2159
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
2160
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "MissingParameterValueException":
|
|
2162
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2163
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "ServiceUnavailableException":
|
|
2165
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2166
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2167
|
-
default:
|
|
2168
|
-
const parsedBody = parsedOutput.body;
|
|
2169
|
-
return throwDefaultError({
|
|
2170
|
-
output,
|
|
2171
|
-
parsedBody,
|
|
2172
|
-
errorCode
|
|
2173
|
-
});
|
|
2174
|
-
}
|
|
2175
|
-
}, "de_CreateBackupSelectionCommandError");
|
|
2176
2083
|
var de_CreateBackupVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2177
2084
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2178
|
-
return
|
|
2085
|
+
return de_CommandError(output, context);
|
|
2179
2086
|
}
|
|
2180
2087
|
const contents = (0, import_smithy_client.map)({
|
|
2181
2088
|
$metadata: deserializeMetadata(output)
|
|
@@ -2189,40 +2096,9 @@ var de_CreateBackupVaultCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2189
2096
|
Object.assign(contents, doc);
|
|
2190
2097
|
return contents;
|
|
2191
2098
|
}, "de_CreateBackupVaultCommand");
|
|
2192
|
-
var de_CreateBackupVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2193
|
-
const parsedOutput = {
|
|
2194
|
-
...output,
|
|
2195
|
-
body: await parseErrorBody(output.body, context)
|
|
2196
|
-
};
|
|
2197
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2198
|
-
switch (errorCode) {
|
|
2199
|
-
case "AlreadyExistsException":
|
|
2200
|
-
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2201
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2202
|
-
case "InvalidParameterValueException":
|
|
2203
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2204
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2205
|
-
case "LimitExceededException":
|
|
2206
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
2207
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2208
|
-
case "MissingParameterValueException":
|
|
2209
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2210
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2211
|
-
case "ServiceUnavailableException":
|
|
2212
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2213
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2214
|
-
default:
|
|
2215
|
-
const parsedBody = parsedOutput.body;
|
|
2216
|
-
return throwDefaultError({
|
|
2217
|
-
output,
|
|
2218
|
-
parsedBody,
|
|
2219
|
-
errorCode
|
|
2220
|
-
});
|
|
2221
|
-
}
|
|
2222
|
-
}, "de_CreateBackupVaultCommandError");
|
|
2223
2099
|
var de_CreateFrameworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2224
2100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2225
|
-
return
|
|
2101
|
+
return de_CommandError(output, context);
|
|
2226
2102
|
}
|
|
2227
2103
|
const contents = (0, import_smithy_client.map)({
|
|
2228
2104
|
$metadata: deserializeMetadata(output)
|
|
@@ -2235,40 +2111,9 @@ var de_CreateFrameworkCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2235
2111
|
Object.assign(contents, doc);
|
|
2236
2112
|
return contents;
|
|
2237
2113
|
}, "de_CreateFrameworkCommand");
|
|
2238
|
-
var de_CreateFrameworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2239
|
-
const parsedOutput = {
|
|
2240
|
-
...output,
|
|
2241
|
-
body: await parseErrorBody(output.body, context)
|
|
2242
|
-
};
|
|
2243
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2244
|
-
switch (errorCode) {
|
|
2245
|
-
case "AlreadyExistsException":
|
|
2246
|
-
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2247
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2248
|
-
case "InvalidParameterValueException":
|
|
2249
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2250
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2251
|
-
case "LimitExceededException":
|
|
2252
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
2253
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2254
|
-
case "MissingParameterValueException":
|
|
2255
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2256
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2257
|
-
case "ServiceUnavailableException":
|
|
2258
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2259
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2260
|
-
default:
|
|
2261
|
-
const parsedBody = parsedOutput.body;
|
|
2262
|
-
return throwDefaultError({
|
|
2263
|
-
output,
|
|
2264
|
-
parsedBody,
|
|
2265
|
-
errorCode
|
|
2266
|
-
});
|
|
2267
|
-
}
|
|
2268
|
-
}, "de_CreateFrameworkCommandError");
|
|
2269
2114
|
var de_CreateLegalHoldCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2270
2115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2271
|
-
return
|
|
2116
|
+
return de_CommandError(output, context);
|
|
2272
2117
|
}
|
|
2273
2118
|
const contents = (0, import_smithy_client.map)({
|
|
2274
2119
|
$metadata: deserializeMetadata(output)
|
|
@@ -2286,37 +2131,9 @@ var de_CreateLegalHoldCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2286
2131
|
Object.assign(contents, doc);
|
|
2287
2132
|
return contents;
|
|
2288
2133
|
}, "de_CreateLegalHoldCommand");
|
|
2289
|
-
var de_CreateLegalHoldCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2290
|
-
const parsedOutput = {
|
|
2291
|
-
...output,
|
|
2292
|
-
body: await parseErrorBody(output.body, context)
|
|
2293
|
-
};
|
|
2294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2295
|
-
switch (errorCode) {
|
|
2296
|
-
case "InvalidParameterValueException":
|
|
2297
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2298
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2299
|
-
case "LimitExceededException":
|
|
2300
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
2301
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2302
|
-
case "MissingParameterValueException":
|
|
2303
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2304
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2305
|
-
case "ServiceUnavailableException":
|
|
2306
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2307
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2308
|
-
default:
|
|
2309
|
-
const parsedBody = parsedOutput.body;
|
|
2310
|
-
return throwDefaultError({
|
|
2311
|
-
output,
|
|
2312
|
-
parsedBody,
|
|
2313
|
-
errorCode
|
|
2314
|
-
});
|
|
2315
|
-
}
|
|
2316
|
-
}, "de_CreateLegalHoldCommandError");
|
|
2317
2134
|
var de_CreateLogicallyAirGappedBackupVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2318
2135
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2319
|
-
return
|
|
2136
|
+
return de_CommandError(output, context);
|
|
2320
2137
|
}
|
|
2321
2138
|
const contents = (0, import_smithy_client.map)({
|
|
2322
2139
|
$metadata: deserializeMetadata(output)
|
|
@@ -2331,43 +2148,9 @@ var de_CreateLogicallyAirGappedBackupVaultCommand = /* @__PURE__ */ __name(async
|
|
|
2331
2148
|
Object.assign(contents, doc);
|
|
2332
2149
|
return contents;
|
|
2333
2150
|
}, "de_CreateLogicallyAirGappedBackupVaultCommand");
|
|
2334
|
-
var de_CreateLogicallyAirGappedBackupVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2335
|
-
const parsedOutput = {
|
|
2336
|
-
...output,
|
|
2337
|
-
body: await parseErrorBody(output.body, context)
|
|
2338
|
-
};
|
|
2339
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2340
|
-
switch (errorCode) {
|
|
2341
|
-
case "AlreadyExistsException":
|
|
2342
|
-
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2343
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2344
|
-
case "InvalidParameterValueException":
|
|
2345
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2346
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2347
|
-
case "InvalidRequestException":
|
|
2348
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
2349
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2350
|
-
case "LimitExceededException":
|
|
2351
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
2352
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2353
|
-
case "MissingParameterValueException":
|
|
2354
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2355
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "ServiceUnavailableException":
|
|
2357
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2358
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2359
|
-
default:
|
|
2360
|
-
const parsedBody = parsedOutput.body;
|
|
2361
|
-
return throwDefaultError({
|
|
2362
|
-
output,
|
|
2363
|
-
parsedBody,
|
|
2364
|
-
errorCode
|
|
2365
|
-
});
|
|
2366
|
-
}
|
|
2367
|
-
}, "de_CreateLogicallyAirGappedBackupVaultCommandError");
|
|
2368
2151
|
var de_CreateReportPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2369
2152
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2370
|
-
return
|
|
2153
|
+
return de_CommandError(output, context);
|
|
2371
2154
|
}
|
|
2372
2155
|
const contents = (0, import_smithy_client.map)({
|
|
2373
2156
|
$metadata: deserializeMetadata(output)
|
|
@@ -2381,40 +2164,9 @@ var de_CreateReportPlanCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2381
2164
|
Object.assign(contents, doc);
|
|
2382
2165
|
return contents;
|
|
2383
2166
|
}, "de_CreateReportPlanCommand");
|
|
2384
|
-
var de_CreateReportPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2385
|
-
const parsedOutput = {
|
|
2386
|
-
...output,
|
|
2387
|
-
body: await parseErrorBody(output.body, context)
|
|
2388
|
-
};
|
|
2389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2390
|
-
switch (errorCode) {
|
|
2391
|
-
case "AlreadyExistsException":
|
|
2392
|
-
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2393
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2394
|
-
case "InvalidParameterValueException":
|
|
2395
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2396
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2397
|
-
case "LimitExceededException":
|
|
2398
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
2399
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2400
|
-
case "MissingParameterValueException":
|
|
2401
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2402
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2403
|
-
case "ServiceUnavailableException":
|
|
2404
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2405
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2406
|
-
default:
|
|
2407
|
-
const parsedBody = parsedOutput.body;
|
|
2408
|
-
return throwDefaultError({
|
|
2409
|
-
output,
|
|
2410
|
-
parsedBody,
|
|
2411
|
-
errorCode
|
|
2412
|
-
});
|
|
2413
|
-
}
|
|
2414
|
-
}, "de_CreateReportPlanCommandError");
|
|
2415
2167
|
var de_CreateRestoreTestingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2416
2168
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2417
|
-
return
|
|
2169
|
+
return de_CommandError(output, context);
|
|
2418
2170
|
}
|
|
2419
2171
|
const contents = (0, import_smithy_client.map)({
|
|
2420
2172
|
$metadata: deserializeMetadata(output)
|
|
@@ -2428,43 +2180,9 @@ var de_CreateRestoreTestingPlanCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2428
2180
|
Object.assign(contents, doc);
|
|
2429
2181
|
return contents;
|
|
2430
2182
|
}, "de_CreateRestoreTestingPlanCommand");
|
|
2431
|
-
var de_CreateRestoreTestingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2432
|
-
const parsedOutput = {
|
|
2433
|
-
...output,
|
|
2434
|
-
body: await parseErrorBody(output.body, context)
|
|
2435
|
-
};
|
|
2436
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2437
|
-
switch (errorCode) {
|
|
2438
|
-
case "AlreadyExistsException":
|
|
2439
|
-
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2440
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2441
|
-
case "ConflictException":
|
|
2442
|
-
case "com.amazonaws.backup#ConflictException":
|
|
2443
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2444
|
-
case "InvalidParameterValueException":
|
|
2445
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2446
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2447
|
-
case "LimitExceededException":
|
|
2448
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
2449
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2450
|
-
case "MissingParameterValueException":
|
|
2451
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2452
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2453
|
-
case "ServiceUnavailableException":
|
|
2454
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2455
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2456
|
-
default:
|
|
2457
|
-
const parsedBody = parsedOutput.body;
|
|
2458
|
-
return throwDefaultError({
|
|
2459
|
-
output,
|
|
2460
|
-
parsedBody,
|
|
2461
|
-
errorCode
|
|
2462
|
-
});
|
|
2463
|
-
}
|
|
2464
|
-
}, "de_CreateRestoreTestingPlanCommandError");
|
|
2465
2183
|
var de_CreateRestoreTestingSelectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2466
2184
|
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
2467
|
-
return
|
|
2185
|
+
return de_CommandError(output, context);
|
|
2468
2186
|
}
|
|
2469
2187
|
const contents = (0, import_smithy_client.map)({
|
|
2470
2188
|
$metadata: deserializeMetadata(output)
|
|
@@ -2479,43 +2197,9 @@ var de_CreateRestoreTestingSelectionCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2479
2197
|
Object.assign(contents, doc);
|
|
2480
2198
|
return contents;
|
|
2481
2199
|
}, "de_CreateRestoreTestingSelectionCommand");
|
|
2482
|
-
var de_CreateRestoreTestingSelectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2483
|
-
const parsedOutput = {
|
|
2484
|
-
...output,
|
|
2485
|
-
body: await parseErrorBody(output.body, context)
|
|
2486
|
-
};
|
|
2487
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2488
|
-
switch (errorCode) {
|
|
2489
|
-
case "AlreadyExistsException":
|
|
2490
|
-
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2491
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
2492
|
-
case "InvalidParameterValueException":
|
|
2493
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2494
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "LimitExceededException":
|
|
2496
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
2497
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2498
|
-
case "MissingParameterValueException":
|
|
2499
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2500
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2501
|
-
case "ResourceNotFoundException":
|
|
2502
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2503
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2504
|
-
case "ServiceUnavailableException":
|
|
2505
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2506
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2507
|
-
default:
|
|
2508
|
-
const parsedBody = parsedOutput.body;
|
|
2509
|
-
return throwDefaultError({
|
|
2510
|
-
output,
|
|
2511
|
-
parsedBody,
|
|
2512
|
-
errorCode
|
|
2513
|
-
});
|
|
2514
|
-
}
|
|
2515
|
-
}, "de_CreateRestoreTestingSelectionCommandError");
|
|
2516
2200
|
var de_DeleteBackupPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2517
2201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2518
|
-
return
|
|
2202
|
+
return de_CommandError(output, context);
|
|
2519
2203
|
}
|
|
2520
2204
|
const contents = (0, import_smithy_client.map)({
|
|
2521
2205
|
$metadata: deserializeMetadata(output)
|
|
@@ -2530,40 +2214,9 @@ var de_DeleteBackupPlanCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2530
2214
|
Object.assign(contents, doc);
|
|
2531
2215
|
return contents;
|
|
2532
2216
|
}, "de_DeleteBackupPlanCommand");
|
|
2533
|
-
var de_DeleteBackupPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2534
|
-
const parsedOutput = {
|
|
2535
|
-
...output,
|
|
2536
|
-
body: await parseErrorBody(output.body, context)
|
|
2537
|
-
};
|
|
2538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2539
|
-
switch (errorCode) {
|
|
2540
|
-
case "InvalidParameterValueException":
|
|
2541
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2542
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2543
|
-
case "InvalidRequestException":
|
|
2544
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
2545
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2546
|
-
case "MissingParameterValueException":
|
|
2547
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2548
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2549
|
-
case "ResourceNotFoundException":
|
|
2550
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2551
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2552
|
-
case "ServiceUnavailableException":
|
|
2553
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2554
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2555
|
-
default:
|
|
2556
|
-
const parsedBody = parsedOutput.body;
|
|
2557
|
-
return throwDefaultError({
|
|
2558
|
-
output,
|
|
2559
|
-
parsedBody,
|
|
2560
|
-
errorCode
|
|
2561
|
-
});
|
|
2562
|
-
}
|
|
2563
|
-
}, "de_DeleteBackupPlanCommandError");
|
|
2564
2217
|
var de_DeleteBackupSelectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2565
2218
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2566
|
-
return
|
|
2219
|
+
return de_CommandError(output, context);
|
|
2567
2220
|
}
|
|
2568
2221
|
const contents = (0, import_smithy_client.map)({
|
|
2569
2222
|
$metadata: deserializeMetadata(output)
|
|
@@ -2571,37 +2224,9 @@ var de_DeleteBackupSelectionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2571
2224
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2572
2225
|
return contents;
|
|
2573
2226
|
}, "de_DeleteBackupSelectionCommand");
|
|
2574
|
-
var de_DeleteBackupSelectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2575
|
-
const parsedOutput = {
|
|
2576
|
-
...output,
|
|
2577
|
-
body: await parseErrorBody(output.body, context)
|
|
2578
|
-
};
|
|
2579
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2580
|
-
switch (errorCode) {
|
|
2581
|
-
case "InvalidParameterValueException":
|
|
2582
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2583
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2584
|
-
case "MissingParameterValueException":
|
|
2585
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2586
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2587
|
-
case "ResourceNotFoundException":
|
|
2588
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2589
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2590
|
-
case "ServiceUnavailableException":
|
|
2591
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2592
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2593
|
-
default:
|
|
2594
|
-
const parsedBody = parsedOutput.body;
|
|
2595
|
-
return throwDefaultError({
|
|
2596
|
-
output,
|
|
2597
|
-
parsedBody,
|
|
2598
|
-
errorCode
|
|
2599
|
-
});
|
|
2600
|
-
}
|
|
2601
|
-
}, "de_DeleteBackupSelectionCommandError");
|
|
2602
2227
|
var de_DeleteBackupVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2603
2228
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2604
|
-
return
|
|
2229
|
+
return de_CommandError(output, context);
|
|
2605
2230
|
}
|
|
2606
2231
|
const contents = (0, import_smithy_client.map)({
|
|
2607
2232
|
$metadata: deserializeMetadata(output)
|
|
@@ -2609,40 +2234,9 @@ var de_DeleteBackupVaultCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2609
2234
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2610
2235
|
return contents;
|
|
2611
2236
|
}, "de_DeleteBackupVaultCommand");
|
|
2612
|
-
var de_DeleteBackupVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2613
|
-
const parsedOutput = {
|
|
2614
|
-
...output,
|
|
2615
|
-
body: await parseErrorBody(output.body, context)
|
|
2616
|
-
};
|
|
2617
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2618
|
-
switch (errorCode) {
|
|
2619
|
-
case "InvalidParameterValueException":
|
|
2620
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2621
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "InvalidRequestException":
|
|
2623
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
2624
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2625
|
-
case "MissingParameterValueException":
|
|
2626
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2627
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2628
|
-
case "ResourceNotFoundException":
|
|
2629
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2630
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2631
|
-
case "ServiceUnavailableException":
|
|
2632
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2633
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2634
|
-
default:
|
|
2635
|
-
const parsedBody = parsedOutput.body;
|
|
2636
|
-
return throwDefaultError({
|
|
2637
|
-
output,
|
|
2638
|
-
parsedBody,
|
|
2639
|
-
errorCode
|
|
2640
|
-
});
|
|
2641
|
-
}
|
|
2642
|
-
}, "de_DeleteBackupVaultCommandError");
|
|
2643
2237
|
var de_DeleteBackupVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2644
2238
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2645
|
-
return
|
|
2239
|
+
return de_CommandError(output, context);
|
|
2646
2240
|
}
|
|
2647
2241
|
const contents = (0, import_smithy_client.map)({
|
|
2648
2242
|
$metadata: deserializeMetadata(output)
|
|
@@ -2650,37 +2244,9 @@ var de_DeleteBackupVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2650
2244
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2651
2245
|
return contents;
|
|
2652
2246
|
}, "de_DeleteBackupVaultAccessPolicyCommand");
|
|
2653
|
-
var de_DeleteBackupVaultAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2654
|
-
const parsedOutput = {
|
|
2655
|
-
...output,
|
|
2656
|
-
body: await parseErrorBody(output.body, context)
|
|
2657
|
-
};
|
|
2658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2659
|
-
switch (errorCode) {
|
|
2660
|
-
case "InvalidParameterValueException":
|
|
2661
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2662
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2663
|
-
case "MissingParameterValueException":
|
|
2664
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2665
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2666
|
-
case "ResourceNotFoundException":
|
|
2667
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2668
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2669
|
-
case "ServiceUnavailableException":
|
|
2670
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2671
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2672
|
-
default:
|
|
2673
|
-
const parsedBody = parsedOutput.body;
|
|
2674
|
-
return throwDefaultError({
|
|
2675
|
-
output,
|
|
2676
|
-
parsedBody,
|
|
2677
|
-
errorCode
|
|
2678
|
-
});
|
|
2679
|
-
}
|
|
2680
|
-
}, "de_DeleteBackupVaultAccessPolicyCommandError");
|
|
2681
2247
|
var de_DeleteBackupVaultLockConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2682
2248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2683
|
-
return
|
|
2249
|
+
return de_CommandError(output, context);
|
|
2684
2250
|
}
|
|
2685
2251
|
const contents = (0, import_smithy_client.map)({
|
|
2686
2252
|
$metadata: deserializeMetadata(output)
|
|
@@ -2688,40 +2254,9 @@ var de_DeleteBackupVaultLockConfigurationCommand = /* @__PURE__ */ __name(async
|
|
|
2688
2254
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2689
2255
|
return contents;
|
|
2690
2256
|
}, "de_DeleteBackupVaultLockConfigurationCommand");
|
|
2691
|
-
var de_DeleteBackupVaultLockConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2692
|
-
const parsedOutput = {
|
|
2693
|
-
...output,
|
|
2694
|
-
body: await parseErrorBody(output.body, context)
|
|
2695
|
-
};
|
|
2696
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2697
|
-
switch (errorCode) {
|
|
2698
|
-
case "InvalidParameterValueException":
|
|
2699
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2700
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2701
|
-
case "InvalidRequestException":
|
|
2702
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
2703
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2704
|
-
case "MissingParameterValueException":
|
|
2705
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2706
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2707
|
-
case "ResourceNotFoundException":
|
|
2708
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2709
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2710
|
-
case "ServiceUnavailableException":
|
|
2711
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2712
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2713
|
-
default:
|
|
2714
|
-
const parsedBody = parsedOutput.body;
|
|
2715
|
-
return throwDefaultError({
|
|
2716
|
-
output,
|
|
2717
|
-
parsedBody,
|
|
2718
|
-
errorCode
|
|
2719
|
-
});
|
|
2720
|
-
}
|
|
2721
|
-
}, "de_DeleteBackupVaultLockConfigurationCommandError");
|
|
2722
2257
|
var de_DeleteBackupVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2723
2258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2724
|
-
return
|
|
2259
|
+
return de_CommandError(output, context);
|
|
2725
2260
|
}
|
|
2726
2261
|
const contents = (0, import_smithy_client.map)({
|
|
2727
2262
|
$metadata: deserializeMetadata(output)
|
|
@@ -2729,37 +2264,9 @@ var de_DeleteBackupVaultNotificationsCommand = /* @__PURE__ */ __name(async (out
|
|
|
2729
2264
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2730
2265
|
return contents;
|
|
2731
2266
|
}, "de_DeleteBackupVaultNotificationsCommand");
|
|
2732
|
-
var de_DeleteBackupVaultNotificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2733
|
-
const parsedOutput = {
|
|
2734
|
-
...output,
|
|
2735
|
-
body: await parseErrorBody(output.body, context)
|
|
2736
|
-
};
|
|
2737
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2738
|
-
switch (errorCode) {
|
|
2739
|
-
case "InvalidParameterValueException":
|
|
2740
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2741
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2742
|
-
case "MissingParameterValueException":
|
|
2743
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2744
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2745
|
-
case "ResourceNotFoundException":
|
|
2746
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2747
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2748
|
-
case "ServiceUnavailableException":
|
|
2749
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2750
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2751
|
-
default:
|
|
2752
|
-
const parsedBody = parsedOutput.body;
|
|
2753
|
-
return throwDefaultError({
|
|
2754
|
-
output,
|
|
2755
|
-
parsedBody,
|
|
2756
|
-
errorCode
|
|
2757
|
-
});
|
|
2758
|
-
}
|
|
2759
|
-
}, "de_DeleteBackupVaultNotificationsCommandError");
|
|
2760
2267
|
var de_DeleteFrameworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2761
2268
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2762
|
-
return
|
|
2269
|
+
return de_CommandError(output, context);
|
|
2763
2270
|
}
|
|
2764
2271
|
const contents = (0, import_smithy_client.map)({
|
|
2765
2272
|
$metadata: deserializeMetadata(output)
|
|
@@ -2767,40 +2274,9 @@ var de_DeleteFrameworkCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2767
2274
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2768
2275
|
return contents;
|
|
2769
2276
|
}, "de_DeleteFrameworkCommand");
|
|
2770
|
-
var de_DeleteFrameworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2771
|
-
const parsedOutput = {
|
|
2772
|
-
...output,
|
|
2773
|
-
body: await parseErrorBody(output.body, context)
|
|
2774
|
-
};
|
|
2775
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2776
|
-
switch (errorCode) {
|
|
2777
|
-
case "ConflictException":
|
|
2778
|
-
case "com.amazonaws.backup#ConflictException":
|
|
2779
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2780
|
-
case "InvalidParameterValueException":
|
|
2781
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2782
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2783
|
-
case "MissingParameterValueException":
|
|
2784
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2785
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2786
|
-
case "ResourceNotFoundException":
|
|
2787
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2788
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2789
|
-
case "ServiceUnavailableException":
|
|
2790
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2791
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2792
|
-
default:
|
|
2793
|
-
const parsedBody = parsedOutput.body;
|
|
2794
|
-
return throwDefaultError({
|
|
2795
|
-
output,
|
|
2796
|
-
parsedBody,
|
|
2797
|
-
errorCode
|
|
2798
|
-
});
|
|
2799
|
-
}
|
|
2800
|
-
}, "de_DeleteFrameworkCommandError");
|
|
2801
2277
|
var de_DeleteRecoveryPointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2802
2278
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2803
|
-
return
|
|
2279
|
+
return de_CommandError(output, context);
|
|
2804
2280
|
}
|
|
2805
2281
|
const contents = (0, import_smithy_client.map)({
|
|
2806
2282
|
$metadata: deserializeMetadata(output)
|
|
@@ -2808,43 +2284,9 @@ var de_DeleteRecoveryPointCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2808
2284
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2809
2285
|
return contents;
|
|
2810
2286
|
}, "de_DeleteRecoveryPointCommand");
|
|
2811
|
-
var de_DeleteRecoveryPointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2812
|
-
const parsedOutput = {
|
|
2813
|
-
...output,
|
|
2814
|
-
body: await parseErrorBody(output.body, context)
|
|
2815
|
-
};
|
|
2816
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2817
|
-
switch (errorCode) {
|
|
2818
|
-
case "InvalidParameterValueException":
|
|
2819
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2820
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2821
|
-
case "InvalidRequestException":
|
|
2822
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
2823
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2824
|
-
case "InvalidResourceStateException":
|
|
2825
|
-
case "com.amazonaws.backup#InvalidResourceStateException":
|
|
2826
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
2827
|
-
case "MissingParameterValueException":
|
|
2828
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2829
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2830
|
-
case "ResourceNotFoundException":
|
|
2831
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2832
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2833
|
-
case "ServiceUnavailableException":
|
|
2834
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2835
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2836
|
-
default:
|
|
2837
|
-
const parsedBody = parsedOutput.body;
|
|
2838
|
-
return throwDefaultError({
|
|
2839
|
-
output,
|
|
2840
|
-
parsedBody,
|
|
2841
|
-
errorCode
|
|
2842
|
-
});
|
|
2843
|
-
}
|
|
2844
|
-
}, "de_DeleteRecoveryPointCommandError");
|
|
2845
2287
|
var de_DeleteReportPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2846
2288
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2847
|
-
return
|
|
2289
|
+
return de_CommandError(output, context);
|
|
2848
2290
|
}
|
|
2849
2291
|
const contents = (0, import_smithy_client.map)({
|
|
2850
2292
|
$metadata: deserializeMetadata(output)
|
|
@@ -2852,40 +2294,9 @@ var de_DeleteReportPlanCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2852
2294
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2853
2295
|
return contents;
|
|
2854
2296
|
}, "de_DeleteReportPlanCommand");
|
|
2855
|
-
var de_DeleteReportPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2856
|
-
const parsedOutput = {
|
|
2857
|
-
...output,
|
|
2858
|
-
body: await parseErrorBody(output.body, context)
|
|
2859
|
-
};
|
|
2860
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2861
|
-
switch (errorCode) {
|
|
2862
|
-
case "ConflictException":
|
|
2863
|
-
case "com.amazonaws.backup#ConflictException":
|
|
2864
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2865
|
-
case "InvalidParameterValueException":
|
|
2866
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2867
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
2868
|
-
case "MissingParameterValueException":
|
|
2869
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2870
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
2871
|
-
case "ResourceNotFoundException":
|
|
2872
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2873
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2874
|
-
case "ServiceUnavailableException":
|
|
2875
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2876
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2877
|
-
default:
|
|
2878
|
-
const parsedBody = parsedOutput.body;
|
|
2879
|
-
return throwDefaultError({
|
|
2880
|
-
output,
|
|
2881
|
-
parsedBody,
|
|
2882
|
-
errorCode
|
|
2883
|
-
});
|
|
2884
|
-
}
|
|
2885
|
-
}, "de_DeleteReportPlanCommandError");
|
|
2886
2297
|
var de_DeleteRestoreTestingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2887
2298
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2888
|
-
return
|
|
2299
|
+
return de_CommandError(output, context);
|
|
2889
2300
|
}
|
|
2890
2301
|
const contents = (0, import_smithy_client.map)({
|
|
2891
2302
|
$metadata: deserializeMetadata(output)
|
|
@@ -2893,31 +2304,9 @@ var de_DeleteRestoreTestingPlanCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2893
2304
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2894
2305
|
return contents;
|
|
2895
2306
|
}, "de_DeleteRestoreTestingPlanCommand");
|
|
2896
|
-
var de_DeleteRestoreTestingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2897
|
-
const parsedOutput = {
|
|
2898
|
-
...output,
|
|
2899
|
-
body: await parseErrorBody(output.body, context)
|
|
2900
|
-
};
|
|
2901
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2902
|
-
switch (errorCode) {
|
|
2903
|
-
case "InvalidRequestException":
|
|
2904
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
2905
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2906
|
-
case "ServiceUnavailableException":
|
|
2907
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2908
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2909
|
-
default:
|
|
2910
|
-
const parsedBody = parsedOutput.body;
|
|
2911
|
-
return throwDefaultError({
|
|
2912
|
-
output,
|
|
2913
|
-
parsedBody,
|
|
2914
|
-
errorCode
|
|
2915
|
-
});
|
|
2916
|
-
}
|
|
2917
|
-
}, "de_DeleteRestoreTestingPlanCommandError");
|
|
2918
2307
|
var de_DeleteRestoreTestingSelectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2919
2308
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2920
|
-
return
|
|
2309
|
+
return de_CommandError(output, context);
|
|
2921
2310
|
}
|
|
2922
2311
|
const contents = (0, import_smithy_client.map)({
|
|
2923
2312
|
$metadata: deserializeMetadata(output)
|
|
@@ -2925,31 +2314,9 @@ var de_DeleteRestoreTestingSelectionCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2925
2314
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2926
2315
|
return contents;
|
|
2927
2316
|
}, "de_DeleteRestoreTestingSelectionCommand");
|
|
2928
|
-
var de_DeleteRestoreTestingSelectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2929
|
-
const parsedOutput = {
|
|
2930
|
-
...output,
|
|
2931
|
-
body: await parseErrorBody(output.body, context)
|
|
2932
|
-
};
|
|
2933
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2934
|
-
switch (errorCode) {
|
|
2935
|
-
case "ResourceNotFoundException":
|
|
2936
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2937
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2938
|
-
case "ServiceUnavailableException":
|
|
2939
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2940
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2941
|
-
default:
|
|
2942
|
-
const parsedBody = parsedOutput.body;
|
|
2943
|
-
return throwDefaultError({
|
|
2944
|
-
output,
|
|
2945
|
-
parsedBody,
|
|
2946
|
-
errorCode
|
|
2947
|
-
});
|
|
2948
|
-
}
|
|
2949
|
-
}, "de_DeleteRestoreTestingSelectionCommandError");
|
|
2950
2317
|
var de_DescribeBackupJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2951
2318
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2952
|
-
return
|
|
2319
|
+
return de_CommandError(output, context);
|
|
2953
2320
|
}
|
|
2954
2321
|
const contents = (0, import_smithy_client.map)({
|
|
2955
2322
|
$metadata: deserializeMetadata(output)
|
|
@@ -2987,40 +2354,9 @@ var de_DescribeBackupJobCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2987
2354
|
Object.assign(contents, doc);
|
|
2988
2355
|
return contents;
|
|
2989
2356
|
}, "de_DescribeBackupJobCommand");
|
|
2990
|
-
var de_DescribeBackupJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2991
|
-
const parsedOutput = {
|
|
2992
|
-
...output,
|
|
2993
|
-
body: await parseErrorBody(output.body, context)
|
|
2994
|
-
};
|
|
2995
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2996
|
-
switch (errorCode) {
|
|
2997
|
-
case "DependencyFailureException":
|
|
2998
|
-
case "com.amazonaws.backup#DependencyFailureException":
|
|
2999
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
3000
|
-
case "InvalidParameterValueException":
|
|
3001
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3002
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3003
|
-
case "MissingParameterValueException":
|
|
3004
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3005
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3006
|
-
case "ResourceNotFoundException":
|
|
3007
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3008
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3009
|
-
case "ServiceUnavailableException":
|
|
3010
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3011
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3012
|
-
default:
|
|
3013
|
-
const parsedBody = parsedOutput.body;
|
|
3014
|
-
return throwDefaultError({
|
|
3015
|
-
output,
|
|
3016
|
-
parsedBody,
|
|
3017
|
-
errorCode
|
|
3018
|
-
});
|
|
3019
|
-
}
|
|
3020
|
-
}, "de_DescribeBackupJobCommandError");
|
|
3021
2357
|
var de_DescribeBackupVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3022
2358
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3023
|
-
return
|
|
2359
|
+
return de_CommandError(output, context);
|
|
3024
2360
|
}
|
|
3025
2361
|
const contents = (0, import_smithy_client.map)({
|
|
3026
2362
|
$metadata: deserializeMetadata(output)
|
|
@@ -3042,37 +2378,9 @@ var de_DescribeBackupVaultCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3042
2378
|
Object.assign(contents, doc);
|
|
3043
2379
|
return contents;
|
|
3044
2380
|
}, "de_DescribeBackupVaultCommand");
|
|
3045
|
-
var de_DescribeBackupVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3046
|
-
const parsedOutput = {
|
|
3047
|
-
...output,
|
|
3048
|
-
body: await parseErrorBody(output.body, context)
|
|
3049
|
-
};
|
|
3050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3051
|
-
switch (errorCode) {
|
|
3052
|
-
case "InvalidParameterValueException":
|
|
3053
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3054
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3055
|
-
case "MissingParameterValueException":
|
|
3056
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3057
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3058
|
-
case "ResourceNotFoundException":
|
|
3059
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3060
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3061
|
-
case "ServiceUnavailableException":
|
|
3062
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3063
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3064
|
-
default:
|
|
3065
|
-
const parsedBody = parsedOutput.body;
|
|
3066
|
-
return throwDefaultError({
|
|
3067
|
-
output,
|
|
3068
|
-
parsedBody,
|
|
3069
|
-
errorCode
|
|
3070
|
-
});
|
|
3071
|
-
}
|
|
3072
|
-
}, "de_DescribeBackupVaultCommandError");
|
|
3073
2381
|
var de_DescribeCopyJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3074
2382
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3075
|
-
return
|
|
2383
|
+
return de_CommandError(output, context);
|
|
3076
2384
|
}
|
|
3077
2385
|
const contents = (0, import_smithy_client.map)({
|
|
3078
2386
|
$metadata: deserializeMetadata(output)
|
|
@@ -3084,37 +2392,9 @@ var de_DescribeCopyJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3084
2392
|
Object.assign(contents, doc);
|
|
3085
2393
|
return contents;
|
|
3086
2394
|
}, "de_DescribeCopyJobCommand");
|
|
3087
|
-
var de_DescribeCopyJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3088
|
-
const parsedOutput = {
|
|
3089
|
-
...output,
|
|
3090
|
-
body: await parseErrorBody(output.body, context)
|
|
3091
|
-
};
|
|
3092
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3093
|
-
switch (errorCode) {
|
|
3094
|
-
case "InvalidParameterValueException":
|
|
3095
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3096
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3097
|
-
case "MissingParameterValueException":
|
|
3098
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3099
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3100
|
-
case "ResourceNotFoundException":
|
|
3101
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3102
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3103
|
-
case "ServiceUnavailableException":
|
|
3104
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3105
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3106
|
-
default:
|
|
3107
|
-
const parsedBody = parsedOutput.body;
|
|
3108
|
-
return throwDefaultError({
|
|
3109
|
-
output,
|
|
3110
|
-
parsedBody,
|
|
3111
|
-
errorCode
|
|
3112
|
-
});
|
|
3113
|
-
}
|
|
3114
|
-
}, "de_DescribeCopyJobCommandError");
|
|
3115
2395
|
var de_DescribeFrameworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3116
2396
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3117
|
-
return
|
|
2397
|
+
return de_CommandError(output, context);
|
|
3118
2398
|
}
|
|
3119
2399
|
const contents = (0, import_smithy_client.map)({
|
|
3120
2400
|
$metadata: deserializeMetadata(output)
|
|
@@ -3133,37 +2413,9 @@ var de_DescribeFrameworkCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3133
2413
|
Object.assign(contents, doc);
|
|
3134
2414
|
return contents;
|
|
3135
2415
|
}, "de_DescribeFrameworkCommand");
|
|
3136
|
-
var de_DescribeFrameworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3137
|
-
const parsedOutput = {
|
|
3138
|
-
...output,
|
|
3139
|
-
body: await parseErrorBody(output.body, context)
|
|
3140
|
-
};
|
|
3141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3142
|
-
switch (errorCode) {
|
|
3143
|
-
case "InvalidParameterValueException":
|
|
3144
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3145
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3146
|
-
case "MissingParameterValueException":
|
|
3147
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3148
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3149
|
-
case "ResourceNotFoundException":
|
|
3150
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3151
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3152
|
-
case "ServiceUnavailableException":
|
|
3153
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3154
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3155
|
-
default:
|
|
3156
|
-
const parsedBody = parsedOutput.body;
|
|
3157
|
-
return throwDefaultError({
|
|
3158
|
-
output,
|
|
3159
|
-
parsedBody,
|
|
3160
|
-
errorCode
|
|
3161
|
-
});
|
|
3162
|
-
}
|
|
3163
|
-
}, "de_DescribeFrameworkCommandError");
|
|
3164
2416
|
var de_DescribeGlobalSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3165
2417
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3166
|
-
return
|
|
2418
|
+
return de_CommandError(output, context);
|
|
3167
2419
|
}
|
|
3168
2420
|
const contents = (0, import_smithy_client.map)({
|
|
3169
2421
|
$metadata: deserializeMetadata(output)
|
|
@@ -3176,31 +2428,9 @@ var de_DescribeGlobalSettingsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3176
2428
|
Object.assign(contents, doc);
|
|
3177
2429
|
return contents;
|
|
3178
2430
|
}, "de_DescribeGlobalSettingsCommand");
|
|
3179
|
-
var de_DescribeGlobalSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3180
|
-
const parsedOutput = {
|
|
3181
|
-
...output,
|
|
3182
|
-
body: await parseErrorBody(output.body, context)
|
|
3183
|
-
};
|
|
3184
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3185
|
-
switch (errorCode) {
|
|
3186
|
-
case "InvalidRequestException":
|
|
3187
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
3188
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3189
|
-
case "ServiceUnavailableException":
|
|
3190
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3191
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3192
|
-
default:
|
|
3193
|
-
const parsedBody = parsedOutput.body;
|
|
3194
|
-
return throwDefaultError({
|
|
3195
|
-
output,
|
|
3196
|
-
parsedBody,
|
|
3197
|
-
errorCode
|
|
3198
|
-
});
|
|
3199
|
-
}
|
|
3200
|
-
}, "de_DescribeGlobalSettingsCommandError");
|
|
3201
2431
|
var de_DescribeProtectedResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3202
2432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3203
|
-
return
|
|
2433
|
+
return de_CommandError(output, context);
|
|
3204
2434
|
}
|
|
3205
2435
|
const contents = (0, import_smithy_client.map)({
|
|
3206
2436
|
$metadata: deserializeMetadata(output)
|
|
@@ -3220,37 +2450,9 @@ var de_DescribeProtectedResourceCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3220
2450
|
Object.assign(contents, doc);
|
|
3221
2451
|
return contents;
|
|
3222
2452
|
}, "de_DescribeProtectedResourceCommand");
|
|
3223
|
-
var de_DescribeProtectedResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3224
|
-
const parsedOutput = {
|
|
3225
|
-
...output,
|
|
3226
|
-
body: await parseErrorBody(output.body, context)
|
|
3227
|
-
};
|
|
3228
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3229
|
-
switch (errorCode) {
|
|
3230
|
-
case "InvalidParameterValueException":
|
|
3231
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3232
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3233
|
-
case "MissingParameterValueException":
|
|
3234
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3235
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3236
|
-
case "ResourceNotFoundException":
|
|
3237
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3238
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3239
|
-
case "ServiceUnavailableException":
|
|
3240
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3241
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3242
|
-
default:
|
|
3243
|
-
const parsedBody = parsedOutput.body;
|
|
3244
|
-
return throwDefaultError({
|
|
3245
|
-
output,
|
|
3246
|
-
parsedBody,
|
|
3247
|
-
errorCode
|
|
3248
|
-
});
|
|
3249
|
-
}
|
|
3250
|
-
}, "de_DescribeProtectedResourceCommandError");
|
|
3251
2453
|
var de_DescribeRecoveryPointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3252
2454
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3253
|
-
return
|
|
2455
|
+
return de_CommandError(output, context);
|
|
3254
2456
|
}
|
|
3255
2457
|
const contents = (0, import_smithy_client.map)({
|
|
3256
2458
|
$metadata: deserializeMetadata(output)
|
|
@@ -3285,37 +2487,9 @@ var de_DescribeRecoveryPointCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3285
2487
|
Object.assign(contents, doc);
|
|
3286
2488
|
return contents;
|
|
3287
2489
|
}, "de_DescribeRecoveryPointCommand");
|
|
3288
|
-
var de_DescribeRecoveryPointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3289
|
-
const parsedOutput = {
|
|
3290
|
-
...output,
|
|
3291
|
-
body: await parseErrorBody(output.body, context)
|
|
3292
|
-
};
|
|
3293
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3294
|
-
switch (errorCode) {
|
|
3295
|
-
case "InvalidParameterValueException":
|
|
3296
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3297
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3298
|
-
case "MissingParameterValueException":
|
|
3299
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3300
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3301
|
-
case "ResourceNotFoundException":
|
|
3302
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3303
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3304
|
-
case "ServiceUnavailableException":
|
|
3305
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3306
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3307
|
-
default:
|
|
3308
|
-
const parsedBody = parsedOutput.body;
|
|
3309
|
-
return throwDefaultError({
|
|
3310
|
-
output,
|
|
3311
|
-
parsedBody,
|
|
3312
|
-
errorCode
|
|
3313
|
-
});
|
|
3314
|
-
}
|
|
3315
|
-
}, "de_DescribeRecoveryPointCommandError");
|
|
3316
2490
|
var de_DescribeRegionSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3317
2491
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3318
|
-
return
|
|
2492
|
+
return de_CommandError(output, context);
|
|
3319
2493
|
}
|
|
3320
2494
|
const contents = (0, import_smithy_client.map)({
|
|
3321
2495
|
$metadata: deserializeMetadata(output)
|
|
@@ -3328,28 +2502,9 @@ var de_DescribeRegionSettingsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3328
2502
|
Object.assign(contents, doc);
|
|
3329
2503
|
return contents;
|
|
3330
2504
|
}, "de_DescribeRegionSettingsCommand");
|
|
3331
|
-
var de_DescribeRegionSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3332
|
-
const parsedOutput = {
|
|
3333
|
-
...output,
|
|
3334
|
-
body: await parseErrorBody(output.body, context)
|
|
3335
|
-
};
|
|
3336
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3337
|
-
switch (errorCode) {
|
|
3338
|
-
case "ServiceUnavailableException":
|
|
3339
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3340
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3341
|
-
default:
|
|
3342
|
-
const parsedBody = parsedOutput.body;
|
|
3343
|
-
return throwDefaultError({
|
|
3344
|
-
output,
|
|
3345
|
-
parsedBody,
|
|
3346
|
-
errorCode
|
|
3347
|
-
});
|
|
3348
|
-
}
|
|
3349
|
-
}, "de_DescribeRegionSettingsCommandError");
|
|
3350
2505
|
var de_DescribeReportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3351
2506
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3352
|
-
return
|
|
2507
|
+
return de_CommandError(output, context);
|
|
3353
2508
|
}
|
|
3354
2509
|
const contents = (0, import_smithy_client.map)({
|
|
3355
2510
|
$metadata: deserializeMetadata(output)
|
|
@@ -3361,34 +2516,9 @@ var de_DescribeReportJobCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3361
2516
|
Object.assign(contents, doc);
|
|
3362
2517
|
return contents;
|
|
3363
2518
|
}, "de_DescribeReportJobCommand");
|
|
3364
|
-
var de_DescribeReportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3365
|
-
const parsedOutput = {
|
|
3366
|
-
...output,
|
|
3367
|
-
body: await parseErrorBody(output.body, context)
|
|
3368
|
-
};
|
|
3369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3370
|
-
switch (errorCode) {
|
|
3371
|
-
case "MissingParameterValueException":
|
|
3372
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3373
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3374
|
-
case "ResourceNotFoundException":
|
|
3375
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3376
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3377
|
-
case "ServiceUnavailableException":
|
|
3378
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3379
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3380
|
-
default:
|
|
3381
|
-
const parsedBody = parsedOutput.body;
|
|
3382
|
-
return throwDefaultError({
|
|
3383
|
-
output,
|
|
3384
|
-
parsedBody,
|
|
3385
|
-
errorCode
|
|
3386
|
-
});
|
|
3387
|
-
}
|
|
3388
|
-
}, "de_DescribeReportJobCommandError");
|
|
3389
2519
|
var de_DescribeReportPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3390
2520
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3391
|
-
return
|
|
2521
|
+
return de_CommandError(output, context);
|
|
3392
2522
|
}
|
|
3393
2523
|
const contents = (0, import_smithy_client.map)({
|
|
3394
2524
|
$metadata: deserializeMetadata(output)
|
|
@@ -3400,37 +2530,9 @@ var de_DescribeReportPlanCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3400
2530
|
Object.assign(contents, doc);
|
|
3401
2531
|
return contents;
|
|
3402
2532
|
}, "de_DescribeReportPlanCommand");
|
|
3403
|
-
var de_DescribeReportPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3404
|
-
const parsedOutput = {
|
|
3405
|
-
...output,
|
|
3406
|
-
body: await parseErrorBody(output.body, context)
|
|
3407
|
-
};
|
|
3408
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3409
|
-
switch (errorCode) {
|
|
3410
|
-
case "InvalidParameterValueException":
|
|
3411
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3412
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3413
|
-
case "MissingParameterValueException":
|
|
3414
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3415
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3416
|
-
case "ResourceNotFoundException":
|
|
3417
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3418
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3419
|
-
case "ServiceUnavailableException":
|
|
3420
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3421
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3422
|
-
default:
|
|
3423
|
-
const parsedBody = parsedOutput.body;
|
|
3424
|
-
return throwDefaultError({
|
|
3425
|
-
output,
|
|
3426
|
-
parsedBody,
|
|
3427
|
-
errorCode
|
|
3428
|
-
});
|
|
3429
|
-
}
|
|
3430
|
-
}, "de_DescribeReportPlanCommandError");
|
|
3431
2533
|
var de_DescribeRestoreJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3432
2534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3433
|
-
return
|
|
2535
|
+
return de_CommandError(output, context);
|
|
3434
2536
|
}
|
|
3435
2537
|
const contents = (0, import_smithy_client.map)({
|
|
3436
2538
|
$metadata: deserializeMetadata(output)
|
|
@@ -3460,40 +2562,9 @@ var de_DescribeRestoreJobCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3460
2562
|
Object.assign(contents, doc);
|
|
3461
2563
|
return contents;
|
|
3462
2564
|
}, "de_DescribeRestoreJobCommand");
|
|
3463
|
-
var de_DescribeRestoreJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3464
|
-
const parsedOutput = {
|
|
3465
|
-
...output,
|
|
3466
|
-
body: await parseErrorBody(output.body, context)
|
|
3467
|
-
};
|
|
3468
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3469
|
-
switch (errorCode) {
|
|
3470
|
-
case "DependencyFailureException":
|
|
3471
|
-
case "com.amazonaws.backup#DependencyFailureException":
|
|
3472
|
-
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
3473
|
-
case "InvalidParameterValueException":
|
|
3474
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3475
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3476
|
-
case "MissingParameterValueException":
|
|
3477
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3478
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3479
|
-
case "ResourceNotFoundException":
|
|
3480
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3481
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3482
|
-
case "ServiceUnavailableException":
|
|
3483
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3484
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3485
|
-
default:
|
|
3486
|
-
const parsedBody = parsedOutput.body;
|
|
3487
|
-
return throwDefaultError({
|
|
3488
|
-
output,
|
|
3489
|
-
parsedBody,
|
|
3490
|
-
errorCode
|
|
3491
|
-
});
|
|
3492
|
-
}
|
|
3493
|
-
}, "de_DescribeRestoreJobCommandError");
|
|
3494
2565
|
var de_DisassociateRecoveryPointCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3495
2566
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3496
|
-
return
|
|
2567
|
+
return de_CommandError(output, context);
|
|
3497
2568
|
}
|
|
3498
2569
|
const contents = (0, import_smithy_client.map)({
|
|
3499
2570
|
$metadata: deserializeMetadata(output)
|
|
@@ -3501,43 +2572,9 @@ var de_DisassociateRecoveryPointCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3501
2572
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3502
2573
|
return contents;
|
|
3503
2574
|
}, "de_DisassociateRecoveryPointCommand");
|
|
3504
|
-
var de_DisassociateRecoveryPointCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3505
|
-
const parsedOutput = {
|
|
3506
|
-
...output,
|
|
3507
|
-
body: await parseErrorBody(output.body, context)
|
|
3508
|
-
};
|
|
3509
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3510
|
-
switch (errorCode) {
|
|
3511
|
-
case "InvalidParameterValueException":
|
|
3512
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3513
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3514
|
-
case "InvalidRequestException":
|
|
3515
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
3516
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3517
|
-
case "InvalidResourceStateException":
|
|
3518
|
-
case "com.amazonaws.backup#InvalidResourceStateException":
|
|
3519
|
-
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
3520
|
-
case "MissingParameterValueException":
|
|
3521
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3522
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3523
|
-
case "ResourceNotFoundException":
|
|
3524
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3525
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3526
|
-
case "ServiceUnavailableException":
|
|
3527
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3528
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3529
|
-
default:
|
|
3530
|
-
const parsedBody = parsedOutput.body;
|
|
3531
|
-
return throwDefaultError({
|
|
3532
|
-
output,
|
|
3533
|
-
parsedBody,
|
|
3534
|
-
errorCode
|
|
3535
|
-
});
|
|
3536
|
-
}
|
|
3537
|
-
}, "de_DisassociateRecoveryPointCommandError");
|
|
3538
2575
|
var de_DisassociateRecoveryPointFromParentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3539
2576
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3540
|
-
return
|
|
2577
|
+
return de_CommandError(output, context);
|
|
3541
2578
|
}
|
|
3542
2579
|
const contents = (0, import_smithy_client.map)({
|
|
3543
2580
|
$metadata: deserializeMetadata(output)
|
|
@@ -3545,40 +2582,9 @@ var de_DisassociateRecoveryPointFromParentCommand = /* @__PURE__ */ __name(async
|
|
|
3545
2582
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3546
2583
|
return contents;
|
|
3547
2584
|
}, "de_DisassociateRecoveryPointFromParentCommand");
|
|
3548
|
-
var de_DisassociateRecoveryPointFromParentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3549
|
-
const parsedOutput = {
|
|
3550
|
-
...output,
|
|
3551
|
-
body: await parseErrorBody(output.body, context)
|
|
3552
|
-
};
|
|
3553
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3554
|
-
switch (errorCode) {
|
|
3555
|
-
case "InvalidParameterValueException":
|
|
3556
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3557
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3558
|
-
case "InvalidRequestException":
|
|
3559
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
3560
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3561
|
-
case "MissingParameterValueException":
|
|
3562
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3563
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3564
|
-
case "ResourceNotFoundException":
|
|
3565
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3566
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3567
|
-
case "ServiceUnavailableException":
|
|
3568
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3569
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3570
|
-
default:
|
|
3571
|
-
const parsedBody = parsedOutput.body;
|
|
3572
|
-
return throwDefaultError({
|
|
3573
|
-
output,
|
|
3574
|
-
parsedBody,
|
|
3575
|
-
errorCode
|
|
3576
|
-
});
|
|
3577
|
-
}
|
|
3578
|
-
}, "de_DisassociateRecoveryPointFromParentCommandError");
|
|
3579
2585
|
var de_ExportBackupPlanTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3580
2586
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3581
|
-
return
|
|
2587
|
+
return de_CommandError(output, context);
|
|
3582
2588
|
}
|
|
3583
2589
|
const contents = (0, import_smithy_client.map)({
|
|
3584
2590
|
$metadata: deserializeMetadata(output)
|
|
@@ -3590,37 +2596,9 @@ var de_ExportBackupPlanTemplateCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3590
2596
|
Object.assign(contents, doc);
|
|
3591
2597
|
return contents;
|
|
3592
2598
|
}, "de_ExportBackupPlanTemplateCommand");
|
|
3593
|
-
var de_ExportBackupPlanTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3594
|
-
const parsedOutput = {
|
|
3595
|
-
...output,
|
|
3596
|
-
body: await parseErrorBody(output.body, context)
|
|
3597
|
-
};
|
|
3598
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3599
|
-
switch (errorCode) {
|
|
3600
|
-
case "InvalidParameterValueException":
|
|
3601
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3602
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3603
|
-
case "MissingParameterValueException":
|
|
3604
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3605
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3606
|
-
case "ResourceNotFoundException":
|
|
3607
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3608
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3609
|
-
case "ServiceUnavailableException":
|
|
3610
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3611
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3612
|
-
default:
|
|
3613
|
-
const parsedBody = parsedOutput.body;
|
|
3614
|
-
return throwDefaultError({
|
|
3615
|
-
output,
|
|
3616
|
-
parsedBody,
|
|
3617
|
-
errorCode
|
|
3618
|
-
});
|
|
3619
|
-
}
|
|
3620
|
-
}, "de_ExportBackupPlanTemplateCommandError");
|
|
3621
2599
|
var de_GetBackupPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3622
2600
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3623
|
-
return
|
|
2601
|
+
return de_CommandError(output, context);
|
|
3624
2602
|
}
|
|
3625
2603
|
const contents = (0, import_smithy_client.map)({
|
|
3626
2604
|
$metadata: deserializeMetadata(output)
|
|
@@ -3640,37 +2618,9 @@ var de_GetBackupPlanCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3640
2618
|
Object.assign(contents, doc);
|
|
3641
2619
|
return contents;
|
|
3642
2620
|
}, "de_GetBackupPlanCommand");
|
|
3643
|
-
var de_GetBackupPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3644
|
-
const parsedOutput = {
|
|
3645
|
-
...output,
|
|
3646
|
-
body: await parseErrorBody(output.body, context)
|
|
3647
|
-
};
|
|
3648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3649
|
-
switch (errorCode) {
|
|
3650
|
-
case "InvalidParameterValueException":
|
|
3651
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3652
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3653
|
-
case "MissingParameterValueException":
|
|
3654
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3655
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3656
|
-
case "ResourceNotFoundException":
|
|
3657
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3658
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3659
|
-
case "ServiceUnavailableException":
|
|
3660
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3661
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3662
|
-
default:
|
|
3663
|
-
const parsedBody = parsedOutput.body;
|
|
3664
|
-
return throwDefaultError({
|
|
3665
|
-
output,
|
|
3666
|
-
parsedBody,
|
|
3667
|
-
errorCode
|
|
3668
|
-
});
|
|
3669
|
-
}
|
|
3670
|
-
}, "de_GetBackupPlanCommandError");
|
|
3671
2621
|
var de_GetBackupPlanFromJSONCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3672
2622
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3673
|
-
return
|
|
2623
|
+
return de_CommandError(output, context);
|
|
3674
2624
|
}
|
|
3675
2625
|
const contents = (0, import_smithy_client.map)({
|
|
3676
2626
|
$metadata: deserializeMetadata(output)
|
|
@@ -3682,40 +2632,9 @@ var de_GetBackupPlanFromJSONCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3682
2632
|
Object.assign(contents, doc);
|
|
3683
2633
|
return contents;
|
|
3684
2634
|
}, "de_GetBackupPlanFromJSONCommand");
|
|
3685
|
-
var de_GetBackupPlanFromJSONCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3686
|
-
const parsedOutput = {
|
|
3687
|
-
...output,
|
|
3688
|
-
body: await parseErrorBody(output.body, context)
|
|
3689
|
-
};
|
|
3690
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3691
|
-
switch (errorCode) {
|
|
3692
|
-
case "InvalidParameterValueException":
|
|
3693
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3694
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3695
|
-
case "InvalidRequestException":
|
|
3696
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
3697
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3698
|
-
case "LimitExceededException":
|
|
3699
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
3700
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3701
|
-
case "MissingParameterValueException":
|
|
3702
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3703
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3704
|
-
case "ServiceUnavailableException":
|
|
3705
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3706
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3707
|
-
default:
|
|
3708
|
-
const parsedBody = parsedOutput.body;
|
|
3709
|
-
return throwDefaultError({
|
|
3710
|
-
output,
|
|
3711
|
-
parsedBody,
|
|
3712
|
-
errorCode
|
|
3713
|
-
});
|
|
3714
|
-
}
|
|
3715
|
-
}, "de_GetBackupPlanFromJSONCommandError");
|
|
3716
2635
|
var de_GetBackupPlanFromTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3717
2636
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3718
|
-
return
|
|
2637
|
+
return de_CommandError(output, context);
|
|
3719
2638
|
}
|
|
3720
2639
|
const contents = (0, import_smithy_client.map)({
|
|
3721
2640
|
$metadata: deserializeMetadata(output)
|
|
@@ -3727,37 +2646,9 @@ var de_GetBackupPlanFromTemplateCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3727
2646
|
Object.assign(contents, doc);
|
|
3728
2647
|
return contents;
|
|
3729
2648
|
}, "de_GetBackupPlanFromTemplateCommand");
|
|
3730
|
-
var de_GetBackupPlanFromTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3731
|
-
const parsedOutput = {
|
|
3732
|
-
...output,
|
|
3733
|
-
body: await parseErrorBody(output.body, context)
|
|
3734
|
-
};
|
|
3735
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3736
|
-
switch (errorCode) {
|
|
3737
|
-
case "InvalidParameterValueException":
|
|
3738
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3739
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3740
|
-
case "MissingParameterValueException":
|
|
3741
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3742
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3743
|
-
case "ResourceNotFoundException":
|
|
3744
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3745
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3746
|
-
case "ServiceUnavailableException":
|
|
3747
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3748
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3749
|
-
default:
|
|
3750
|
-
const parsedBody = parsedOutput.body;
|
|
3751
|
-
return throwDefaultError({
|
|
3752
|
-
output,
|
|
3753
|
-
parsedBody,
|
|
3754
|
-
errorCode
|
|
3755
|
-
});
|
|
3756
|
-
}
|
|
3757
|
-
}, "de_GetBackupPlanFromTemplateCommandError");
|
|
3758
2649
|
var de_GetBackupSelectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3759
2650
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3760
|
-
return
|
|
2651
|
+
return de_CommandError(output, context);
|
|
3761
2652
|
}
|
|
3762
2653
|
const contents = (0, import_smithy_client.map)({
|
|
3763
2654
|
$metadata: deserializeMetadata(output)
|
|
@@ -3773,37 +2664,9 @@ var de_GetBackupSelectionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3773
2664
|
Object.assign(contents, doc);
|
|
3774
2665
|
return contents;
|
|
3775
2666
|
}, "de_GetBackupSelectionCommand");
|
|
3776
|
-
var de_GetBackupSelectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3777
|
-
const parsedOutput = {
|
|
3778
|
-
...output,
|
|
3779
|
-
body: await parseErrorBody(output.body, context)
|
|
3780
|
-
};
|
|
3781
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3782
|
-
switch (errorCode) {
|
|
3783
|
-
case "InvalidParameterValueException":
|
|
3784
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3785
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3786
|
-
case "MissingParameterValueException":
|
|
3787
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3788
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3789
|
-
case "ResourceNotFoundException":
|
|
3790
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3791
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3792
|
-
case "ServiceUnavailableException":
|
|
3793
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3794
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3795
|
-
default:
|
|
3796
|
-
const parsedBody = parsedOutput.body;
|
|
3797
|
-
return throwDefaultError({
|
|
3798
|
-
output,
|
|
3799
|
-
parsedBody,
|
|
3800
|
-
errorCode
|
|
3801
|
-
});
|
|
3802
|
-
}
|
|
3803
|
-
}, "de_GetBackupSelectionCommandError");
|
|
3804
2667
|
var de_GetBackupVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3805
2668
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3806
|
-
return
|
|
2669
|
+
return de_CommandError(output, context);
|
|
3807
2670
|
}
|
|
3808
2671
|
const contents = (0, import_smithy_client.map)({
|
|
3809
2672
|
$metadata: deserializeMetadata(output)
|
|
@@ -3817,37 +2680,9 @@ var de_GetBackupVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3817
2680
|
Object.assign(contents, doc);
|
|
3818
2681
|
return contents;
|
|
3819
2682
|
}, "de_GetBackupVaultAccessPolicyCommand");
|
|
3820
|
-
var de_GetBackupVaultAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3821
|
-
const parsedOutput = {
|
|
3822
|
-
...output,
|
|
3823
|
-
body: await parseErrorBody(output.body, context)
|
|
3824
|
-
};
|
|
3825
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3826
|
-
switch (errorCode) {
|
|
3827
|
-
case "InvalidParameterValueException":
|
|
3828
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3829
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3830
|
-
case "MissingParameterValueException":
|
|
3831
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3832
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3833
|
-
case "ResourceNotFoundException":
|
|
3834
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3835
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3836
|
-
case "ServiceUnavailableException":
|
|
3837
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3838
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3839
|
-
default:
|
|
3840
|
-
const parsedBody = parsedOutput.body;
|
|
3841
|
-
return throwDefaultError({
|
|
3842
|
-
output,
|
|
3843
|
-
parsedBody,
|
|
3844
|
-
errorCode
|
|
3845
|
-
});
|
|
3846
|
-
}
|
|
3847
|
-
}, "de_GetBackupVaultAccessPolicyCommandError");
|
|
3848
2683
|
var de_GetBackupVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3849
2684
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3850
|
-
return
|
|
2685
|
+
return de_CommandError(output, context);
|
|
3851
2686
|
}
|
|
3852
2687
|
const contents = (0, import_smithy_client.map)({
|
|
3853
2688
|
$metadata: deserializeMetadata(output)
|
|
@@ -3862,37 +2697,9 @@ var de_GetBackupVaultNotificationsCommand = /* @__PURE__ */ __name(async (output
|
|
|
3862
2697
|
Object.assign(contents, doc);
|
|
3863
2698
|
return contents;
|
|
3864
2699
|
}, "de_GetBackupVaultNotificationsCommand");
|
|
3865
|
-
var de_GetBackupVaultNotificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3866
|
-
const parsedOutput = {
|
|
3867
|
-
...output,
|
|
3868
|
-
body: await parseErrorBody(output.body, context)
|
|
3869
|
-
};
|
|
3870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3871
|
-
switch (errorCode) {
|
|
3872
|
-
case "InvalidParameterValueException":
|
|
3873
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3874
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3875
|
-
case "MissingParameterValueException":
|
|
3876
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3877
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3878
|
-
case "ResourceNotFoundException":
|
|
3879
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3880
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3881
|
-
case "ServiceUnavailableException":
|
|
3882
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3883
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3884
|
-
default:
|
|
3885
|
-
const parsedBody = parsedOutput.body;
|
|
3886
|
-
return throwDefaultError({
|
|
3887
|
-
output,
|
|
3888
|
-
parsedBody,
|
|
3889
|
-
errorCode
|
|
3890
|
-
});
|
|
3891
|
-
}
|
|
3892
|
-
}, "de_GetBackupVaultNotificationsCommandError");
|
|
3893
2700
|
var de_GetLegalHoldCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3894
2701
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3895
|
-
return
|
|
2702
|
+
return de_CommandError(output, context);
|
|
3896
2703
|
}
|
|
3897
2704
|
const contents = (0, import_smithy_client.map)({
|
|
3898
2705
|
$metadata: deserializeMetadata(output)
|
|
@@ -3913,37 +2720,9 @@ var de_GetLegalHoldCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3913
2720
|
Object.assign(contents, doc);
|
|
3914
2721
|
return contents;
|
|
3915
2722
|
}, "de_GetLegalHoldCommand");
|
|
3916
|
-
var de_GetLegalHoldCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3917
|
-
const parsedOutput = {
|
|
3918
|
-
...output,
|
|
3919
|
-
body: await parseErrorBody(output.body, context)
|
|
3920
|
-
};
|
|
3921
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3922
|
-
switch (errorCode) {
|
|
3923
|
-
case "InvalidParameterValueException":
|
|
3924
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3925
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3926
|
-
case "MissingParameterValueException":
|
|
3927
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3928
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3929
|
-
case "ResourceNotFoundException":
|
|
3930
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3931
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3932
|
-
case "ServiceUnavailableException":
|
|
3933
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3934
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3935
|
-
default:
|
|
3936
|
-
const parsedBody = parsedOutput.body;
|
|
3937
|
-
return throwDefaultError({
|
|
3938
|
-
output,
|
|
3939
|
-
parsedBody,
|
|
3940
|
-
errorCode
|
|
3941
|
-
});
|
|
3942
|
-
}
|
|
3943
|
-
}, "de_GetLegalHoldCommandError");
|
|
3944
2723
|
var de_GetRecoveryPointRestoreMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3945
2724
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3946
|
-
return
|
|
2725
|
+
return de_CommandError(output, context);
|
|
3947
2726
|
}
|
|
3948
2727
|
const contents = (0, import_smithy_client.map)({
|
|
3949
2728
|
$metadata: deserializeMetadata(output)
|
|
@@ -3958,37 +2737,9 @@ var de_GetRecoveryPointRestoreMetadataCommand = /* @__PURE__ */ __name(async (ou
|
|
|
3958
2737
|
Object.assign(contents, doc);
|
|
3959
2738
|
return contents;
|
|
3960
2739
|
}, "de_GetRecoveryPointRestoreMetadataCommand");
|
|
3961
|
-
var de_GetRecoveryPointRestoreMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3962
|
-
const parsedOutput = {
|
|
3963
|
-
...output,
|
|
3964
|
-
body: await parseErrorBody(output.body, context)
|
|
3965
|
-
};
|
|
3966
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3967
|
-
switch (errorCode) {
|
|
3968
|
-
case "InvalidParameterValueException":
|
|
3969
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3970
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3971
|
-
case "MissingParameterValueException":
|
|
3972
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3973
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
3974
|
-
case "ResourceNotFoundException":
|
|
3975
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3976
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3977
|
-
case "ServiceUnavailableException":
|
|
3978
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3979
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3980
|
-
default:
|
|
3981
|
-
const parsedBody = parsedOutput.body;
|
|
3982
|
-
return throwDefaultError({
|
|
3983
|
-
output,
|
|
3984
|
-
parsedBody,
|
|
3985
|
-
errorCode
|
|
3986
|
-
});
|
|
3987
|
-
}
|
|
3988
|
-
}, "de_GetRecoveryPointRestoreMetadataCommandError");
|
|
3989
2740
|
var de_GetRestoreJobMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3990
2741
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3991
|
-
return
|
|
2742
|
+
return de_CommandError(output, context);
|
|
3992
2743
|
}
|
|
3993
2744
|
const contents = (0, import_smithy_client.map)({
|
|
3994
2745
|
$metadata: deserializeMetadata(output)
|
|
@@ -4001,37 +2752,9 @@ var de_GetRestoreJobMetadataCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4001
2752
|
Object.assign(contents, doc);
|
|
4002
2753
|
return contents;
|
|
4003
2754
|
}, "de_GetRestoreJobMetadataCommand");
|
|
4004
|
-
var de_GetRestoreJobMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4005
|
-
const parsedOutput = {
|
|
4006
|
-
...output,
|
|
4007
|
-
body: await parseErrorBody(output.body, context)
|
|
4008
|
-
};
|
|
4009
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4010
|
-
switch (errorCode) {
|
|
4011
|
-
case "InvalidParameterValueException":
|
|
4012
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4013
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4014
|
-
case "MissingParameterValueException":
|
|
4015
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4016
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4017
|
-
case "ResourceNotFoundException":
|
|
4018
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4019
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4020
|
-
case "ServiceUnavailableException":
|
|
4021
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4022
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4023
|
-
default:
|
|
4024
|
-
const parsedBody = parsedOutput.body;
|
|
4025
|
-
return throwDefaultError({
|
|
4026
|
-
output,
|
|
4027
|
-
parsedBody,
|
|
4028
|
-
errorCode
|
|
4029
|
-
});
|
|
4030
|
-
}
|
|
4031
|
-
}, "de_GetRestoreJobMetadataCommandError");
|
|
4032
2755
|
var de_GetRestoreTestingInferredMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4033
2756
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4034
|
-
return
|
|
2757
|
+
return de_CommandError(output, context);
|
|
4035
2758
|
}
|
|
4036
2759
|
const contents = (0, import_smithy_client.map)({
|
|
4037
2760
|
$metadata: deserializeMetadata(output)
|
|
@@ -4043,37 +2766,9 @@ var de_GetRestoreTestingInferredMetadataCommand = /* @__PURE__ */ __name(async (
|
|
|
4043
2766
|
Object.assign(contents, doc);
|
|
4044
2767
|
return contents;
|
|
4045
2768
|
}, "de_GetRestoreTestingInferredMetadataCommand");
|
|
4046
|
-
var de_GetRestoreTestingInferredMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4047
|
-
const parsedOutput = {
|
|
4048
|
-
...output,
|
|
4049
|
-
body: await parseErrorBody(output.body, context)
|
|
4050
|
-
};
|
|
4051
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4052
|
-
switch (errorCode) {
|
|
4053
|
-
case "InvalidParameterValueException":
|
|
4054
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4055
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4056
|
-
case "MissingParameterValueException":
|
|
4057
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4058
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4059
|
-
case "ResourceNotFoundException":
|
|
4060
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4061
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4062
|
-
case "ServiceUnavailableException":
|
|
4063
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4064
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4065
|
-
default:
|
|
4066
|
-
const parsedBody = parsedOutput.body;
|
|
4067
|
-
return throwDefaultError({
|
|
4068
|
-
output,
|
|
4069
|
-
parsedBody,
|
|
4070
|
-
errorCode
|
|
4071
|
-
});
|
|
4072
|
-
}
|
|
4073
|
-
}, "de_GetRestoreTestingInferredMetadataCommandError");
|
|
4074
2769
|
var de_GetRestoreTestingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4075
2770
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4076
|
-
return
|
|
2771
|
+
return de_CommandError(output, context);
|
|
4077
2772
|
}
|
|
4078
2773
|
const contents = (0, import_smithy_client.map)({
|
|
4079
2774
|
$metadata: deserializeMetadata(output)
|
|
@@ -4085,31 +2780,9 @@ var de_GetRestoreTestingPlanCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4085
2780
|
Object.assign(contents, doc);
|
|
4086
2781
|
return contents;
|
|
4087
2782
|
}, "de_GetRestoreTestingPlanCommand");
|
|
4088
|
-
var de_GetRestoreTestingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4089
|
-
const parsedOutput = {
|
|
4090
|
-
...output,
|
|
4091
|
-
body: await parseErrorBody(output.body, context)
|
|
4092
|
-
};
|
|
4093
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4094
|
-
switch (errorCode) {
|
|
4095
|
-
case "ResourceNotFoundException":
|
|
4096
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4097
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4098
|
-
case "ServiceUnavailableException":
|
|
4099
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4100
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4101
|
-
default:
|
|
4102
|
-
const parsedBody = parsedOutput.body;
|
|
4103
|
-
return throwDefaultError({
|
|
4104
|
-
output,
|
|
4105
|
-
parsedBody,
|
|
4106
|
-
errorCode
|
|
4107
|
-
});
|
|
4108
|
-
}
|
|
4109
|
-
}, "de_GetRestoreTestingPlanCommandError");
|
|
4110
2783
|
var de_GetRestoreTestingSelectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4111
2784
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4112
|
-
return
|
|
2785
|
+
return de_CommandError(output, context);
|
|
4113
2786
|
}
|
|
4114
2787
|
const contents = (0, import_smithy_client.map)({
|
|
4115
2788
|
$metadata: deserializeMetadata(output)
|
|
@@ -4121,31 +2794,9 @@ var de_GetRestoreTestingSelectionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4121
2794
|
Object.assign(contents, doc);
|
|
4122
2795
|
return contents;
|
|
4123
2796
|
}, "de_GetRestoreTestingSelectionCommand");
|
|
4124
|
-
var de_GetRestoreTestingSelectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4125
|
-
const parsedOutput = {
|
|
4126
|
-
...output,
|
|
4127
|
-
body: await parseErrorBody(output.body, context)
|
|
4128
|
-
};
|
|
4129
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4130
|
-
switch (errorCode) {
|
|
4131
|
-
case "ResourceNotFoundException":
|
|
4132
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4133
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4134
|
-
case "ServiceUnavailableException":
|
|
4135
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4136
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4137
|
-
default:
|
|
4138
|
-
const parsedBody = parsedOutput.body;
|
|
4139
|
-
return throwDefaultError({
|
|
4140
|
-
output,
|
|
4141
|
-
parsedBody,
|
|
4142
|
-
errorCode
|
|
4143
|
-
});
|
|
4144
|
-
}
|
|
4145
|
-
}, "de_GetRestoreTestingSelectionCommandError");
|
|
4146
2797
|
var de_GetSupportedResourceTypesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4147
2798
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4148
|
-
return
|
|
2799
|
+
return de_CommandError(output, context);
|
|
4149
2800
|
}
|
|
4150
2801
|
const contents = (0, import_smithy_client.map)({
|
|
4151
2802
|
$metadata: deserializeMetadata(output)
|
|
@@ -4157,28 +2808,9 @@ var de_GetSupportedResourceTypesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4157
2808
|
Object.assign(contents, doc);
|
|
4158
2809
|
return contents;
|
|
4159
2810
|
}, "de_GetSupportedResourceTypesCommand");
|
|
4160
|
-
var de_GetSupportedResourceTypesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4161
|
-
const parsedOutput = {
|
|
4162
|
-
...output,
|
|
4163
|
-
body: await parseErrorBody(output.body, context)
|
|
4164
|
-
};
|
|
4165
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4166
|
-
switch (errorCode) {
|
|
4167
|
-
case "ServiceUnavailableException":
|
|
4168
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4169
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4170
|
-
default:
|
|
4171
|
-
const parsedBody = parsedOutput.body;
|
|
4172
|
-
return throwDefaultError({
|
|
4173
|
-
output,
|
|
4174
|
-
parsedBody,
|
|
4175
|
-
errorCode
|
|
4176
|
-
});
|
|
4177
|
-
}
|
|
4178
|
-
}, "de_GetSupportedResourceTypesCommandError");
|
|
4179
2811
|
var de_ListBackupJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4180
2812
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4181
|
-
return
|
|
2813
|
+
return de_CommandError(output, context);
|
|
4182
2814
|
}
|
|
4183
2815
|
const contents = (0, import_smithy_client.map)({
|
|
4184
2816
|
$metadata: deserializeMetadata(output)
|
|
@@ -4191,31 +2823,9 @@ var de_ListBackupJobsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4191
2823
|
Object.assign(contents, doc);
|
|
4192
2824
|
return contents;
|
|
4193
2825
|
}, "de_ListBackupJobsCommand");
|
|
4194
|
-
var de_ListBackupJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4195
|
-
const parsedOutput = {
|
|
4196
|
-
...output,
|
|
4197
|
-
body: await parseErrorBody(output.body, context)
|
|
4198
|
-
};
|
|
4199
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4200
|
-
switch (errorCode) {
|
|
4201
|
-
case "InvalidParameterValueException":
|
|
4202
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4203
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4204
|
-
case "ServiceUnavailableException":
|
|
4205
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4206
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4207
|
-
default:
|
|
4208
|
-
const parsedBody = parsedOutput.body;
|
|
4209
|
-
return throwDefaultError({
|
|
4210
|
-
output,
|
|
4211
|
-
parsedBody,
|
|
4212
|
-
errorCode
|
|
4213
|
-
});
|
|
4214
|
-
}
|
|
4215
|
-
}, "de_ListBackupJobsCommandError");
|
|
4216
2826
|
var de_ListBackupJobSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4217
2827
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4218
|
-
return
|
|
2828
|
+
return de_CommandError(output, context);
|
|
4219
2829
|
}
|
|
4220
2830
|
const contents = (0, import_smithy_client.map)({
|
|
4221
2831
|
$metadata: deserializeMetadata(output)
|
|
@@ -4229,31 +2839,9 @@ var de_ListBackupJobSummariesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4229
2839
|
Object.assign(contents, doc);
|
|
4230
2840
|
return contents;
|
|
4231
2841
|
}, "de_ListBackupJobSummariesCommand");
|
|
4232
|
-
var de_ListBackupJobSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4233
|
-
const parsedOutput = {
|
|
4234
|
-
...output,
|
|
4235
|
-
body: await parseErrorBody(output.body, context)
|
|
4236
|
-
};
|
|
4237
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4238
|
-
switch (errorCode) {
|
|
4239
|
-
case "InvalidParameterValueException":
|
|
4240
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4241
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4242
|
-
case "ServiceUnavailableException":
|
|
4243
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4244
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4245
|
-
default:
|
|
4246
|
-
const parsedBody = parsedOutput.body;
|
|
4247
|
-
return throwDefaultError({
|
|
4248
|
-
output,
|
|
4249
|
-
parsedBody,
|
|
4250
|
-
errorCode
|
|
4251
|
-
});
|
|
4252
|
-
}
|
|
4253
|
-
}, "de_ListBackupJobSummariesCommandError");
|
|
4254
2842
|
var de_ListBackupPlansCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4255
2843
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4256
|
-
return
|
|
2844
|
+
return de_CommandError(output, context);
|
|
4257
2845
|
}
|
|
4258
2846
|
const contents = (0, import_smithy_client.map)({
|
|
4259
2847
|
$metadata: deserializeMetadata(output)
|
|
@@ -4266,37 +2854,9 @@ var de_ListBackupPlansCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4266
2854
|
Object.assign(contents, doc);
|
|
4267
2855
|
return contents;
|
|
4268
2856
|
}, "de_ListBackupPlansCommand");
|
|
4269
|
-
var de_ListBackupPlansCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4270
|
-
const parsedOutput = {
|
|
4271
|
-
...output,
|
|
4272
|
-
body: await parseErrorBody(output.body, context)
|
|
4273
|
-
};
|
|
4274
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4275
|
-
switch (errorCode) {
|
|
4276
|
-
case "InvalidParameterValueException":
|
|
4277
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4278
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4279
|
-
case "MissingParameterValueException":
|
|
4280
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4281
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4282
|
-
case "ResourceNotFoundException":
|
|
4283
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4284
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4285
|
-
case "ServiceUnavailableException":
|
|
4286
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4287
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4288
|
-
default:
|
|
4289
|
-
const parsedBody = parsedOutput.body;
|
|
4290
|
-
return throwDefaultError({
|
|
4291
|
-
output,
|
|
4292
|
-
parsedBody,
|
|
4293
|
-
errorCode
|
|
4294
|
-
});
|
|
4295
|
-
}
|
|
4296
|
-
}, "de_ListBackupPlansCommandError");
|
|
4297
2857
|
var de_ListBackupPlanTemplatesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4298
2858
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4299
|
-
return
|
|
2859
|
+
return de_CommandError(output, context);
|
|
4300
2860
|
}
|
|
4301
2861
|
const contents = (0, import_smithy_client.map)({
|
|
4302
2862
|
$metadata: deserializeMetadata(output)
|
|
@@ -4309,37 +2869,9 @@ var de_ListBackupPlanTemplatesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4309
2869
|
Object.assign(contents, doc);
|
|
4310
2870
|
return contents;
|
|
4311
2871
|
}, "de_ListBackupPlanTemplatesCommand");
|
|
4312
|
-
var de_ListBackupPlanTemplatesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4313
|
-
const parsedOutput = {
|
|
4314
|
-
...output,
|
|
4315
|
-
body: await parseErrorBody(output.body, context)
|
|
4316
|
-
};
|
|
4317
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4318
|
-
switch (errorCode) {
|
|
4319
|
-
case "InvalidParameterValueException":
|
|
4320
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4321
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4322
|
-
case "MissingParameterValueException":
|
|
4323
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4324
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4325
|
-
case "ResourceNotFoundException":
|
|
4326
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4327
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4328
|
-
case "ServiceUnavailableException":
|
|
4329
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4330
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4331
|
-
default:
|
|
4332
|
-
const parsedBody = parsedOutput.body;
|
|
4333
|
-
return throwDefaultError({
|
|
4334
|
-
output,
|
|
4335
|
-
parsedBody,
|
|
4336
|
-
errorCode
|
|
4337
|
-
});
|
|
4338
|
-
}
|
|
4339
|
-
}, "de_ListBackupPlanTemplatesCommandError");
|
|
4340
2872
|
var de_ListBackupPlanVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4341
2873
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4342
|
-
return
|
|
2874
|
+
return de_CommandError(output, context);
|
|
4343
2875
|
}
|
|
4344
2876
|
const contents = (0, import_smithy_client.map)({
|
|
4345
2877
|
$metadata: deserializeMetadata(output)
|
|
@@ -4352,37 +2884,9 @@ var de_ListBackupPlanVersionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4352
2884
|
Object.assign(contents, doc);
|
|
4353
2885
|
return contents;
|
|
4354
2886
|
}, "de_ListBackupPlanVersionsCommand");
|
|
4355
|
-
var de_ListBackupPlanVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4356
|
-
const parsedOutput = {
|
|
4357
|
-
...output,
|
|
4358
|
-
body: await parseErrorBody(output.body, context)
|
|
4359
|
-
};
|
|
4360
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4361
|
-
switch (errorCode) {
|
|
4362
|
-
case "InvalidParameterValueException":
|
|
4363
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4364
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4365
|
-
case "MissingParameterValueException":
|
|
4366
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4367
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4368
|
-
case "ResourceNotFoundException":
|
|
4369
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4370
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4371
|
-
case "ServiceUnavailableException":
|
|
4372
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4373
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4374
|
-
default:
|
|
4375
|
-
const parsedBody = parsedOutput.body;
|
|
4376
|
-
return throwDefaultError({
|
|
4377
|
-
output,
|
|
4378
|
-
parsedBody,
|
|
4379
|
-
errorCode
|
|
4380
|
-
});
|
|
4381
|
-
}
|
|
4382
|
-
}, "de_ListBackupPlanVersionsCommandError");
|
|
4383
2887
|
var de_ListBackupSelectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4384
2888
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4385
|
-
return
|
|
2889
|
+
return de_CommandError(output, context);
|
|
4386
2890
|
}
|
|
4387
2891
|
const contents = (0, import_smithy_client.map)({
|
|
4388
2892
|
$metadata: deserializeMetadata(output)
|
|
@@ -4395,37 +2899,9 @@ var de_ListBackupSelectionsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4395
2899
|
Object.assign(contents, doc);
|
|
4396
2900
|
return contents;
|
|
4397
2901
|
}, "de_ListBackupSelectionsCommand");
|
|
4398
|
-
var de_ListBackupSelectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4399
|
-
const parsedOutput = {
|
|
4400
|
-
...output,
|
|
4401
|
-
body: await parseErrorBody(output.body, context)
|
|
4402
|
-
};
|
|
4403
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4404
|
-
switch (errorCode) {
|
|
4405
|
-
case "InvalidParameterValueException":
|
|
4406
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4407
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4408
|
-
case "MissingParameterValueException":
|
|
4409
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4410
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4411
|
-
case "ResourceNotFoundException":
|
|
4412
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4413
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4414
|
-
case "ServiceUnavailableException":
|
|
4415
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4416
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4417
|
-
default:
|
|
4418
|
-
const parsedBody = parsedOutput.body;
|
|
4419
|
-
return throwDefaultError({
|
|
4420
|
-
output,
|
|
4421
|
-
parsedBody,
|
|
4422
|
-
errorCode
|
|
4423
|
-
});
|
|
4424
|
-
}
|
|
4425
|
-
}, "de_ListBackupSelectionsCommandError");
|
|
4426
2902
|
var de_ListBackupVaultsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4427
2903
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4428
|
-
return
|
|
2904
|
+
return de_CommandError(output, context);
|
|
4429
2905
|
}
|
|
4430
2906
|
const contents = (0, import_smithy_client.map)({
|
|
4431
2907
|
$metadata: deserializeMetadata(output)
|
|
@@ -4438,37 +2914,9 @@ var de_ListBackupVaultsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4438
2914
|
Object.assign(contents, doc);
|
|
4439
2915
|
return contents;
|
|
4440
2916
|
}, "de_ListBackupVaultsCommand");
|
|
4441
|
-
var de_ListBackupVaultsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4442
|
-
const parsedOutput = {
|
|
4443
|
-
...output,
|
|
4444
|
-
body: await parseErrorBody(output.body, context)
|
|
4445
|
-
};
|
|
4446
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4447
|
-
switch (errorCode) {
|
|
4448
|
-
case "InvalidParameterValueException":
|
|
4449
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4450
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4451
|
-
case "MissingParameterValueException":
|
|
4452
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4453
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4454
|
-
case "ResourceNotFoundException":
|
|
4455
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4456
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4457
|
-
case "ServiceUnavailableException":
|
|
4458
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4459
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4460
|
-
default:
|
|
4461
|
-
const parsedBody = parsedOutput.body;
|
|
4462
|
-
return throwDefaultError({
|
|
4463
|
-
output,
|
|
4464
|
-
parsedBody,
|
|
4465
|
-
errorCode
|
|
4466
|
-
});
|
|
4467
|
-
}
|
|
4468
|
-
}, "de_ListBackupVaultsCommandError");
|
|
4469
2917
|
var de_ListCopyJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4470
2918
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4471
|
-
return
|
|
2919
|
+
return de_CommandError(output, context);
|
|
4472
2920
|
}
|
|
4473
2921
|
const contents = (0, import_smithy_client.map)({
|
|
4474
2922
|
$metadata: deserializeMetadata(output)
|
|
@@ -4481,31 +2929,9 @@ var de_ListCopyJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4481
2929
|
Object.assign(contents, doc);
|
|
4482
2930
|
return contents;
|
|
4483
2931
|
}, "de_ListCopyJobsCommand");
|
|
4484
|
-
var de_ListCopyJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4485
|
-
const parsedOutput = {
|
|
4486
|
-
...output,
|
|
4487
|
-
body: await parseErrorBody(output.body, context)
|
|
4488
|
-
};
|
|
4489
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4490
|
-
switch (errorCode) {
|
|
4491
|
-
case "InvalidParameterValueException":
|
|
4492
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4493
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4494
|
-
case "ServiceUnavailableException":
|
|
4495
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4496
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4497
|
-
default:
|
|
4498
|
-
const parsedBody = parsedOutput.body;
|
|
4499
|
-
return throwDefaultError({
|
|
4500
|
-
output,
|
|
4501
|
-
parsedBody,
|
|
4502
|
-
errorCode
|
|
4503
|
-
});
|
|
4504
|
-
}
|
|
4505
|
-
}, "de_ListCopyJobsCommandError");
|
|
4506
2932
|
var de_ListCopyJobSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4507
2933
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4508
|
-
return
|
|
2934
|
+
return de_CommandError(output, context);
|
|
4509
2935
|
}
|
|
4510
2936
|
const contents = (0, import_smithy_client.map)({
|
|
4511
2937
|
$metadata: deserializeMetadata(output)
|
|
@@ -4519,31 +2945,9 @@ var de_ListCopyJobSummariesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4519
2945
|
Object.assign(contents, doc);
|
|
4520
2946
|
return contents;
|
|
4521
2947
|
}, "de_ListCopyJobSummariesCommand");
|
|
4522
|
-
var de_ListCopyJobSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4523
|
-
const parsedOutput = {
|
|
4524
|
-
...output,
|
|
4525
|
-
body: await parseErrorBody(output.body, context)
|
|
4526
|
-
};
|
|
4527
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4528
|
-
switch (errorCode) {
|
|
4529
|
-
case "InvalidParameterValueException":
|
|
4530
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4531
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4532
|
-
case "ServiceUnavailableException":
|
|
4533
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4534
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4535
|
-
default:
|
|
4536
|
-
const parsedBody = parsedOutput.body;
|
|
4537
|
-
return throwDefaultError({
|
|
4538
|
-
output,
|
|
4539
|
-
parsedBody,
|
|
4540
|
-
errorCode
|
|
4541
|
-
});
|
|
4542
|
-
}
|
|
4543
|
-
}, "de_ListCopyJobSummariesCommandError");
|
|
4544
2948
|
var de_ListFrameworksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4545
2949
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4546
|
-
return
|
|
2950
|
+
return de_CommandError(output, context);
|
|
4547
2951
|
}
|
|
4548
2952
|
const contents = (0, import_smithy_client.map)({
|
|
4549
2953
|
$metadata: deserializeMetadata(output)
|
|
@@ -4556,31 +2960,9 @@ var de_ListFrameworksCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4556
2960
|
Object.assign(contents, doc);
|
|
4557
2961
|
return contents;
|
|
4558
2962
|
}, "de_ListFrameworksCommand");
|
|
4559
|
-
var de_ListFrameworksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4560
|
-
const parsedOutput = {
|
|
4561
|
-
...output,
|
|
4562
|
-
body: await parseErrorBody(output.body, context)
|
|
4563
|
-
};
|
|
4564
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4565
|
-
switch (errorCode) {
|
|
4566
|
-
case "InvalidParameterValueException":
|
|
4567
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4568
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4569
|
-
case "ServiceUnavailableException":
|
|
4570
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4571
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4572
|
-
default:
|
|
4573
|
-
const parsedBody = parsedOutput.body;
|
|
4574
|
-
return throwDefaultError({
|
|
4575
|
-
output,
|
|
4576
|
-
parsedBody,
|
|
4577
|
-
errorCode
|
|
4578
|
-
});
|
|
4579
|
-
}
|
|
4580
|
-
}, "de_ListFrameworksCommandError");
|
|
4581
2963
|
var de_ListLegalHoldsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4582
2964
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4583
|
-
return
|
|
2965
|
+
return de_CommandError(output, context);
|
|
4584
2966
|
}
|
|
4585
2967
|
const contents = (0, import_smithy_client.map)({
|
|
4586
2968
|
$metadata: deserializeMetadata(output)
|
|
@@ -4593,31 +2975,9 @@ var de_ListLegalHoldsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4593
2975
|
Object.assign(contents, doc);
|
|
4594
2976
|
return contents;
|
|
4595
2977
|
}, "de_ListLegalHoldsCommand");
|
|
4596
|
-
var de_ListLegalHoldsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4597
|
-
const parsedOutput = {
|
|
4598
|
-
...output,
|
|
4599
|
-
body: await parseErrorBody(output.body, context)
|
|
4600
|
-
};
|
|
4601
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4602
|
-
switch (errorCode) {
|
|
4603
|
-
case "InvalidParameterValueException":
|
|
4604
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4605
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4606
|
-
case "ServiceUnavailableException":
|
|
4607
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4608
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4609
|
-
default:
|
|
4610
|
-
const parsedBody = parsedOutput.body;
|
|
4611
|
-
return throwDefaultError({
|
|
4612
|
-
output,
|
|
4613
|
-
parsedBody,
|
|
4614
|
-
errorCode
|
|
4615
|
-
});
|
|
4616
|
-
}
|
|
4617
|
-
}, "de_ListLegalHoldsCommandError");
|
|
4618
2978
|
var de_ListProtectedResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4619
2979
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4620
|
-
return
|
|
2980
|
+
return de_CommandError(output, context);
|
|
4621
2981
|
}
|
|
4622
2982
|
const contents = (0, import_smithy_client.map)({
|
|
4623
2983
|
$metadata: deserializeMetadata(output)
|
|
@@ -4630,31 +2990,9 @@ var de_ListProtectedResourcesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4630
2990
|
Object.assign(contents, doc);
|
|
4631
2991
|
return contents;
|
|
4632
2992
|
}, "de_ListProtectedResourcesCommand");
|
|
4633
|
-
var de_ListProtectedResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4634
|
-
const parsedOutput = {
|
|
4635
|
-
...output,
|
|
4636
|
-
body: await parseErrorBody(output.body, context)
|
|
4637
|
-
};
|
|
4638
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4639
|
-
switch (errorCode) {
|
|
4640
|
-
case "InvalidParameterValueException":
|
|
4641
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4642
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4643
|
-
case "ServiceUnavailableException":
|
|
4644
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4645
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4646
|
-
default:
|
|
4647
|
-
const parsedBody = parsedOutput.body;
|
|
4648
|
-
return throwDefaultError({
|
|
4649
|
-
output,
|
|
4650
|
-
parsedBody,
|
|
4651
|
-
errorCode
|
|
4652
|
-
});
|
|
4653
|
-
}
|
|
4654
|
-
}, "de_ListProtectedResourcesCommandError");
|
|
4655
2993
|
var de_ListProtectedResourcesByBackupVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4656
2994
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4657
|
-
return
|
|
2995
|
+
return de_CommandError(output, context);
|
|
4658
2996
|
}
|
|
4659
2997
|
const contents = (0, import_smithy_client.map)({
|
|
4660
2998
|
$metadata: deserializeMetadata(output)
|
|
@@ -4667,34 +3005,9 @@ var de_ListProtectedResourcesByBackupVaultCommand = /* @__PURE__ */ __name(async
|
|
|
4667
3005
|
Object.assign(contents, doc);
|
|
4668
3006
|
return contents;
|
|
4669
3007
|
}, "de_ListProtectedResourcesByBackupVaultCommand");
|
|
4670
|
-
var de_ListProtectedResourcesByBackupVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4671
|
-
const parsedOutput = {
|
|
4672
|
-
...output,
|
|
4673
|
-
body: await parseErrorBody(output.body, context)
|
|
4674
|
-
};
|
|
4675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4676
|
-
switch (errorCode) {
|
|
4677
|
-
case "InvalidParameterValueException":
|
|
4678
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4679
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4680
|
-
case "ResourceNotFoundException":
|
|
4681
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4682
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4683
|
-
case "ServiceUnavailableException":
|
|
4684
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4685
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4686
|
-
default:
|
|
4687
|
-
const parsedBody = parsedOutput.body;
|
|
4688
|
-
return throwDefaultError({
|
|
4689
|
-
output,
|
|
4690
|
-
parsedBody,
|
|
4691
|
-
errorCode
|
|
4692
|
-
});
|
|
4693
|
-
}
|
|
4694
|
-
}, "de_ListProtectedResourcesByBackupVaultCommandError");
|
|
4695
3008
|
var de_ListRecoveryPointsByBackupVaultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4696
3009
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4697
|
-
return
|
|
3010
|
+
return de_CommandError(output, context);
|
|
4698
3011
|
}
|
|
4699
3012
|
const contents = (0, import_smithy_client.map)({
|
|
4700
3013
|
$metadata: deserializeMetadata(output)
|
|
@@ -4707,37 +3020,9 @@ var de_ListRecoveryPointsByBackupVaultCommand = /* @__PURE__ */ __name(async (ou
|
|
|
4707
3020
|
Object.assign(contents, doc);
|
|
4708
3021
|
return contents;
|
|
4709
3022
|
}, "de_ListRecoveryPointsByBackupVaultCommand");
|
|
4710
|
-
var de_ListRecoveryPointsByBackupVaultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4711
|
-
const parsedOutput = {
|
|
4712
|
-
...output,
|
|
4713
|
-
body: await parseErrorBody(output.body, context)
|
|
4714
|
-
};
|
|
4715
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4716
|
-
switch (errorCode) {
|
|
4717
|
-
case "InvalidParameterValueException":
|
|
4718
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4719
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4720
|
-
case "MissingParameterValueException":
|
|
4721
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4722
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4723
|
-
case "ResourceNotFoundException":
|
|
4724
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4725
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4726
|
-
case "ServiceUnavailableException":
|
|
4727
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4728
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4729
|
-
default:
|
|
4730
|
-
const parsedBody = parsedOutput.body;
|
|
4731
|
-
return throwDefaultError({
|
|
4732
|
-
output,
|
|
4733
|
-
parsedBody,
|
|
4734
|
-
errorCode
|
|
4735
|
-
});
|
|
4736
|
-
}
|
|
4737
|
-
}, "de_ListRecoveryPointsByBackupVaultCommandError");
|
|
4738
3023
|
var de_ListRecoveryPointsByLegalHoldCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4739
3024
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4740
|
-
return
|
|
3025
|
+
return de_CommandError(output, context);
|
|
4741
3026
|
}
|
|
4742
3027
|
const contents = (0, import_smithy_client.map)({
|
|
4743
3028
|
$metadata: deserializeMetadata(output)
|
|
@@ -4750,34 +3035,9 @@ var de_ListRecoveryPointsByLegalHoldCommand = /* @__PURE__ */ __name(async (outp
|
|
|
4750
3035
|
Object.assign(contents, doc);
|
|
4751
3036
|
return contents;
|
|
4752
3037
|
}, "de_ListRecoveryPointsByLegalHoldCommand");
|
|
4753
|
-
var de_ListRecoveryPointsByLegalHoldCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4754
|
-
const parsedOutput = {
|
|
4755
|
-
...output,
|
|
4756
|
-
body: await parseErrorBody(output.body, context)
|
|
4757
|
-
};
|
|
4758
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4759
|
-
switch (errorCode) {
|
|
4760
|
-
case "InvalidParameterValueException":
|
|
4761
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4762
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4763
|
-
case "MissingParameterValueException":
|
|
4764
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4765
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4766
|
-
case "ServiceUnavailableException":
|
|
4767
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4768
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4769
|
-
default:
|
|
4770
|
-
const parsedBody = parsedOutput.body;
|
|
4771
|
-
return throwDefaultError({
|
|
4772
|
-
output,
|
|
4773
|
-
parsedBody,
|
|
4774
|
-
errorCode
|
|
4775
|
-
});
|
|
4776
|
-
}
|
|
4777
|
-
}, "de_ListRecoveryPointsByLegalHoldCommandError");
|
|
4778
3038
|
var de_ListRecoveryPointsByResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4779
3039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4780
|
-
return
|
|
3040
|
+
return de_CommandError(output, context);
|
|
4781
3041
|
}
|
|
4782
3042
|
const contents = (0, import_smithy_client.map)({
|
|
4783
3043
|
$metadata: deserializeMetadata(output)
|
|
@@ -4790,37 +3050,9 @@ var de_ListRecoveryPointsByResourceCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
4790
3050
|
Object.assign(contents, doc);
|
|
4791
3051
|
return contents;
|
|
4792
3052
|
}, "de_ListRecoveryPointsByResourceCommand");
|
|
4793
|
-
var de_ListRecoveryPointsByResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4794
|
-
const parsedOutput = {
|
|
4795
|
-
...output,
|
|
4796
|
-
body: await parseErrorBody(output.body, context)
|
|
4797
|
-
};
|
|
4798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4799
|
-
switch (errorCode) {
|
|
4800
|
-
case "InvalidParameterValueException":
|
|
4801
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4802
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4803
|
-
case "MissingParameterValueException":
|
|
4804
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4805
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4806
|
-
case "ResourceNotFoundException":
|
|
4807
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4808
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4809
|
-
case "ServiceUnavailableException":
|
|
4810
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4811
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4812
|
-
default:
|
|
4813
|
-
const parsedBody = parsedOutput.body;
|
|
4814
|
-
return throwDefaultError({
|
|
4815
|
-
output,
|
|
4816
|
-
parsedBody,
|
|
4817
|
-
errorCode
|
|
4818
|
-
});
|
|
4819
|
-
}
|
|
4820
|
-
}, "de_ListRecoveryPointsByResourceCommandError");
|
|
4821
3053
|
var de_ListReportJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4822
3054
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4823
|
-
return
|
|
3055
|
+
return de_CommandError(output, context);
|
|
4824
3056
|
}
|
|
4825
3057
|
const contents = (0, import_smithy_client.map)({
|
|
4826
3058
|
$metadata: deserializeMetadata(output)
|
|
@@ -4833,34 +3065,9 @@ var de_ListReportJobsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4833
3065
|
Object.assign(contents, doc);
|
|
4834
3066
|
return contents;
|
|
4835
3067
|
}, "de_ListReportJobsCommand");
|
|
4836
|
-
var de_ListReportJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4837
|
-
const parsedOutput = {
|
|
4838
|
-
...output,
|
|
4839
|
-
body: await parseErrorBody(output.body, context)
|
|
4840
|
-
};
|
|
4841
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4842
|
-
switch (errorCode) {
|
|
4843
|
-
case "InvalidParameterValueException":
|
|
4844
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4845
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4846
|
-
case "ResourceNotFoundException":
|
|
4847
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4848
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4849
|
-
case "ServiceUnavailableException":
|
|
4850
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4851
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4852
|
-
default:
|
|
4853
|
-
const parsedBody = parsedOutput.body;
|
|
4854
|
-
return throwDefaultError({
|
|
4855
|
-
output,
|
|
4856
|
-
parsedBody,
|
|
4857
|
-
errorCode
|
|
4858
|
-
});
|
|
4859
|
-
}
|
|
4860
|
-
}, "de_ListReportJobsCommandError");
|
|
4861
3068
|
var de_ListReportPlansCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4862
3069
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4863
|
-
return
|
|
3070
|
+
return de_CommandError(output, context);
|
|
4864
3071
|
}
|
|
4865
3072
|
const contents = (0, import_smithy_client.map)({
|
|
4866
3073
|
$metadata: deserializeMetadata(output)
|
|
@@ -4873,31 +3080,9 @@ var de_ListReportPlansCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4873
3080
|
Object.assign(contents, doc);
|
|
4874
3081
|
return contents;
|
|
4875
3082
|
}, "de_ListReportPlansCommand");
|
|
4876
|
-
var de_ListReportPlansCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4877
|
-
const parsedOutput = {
|
|
4878
|
-
...output,
|
|
4879
|
-
body: await parseErrorBody(output.body, context)
|
|
4880
|
-
};
|
|
4881
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4882
|
-
switch (errorCode) {
|
|
4883
|
-
case "InvalidParameterValueException":
|
|
4884
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4885
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4886
|
-
case "ServiceUnavailableException":
|
|
4887
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4888
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4889
|
-
default:
|
|
4890
|
-
const parsedBody = parsedOutput.body;
|
|
4891
|
-
return throwDefaultError({
|
|
4892
|
-
output,
|
|
4893
|
-
parsedBody,
|
|
4894
|
-
errorCode
|
|
4895
|
-
});
|
|
4896
|
-
}
|
|
4897
|
-
}, "de_ListReportPlansCommandError");
|
|
4898
3083
|
var de_ListRestoreJobsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4899
3084
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4900
|
-
return
|
|
3085
|
+
return de_CommandError(output, context);
|
|
4901
3086
|
}
|
|
4902
3087
|
const contents = (0, import_smithy_client.map)({
|
|
4903
3088
|
$metadata: deserializeMetadata(output)
|
|
@@ -4910,37 +3095,9 @@ var de_ListRestoreJobsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4910
3095
|
Object.assign(contents, doc);
|
|
4911
3096
|
return contents;
|
|
4912
3097
|
}, "de_ListRestoreJobsCommand");
|
|
4913
|
-
var de_ListRestoreJobsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4914
|
-
const parsedOutput = {
|
|
4915
|
-
...output,
|
|
4916
|
-
body: await parseErrorBody(output.body, context)
|
|
4917
|
-
};
|
|
4918
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4919
|
-
switch (errorCode) {
|
|
4920
|
-
case "InvalidParameterValueException":
|
|
4921
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4922
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4923
|
-
case "MissingParameterValueException":
|
|
4924
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4925
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4926
|
-
case "ResourceNotFoundException":
|
|
4927
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4928
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4929
|
-
case "ServiceUnavailableException":
|
|
4930
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4931
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4932
|
-
default:
|
|
4933
|
-
const parsedBody = parsedOutput.body;
|
|
4934
|
-
return throwDefaultError({
|
|
4935
|
-
output,
|
|
4936
|
-
parsedBody,
|
|
4937
|
-
errorCode
|
|
4938
|
-
});
|
|
4939
|
-
}
|
|
4940
|
-
}, "de_ListRestoreJobsCommandError");
|
|
4941
3098
|
var de_ListRestoreJobsByProtectedResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4942
3099
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4943
|
-
return
|
|
3100
|
+
return de_CommandError(output, context);
|
|
4944
3101
|
}
|
|
4945
3102
|
const contents = (0, import_smithy_client.map)({
|
|
4946
3103
|
$metadata: deserializeMetadata(output)
|
|
@@ -4953,37 +3110,9 @@ var de_ListRestoreJobsByProtectedResourceCommand = /* @__PURE__ */ __name(async
|
|
|
4953
3110
|
Object.assign(contents, doc);
|
|
4954
3111
|
return contents;
|
|
4955
3112
|
}, "de_ListRestoreJobsByProtectedResourceCommand");
|
|
4956
|
-
var de_ListRestoreJobsByProtectedResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4957
|
-
const parsedOutput = {
|
|
4958
|
-
...output,
|
|
4959
|
-
body: await parseErrorBody(output.body, context)
|
|
4960
|
-
};
|
|
4961
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4962
|
-
switch (errorCode) {
|
|
4963
|
-
case "InvalidParameterValueException":
|
|
4964
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4965
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
4966
|
-
case "MissingParameterValueException":
|
|
4967
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4968
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
4969
|
-
case "ResourceNotFoundException":
|
|
4970
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4971
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4972
|
-
case "ServiceUnavailableException":
|
|
4973
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4974
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4975
|
-
default:
|
|
4976
|
-
const parsedBody = parsedOutput.body;
|
|
4977
|
-
return throwDefaultError({
|
|
4978
|
-
output,
|
|
4979
|
-
parsedBody,
|
|
4980
|
-
errorCode
|
|
4981
|
-
});
|
|
4982
|
-
}
|
|
4983
|
-
}, "de_ListRestoreJobsByProtectedResourceCommandError");
|
|
4984
3113
|
var de_ListRestoreJobSummariesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4985
3114
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4986
|
-
return
|
|
3115
|
+
return de_CommandError(output, context);
|
|
4987
3116
|
}
|
|
4988
3117
|
const contents = (0, import_smithy_client.map)({
|
|
4989
3118
|
$metadata: deserializeMetadata(output)
|
|
@@ -4997,31 +3126,9 @@ var de_ListRestoreJobSummariesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4997
3126
|
Object.assign(contents, doc);
|
|
4998
3127
|
return contents;
|
|
4999
3128
|
}, "de_ListRestoreJobSummariesCommand");
|
|
5000
|
-
var de_ListRestoreJobSummariesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5001
|
-
const parsedOutput = {
|
|
5002
|
-
...output,
|
|
5003
|
-
body: await parseErrorBody(output.body, context)
|
|
5004
|
-
};
|
|
5005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5006
|
-
switch (errorCode) {
|
|
5007
|
-
case "InvalidParameterValueException":
|
|
5008
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5009
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5010
|
-
case "ServiceUnavailableException":
|
|
5011
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5012
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5013
|
-
default:
|
|
5014
|
-
const parsedBody = parsedOutput.body;
|
|
5015
|
-
return throwDefaultError({
|
|
5016
|
-
output,
|
|
5017
|
-
parsedBody,
|
|
5018
|
-
errorCode
|
|
5019
|
-
});
|
|
5020
|
-
}
|
|
5021
|
-
}, "de_ListRestoreJobSummariesCommandError");
|
|
5022
3129
|
var de_ListRestoreTestingPlansCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5023
3130
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5024
|
-
return
|
|
3131
|
+
return de_CommandError(output, context);
|
|
5025
3132
|
}
|
|
5026
3133
|
const contents = (0, import_smithy_client.map)({
|
|
5027
3134
|
$metadata: deserializeMetadata(output)
|
|
@@ -5034,31 +3141,9 @@ var de_ListRestoreTestingPlansCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
5034
3141
|
Object.assign(contents, doc);
|
|
5035
3142
|
return contents;
|
|
5036
3143
|
}, "de_ListRestoreTestingPlansCommand");
|
|
5037
|
-
var de_ListRestoreTestingPlansCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5038
|
-
const parsedOutput = {
|
|
5039
|
-
...output,
|
|
5040
|
-
body: await parseErrorBody(output.body, context)
|
|
5041
|
-
};
|
|
5042
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5043
|
-
switch (errorCode) {
|
|
5044
|
-
case "InvalidParameterValueException":
|
|
5045
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5046
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5047
|
-
case "ServiceUnavailableException":
|
|
5048
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5049
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5050
|
-
default:
|
|
5051
|
-
const parsedBody = parsedOutput.body;
|
|
5052
|
-
return throwDefaultError({
|
|
5053
|
-
output,
|
|
5054
|
-
parsedBody,
|
|
5055
|
-
errorCode
|
|
5056
|
-
});
|
|
5057
|
-
}
|
|
5058
|
-
}, "de_ListRestoreTestingPlansCommandError");
|
|
5059
3144
|
var de_ListRestoreTestingSelectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5060
3145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5061
|
-
return
|
|
3146
|
+
return de_CommandError(output, context);
|
|
5062
3147
|
}
|
|
5063
3148
|
const contents = (0, import_smithy_client.map)({
|
|
5064
3149
|
$metadata: deserializeMetadata(output)
|
|
@@ -5071,34 +3156,9 @@ var de_ListRestoreTestingSelectionsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
5071
3156
|
Object.assign(contents, doc);
|
|
5072
3157
|
return contents;
|
|
5073
3158
|
}, "de_ListRestoreTestingSelectionsCommand");
|
|
5074
|
-
var de_ListRestoreTestingSelectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5075
|
-
const parsedOutput = {
|
|
5076
|
-
...output,
|
|
5077
|
-
body: await parseErrorBody(output.body, context)
|
|
5078
|
-
};
|
|
5079
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5080
|
-
switch (errorCode) {
|
|
5081
|
-
case "InvalidParameterValueException":
|
|
5082
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5083
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5084
|
-
case "ResourceNotFoundException":
|
|
5085
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5086
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5087
|
-
case "ServiceUnavailableException":
|
|
5088
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5089
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5090
|
-
default:
|
|
5091
|
-
const parsedBody = parsedOutput.body;
|
|
5092
|
-
return throwDefaultError({
|
|
5093
|
-
output,
|
|
5094
|
-
parsedBody,
|
|
5095
|
-
errorCode
|
|
5096
|
-
});
|
|
5097
|
-
}
|
|
5098
|
-
}, "de_ListRestoreTestingSelectionsCommandError");
|
|
5099
3159
|
var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5100
3160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5101
|
-
return
|
|
3161
|
+
return de_CommandError(output, context);
|
|
5102
3162
|
}
|
|
5103
3163
|
const contents = (0, import_smithy_client.map)({
|
|
5104
3164
|
$metadata: deserializeMetadata(output)
|
|
@@ -5111,37 +3171,9 @@ var de_ListTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5111
3171
|
Object.assign(contents, doc);
|
|
5112
3172
|
return contents;
|
|
5113
3173
|
}, "de_ListTagsCommand");
|
|
5114
|
-
var de_ListTagsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5115
|
-
const parsedOutput = {
|
|
5116
|
-
...output,
|
|
5117
|
-
body: await parseErrorBody(output.body, context)
|
|
5118
|
-
};
|
|
5119
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5120
|
-
switch (errorCode) {
|
|
5121
|
-
case "InvalidParameterValueException":
|
|
5122
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5123
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5124
|
-
case "MissingParameterValueException":
|
|
5125
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5126
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5127
|
-
case "ResourceNotFoundException":
|
|
5128
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5129
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5130
|
-
case "ServiceUnavailableException":
|
|
5131
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5132
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5133
|
-
default:
|
|
5134
|
-
const parsedBody = parsedOutput.body;
|
|
5135
|
-
return throwDefaultError({
|
|
5136
|
-
output,
|
|
5137
|
-
parsedBody,
|
|
5138
|
-
errorCode
|
|
5139
|
-
});
|
|
5140
|
-
}
|
|
5141
|
-
}, "de_ListTagsCommandError");
|
|
5142
3174
|
var de_PutBackupVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5143
3175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5144
|
-
return
|
|
3176
|
+
return de_CommandError(output, context);
|
|
5145
3177
|
}
|
|
5146
3178
|
const contents = (0, import_smithy_client.map)({
|
|
5147
3179
|
$metadata: deserializeMetadata(output)
|
|
@@ -5149,37 +3181,9 @@ var de_PutBackupVaultAccessPolicyCommand = /* @__PURE__ */ __name(async (output,
|
|
|
5149
3181
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5150
3182
|
return contents;
|
|
5151
3183
|
}, "de_PutBackupVaultAccessPolicyCommand");
|
|
5152
|
-
var de_PutBackupVaultAccessPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5153
|
-
const parsedOutput = {
|
|
5154
|
-
...output,
|
|
5155
|
-
body: await parseErrorBody(output.body, context)
|
|
5156
|
-
};
|
|
5157
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5158
|
-
switch (errorCode) {
|
|
5159
|
-
case "InvalidParameterValueException":
|
|
5160
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5161
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5162
|
-
case "MissingParameterValueException":
|
|
5163
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5164
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5165
|
-
case "ResourceNotFoundException":
|
|
5166
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5167
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5168
|
-
case "ServiceUnavailableException":
|
|
5169
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5170
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5171
|
-
default:
|
|
5172
|
-
const parsedBody = parsedOutput.body;
|
|
5173
|
-
return throwDefaultError({
|
|
5174
|
-
output,
|
|
5175
|
-
parsedBody,
|
|
5176
|
-
errorCode
|
|
5177
|
-
});
|
|
5178
|
-
}
|
|
5179
|
-
}, "de_PutBackupVaultAccessPolicyCommandError");
|
|
5180
3184
|
var de_PutBackupVaultLockConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5181
3185
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5182
|
-
return
|
|
3186
|
+
return de_CommandError(output, context);
|
|
5183
3187
|
}
|
|
5184
3188
|
const contents = (0, import_smithy_client.map)({
|
|
5185
3189
|
$metadata: deserializeMetadata(output)
|
|
@@ -5187,40 +3191,9 @@ var de_PutBackupVaultLockConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
5187
3191
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5188
3192
|
return contents;
|
|
5189
3193
|
}, "de_PutBackupVaultLockConfigurationCommand");
|
|
5190
|
-
var de_PutBackupVaultLockConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5191
|
-
const parsedOutput = {
|
|
5192
|
-
...output,
|
|
5193
|
-
body: await parseErrorBody(output.body, context)
|
|
5194
|
-
};
|
|
5195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5196
|
-
switch (errorCode) {
|
|
5197
|
-
case "InvalidParameterValueException":
|
|
5198
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5199
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5200
|
-
case "InvalidRequestException":
|
|
5201
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
5202
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5203
|
-
case "MissingParameterValueException":
|
|
5204
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5205
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5206
|
-
case "ResourceNotFoundException":
|
|
5207
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5208
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5209
|
-
case "ServiceUnavailableException":
|
|
5210
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5211
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5212
|
-
default:
|
|
5213
|
-
const parsedBody = parsedOutput.body;
|
|
5214
|
-
return throwDefaultError({
|
|
5215
|
-
output,
|
|
5216
|
-
parsedBody,
|
|
5217
|
-
errorCode
|
|
5218
|
-
});
|
|
5219
|
-
}
|
|
5220
|
-
}, "de_PutBackupVaultLockConfigurationCommandError");
|
|
5221
3194
|
var de_PutBackupVaultNotificationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5222
3195
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5223
|
-
return
|
|
3196
|
+
return de_CommandError(output, context);
|
|
5224
3197
|
}
|
|
5225
3198
|
const contents = (0, import_smithy_client.map)({
|
|
5226
3199
|
$metadata: deserializeMetadata(output)
|
|
@@ -5228,37 +3201,9 @@ var de_PutBackupVaultNotificationsCommand = /* @__PURE__ */ __name(async (output
|
|
|
5228
3201
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5229
3202
|
return contents;
|
|
5230
3203
|
}, "de_PutBackupVaultNotificationsCommand");
|
|
5231
|
-
var de_PutBackupVaultNotificationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5232
|
-
const parsedOutput = {
|
|
5233
|
-
...output,
|
|
5234
|
-
body: await parseErrorBody(output.body, context)
|
|
5235
|
-
};
|
|
5236
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5237
|
-
switch (errorCode) {
|
|
5238
|
-
case "InvalidParameterValueException":
|
|
5239
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5240
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5241
|
-
case "MissingParameterValueException":
|
|
5242
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5243
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5244
|
-
case "ResourceNotFoundException":
|
|
5245
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5246
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5247
|
-
case "ServiceUnavailableException":
|
|
5248
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5249
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5250
|
-
default:
|
|
5251
|
-
const parsedBody = parsedOutput.body;
|
|
5252
|
-
return throwDefaultError({
|
|
5253
|
-
output,
|
|
5254
|
-
parsedBody,
|
|
5255
|
-
errorCode
|
|
5256
|
-
});
|
|
5257
|
-
}
|
|
5258
|
-
}, "de_PutBackupVaultNotificationsCommandError");
|
|
5259
3204
|
var de_PutRestoreValidationResultCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5260
3205
|
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
5261
|
-
return
|
|
3206
|
+
return de_CommandError(output, context);
|
|
5262
3207
|
}
|
|
5263
3208
|
const contents = (0, import_smithy_client.map)({
|
|
5264
3209
|
$metadata: deserializeMetadata(output)
|
|
@@ -5266,40 +3211,9 @@ var de_PutRestoreValidationResultCommand = /* @__PURE__ */ __name(async (output,
|
|
|
5266
3211
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5267
3212
|
return contents;
|
|
5268
3213
|
}, "de_PutRestoreValidationResultCommand");
|
|
5269
|
-
var de_PutRestoreValidationResultCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5270
|
-
const parsedOutput = {
|
|
5271
|
-
...output,
|
|
5272
|
-
body: await parseErrorBody(output.body, context)
|
|
5273
|
-
};
|
|
5274
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5275
|
-
switch (errorCode) {
|
|
5276
|
-
case "InvalidParameterValueException":
|
|
5277
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5278
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5279
|
-
case "InvalidRequestException":
|
|
5280
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
5281
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5282
|
-
case "MissingParameterValueException":
|
|
5283
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5284
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5285
|
-
case "ResourceNotFoundException":
|
|
5286
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5287
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5288
|
-
case "ServiceUnavailableException":
|
|
5289
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5290
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5291
|
-
default:
|
|
5292
|
-
const parsedBody = parsedOutput.body;
|
|
5293
|
-
return throwDefaultError({
|
|
5294
|
-
output,
|
|
5295
|
-
parsedBody,
|
|
5296
|
-
errorCode
|
|
5297
|
-
});
|
|
5298
|
-
}
|
|
5299
|
-
}, "de_PutRestoreValidationResultCommandError");
|
|
5300
3214
|
var de_StartBackupJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5301
3215
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5302
|
-
return
|
|
3216
|
+
return de_CommandError(output, context);
|
|
5303
3217
|
}
|
|
5304
3218
|
const contents = (0, import_smithy_client.map)({
|
|
5305
3219
|
$metadata: deserializeMetadata(output)
|
|
@@ -5314,43 +3228,9 @@ var de_StartBackupJobCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5314
3228
|
Object.assign(contents, doc);
|
|
5315
3229
|
return contents;
|
|
5316
3230
|
}, "de_StartBackupJobCommand");
|
|
5317
|
-
var de_StartBackupJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5318
|
-
const parsedOutput = {
|
|
5319
|
-
...output,
|
|
5320
|
-
body: await parseErrorBody(output.body, context)
|
|
5321
|
-
};
|
|
5322
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5323
|
-
switch (errorCode) {
|
|
5324
|
-
case "InvalidParameterValueException":
|
|
5325
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5326
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5327
|
-
case "InvalidRequestException":
|
|
5328
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
5329
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5330
|
-
case "LimitExceededException":
|
|
5331
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
5332
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5333
|
-
case "MissingParameterValueException":
|
|
5334
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5335
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5336
|
-
case "ResourceNotFoundException":
|
|
5337
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5338
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5339
|
-
case "ServiceUnavailableException":
|
|
5340
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5341
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5342
|
-
default:
|
|
5343
|
-
const parsedBody = parsedOutput.body;
|
|
5344
|
-
return throwDefaultError({
|
|
5345
|
-
output,
|
|
5346
|
-
parsedBody,
|
|
5347
|
-
errorCode
|
|
5348
|
-
});
|
|
5349
|
-
}
|
|
5350
|
-
}, "de_StartBackupJobCommandError");
|
|
5351
3231
|
var de_StartCopyJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5352
3232
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5353
|
-
return
|
|
3233
|
+
return de_CommandError(output, context);
|
|
5354
3234
|
}
|
|
5355
3235
|
const contents = (0, import_smithy_client.map)({
|
|
5356
3236
|
$metadata: deserializeMetadata(output)
|
|
@@ -5364,43 +3244,9 @@ var de_StartCopyJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5364
3244
|
Object.assign(contents, doc);
|
|
5365
3245
|
return contents;
|
|
5366
3246
|
}, "de_StartCopyJobCommand");
|
|
5367
|
-
var de_StartCopyJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5368
|
-
const parsedOutput = {
|
|
5369
|
-
...output,
|
|
5370
|
-
body: await parseErrorBody(output.body, context)
|
|
5371
|
-
};
|
|
5372
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5373
|
-
switch (errorCode) {
|
|
5374
|
-
case "InvalidParameterValueException":
|
|
5375
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5376
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5377
|
-
case "InvalidRequestException":
|
|
5378
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
5379
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5380
|
-
case "LimitExceededException":
|
|
5381
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
5382
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5383
|
-
case "MissingParameterValueException":
|
|
5384
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5385
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5386
|
-
case "ResourceNotFoundException":
|
|
5387
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5388
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5389
|
-
case "ServiceUnavailableException":
|
|
5390
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5391
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5392
|
-
default:
|
|
5393
|
-
const parsedBody = parsedOutput.body;
|
|
5394
|
-
return throwDefaultError({
|
|
5395
|
-
output,
|
|
5396
|
-
parsedBody,
|
|
5397
|
-
errorCode
|
|
5398
|
-
});
|
|
5399
|
-
}
|
|
5400
|
-
}, "de_StartCopyJobCommandError");
|
|
5401
3247
|
var de_StartReportJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5402
3248
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5403
|
-
return
|
|
3249
|
+
return de_CommandError(output, context);
|
|
5404
3250
|
}
|
|
5405
3251
|
const contents = (0, import_smithy_client.map)({
|
|
5406
3252
|
$metadata: deserializeMetadata(output)
|
|
@@ -5412,37 +3258,9 @@ var de_StartReportJobCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5412
3258
|
Object.assign(contents, doc);
|
|
5413
3259
|
return contents;
|
|
5414
3260
|
}, "de_StartReportJobCommand");
|
|
5415
|
-
var de_StartReportJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5416
|
-
const parsedOutput = {
|
|
5417
|
-
...output,
|
|
5418
|
-
body: await parseErrorBody(output.body, context)
|
|
5419
|
-
};
|
|
5420
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5421
|
-
switch (errorCode) {
|
|
5422
|
-
case "InvalidParameterValueException":
|
|
5423
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5424
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5425
|
-
case "MissingParameterValueException":
|
|
5426
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5427
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5428
|
-
case "ResourceNotFoundException":
|
|
5429
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5430
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5431
|
-
case "ServiceUnavailableException":
|
|
5432
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5433
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5434
|
-
default:
|
|
5435
|
-
const parsedBody = parsedOutput.body;
|
|
5436
|
-
return throwDefaultError({
|
|
5437
|
-
output,
|
|
5438
|
-
parsedBody,
|
|
5439
|
-
errorCode
|
|
5440
|
-
});
|
|
5441
|
-
}
|
|
5442
|
-
}, "de_StartReportJobCommandError");
|
|
5443
3261
|
var de_StartRestoreJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5444
3262
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5445
|
-
return
|
|
3263
|
+
return de_CommandError(output, context);
|
|
5446
3264
|
}
|
|
5447
3265
|
const contents = (0, import_smithy_client.map)({
|
|
5448
3266
|
$metadata: deserializeMetadata(output)
|
|
@@ -5454,122 +3272,29 @@ var de_StartRestoreJobCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
5454
3272
|
Object.assign(contents, doc);
|
|
5455
3273
|
return contents;
|
|
5456
3274
|
}, "de_StartRestoreJobCommand");
|
|
5457
|
-
var de_StartRestoreJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5458
|
-
const parsedOutput = {
|
|
5459
|
-
...output,
|
|
5460
|
-
body: await parseErrorBody(output.body, context)
|
|
5461
|
-
};
|
|
5462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5463
|
-
switch (errorCode) {
|
|
5464
|
-
case "InvalidParameterValueException":
|
|
5465
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5466
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5467
|
-
case "InvalidRequestException":
|
|
5468
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
5469
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5470
|
-
case "MissingParameterValueException":
|
|
5471
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5472
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5473
|
-
case "ResourceNotFoundException":
|
|
5474
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5475
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5476
|
-
case "ServiceUnavailableException":
|
|
5477
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5478
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5479
|
-
default:
|
|
5480
|
-
const parsedBody = parsedOutput.body;
|
|
5481
|
-
return throwDefaultError({
|
|
5482
|
-
output,
|
|
5483
|
-
parsedBody,
|
|
5484
|
-
errorCode
|
|
5485
|
-
});
|
|
5486
|
-
}
|
|
5487
|
-
}, "de_StartRestoreJobCommandError");
|
|
5488
3275
|
var de_StopBackupJobCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5489
3276
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5490
|
-
return
|
|
5491
|
-
}
|
|
5492
|
-
const contents = (0, import_smithy_client.map)({
|
|
5493
|
-
$metadata: deserializeMetadata(output)
|
|
5494
|
-
});
|
|
5495
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5496
|
-
return contents;
|
|
5497
|
-
}, "de_StopBackupJobCommand");
|
|
5498
|
-
var de_StopBackupJobCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5499
|
-
const parsedOutput = {
|
|
5500
|
-
...output,
|
|
5501
|
-
body: await parseErrorBody(output.body, context)
|
|
5502
|
-
};
|
|
5503
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5504
|
-
switch (errorCode) {
|
|
5505
|
-
case "InvalidParameterValueException":
|
|
5506
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5507
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5508
|
-
case "InvalidRequestException":
|
|
5509
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
5510
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5511
|
-
case "MissingParameterValueException":
|
|
5512
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5513
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5514
|
-
case "ResourceNotFoundException":
|
|
5515
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5516
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5517
|
-
case "ServiceUnavailableException":
|
|
5518
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5519
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5520
|
-
default:
|
|
5521
|
-
const parsedBody = parsedOutput.body;
|
|
5522
|
-
return throwDefaultError({
|
|
5523
|
-
output,
|
|
5524
|
-
parsedBody,
|
|
5525
|
-
errorCode
|
|
5526
|
-
});
|
|
5527
|
-
}
|
|
5528
|
-
}, "de_StopBackupJobCommandError");
|
|
5529
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5530
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5531
|
-
return de_TagResourceCommandError(output, context);
|
|
3277
|
+
return de_CommandError(output, context);
|
|
5532
3278
|
}
|
|
5533
3279
|
const contents = (0, import_smithy_client.map)({
|
|
5534
3280
|
$metadata: deserializeMetadata(output)
|
|
5535
|
-
});
|
|
5536
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5537
|
-
return contents;
|
|
5538
|
-
}, "
|
|
5539
|
-
var
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
body: await parseErrorBody(output.body, context)
|
|
5543
|
-
};
|
|
5544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5545
|
-
switch (errorCode) {
|
|
5546
|
-
case "InvalidParameterValueException":
|
|
5547
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5548
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5549
|
-
case "LimitExceededException":
|
|
5550
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
5551
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5552
|
-
case "MissingParameterValueException":
|
|
5553
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5554
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5555
|
-
case "ResourceNotFoundException":
|
|
5556
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5557
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5558
|
-
case "ServiceUnavailableException":
|
|
5559
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5560
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5561
|
-
default:
|
|
5562
|
-
const parsedBody = parsedOutput.body;
|
|
5563
|
-
return throwDefaultError({
|
|
5564
|
-
output,
|
|
5565
|
-
parsedBody,
|
|
5566
|
-
errorCode
|
|
5567
|
-
});
|
|
3281
|
+
});
|
|
3282
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3283
|
+
return contents;
|
|
3284
|
+
}, "de_StopBackupJobCommand");
|
|
3285
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3286
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3287
|
+
return de_CommandError(output, context);
|
|
5568
3288
|
}
|
|
5569
|
-
|
|
3289
|
+
const contents = (0, import_smithy_client.map)({
|
|
3290
|
+
$metadata: deserializeMetadata(output)
|
|
3291
|
+
});
|
|
3292
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3293
|
+
return contents;
|
|
3294
|
+
}, "de_TagResourceCommand");
|
|
5570
3295
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5571
3296
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5572
|
-
return
|
|
3297
|
+
return de_CommandError(output, context);
|
|
5573
3298
|
}
|
|
5574
3299
|
const contents = (0, import_smithy_client.map)({
|
|
5575
3300
|
$metadata: deserializeMetadata(output)
|
|
@@ -5577,37 +3302,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5577
3302
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5578
3303
|
return contents;
|
|
5579
3304
|
}, "de_UntagResourceCommand");
|
|
5580
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5581
|
-
const parsedOutput = {
|
|
5582
|
-
...output,
|
|
5583
|
-
body: await parseErrorBody(output.body, context)
|
|
5584
|
-
};
|
|
5585
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5586
|
-
switch (errorCode) {
|
|
5587
|
-
case "InvalidParameterValueException":
|
|
5588
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5589
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5590
|
-
case "MissingParameterValueException":
|
|
5591
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5592
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5593
|
-
case "ResourceNotFoundException":
|
|
5594
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5595
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5596
|
-
case "ServiceUnavailableException":
|
|
5597
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5598
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5599
|
-
default:
|
|
5600
|
-
const parsedBody = parsedOutput.body;
|
|
5601
|
-
return throwDefaultError({
|
|
5602
|
-
output,
|
|
5603
|
-
parsedBody,
|
|
5604
|
-
errorCode
|
|
5605
|
-
});
|
|
5606
|
-
}
|
|
5607
|
-
}, "de_UntagResourceCommandError");
|
|
5608
3305
|
var de_UpdateBackupPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5609
3306
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5610
|
-
return
|
|
3307
|
+
return de_CommandError(output, context);
|
|
5611
3308
|
}
|
|
5612
3309
|
const contents = (0, import_smithy_client.map)({
|
|
5613
3310
|
$metadata: deserializeMetadata(output)
|
|
@@ -5623,37 +3320,9 @@ var de_UpdateBackupPlanCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
5623
3320
|
Object.assign(contents, doc);
|
|
5624
3321
|
return contents;
|
|
5625
3322
|
}, "de_UpdateBackupPlanCommand");
|
|
5626
|
-
var de_UpdateBackupPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5627
|
-
const parsedOutput = {
|
|
5628
|
-
...output,
|
|
5629
|
-
body: await parseErrorBody(output.body, context)
|
|
5630
|
-
};
|
|
5631
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5632
|
-
switch (errorCode) {
|
|
5633
|
-
case "InvalidParameterValueException":
|
|
5634
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5635
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5636
|
-
case "MissingParameterValueException":
|
|
5637
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5638
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5639
|
-
case "ResourceNotFoundException":
|
|
5640
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5641
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5642
|
-
case "ServiceUnavailableException":
|
|
5643
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5644
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5645
|
-
default:
|
|
5646
|
-
const parsedBody = parsedOutput.body;
|
|
5647
|
-
return throwDefaultError({
|
|
5648
|
-
output,
|
|
5649
|
-
parsedBody,
|
|
5650
|
-
errorCode
|
|
5651
|
-
});
|
|
5652
|
-
}
|
|
5653
|
-
}, "de_UpdateBackupPlanCommandError");
|
|
5654
3323
|
var de_UpdateFrameworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5655
3324
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5656
|
-
return
|
|
3325
|
+
return de_CommandError(output, context);
|
|
5657
3326
|
}
|
|
5658
3327
|
const contents = (0, import_smithy_client.map)({
|
|
5659
3328
|
$metadata: deserializeMetadata(output)
|
|
@@ -5667,46 +3336,9 @@ var de_UpdateFrameworkCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
5667
3336
|
Object.assign(contents, doc);
|
|
5668
3337
|
return contents;
|
|
5669
3338
|
}, "de_UpdateFrameworkCommand");
|
|
5670
|
-
var de_UpdateFrameworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5671
|
-
const parsedOutput = {
|
|
5672
|
-
...output,
|
|
5673
|
-
body: await parseErrorBody(output.body, context)
|
|
5674
|
-
};
|
|
5675
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5676
|
-
switch (errorCode) {
|
|
5677
|
-
case "AlreadyExistsException":
|
|
5678
|
-
case "com.amazonaws.backup#AlreadyExistsException":
|
|
5679
|
-
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
5680
|
-
case "ConflictException":
|
|
5681
|
-
case "com.amazonaws.backup#ConflictException":
|
|
5682
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5683
|
-
case "InvalidParameterValueException":
|
|
5684
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5685
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5686
|
-
case "LimitExceededException":
|
|
5687
|
-
case "com.amazonaws.backup#LimitExceededException":
|
|
5688
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
5689
|
-
case "MissingParameterValueException":
|
|
5690
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5691
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5692
|
-
case "ResourceNotFoundException":
|
|
5693
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5694
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5695
|
-
case "ServiceUnavailableException":
|
|
5696
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5697
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5698
|
-
default:
|
|
5699
|
-
const parsedBody = parsedOutput.body;
|
|
5700
|
-
return throwDefaultError({
|
|
5701
|
-
output,
|
|
5702
|
-
parsedBody,
|
|
5703
|
-
errorCode
|
|
5704
|
-
});
|
|
5705
|
-
}
|
|
5706
|
-
}, "de_UpdateFrameworkCommandError");
|
|
5707
3339
|
var de_UpdateGlobalSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5708
3340
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5709
|
-
return
|
|
3341
|
+
return de_CommandError(output, context);
|
|
5710
3342
|
}
|
|
5711
3343
|
const contents = (0, import_smithy_client.map)({
|
|
5712
3344
|
$metadata: deserializeMetadata(output)
|
|
@@ -5714,37 +3346,9 @@ var de_UpdateGlobalSettingsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
5714
3346
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5715
3347
|
return contents;
|
|
5716
3348
|
}, "de_UpdateGlobalSettingsCommand");
|
|
5717
|
-
var de_UpdateGlobalSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5718
|
-
const parsedOutput = {
|
|
5719
|
-
...output,
|
|
5720
|
-
body: await parseErrorBody(output.body, context)
|
|
5721
|
-
};
|
|
5722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5723
|
-
switch (errorCode) {
|
|
5724
|
-
case "InvalidParameterValueException":
|
|
5725
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5726
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5727
|
-
case "InvalidRequestException":
|
|
5728
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
5729
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5730
|
-
case "MissingParameterValueException":
|
|
5731
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5732
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5733
|
-
case "ServiceUnavailableException":
|
|
5734
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5735
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5736
|
-
default:
|
|
5737
|
-
const parsedBody = parsedOutput.body;
|
|
5738
|
-
return throwDefaultError({
|
|
5739
|
-
output,
|
|
5740
|
-
parsedBody,
|
|
5741
|
-
errorCode
|
|
5742
|
-
});
|
|
5743
|
-
}
|
|
5744
|
-
}, "de_UpdateGlobalSettingsCommandError");
|
|
5745
3349
|
var de_UpdateRecoveryPointLifecycleCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5746
3350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5747
|
-
return
|
|
3351
|
+
return de_CommandError(output, context);
|
|
5748
3352
|
}
|
|
5749
3353
|
const contents = (0, import_smithy_client.map)({
|
|
5750
3354
|
$metadata: deserializeMetadata(output)
|
|
@@ -5759,40 +3363,9 @@ var de_UpdateRecoveryPointLifecycleCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
5759
3363
|
Object.assign(contents, doc);
|
|
5760
3364
|
return contents;
|
|
5761
3365
|
}, "de_UpdateRecoveryPointLifecycleCommand");
|
|
5762
|
-
var de_UpdateRecoveryPointLifecycleCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5763
|
-
const parsedOutput = {
|
|
5764
|
-
...output,
|
|
5765
|
-
body: await parseErrorBody(output.body, context)
|
|
5766
|
-
};
|
|
5767
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5768
|
-
switch (errorCode) {
|
|
5769
|
-
case "InvalidParameterValueException":
|
|
5770
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5771
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5772
|
-
case "InvalidRequestException":
|
|
5773
|
-
case "com.amazonaws.backup#InvalidRequestException":
|
|
5774
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5775
|
-
case "MissingParameterValueException":
|
|
5776
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5777
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5778
|
-
case "ResourceNotFoundException":
|
|
5779
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5780
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5781
|
-
case "ServiceUnavailableException":
|
|
5782
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5783
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5784
|
-
default:
|
|
5785
|
-
const parsedBody = parsedOutput.body;
|
|
5786
|
-
return throwDefaultError({
|
|
5787
|
-
output,
|
|
5788
|
-
parsedBody,
|
|
5789
|
-
errorCode
|
|
5790
|
-
});
|
|
5791
|
-
}
|
|
5792
|
-
}, "de_UpdateRecoveryPointLifecycleCommandError");
|
|
5793
3366
|
var de_UpdateRegionSettingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5794
3367
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5795
|
-
return
|
|
3368
|
+
return de_CommandError(output, context);
|
|
5796
3369
|
}
|
|
5797
3370
|
const contents = (0, import_smithy_client.map)({
|
|
5798
3371
|
$metadata: deserializeMetadata(output)
|
|
@@ -5800,34 +3373,9 @@ var de_UpdateRegionSettingsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
5800
3373
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5801
3374
|
return contents;
|
|
5802
3375
|
}, "de_UpdateRegionSettingsCommand");
|
|
5803
|
-
var de_UpdateRegionSettingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5804
|
-
const parsedOutput = {
|
|
5805
|
-
...output,
|
|
5806
|
-
body: await parseErrorBody(output.body, context)
|
|
5807
|
-
};
|
|
5808
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5809
|
-
switch (errorCode) {
|
|
5810
|
-
case "InvalidParameterValueException":
|
|
5811
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5812
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5813
|
-
case "MissingParameterValueException":
|
|
5814
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5815
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5816
|
-
case "ServiceUnavailableException":
|
|
5817
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5818
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5819
|
-
default:
|
|
5820
|
-
const parsedBody = parsedOutput.body;
|
|
5821
|
-
return throwDefaultError({
|
|
5822
|
-
output,
|
|
5823
|
-
parsedBody,
|
|
5824
|
-
errorCode
|
|
5825
|
-
});
|
|
5826
|
-
}
|
|
5827
|
-
}, "de_UpdateRegionSettingsCommandError");
|
|
5828
3376
|
var de_UpdateReportPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5829
3377
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5830
|
-
return
|
|
3378
|
+
return de_CommandError(output, context);
|
|
5831
3379
|
}
|
|
5832
3380
|
const contents = (0, import_smithy_client.map)({
|
|
5833
3381
|
$metadata: deserializeMetadata(output)
|
|
@@ -5841,40 +3389,9 @@ var de_UpdateReportPlanCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
5841
3389
|
Object.assign(contents, doc);
|
|
5842
3390
|
return contents;
|
|
5843
3391
|
}, "de_UpdateReportPlanCommand");
|
|
5844
|
-
var de_UpdateReportPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5845
|
-
const parsedOutput = {
|
|
5846
|
-
...output,
|
|
5847
|
-
body: await parseErrorBody(output.body, context)
|
|
5848
|
-
};
|
|
5849
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5850
|
-
switch (errorCode) {
|
|
5851
|
-
case "ConflictException":
|
|
5852
|
-
case "com.amazonaws.backup#ConflictException":
|
|
5853
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5854
|
-
case "InvalidParameterValueException":
|
|
5855
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5856
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5857
|
-
case "MissingParameterValueException":
|
|
5858
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5859
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5860
|
-
case "ResourceNotFoundException":
|
|
5861
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5862
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5863
|
-
case "ServiceUnavailableException":
|
|
5864
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5865
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5866
|
-
default:
|
|
5867
|
-
const parsedBody = parsedOutput.body;
|
|
5868
|
-
return throwDefaultError({
|
|
5869
|
-
output,
|
|
5870
|
-
parsedBody,
|
|
5871
|
-
errorCode
|
|
5872
|
-
});
|
|
5873
|
-
}
|
|
5874
|
-
}, "de_UpdateReportPlanCommandError");
|
|
5875
3392
|
var de_UpdateRestoreTestingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5876
3393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5877
|
-
return
|
|
3394
|
+
return de_CommandError(output, context);
|
|
5878
3395
|
}
|
|
5879
3396
|
const contents = (0, import_smithy_client.map)({
|
|
5880
3397
|
$metadata: deserializeMetadata(output)
|
|
@@ -5889,40 +3406,9 @@ var de_UpdateRestoreTestingPlanCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
5889
3406
|
Object.assign(contents, doc);
|
|
5890
3407
|
return contents;
|
|
5891
3408
|
}, "de_UpdateRestoreTestingPlanCommand");
|
|
5892
|
-
var de_UpdateRestoreTestingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5893
|
-
const parsedOutput = {
|
|
5894
|
-
...output,
|
|
5895
|
-
body: await parseErrorBody(output.body, context)
|
|
5896
|
-
};
|
|
5897
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5898
|
-
switch (errorCode) {
|
|
5899
|
-
case "ConflictException":
|
|
5900
|
-
case "com.amazonaws.backup#ConflictException":
|
|
5901
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5902
|
-
case "InvalidParameterValueException":
|
|
5903
|
-
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5904
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5905
|
-
case "MissingParameterValueException":
|
|
5906
|
-
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5907
|
-
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
5908
|
-
case "ResourceNotFoundException":
|
|
5909
|
-
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5910
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5911
|
-
case "ServiceUnavailableException":
|
|
5912
|
-
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5913
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5914
|
-
default:
|
|
5915
|
-
const parsedBody = parsedOutput.body;
|
|
5916
|
-
return throwDefaultError({
|
|
5917
|
-
output,
|
|
5918
|
-
parsedBody,
|
|
5919
|
-
errorCode
|
|
5920
|
-
});
|
|
5921
|
-
}
|
|
5922
|
-
}, "de_UpdateRestoreTestingPlanCommandError");
|
|
5923
3409
|
var de_UpdateRestoreTestingSelectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5924
3410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5925
|
-
return
|
|
3411
|
+
return de_CommandError(output, context);
|
|
5926
3412
|
}
|
|
5927
3413
|
const contents = (0, import_smithy_client.map)({
|
|
5928
3414
|
$metadata: deserializeMetadata(output)
|
|
@@ -5938,19 +3424,19 @@ var de_UpdateRestoreTestingSelectionCommand = /* @__PURE__ */ __name(async (outp
|
|
|
5938
3424
|
Object.assign(contents, doc);
|
|
5939
3425
|
return contents;
|
|
5940
3426
|
}, "de_UpdateRestoreTestingSelectionCommand");
|
|
5941
|
-
var
|
|
3427
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5942
3428
|
const parsedOutput = {
|
|
5943
3429
|
...output,
|
|
5944
3430
|
body: await parseErrorBody(output.body, context)
|
|
5945
3431
|
};
|
|
5946
3432
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5947
3433
|
switch (errorCode) {
|
|
5948
|
-
case "ConflictException":
|
|
5949
|
-
case "com.amazonaws.backup#ConflictException":
|
|
5950
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5951
3434
|
case "InvalidParameterValueException":
|
|
5952
3435
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5953
3436
|
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
3437
|
+
case "InvalidResourceStateException":
|
|
3438
|
+
case "com.amazonaws.backup#InvalidResourceStateException":
|
|
3439
|
+
throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
|
|
5954
3440
|
case "MissingParameterValueException":
|
|
5955
3441
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5956
3442
|
throw await de_MissingParameterValueExceptionRes(parsedOutput, context);
|
|
@@ -5960,6 +3446,21 @@ var de_UpdateRestoreTestingSelectionCommandError = /* @__PURE__ */ __name(async
|
|
|
5960
3446
|
case "ServiceUnavailableException":
|
|
5961
3447
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5962
3448
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3449
|
+
case "AlreadyExistsException":
|
|
3450
|
+
case "com.amazonaws.backup#AlreadyExistsException":
|
|
3451
|
+
throw await de_AlreadyExistsExceptionRes(parsedOutput, context);
|
|
3452
|
+
case "LimitExceededException":
|
|
3453
|
+
case "com.amazonaws.backup#LimitExceededException":
|
|
3454
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3455
|
+
case "InvalidRequestException":
|
|
3456
|
+
case "com.amazonaws.backup#InvalidRequestException":
|
|
3457
|
+
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3458
|
+
case "ConflictException":
|
|
3459
|
+
case "com.amazonaws.backup#ConflictException":
|
|
3460
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3461
|
+
case "DependencyFailureException":
|
|
3462
|
+
case "com.amazonaws.backup#DependencyFailureException":
|
|
3463
|
+
throw await de_DependencyFailureExceptionRes(parsedOutput, context);
|
|
5963
3464
|
default:
|
|
5964
3465
|
const parsedBody = parsedOutput.body;
|
|
5965
3466
|
return throwDefaultError({
|
|
@@ -5968,7 +3469,7 @@ var de_UpdateRestoreTestingSelectionCommandError = /* @__PURE__ */ __name(async
|
|
|
5968
3469
|
errorCode
|
|
5969
3470
|
});
|
|
5970
3471
|
}
|
|
5971
|
-
}, "
|
|
3472
|
+
}, "de_CommandError");
|
|
5972
3473
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(BackupServiceException);
|
|
5973
3474
|
var de_AlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
5974
3475
|
const contents = (0, import_smithy_client.map)({});
|