@aws-sdk/client-backup 3.50.0 → 3.53.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/CHANGELOG.md +30 -0
- package/dist-cjs/index.js +3 -0
- package/dist-cjs/models/BackupServiceException.js +11 -0
- package/dist-cjs/models/models_0.js +179 -4
- package/dist-cjs/protocols/Aws_restJson1.js +653 -2416
- package/dist-es/index.js +1 -0
- package/dist-es/models/BackupServiceException.js +12 -0
- package/dist-es/models/models_0.js +166 -1
- package/dist-es/protocols/Aws_restJson1.js +1433 -2691
- package/dist-types/Backup.d.ts +14 -12
- package/dist-types/commands/CreateBackupSelectionCommand.d.ts +1 -2
- package/dist-types/commands/ListTagsCommand.d.ts +4 -5
- package/dist-types/commands/UpdateRecoveryPointLifecycleCommand.d.ts +9 -5
- package/dist-types/index.d.ts +1 -0
- package/dist-types/models/BackupServiceException.d.ts +10 -0
- package/dist-types/models/models_0.d.ts +270 -99
- package/dist-types/ts3.4/Backup.d.ts +335 -0
- package/dist-types/ts3.4/BackupClient.d.ts +139 -0
- package/dist-types/ts3.4/commands/CreateBackupPlanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateBackupSelectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateBackupVaultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateFrameworkCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateReportPlanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteBackupPlanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteBackupSelectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteBackupVaultAccessPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteBackupVaultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteBackupVaultLockConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteBackupVaultNotificationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteFrameworkCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteRecoveryPointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteReportPlanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeBackupJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeBackupVaultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeCopyJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeFrameworkCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeGlobalSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeProtectedResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeRecoveryPointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeRegionSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeReportJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeReportPlanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeRestoreJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DisassociateRecoveryPointCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ExportBackupPlanTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetBackupPlanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetBackupPlanFromJSONCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetBackupPlanFromTemplateCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetBackupSelectionCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetBackupVaultAccessPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetBackupVaultNotificationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRecoveryPointRestoreMetadataCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSupportedResourceTypesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBackupJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBackupPlanTemplatesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBackupPlanVersionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBackupPlansCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBackupSelectionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListBackupVaultsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListCopyJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListFrameworksCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListProtectedResourcesCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRecoveryPointsByBackupVaultCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRecoveryPointsByResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListReportJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListReportPlansCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListRestoreJobsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListTagsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutBackupVaultAccessPolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutBackupVaultLockConfigurationCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutBackupVaultNotificationsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartBackupJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartCopyJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartReportJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StartRestoreJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/StopBackupJobCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateBackupPlanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateFrameworkCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateGlobalSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateRecoveryPointLifecycleCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateRegionSettingsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateReportPlanCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +66 -0
- package/dist-types/ts3.4/endpoints.d.ts +2 -0
- package/dist-types/ts3.4/index.d.ts +6 -0
- package/dist-types/ts3.4/models/BackupServiceException.d.ts +6 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +2234 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListBackupJobsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListBackupPlanTemplatesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListBackupPlanVersionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListBackupPlansPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListBackupSelectionsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListBackupVaultsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListCopyJobsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListFrameworksPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListProtectedResourcesPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListRecoveryPointsByBackupVaultPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListRecoveryPointsByResourcePaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListReportJobsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListReportPlansPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListRestoreJobsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListTagsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +16 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +200 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
- package/package.json +33 -33
|
@@ -6,6 +6,8 @@ exports.deserializeAws_restJson1UpdateReportPlanCommand = exports.deserializeAws
|
|
|
6
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
7
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
8
|
const uuid_1 = require("uuid");
|
|
9
|
+
const BackupServiceException_1 = require("../models/BackupServiceException");
|
|
10
|
+
const models_0_1 = require("../models/models_0");
|
|
9
11
|
const serializeAws_restJson1CreateBackupPlanCommand = async (input, context) => {
|
|
10
12
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
13
|
const headers = {
|
|
@@ -1994,59 +1996,28 @@ const deserializeAws_restJson1CreateBackupPlanCommandError = async (output, cont
|
|
|
1994
1996
|
switch (errorCode) {
|
|
1995
1997
|
case "AlreadyExistsException":
|
|
1996
1998
|
case "com.amazonaws.backup#AlreadyExistsException":
|
|
1997
|
-
|
|
1998
|
-
...(await deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
1999
|
-
name: errorCode,
|
|
2000
|
-
$metadata: deserializeMetadata(output),
|
|
2001
|
-
};
|
|
2002
|
-
break;
|
|
1999
|
+
throw await deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2003
2000
|
case "InvalidParameterValueException":
|
|
2004
2001
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2005
|
-
|
|
2006
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2007
|
-
name: errorCode,
|
|
2008
|
-
$metadata: deserializeMetadata(output),
|
|
2009
|
-
};
|
|
2010
|
-
break;
|
|
2002
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2011
2003
|
case "LimitExceededException":
|
|
2012
2004
|
case "com.amazonaws.backup#LimitExceededException":
|
|
2013
|
-
|
|
2014
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2015
|
-
name: errorCode,
|
|
2016
|
-
$metadata: deserializeMetadata(output),
|
|
2017
|
-
};
|
|
2018
|
-
break;
|
|
2005
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2019
2006
|
case "MissingParameterValueException":
|
|
2020
2007
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2021
|
-
|
|
2022
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
2023
|
-
name: errorCode,
|
|
2024
|
-
$metadata: deserializeMetadata(output),
|
|
2025
|
-
};
|
|
2026
|
-
break;
|
|
2008
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
2027
2009
|
case "ServiceUnavailableException":
|
|
2028
2010
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2029
|
-
|
|
2030
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2031
|
-
name: errorCode,
|
|
2032
|
-
$metadata: deserializeMetadata(output),
|
|
2033
|
-
};
|
|
2034
|
-
break;
|
|
2011
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2035
2012
|
default:
|
|
2036
2013
|
const parsedBody = parsedOutput.body;
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
...parsedBody,
|
|
2040
|
-
name: `${errorCode}`,
|
|
2041
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2014
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2015
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2042
2016
|
$fault: "client",
|
|
2043
2017
|
$metadata: deserializeMetadata(output),
|
|
2044
|
-
};
|
|
2018
|
+
});
|
|
2019
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2045
2020
|
}
|
|
2046
|
-
const message = response.message || response.Message || errorCode;
|
|
2047
|
-
response.message = message;
|
|
2048
|
-
delete response.Message;
|
|
2049
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2050
2021
|
};
|
|
2051
2022
|
const deserializeAws_restJson1CreateBackupSelectionCommand = async (output, context) => {
|
|
2052
2023
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2082,59 +2053,28 @@ const deserializeAws_restJson1CreateBackupSelectionCommandError = async (output,
|
|
|
2082
2053
|
switch (errorCode) {
|
|
2083
2054
|
case "AlreadyExistsException":
|
|
2084
2055
|
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2085
|
-
|
|
2086
|
-
...(await deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
2087
|
-
name: errorCode,
|
|
2088
|
-
$metadata: deserializeMetadata(output),
|
|
2089
|
-
};
|
|
2090
|
-
break;
|
|
2056
|
+
throw await deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2091
2057
|
case "InvalidParameterValueException":
|
|
2092
2058
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2093
|
-
|
|
2094
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2095
|
-
name: errorCode,
|
|
2096
|
-
$metadata: deserializeMetadata(output),
|
|
2097
|
-
};
|
|
2098
|
-
break;
|
|
2059
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2099
2060
|
case "LimitExceededException":
|
|
2100
2061
|
case "com.amazonaws.backup#LimitExceededException":
|
|
2101
|
-
|
|
2102
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2103
|
-
name: errorCode,
|
|
2104
|
-
$metadata: deserializeMetadata(output),
|
|
2105
|
-
};
|
|
2106
|
-
break;
|
|
2062
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2107
2063
|
case "MissingParameterValueException":
|
|
2108
2064
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2109
|
-
|
|
2110
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
2111
|
-
name: errorCode,
|
|
2112
|
-
$metadata: deserializeMetadata(output),
|
|
2113
|
-
};
|
|
2114
|
-
break;
|
|
2065
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
2115
2066
|
case "ServiceUnavailableException":
|
|
2116
2067
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2117
|
-
|
|
2118
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2119
|
-
name: errorCode,
|
|
2120
|
-
$metadata: deserializeMetadata(output),
|
|
2121
|
-
};
|
|
2122
|
-
break;
|
|
2068
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2123
2069
|
default:
|
|
2124
2070
|
const parsedBody = parsedOutput.body;
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
...parsedBody,
|
|
2128
|
-
name: `${errorCode}`,
|
|
2129
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2071
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2072
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2130
2073
|
$fault: "client",
|
|
2131
2074
|
$metadata: deserializeMetadata(output),
|
|
2132
|
-
};
|
|
2075
|
+
});
|
|
2076
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2133
2077
|
}
|
|
2134
|
-
const message = response.message || response.Message || errorCode;
|
|
2135
|
-
response.message = message;
|
|
2136
|
-
delete response.Message;
|
|
2137
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2138
2078
|
};
|
|
2139
2079
|
const deserializeAws_restJson1CreateBackupVaultCommand = async (output, context) => {
|
|
2140
2080
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2170,59 +2110,28 @@ const deserializeAws_restJson1CreateBackupVaultCommandError = async (output, con
|
|
|
2170
2110
|
switch (errorCode) {
|
|
2171
2111
|
case "AlreadyExistsException":
|
|
2172
2112
|
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2173
|
-
|
|
2174
|
-
...(await deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
2175
|
-
name: errorCode,
|
|
2176
|
-
$metadata: deserializeMetadata(output),
|
|
2177
|
-
};
|
|
2178
|
-
break;
|
|
2113
|
+
throw await deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2179
2114
|
case "InvalidParameterValueException":
|
|
2180
2115
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2181
|
-
|
|
2182
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2183
|
-
name: errorCode,
|
|
2184
|
-
$metadata: deserializeMetadata(output),
|
|
2185
|
-
};
|
|
2186
|
-
break;
|
|
2116
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2187
2117
|
case "LimitExceededException":
|
|
2188
2118
|
case "com.amazonaws.backup#LimitExceededException":
|
|
2189
|
-
|
|
2190
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2191
|
-
name: errorCode,
|
|
2192
|
-
$metadata: deserializeMetadata(output),
|
|
2193
|
-
};
|
|
2194
|
-
break;
|
|
2119
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2195
2120
|
case "MissingParameterValueException":
|
|
2196
2121
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2197
|
-
|
|
2198
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
2199
|
-
name: errorCode,
|
|
2200
|
-
$metadata: deserializeMetadata(output),
|
|
2201
|
-
};
|
|
2202
|
-
break;
|
|
2122
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
2203
2123
|
case "ServiceUnavailableException":
|
|
2204
2124
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2205
|
-
|
|
2206
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2207
|
-
name: errorCode,
|
|
2208
|
-
$metadata: deserializeMetadata(output),
|
|
2209
|
-
};
|
|
2210
|
-
break;
|
|
2125
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2211
2126
|
default:
|
|
2212
2127
|
const parsedBody = parsedOutput.body;
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
...parsedBody,
|
|
2216
|
-
name: `${errorCode}`,
|
|
2217
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2128
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2129
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2218
2130
|
$fault: "client",
|
|
2219
2131
|
$metadata: deserializeMetadata(output),
|
|
2220
|
-
};
|
|
2132
|
+
});
|
|
2133
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2221
2134
|
}
|
|
2222
|
-
const message = response.message || response.Message || errorCode;
|
|
2223
|
-
response.message = message;
|
|
2224
|
-
delete response.Message;
|
|
2225
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2226
2135
|
};
|
|
2227
2136
|
const deserializeAws_restJson1CreateFrameworkCommand = async (output, context) => {
|
|
2228
2137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2254,59 +2163,28 @@ const deserializeAws_restJson1CreateFrameworkCommandError = async (output, conte
|
|
|
2254
2163
|
switch (errorCode) {
|
|
2255
2164
|
case "AlreadyExistsException":
|
|
2256
2165
|
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2257
|
-
|
|
2258
|
-
...(await deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
2259
|
-
name: errorCode,
|
|
2260
|
-
$metadata: deserializeMetadata(output),
|
|
2261
|
-
};
|
|
2262
|
-
break;
|
|
2166
|
+
throw await deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2263
2167
|
case "InvalidParameterValueException":
|
|
2264
2168
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2265
|
-
|
|
2266
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2267
|
-
name: errorCode,
|
|
2268
|
-
$metadata: deserializeMetadata(output),
|
|
2269
|
-
};
|
|
2270
|
-
break;
|
|
2169
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2271
2170
|
case "LimitExceededException":
|
|
2272
2171
|
case "com.amazonaws.backup#LimitExceededException":
|
|
2273
|
-
|
|
2274
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2275
|
-
name: errorCode,
|
|
2276
|
-
$metadata: deserializeMetadata(output),
|
|
2277
|
-
};
|
|
2278
|
-
break;
|
|
2172
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2279
2173
|
case "MissingParameterValueException":
|
|
2280
2174
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2281
|
-
|
|
2282
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
2283
|
-
name: errorCode,
|
|
2284
|
-
$metadata: deserializeMetadata(output),
|
|
2285
|
-
};
|
|
2286
|
-
break;
|
|
2175
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
2287
2176
|
case "ServiceUnavailableException":
|
|
2288
2177
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2289
|
-
|
|
2290
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2291
|
-
name: errorCode,
|
|
2292
|
-
$metadata: deserializeMetadata(output),
|
|
2293
|
-
};
|
|
2294
|
-
break;
|
|
2178
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2295
2179
|
default:
|
|
2296
2180
|
const parsedBody = parsedOutput.body;
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
...parsedBody,
|
|
2300
|
-
name: `${errorCode}`,
|
|
2301
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2181
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2182
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2302
2183
|
$fault: "client",
|
|
2303
2184
|
$metadata: deserializeMetadata(output),
|
|
2304
|
-
};
|
|
2185
|
+
});
|
|
2186
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2305
2187
|
}
|
|
2306
|
-
const message = response.message || response.Message || errorCode;
|
|
2307
|
-
response.message = message;
|
|
2308
|
-
delete response.Message;
|
|
2309
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2310
2188
|
};
|
|
2311
2189
|
const deserializeAws_restJson1CreateReportPlanCommand = async (output, context) => {
|
|
2312
2190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2342,59 +2220,28 @@ const deserializeAws_restJson1CreateReportPlanCommandError = async (output, cont
|
|
|
2342
2220
|
switch (errorCode) {
|
|
2343
2221
|
case "AlreadyExistsException":
|
|
2344
2222
|
case "com.amazonaws.backup#AlreadyExistsException":
|
|
2345
|
-
|
|
2346
|
-
...(await deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
2347
|
-
name: errorCode,
|
|
2348
|
-
$metadata: deserializeMetadata(output),
|
|
2349
|
-
};
|
|
2350
|
-
break;
|
|
2223
|
+
throw await deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context);
|
|
2351
2224
|
case "InvalidParameterValueException":
|
|
2352
2225
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2353
|
-
|
|
2354
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2355
|
-
name: errorCode,
|
|
2356
|
-
$metadata: deserializeMetadata(output),
|
|
2357
|
-
};
|
|
2358
|
-
break;
|
|
2226
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2359
2227
|
case "LimitExceededException":
|
|
2360
2228
|
case "com.amazonaws.backup#LimitExceededException":
|
|
2361
|
-
|
|
2362
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
2363
|
-
name: errorCode,
|
|
2364
|
-
$metadata: deserializeMetadata(output),
|
|
2365
|
-
};
|
|
2366
|
-
break;
|
|
2229
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
2367
2230
|
case "MissingParameterValueException":
|
|
2368
2231
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2369
|
-
|
|
2370
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
2371
|
-
name: errorCode,
|
|
2372
|
-
$metadata: deserializeMetadata(output),
|
|
2373
|
-
};
|
|
2374
|
-
break;
|
|
2232
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
2375
2233
|
case "ServiceUnavailableException":
|
|
2376
2234
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2377
|
-
|
|
2378
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2379
|
-
name: errorCode,
|
|
2380
|
-
$metadata: deserializeMetadata(output),
|
|
2381
|
-
};
|
|
2382
|
-
break;
|
|
2235
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2383
2236
|
default:
|
|
2384
2237
|
const parsedBody = parsedOutput.body;
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
...parsedBody,
|
|
2388
|
-
name: `${errorCode}`,
|
|
2389
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2238
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2239
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2390
2240
|
$fault: "client",
|
|
2391
2241
|
$metadata: deserializeMetadata(output),
|
|
2392
|
-
};
|
|
2242
|
+
});
|
|
2243
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2393
2244
|
}
|
|
2394
|
-
const message = response.message || response.Message || errorCode;
|
|
2395
|
-
response.message = message;
|
|
2396
|
-
delete response.Message;
|
|
2397
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2398
2245
|
};
|
|
2399
2246
|
const deserializeAws_restJson1DeleteBackupPlanCommand = async (output, context) => {
|
|
2400
2247
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2434,59 +2281,28 @@ const deserializeAws_restJson1DeleteBackupPlanCommandError = async (output, cont
|
|
|
2434
2281
|
switch (errorCode) {
|
|
2435
2282
|
case "InvalidParameterValueException":
|
|
2436
2283
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2437
|
-
|
|
2438
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2439
|
-
name: errorCode,
|
|
2440
|
-
$metadata: deserializeMetadata(output),
|
|
2441
|
-
};
|
|
2442
|
-
break;
|
|
2284
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2443
2285
|
case "InvalidRequestException":
|
|
2444
2286
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
2445
|
-
|
|
2446
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2447
|
-
name: errorCode,
|
|
2448
|
-
$metadata: deserializeMetadata(output),
|
|
2449
|
-
};
|
|
2450
|
-
break;
|
|
2287
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2451
2288
|
case "MissingParameterValueException":
|
|
2452
2289
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2453
|
-
|
|
2454
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
2455
|
-
name: errorCode,
|
|
2456
|
-
$metadata: deserializeMetadata(output),
|
|
2457
|
-
};
|
|
2458
|
-
break;
|
|
2290
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
2459
2291
|
case "ResourceNotFoundException":
|
|
2460
2292
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2461
|
-
|
|
2462
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2463
|
-
name: errorCode,
|
|
2464
|
-
$metadata: deserializeMetadata(output),
|
|
2465
|
-
};
|
|
2466
|
-
break;
|
|
2293
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2467
2294
|
case "ServiceUnavailableException":
|
|
2468
2295
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2469
|
-
|
|
2470
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2471
|
-
name: errorCode,
|
|
2472
|
-
$metadata: deserializeMetadata(output),
|
|
2473
|
-
};
|
|
2474
|
-
break;
|
|
2296
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2475
2297
|
default:
|
|
2476
2298
|
const parsedBody = parsedOutput.body;
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
...parsedBody,
|
|
2480
|
-
name: `${errorCode}`,
|
|
2481
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2299
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2300
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2482
2301
|
$fault: "client",
|
|
2483
2302
|
$metadata: deserializeMetadata(output),
|
|
2484
|
-
};
|
|
2303
|
+
});
|
|
2304
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2485
2305
|
}
|
|
2486
|
-
const message = response.message || response.Message || errorCode;
|
|
2487
|
-
response.message = message;
|
|
2488
|
-
delete response.Message;
|
|
2489
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2490
2306
|
};
|
|
2491
2307
|
const deserializeAws_restJson1DeleteBackupSelectionCommand = async (output, context) => {
|
|
2492
2308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2510,51 +2326,25 @@ const deserializeAws_restJson1DeleteBackupSelectionCommandError = async (output,
|
|
|
2510
2326
|
switch (errorCode) {
|
|
2511
2327
|
case "InvalidParameterValueException":
|
|
2512
2328
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2513
|
-
|
|
2514
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2515
|
-
name: errorCode,
|
|
2516
|
-
$metadata: deserializeMetadata(output),
|
|
2517
|
-
};
|
|
2518
|
-
break;
|
|
2329
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2519
2330
|
case "MissingParameterValueException":
|
|
2520
2331
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2521
|
-
|
|
2522
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
2523
|
-
name: errorCode,
|
|
2524
|
-
$metadata: deserializeMetadata(output),
|
|
2525
|
-
};
|
|
2526
|
-
break;
|
|
2332
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
2527
2333
|
case "ResourceNotFoundException":
|
|
2528
2334
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2529
|
-
|
|
2530
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2531
|
-
name: errorCode,
|
|
2532
|
-
$metadata: deserializeMetadata(output),
|
|
2533
|
-
};
|
|
2534
|
-
break;
|
|
2335
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2535
2336
|
case "ServiceUnavailableException":
|
|
2536
2337
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2537
|
-
|
|
2538
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2539
|
-
name: errorCode,
|
|
2540
|
-
$metadata: deserializeMetadata(output),
|
|
2541
|
-
};
|
|
2542
|
-
break;
|
|
2338
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2543
2339
|
default:
|
|
2544
2340
|
const parsedBody = parsedOutput.body;
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
...parsedBody,
|
|
2548
|
-
name: `${errorCode}`,
|
|
2549
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2341
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2342
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2550
2343
|
$fault: "client",
|
|
2551
2344
|
$metadata: deserializeMetadata(output),
|
|
2552
|
-
};
|
|
2345
|
+
});
|
|
2346
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2553
2347
|
}
|
|
2554
|
-
const message = response.message || response.Message || errorCode;
|
|
2555
|
-
response.message = message;
|
|
2556
|
-
delete response.Message;
|
|
2557
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2558
2348
|
};
|
|
2559
2349
|
const deserializeAws_restJson1DeleteBackupVaultCommand = async (output, context) => {
|
|
2560
2350
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2578,59 +2368,28 @@ const deserializeAws_restJson1DeleteBackupVaultCommandError = async (output, con
|
|
|
2578
2368
|
switch (errorCode) {
|
|
2579
2369
|
case "InvalidParameterValueException":
|
|
2580
2370
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2581
|
-
|
|
2582
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2583
|
-
name: errorCode,
|
|
2584
|
-
$metadata: deserializeMetadata(output),
|
|
2585
|
-
};
|
|
2586
|
-
break;
|
|
2371
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2587
2372
|
case "InvalidRequestException":
|
|
2588
2373
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
2589
|
-
|
|
2590
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2591
|
-
name: errorCode,
|
|
2592
|
-
$metadata: deserializeMetadata(output),
|
|
2593
|
-
};
|
|
2594
|
-
break;
|
|
2374
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2595
2375
|
case "MissingParameterValueException":
|
|
2596
2376
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2597
|
-
|
|
2598
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
2599
|
-
name: errorCode,
|
|
2600
|
-
$metadata: deserializeMetadata(output),
|
|
2601
|
-
};
|
|
2602
|
-
break;
|
|
2377
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
2603
2378
|
case "ResourceNotFoundException":
|
|
2604
2379
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2605
|
-
|
|
2606
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2607
|
-
name: errorCode,
|
|
2608
|
-
$metadata: deserializeMetadata(output),
|
|
2609
|
-
};
|
|
2610
|
-
break;
|
|
2380
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2611
2381
|
case "ServiceUnavailableException":
|
|
2612
2382
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2613
|
-
|
|
2614
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2615
|
-
name: errorCode,
|
|
2616
|
-
$metadata: deserializeMetadata(output),
|
|
2617
|
-
};
|
|
2618
|
-
break;
|
|
2383
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2619
2384
|
default:
|
|
2620
2385
|
const parsedBody = parsedOutput.body;
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
...parsedBody,
|
|
2624
|
-
name: `${errorCode}`,
|
|
2625
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2386
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2387
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2626
2388
|
$fault: "client",
|
|
2627
2389
|
$metadata: deserializeMetadata(output),
|
|
2628
|
-
};
|
|
2390
|
+
});
|
|
2391
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2629
2392
|
}
|
|
2630
|
-
const message = response.message || response.Message || errorCode;
|
|
2631
|
-
response.message = message;
|
|
2632
|
-
delete response.Message;
|
|
2633
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2634
2393
|
};
|
|
2635
2394
|
const deserializeAws_restJson1DeleteBackupVaultAccessPolicyCommand = async (output, context) => {
|
|
2636
2395
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2654,51 +2413,25 @@ const deserializeAws_restJson1DeleteBackupVaultAccessPolicyCommandError = async
|
|
|
2654
2413
|
switch (errorCode) {
|
|
2655
2414
|
case "InvalidParameterValueException":
|
|
2656
2415
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2657
|
-
|
|
2658
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2659
|
-
name: errorCode,
|
|
2660
|
-
$metadata: deserializeMetadata(output),
|
|
2661
|
-
};
|
|
2662
|
-
break;
|
|
2416
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2663
2417
|
case "MissingParameterValueException":
|
|
2664
2418
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2665
|
-
|
|
2666
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
2667
|
-
name: errorCode,
|
|
2668
|
-
$metadata: deserializeMetadata(output),
|
|
2669
|
-
};
|
|
2670
|
-
break;
|
|
2419
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
2671
2420
|
case "ResourceNotFoundException":
|
|
2672
2421
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2673
|
-
|
|
2674
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2675
|
-
name: errorCode,
|
|
2676
|
-
$metadata: deserializeMetadata(output),
|
|
2677
|
-
};
|
|
2678
|
-
break;
|
|
2422
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2679
2423
|
case "ServiceUnavailableException":
|
|
2680
2424
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2681
|
-
|
|
2682
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2683
|
-
name: errorCode,
|
|
2684
|
-
$metadata: deserializeMetadata(output),
|
|
2685
|
-
};
|
|
2686
|
-
break;
|
|
2425
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2687
2426
|
default:
|
|
2688
2427
|
const parsedBody = parsedOutput.body;
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
...parsedBody,
|
|
2692
|
-
name: `${errorCode}`,
|
|
2693
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2428
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2429
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2694
2430
|
$fault: "client",
|
|
2695
2431
|
$metadata: deserializeMetadata(output),
|
|
2696
|
-
};
|
|
2432
|
+
});
|
|
2433
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2697
2434
|
}
|
|
2698
|
-
const message = response.message || response.Message || errorCode;
|
|
2699
|
-
response.message = message;
|
|
2700
|
-
delete response.Message;
|
|
2701
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2702
2435
|
};
|
|
2703
2436
|
const deserializeAws_restJson1DeleteBackupVaultLockConfigurationCommand = async (output, context) => {
|
|
2704
2437
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2722,59 +2455,28 @@ const deserializeAws_restJson1DeleteBackupVaultLockConfigurationCommandError = a
|
|
|
2722
2455
|
switch (errorCode) {
|
|
2723
2456
|
case "InvalidParameterValueException":
|
|
2724
2457
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2725
|
-
|
|
2726
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2727
|
-
name: errorCode,
|
|
2728
|
-
$metadata: deserializeMetadata(output),
|
|
2729
|
-
};
|
|
2730
|
-
break;
|
|
2458
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2731
2459
|
case "InvalidRequestException":
|
|
2732
2460
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
2733
|
-
|
|
2734
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2735
|
-
name: errorCode,
|
|
2736
|
-
$metadata: deserializeMetadata(output),
|
|
2737
|
-
};
|
|
2738
|
-
break;
|
|
2461
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2739
2462
|
case "MissingParameterValueException":
|
|
2740
2463
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2741
|
-
|
|
2742
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
2743
|
-
name: errorCode,
|
|
2744
|
-
$metadata: deserializeMetadata(output),
|
|
2745
|
-
};
|
|
2746
|
-
break;
|
|
2464
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
2747
2465
|
case "ResourceNotFoundException":
|
|
2748
2466
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2749
|
-
|
|
2750
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2751
|
-
name: errorCode,
|
|
2752
|
-
$metadata: deserializeMetadata(output),
|
|
2753
|
-
};
|
|
2754
|
-
break;
|
|
2467
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2755
2468
|
case "ServiceUnavailableException":
|
|
2756
2469
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2757
|
-
|
|
2758
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2759
|
-
name: errorCode,
|
|
2760
|
-
$metadata: deserializeMetadata(output),
|
|
2761
|
-
};
|
|
2762
|
-
break;
|
|
2470
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2763
2471
|
default:
|
|
2764
2472
|
const parsedBody = parsedOutput.body;
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
...parsedBody,
|
|
2768
|
-
name: `${errorCode}`,
|
|
2769
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2473
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2474
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2770
2475
|
$fault: "client",
|
|
2771
2476
|
$metadata: deserializeMetadata(output),
|
|
2772
|
-
};
|
|
2477
|
+
});
|
|
2478
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2773
2479
|
}
|
|
2774
|
-
const message = response.message || response.Message || errorCode;
|
|
2775
|
-
response.message = message;
|
|
2776
|
-
delete response.Message;
|
|
2777
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2778
2480
|
};
|
|
2779
2481
|
const deserializeAws_restJson1DeleteBackupVaultNotificationsCommand = async (output, context) => {
|
|
2780
2482
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2798,51 +2500,25 @@ const deserializeAws_restJson1DeleteBackupVaultNotificationsCommandError = async
|
|
|
2798
2500
|
switch (errorCode) {
|
|
2799
2501
|
case "InvalidParameterValueException":
|
|
2800
2502
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2801
|
-
|
|
2802
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2803
|
-
name: errorCode,
|
|
2804
|
-
$metadata: deserializeMetadata(output),
|
|
2805
|
-
};
|
|
2806
|
-
break;
|
|
2503
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2807
2504
|
case "MissingParameterValueException":
|
|
2808
2505
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2809
|
-
|
|
2810
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
2811
|
-
name: errorCode,
|
|
2812
|
-
$metadata: deserializeMetadata(output),
|
|
2813
|
-
};
|
|
2814
|
-
break;
|
|
2506
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
2815
2507
|
case "ResourceNotFoundException":
|
|
2816
2508
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2817
|
-
|
|
2818
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2819
|
-
name: errorCode,
|
|
2820
|
-
$metadata: deserializeMetadata(output),
|
|
2821
|
-
};
|
|
2822
|
-
break;
|
|
2509
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2823
2510
|
case "ServiceUnavailableException":
|
|
2824
2511
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2825
|
-
|
|
2826
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2827
|
-
name: errorCode,
|
|
2828
|
-
$metadata: deserializeMetadata(output),
|
|
2829
|
-
};
|
|
2830
|
-
break;
|
|
2512
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2831
2513
|
default:
|
|
2832
2514
|
const parsedBody = parsedOutput.body;
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
...parsedBody,
|
|
2836
|
-
name: `${errorCode}`,
|
|
2837
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2515
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2516
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2838
2517
|
$fault: "client",
|
|
2839
2518
|
$metadata: deserializeMetadata(output),
|
|
2840
|
-
};
|
|
2519
|
+
});
|
|
2520
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2841
2521
|
}
|
|
2842
|
-
const message = response.message || response.Message || errorCode;
|
|
2843
|
-
response.message = message;
|
|
2844
|
-
delete response.Message;
|
|
2845
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2846
2522
|
};
|
|
2847
2523
|
const deserializeAws_restJson1DeleteFrameworkCommand = async (output, context) => {
|
|
2848
2524
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2866,59 +2542,28 @@ const deserializeAws_restJson1DeleteFrameworkCommandError = async (output, conte
|
|
|
2866
2542
|
switch (errorCode) {
|
|
2867
2543
|
case "ConflictException":
|
|
2868
2544
|
case "com.amazonaws.backup#ConflictException":
|
|
2869
|
-
|
|
2870
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
2871
|
-
name: errorCode,
|
|
2872
|
-
$metadata: deserializeMetadata(output),
|
|
2873
|
-
};
|
|
2874
|
-
break;
|
|
2545
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2875
2546
|
case "InvalidParameterValueException":
|
|
2876
2547
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2877
|
-
|
|
2878
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2879
|
-
name: errorCode,
|
|
2880
|
-
$metadata: deserializeMetadata(output),
|
|
2881
|
-
};
|
|
2882
|
-
break;
|
|
2548
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2883
2549
|
case "MissingParameterValueException":
|
|
2884
2550
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2885
|
-
|
|
2886
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
2887
|
-
name: errorCode,
|
|
2888
|
-
$metadata: deserializeMetadata(output),
|
|
2889
|
-
};
|
|
2890
|
-
break;
|
|
2551
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
2891
2552
|
case "ResourceNotFoundException":
|
|
2892
2553
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2893
|
-
|
|
2894
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2895
|
-
name: errorCode,
|
|
2896
|
-
$metadata: deserializeMetadata(output),
|
|
2897
|
-
};
|
|
2898
|
-
break;
|
|
2554
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2899
2555
|
case "ServiceUnavailableException":
|
|
2900
2556
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2901
|
-
|
|
2902
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2903
|
-
name: errorCode,
|
|
2904
|
-
$metadata: deserializeMetadata(output),
|
|
2905
|
-
};
|
|
2906
|
-
break;
|
|
2557
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2907
2558
|
default:
|
|
2908
2559
|
const parsedBody = parsedOutput.body;
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
...parsedBody,
|
|
2912
|
-
name: `${errorCode}`,
|
|
2913
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2560
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2561
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2914
2562
|
$fault: "client",
|
|
2915
2563
|
$metadata: deserializeMetadata(output),
|
|
2916
|
-
};
|
|
2564
|
+
});
|
|
2565
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2917
2566
|
}
|
|
2918
|
-
const message = response.message || response.Message || errorCode;
|
|
2919
|
-
response.message = message;
|
|
2920
|
-
delete response.Message;
|
|
2921
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
2922
2567
|
};
|
|
2923
2568
|
const deserializeAws_restJson1DeleteRecoveryPointCommand = async (output, context) => {
|
|
2924
2569
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -2942,67 +2587,31 @@ const deserializeAws_restJson1DeleteRecoveryPointCommandError = async (output, c
|
|
|
2942
2587
|
switch (errorCode) {
|
|
2943
2588
|
case "InvalidParameterValueException":
|
|
2944
2589
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
2945
|
-
|
|
2946
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
2947
|
-
name: errorCode,
|
|
2948
|
-
$metadata: deserializeMetadata(output),
|
|
2949
|
-
};
|
|
2950
|
-
break;
|
|
2590
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
2951
2591
|
case "InvalidRequestException":
|
|
2952
2592
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
2953
|
-
|
|
2954
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
2955
|
-
name: errorCode,
|
|
2956
|
-
$metadata: deserializeMetadata(output),
|
|
2957
|
-
};
|
|
2958
|
-
break;
|
|
2593
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
2959
2594
|
case "InvalidResourceStateException":
|
|
2960
2595
|
case "com.amazonaws.backup#InvalidResourceStateException":
|
|
2961
|
-
|
|
2962
|
-
...(await deserializeAws_restJson1InvalidResourceStateExceptionResponse(parsedOutput, context)),
|
|
2963
|
-
name: errorCode,
|
|
2964
|
-
$metadata: deserializeMetadata(output),
|
|
2965
|
-
};
|
|
2966
|
-
break;
|
|
2596
|
+
throw await deserializeAws_restJson1InvalidResourceStateExceptionResponse(parsedOutput, context);
|
|
2967
2597
|
case "MissingParameterValueException":
|
|
2968
2598
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
2969
|
-
|
|
2970
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
2971
|
-
name: errorCode,
|
|
2972
|
-
$metadata: deserializeMetadata(output),
|
|
2973
|
-
};
|
|
2974
|
-
break;
|
|
2599
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
2975
2600
|
case "ResourceNotFoundException":
|
|
2976
2601
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
2977
|
-
|
|
2978
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
2979
|
-
name: errorCode,
|
|
2980
|
-
$metadata: deserializeMetadata(output),
|
|
2981
|
-
};
|
|
2982
|
-
break;
|
|
2602
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2983
2603
|
case "ServiceUnavailableException":
|
|
2984
2604
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
2985
|
-
|
|
2986
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
2987
|
-
name: errorCode,
|
|
2988
|
-
$metadata: deserializeMetadata(output),
|
|
2989
|
-
};
|
|
2990
|
-
break;
|
|
2605
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
2991
2606
|
default:
|
|
2992
2607
|
const parsedBody = parsedOutput.body;
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
...parsedBody,
|
|
2996
|
-
name: `${errorCode}`,
|
|
2997
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2608
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2609
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
2998
2610
|
$fault: "client",
|
|
2999
2611
|
$metadata: deserializeMetadata(output),
|
|
3000
|
-
};
|
|
2612
|
+
});
|
|
2613
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3001
2614
|
}
|
|
3002
|
-
const message = response.message || response.Message || errorCode;
|
|
3003
|
-
response.message = message;
|
|
3004
|
-
delete response.Message;
|
|
3005
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3006
2615
|
};
|
|
3007
2616
|
const deserializeAws_restJson1DeleteReportPlanCommand = async (output, context) => {
|
|
3008
2617
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3026,59 +2635,28 @@ const deserializeAws_restJson1DeleteReportPlanCommandError = async (output, cont
|
|
|
3026
2635
|
switch (errorCode) {
|
|
3027
2636
|
case "ConflictException":
|
|
3028
2637
|
case "com.amazonaws.backup#ConflictException":
|
|
3029
|
-
|
|
3030
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
3031
|
-
name: errorCode,
|
|
3032
|
-
$metadata: deserializeMetadata(output),
|
|
3033
|
-
};
|
|
3034
|
-
break;
|
|
2638
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3035
2639
|
case "InvalidParameterValueException":
|
|
3036
2640
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3037
|
-
|
|
3038
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3039
|
-
name: errorCode,
|
|
3040
|
-
$metadata: deserializeMetadata(output),
|
|
3041
|
-
};
|
|
3042
|
-
break;
|
|
2641
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3043
2642
|
case "MissingParameterValueException":
|
|
3044
2643
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3045
|
-
|
|
3046
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
3047
|
-
name: errorCode,
|
|
3048
|
-
$metadata: deserializeMetadata(output),
|
|
3049
|
-
};
|
|
3050
|
-
break;
|
|
2644
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
3051
2645
|
case "ResourceNotFoundException":
|
|
3052
2646
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3053
|
-
|
|
3054
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3055
|
-
name: errorCode,
|
|
3056
|
-
$metadata: deserializeMetadata(output),
|
|
3057
|
-
};
|
|
3058
|
-
break;
|
|
2647
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3059
2648
|
case "ServiceUnavailableException":
|
|
3060
2649
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3061
|
-
|
|
3062
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3063
|
-
name: errorCode,
|
|
3064
|
-
$metadata: deserializeMetadata(output),
|
|
3065
|
-
};
|
|
3066
|
-
break;
|
|
2650
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3067
2651
|
default:
|
|
3068
2652
|
const parsedBody = parsedOutput.body;
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
...parsedBody,
|
|
3072
|
-
name: `${errorCode}`,
|
|
3073
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2653
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2654
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3074
2655
|
$fault: "client",
|
|
3075
2656
|
$metadata: deserializeMetadata(output),
|
|
3076
|
-
};
|
|
2657
|
+
});
|
|
2658
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3077
2659
|
}
|
|
3078
|
-
const message = response.message || response.Message || errorCode;
|
|
3079
|
-
response.message = message;
|
|
3080
|
-
delete response.Message;
|
|
3081
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3082
2660
|
};
|
|
3083
2661
|
const deserializeAws_restJson1DescribeBackupJobCommand = async (output, context) => {
|
|
3084
2662
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3182,59 +2760,28 @@ const deserializeAws_restJson1DescribeBackupJobCommandError = async (output, con
|
|
|
3182
2760
|
switch (errorCode) {
|
|
3183
2761
|
case "DependencyFailureException":
|
|
3184
2762
|
case "com.amazonaws.backup#DependencyFailureException":
|
|
3185
|
-
|
|
3186
|
-
...(await deserializeAws_restJson1DependencyFailureExceptionResponse(parsedOutput, context)),
|
|
3187
|
-
name: errorCode,
|
|
3188
|
-
$metadata: deserializeMetadata(output),
|
|
3189
|
-
};
|
|
3190
|
-
break;
|
|
2763
|
+
throw await deserializeAws_restJson1DependencyFailureExceptionResponse(parsedOutput, context);
|
|
3191
2764
|
case "InvalidParameterValueException":
|
|
3192
2765
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3193
|
-
|
|
3194
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3195
|
-
name: errorCode,
|
|
3196
|
-
$metadata: deserializeMetadata(output),
|
|
3197
|
-
};
|
|
3198
|
-
break;
|
|
2766
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3199
2767
|
case "MissingParameterValueException":
|
|
3200
2768
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3201
|
-
|
|
3202
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
3203
|
-
name: errorCode,
|
|
3204
|
-
$metadata: deserializeMetadata(output),
|
|
3205
|
-
};
|
|
3206
|
-
break;
|
|
2769
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
3207
2770
|
case "ResourceNotFoundException":
|
|
3208
2771
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3209
|
-
|
|
3210
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3211
|
-
name: errorCode,
|
|
3212
|
-
$metadata: deserializeMetadata(output),
|
|
3213
|
-
};
|
|
3214
|
-
break;
|
|
2772
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3215
2773
|
case "ServiceUnavailableException":
|
|
3216
2774
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3217
|
-
|
|
3218
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3219
|
-
name: errorCode,
|
|
3220
|
-
$metadata: deserializeMetadata(output),
|
|
3221
|
-
};
|
|
3222
|
-
break;
|
|
2775
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3223
2776
|
default:
|
|
3224
2777
|
const parsedBody = parsedOutput.body;
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
...parsedBody,
|
|
3228
|
-
name: `${errorCode}`,
|
|
3229
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2778
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2779
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3230
2780
|
$fault: "client",
|
|
3231
2781
|
$metadata: deserializeMetadata(output),
|
|
3232
|
-
};
|
|
2782
|
+
});
|
|
2783
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3233
2784
|
}
|
|
3234
|
-
const message = response.message || response.Message || errorCode;
|
|
3235
|
-
response.message = message;
|
|
3236
|
-
delete response.Message;
|
|
3237
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3238
2785
|
};
|
|
3239
2786
|
const deserializeAws_restJson1DescribeBackupVaultCommand = async (output, context) => {
|
|
3240
2787
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3298,51 +2845,25 @@ const deserializeAws_restJson1DescribeBackupVaultCommandError = async (output, c
|
|
|
3298
2845
|
switch (errorCode) {
|
|
3299
2846
|
case "InvalidParameterValueException":
|
|
3300
2847
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3301
|
-
|
|
3302
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3303
|
-
name: errorCode,
|
|
3304
|
-
$metadata: deserializeMetadata(output),
|
|
3305
|
-
};
|
|
3306
|
-
break;
|
|
2848
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3307
2849
|
case "MissingParameterValueException":
|
|
3308
2850
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3309
|
-
|
|
3310
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
3311
|
-
name: errorCode,
|
|
3312
|
-
$metadata: deserializeMetadata(output),
|
|
3313
|
-
};
|
|
3314
|
-
break;
|
|
2851
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
3315
2852
|
case "ResourceNotFoundException":
|
|
3316
2853
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3317
|
-
|
|
3318
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3319
|
-
name: errorCode,
|
|
3320
|
-
$metadata: deserializeMetadata(output),
|
|
3321
|
-
};
|
|
3322
|
-
break;
|
|
2854
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3323
2855
|
case "ServiceUnavailableException":
|
|
3324
2856
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3325
|
-
|
|
3326
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3327
|
-
name: errorCode,
|
|
3328
|
-
$metadata: deserializeMetadata(output),
|
|
3329
|
-
};
|
|
3330
|
-
break;
|
|
2857
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3331
2858
|
default:
|
|
3332
2859
|
const parsedBody = parsedOutput.body;
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
...parsedBody,
|
|
3336
|
-
name: `${errorCode}`,
|
|
3337
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2860
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2861
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3338
2862
|
$fault: "client",
|
|
3339
2863
|
$metadata: deserializeMetadata(output),
|
|
3340
|
-
};
|
|
2864
|
+
});
|
|
2865
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3341
2866
|
}
|
|
3342
|
-
const message = response.message || response.Message || errorCode;
|
|
3343
|
-
response.message = message;
|
|
3344
|
-
delete response.Message;
|
|
3345
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3346
2867
|
};
|
|
3347
2868
|
const deserializeAws_restJson1DescribeCopyJobCommand = async (output, context) => {
|
|
3348
2869
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3370,51 +2891,25 @@ const deserializeAws_restJson1DescribeCopyJobCommandError = async (output, conte
|
|
|
3370
2891
|
switch (errorCode) {
|
|
3371
2892
|
case "InvalidParameterValueException":
|
|
3372
2893
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3373
|
-
|
|
3374
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3375
|
-
name: errorCode,
|
|
3376
|
-
$metadata: deserializeMetadata(output),
|
|
3377
|
-
};
|
|
3378
|
-
break;
|
|
2894
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3379
2895
|
case "MissingParameterValueException":
|
|
3380
2896
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3381
|
-
|
|
3382
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
3383
|
-
name: errorCode,
|
|
3384
|
-
$metadata: deserializeMetadata(output),
|
|
3385
|
-
};
|
|
3386
|
-
break;
|
|
2897
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
3387
2898
|
case "ResourceNotFoundException":
|
|
3388
2899
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3389
|
-
|
|
3390
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3391
|
-
name: errorCode,
|
|
3392
|
-
$metadata: deserializeMetadata(output),
|
|
3393
|
-
};
|
|
3394
|
-
break;
|
|
2900
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3395
2901
|
case "ServiceUnavailableException":
|
|
3396
2902
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3397
|
-
|
|
3398
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3399
|
-
name: errorCode,
|
|
3400
|
-
$metadata: deserializeMetadata(output),
|
|
3401
|
-
};
|
|
3402
|
-
break;
|
|
2903
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3403
2904
|
default:
|
|
3404
2905
|
const parsedBody = parsedOutput.body;
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
...parsedBody,
|
|
3408
|
-
name: `${errorCode}`,
|
|
3409
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2906
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2907
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3410
2908
|
$fault: "client",
|
|
3411
2909
|
$metadata: deserializeMetadata(output),
|
|
3412
|
-
};
|
|
2910
|
+
});
|
|
2911
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3413
2912
|
}
|
|
3414
|
-
const message = response.message || response.Message || errorCode;
|
|
3415
|
-
response.message = message;
|
|
3416
|
-
delete response.Message;
|
|
3417
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3418
2913
|
};
|
|
3419
2914
|
const deserializeAws_restJson1DescribeFrameworkCommand = async (output, context) => {
|
|
3420
2915
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3470,51 +2965,25 @@ const deserializeAws_restJson1DescribeFrameworkCommandError = async (output, con
|
|
|
3470
2965
|
switch (errorCode) {
|
|
3471
2966
|
case "InvalidParameterValueException":
|
|
3472
2967
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3473
|
-
|
|
3474
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3475
|
-
name: errorCode,
|
|
3476
|
-
$metadata: deserializeMetadata(output),
|
|
3477
|
-
};
|
|
3478
|
-
break;
|
|
2968
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3479
2969
|
case "MissingParameterValueException":
|
|
3480
2970
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3481
|
-
|
|
3482
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
3483
|
-
name: errorCode,
|
|
3484
|
-
$metadata: deserializeMetadata(output),
|
|
3485
|
-
};
|
|
3486
|
-
break;
|
|
2971
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
3487
2972
|
case "ResourceNotFoundException":
|
|
3488
2973
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3489
|
-
|
|
3490
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3491
|
-
name: errorCode,
|
|
3492
|
-
$metadata: deserializeMetadata(output),
|
|
3493
|
-
};
|
|
3494
|
-
break;
|
|
2974
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3495
2975
|
case "ServiceUnavailableException":
|
|
3496
2976
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3497
|
-
|
|
3498
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3499
|
-
name: errorCode,
|
|
3500
|
-
$metadata: deserializeMetadata(output),
|
|
3501
|
-
};
|
|
3502
|
-
break;
|
|
2977
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3503
2978
|
default:
|
|
3504
2979
|
const parsedBody = parsedOutput.body;
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
...parsedBody,
|
|
3508
|
-
name: `${errorCode}`,
|
|
3509
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
2980
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
2981
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3510
2982
|
$fault: "client",
|
|
3511
2983
|
$metadata: deserializeMetadata(output),
|
|
3512
|
-
};
|
|
2984
|
+
});
|
|
2985
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3513
2986
|
}
|
|
3514
|
-
const message = response.message || response.Message || errorCode;
|
|
3515
|
-
response.message = message;
|
|
3516
|
-
delete response.Message;
|
|
3517
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3518
2987
|
};
|
|
3519
2988
|
const deserializeAws_restJson1DescribeGlobalSettingsCommand = async (output, context) => {
|
|
3520
2989
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3546,35 +3015,19 @@ const deserializeAws_restJson1DescribeGlobalSettingsCommandError = async (output
|
|
|
3546
3015
|
switch (errorCode) {
|
|
3547
3016
|
case "InvalidRequestException":
|
|
3548
3017
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
3549
|
-
|
|
3550
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
3551
|
-
name: errorCode,
|
|
3552
|
-
$metadata: deserializeMetadata(output),
|
|
3553
|
-
};
|
|
3554
|
-
break;
|
|
3018
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
3555
3019
|
case "ServiceUnavailableException":
|
|
3556
3020
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3557
|
-
|
|
3558
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3559
|
-
name: errorCode,
|
|
3560
|
-
$metadata: deserializeMetadata(output),
|
|
3561
|
-
};
|
|
3562
|
-
break;
|
|
3021
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3563
3022
|
default:
|
|
3564
3023
|
const parsedBody = parsedOutput.body;
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
...parsedBody,
|
|
3568
|
-
name: `${errorCode}`,
|
|
3569
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3024
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3025
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3570
3026
|
$fault: "client",
|
|
3571
3027
|
$metadata: deserializeMetadata(output),
|
|
3572
|
-
};
|
|
3028
|
+
});
|
|
3029
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3573
3030
|
}
|
|
3574
|
-
const message = response.message || response.Message || errorCode;
|
|
3575
|
-
response.message = message;
|
|
3576
|
-
delete response.Message;
|
|
3577
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3578
3031
|
};
|
|
3579
3032
|
const deserializeAws_restJson1DescribeProtectedResourceCommand = async (output, context) => {
|
|
3580
3033
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3610,51 +3063,25 @@ const deserializeAws_restJson1DescribeProtectedResourceCommandError = async (out
|
|
|
3610
3063
|
switch (errorCode) {
|
|
3611
3064
|
case "InvalidParameterValueException":
|
|
3612
3065
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3613
|
-
|
|
3614
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3615
|
-
name: errorCode,
|
|
3616
|
-
$metadata: deserializeMetadata(output),
|
|
3617
|
-
};
|
|
3618
|
-
break;
|
|
3066
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3619
3067
|
case "MissingParameterValueException":
|
|
3620
3068
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3621
|
-
|
|
3622
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
3623
|
-
name: errorCode,
|
|
3624
|
-
$metadata: deserializeMetadata(output),
|
|
3625
|
-
};
|
|
3626
|
-
break;
|
|
3069
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
3627
3070
|
case "ResourceNotFoundException":
|
|
3628
3071
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3629
|
-
|
|
3630
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3631
|
-
name: errorCode,
|
|
3632
|
-
$metadata: deserializeMetadata(output),
|
|
3633
|
-
};
|
|
3634
|
-
break;
|
|
3072
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3635
3073
|
case "ServiceUnavailableException":
|
|
3636
3074
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3637
|
-
|
|
3638
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3639
|
-
name: errorCode,
|
|
3640
|
-
$metadata: deserializeMetadata(output),
|
|
3641
|
-
};
|
|
3642
|
-
break;
|
|
3075
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3643
3076
|
default:
|
|
3644
3077
|
const parsedBody = parsedOutput.body;
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
...parsedBody,
|
|
3648
|
-
name: `${errorCode}`,
|
|
3649
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3078
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3079
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3650
3080
|
$fault: "client",
|
|
3651
3081
|
$metadata: deserializeMetadata(output),
|
|
3652
|
-
};
|
|
3082
|
+
});
|
|
3083
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3653
3084
|
}
|
|
3654
|
-
const message = response.message || response.Message || errorCode;
|
|
3655
|
-
response.message = message;
|
|
3656
|
-
delete response.Message;
|
|
3657
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3658
3085
|
};
|
|
3659
3086
|
const deserializeAws_restJson1DescribeRecoveryPointCommand = async (output, context) => {
|
|
3660
3087
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3754,51 +3181,25 @@ const deserializeAws_restJson1DescribeRecoveryPointCommandError = async (output,
|
|
|
3754
3181
|
switch (errorCode) {
|
|
3755
3182
|
case "InvalidParameterValueException":
|
|
3756
3183
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3757
|
-
|
|
3758
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3759
|
-
name: errorCode,
|
|
3760
|
-
$metadata: deserializeMetadata(output),
|
|
3761
|
-
};
|
|
3762
|
-
break;
|
|
3184
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3763
3185
|
case "MissingParameterValueException":
|
|
3764
3186
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3765
|
-
|
|
3766
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
3767
|
-
name: errorCode,
|
|
3768
|
-
$metadata: deserializeMetadata(output),
|
|
3769
|
-
};
|
|
3770
|
-
break;
|
|
3187
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
3771
3188
|
case "ResourceNotFoundException":
|
|
3772
3189
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3773
|
-
|
|
3774
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3775
|
-
name: errorCode,
|
|
3776
|
-
$metadata: deserializeMetadata(output),
|
|
3777
|
-
};
|
|
3778
|
-
break;
|
|
3190
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3779
3191
|
case "ServiceUnavailableException":
|
|
3780
3192
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3781
|
-
|
|
3782
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3783
|
-
name: errorCode,
|
|
3784
|
-
$metadata: deserializeMetadata(output),
|
|
3785
|
-
};
|
|
3786
|
-
break;
|
|
3193
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3787
3194
|
default:
|
|
3788
3195
|
const parsedBody = parsedOutput.body;
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
...parsedBody,
|
|
3792
|
-
name: `${errorCode}`,
|
|
3793
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3196
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3197
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3794
3198
|
$fault: "client",
|
|
3795
3199
|
$metadata: deserializeMetadata(output),
|
|
3796
|
-
};
|
|
3200
|
+
});
|
|
3201
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3797
3202
|
}
|
|
3798
|
-
const message = response.message || response.Message || errorCode;
|
|
3799
|
-
response.message = message;
|
|
3800
|
-
delete response.Message;
|
|
3801
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3802
3203
|
};
|
|
3803
3204
|
const deserializeAws_restJson1DescribeRegionSettingsCommand = async (output, context) => {
|
|
3804
3205
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3830,27 +3231,16 @@ const deserializeAws_restJson1DescribeRegionSettingsCommandError = async (output
|
|
|
3830
3231
|
switch (errorCode) {
|
|
3831
3232
|
case "ServiceUnavailableException":
|
|
3832
3233
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3833
|
-
|
|
3834
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3835
|
-
name: errorCode,
|
|
3836
|
-
$metadata: deserializeMetadata(output),
|
|
3837
|
-
};
|
|
3838
|
-
break;
|
|
3234
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3839
3235
|
default:
|
|
3840
3236
|
const parsedBody = parsedOutput.body;
|
|
3841
|
-
|
|
3842
|
-
|
|
3843
|
-
...parsedBody,
|
|
3844
|
-
name: `${errorCode}`,
|
|
3845
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3237
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3238
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3846
3239
|
$fault: "client",
|
|
3847
3240
|
$metadata: deserializeMetadata(output),
|
|
3848
|
-
};
|
|
3241
|
+
});
|
|
3242
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3849
3243
|
}
|
|
3850
|
-
const message = response.message || response.Message || errorCode;
|
|
3851
|
-
response.message = message;
|
|
3852
|
-
delete response.Message;
|
|
3853
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3854
3244
|
};
|
|
3855
3245
|
const deserializeAws_restJson1DescribeReportJobCommand = async (output, context) => {
|
|
3856
3246
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3878,43 +3268,22 @@ const deserializeAws_restJson1DescribeReportJobCommandError = async (output, con
|
|
|
3878
3268
|
switch (errorCode) {
|
|
3879
3269
|
case "MissingParameterValueException":
|
|
3880
3270
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3881
|
-
|
|
3882
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
3883
|
-
name: errorCode,
|
|
3884
|
-
$metadata: deserializeMetadata(output),
|
|
3885
|
-
};
|
|
3886
|
-
break;
|
|
3271
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
3887
3272
|
case "ResourceNotFoundException":
|
|
3888
3273
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3889
|
-
|
|
3890
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3891
|
-
name: errorCode,
|
|
3892
|
-
$metadata: deserializeMetadata(output),
|
|
3893
|
-
};
|
|
3894
|
-
break;
|
|
3274
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3895
3275
|
case "ServiceUnavailableException":
|
|
3896
3276
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3897
|
-
|
|
3898
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3899
|
-
name: errorCode,
|
|
3900
|
-
$metadata: deserializeMetadata(output),
|
|
3901
|
-
};
|
|
3902
|
-
break;
|
|
3277
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3903
3278
|
default:
|
|
3904
3279
|
const parsedBody = parsedOutput.body;
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
...parsedBody,
|
|
3908
|
-
name: `${errorCode}`,
|
|
3909
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3280
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3281
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3910
3282
|
$fault: "client",
|
|
3911
3283
|
$metadata: deserializeMetadata(output),
|
|
3912
|
-
};
|
|
3284
|
+
});
|
|
3285
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3913
3286
|
}
|
|
3914
|
-
const message = response.message || response.Message || errorCode;
|
|
3915
|
-
response.message = message;
|
|
3916
|
-
delete response.Message;
|
|
3917
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3918
3287
|
};
|
|
3919
3288
|
const deserializeAws_restJson1DescribeReportPlanCommand = async (output, context) => {
|
|
3920
3289
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -3942,51 +3311,25 @@ const deserializeAws_restJson1DescribeReportPlanCommandError = async (output, co
|
|
|
3942
3311
|
switch (errorCode) {
|
|
3943
3312
|
case "InvalidParameterValueException":
|
|
3944
3313
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
3945
|
-
|
|
3946
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
3947
|
-
name: errorCode,
|
|
3948
|
-
$metadata: deserializeMetadata(output),
|
|
3949
|
-
};
|
|
3950
|
-
break;
|
|
3314
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
3951
3315
|
case "MissingParameterValueException":
|
|
3952
3316
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
3953
|
-
|
|
3954
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
3955
|
-
name: errorCode,
|
|
3956
|
-
$metadata: deserializeMetadata(output),
|
|
3957
|
-
};
|
|
3958
|
-
break;
|
|
3317
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
3959
3318
|
case "ResourceNotFoundException":
|
|
3960
3319
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
3961
|
-
|
|
3962
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
3963
|
-
name: errorCode,
|
|
3964
|
-
$metadata: deserializeMetadata(output),
|
|
3965
|
-
};
|
|
3966
|
-
break;
|
|
3320
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3967
3321
|
case "ServiceUnavailableException":
|
|
3968
3322
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
3969
|
-
|
|
3970
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
3971
|
-
name: errorCode,
|
|
3972
|
-
$metadata: deserializeMetadata(output),
|
|
3973
|
-
};
|
|
3974
|
-
break;
|
|
3323
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
3975
3324
|
default:
|
|
3976
3325
|
const parsedBody = parsedOutput.body;
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
...parsedBody,
|
|
3980
|
-
name: `${errorCode}`,
|
|
3981
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3326
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3327
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
3982
3328
|
$fault: "client",
|
|
3983
3329
|
$metadata: deserializeMetadata(output),
|
|
3984
|
-
};
|
|
3330
|
+
});
|
|
3331
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
3985
3332
|
}
|
|
3986
|
-
const message = response.message || response.Message || errorCode;
|
|
3987
|
-
response.message = message;
|
|
3988
|
-
delete response.Message;
|
|
3989
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
3990
3333
|
};
|
|
3991
3334
|
const deserializeAws_restJson1DescribeRestoreJobCommand = async (output, context) => {
|
|
3992
3335
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4062,59 +3405,28 @@ const deserializeAws_restJson1DescribeRestoreJobCommandError = async (output, co
|
|
|
4062
3405
|
switch (errorCode) {
|
|
4063
3406
|
case "DependencyFailureException":
|
|
4064
3407
|
case "com.amazonaws.backup#DependencyFailureException":
|
|
4065
|
-
|
|
4066
|
-
...(await deserializeAws_restJson1DependencyFailureExceptionResponse(parsedOutput, context)),
|
|
4067
|
-
name: errorCode,
|
|
4068
|
-
$metadata: deserializeMetadata(output),
|
|
4069
|
-
};
|
|
4070
|
-
break;
|
|
3408
|
+
throw await deserializeAws_restJson1DependencyFailureExceptionResponse(parsedOutput, context);
|
|
4071
3409
|
case "InvalidParameterValueException":
|
|
4072
3410
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4073
|
-
|
|
4074
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4075
|
-
name: errorCode,
|
|
4076
|
-
$metadata: deserializeMetadata(output),
|
|
4077
|
-
};
|
|
4078
|
-
break;
|
|
3411
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4079
3412
|
case "MissingParameterValueException":
|
|
4080
3413
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4081
|
-
|
|
4082
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
4083
|
-
name: errorCode,
|
|
4084
|
-
$metadata: deserializeMetadata(output),
|
|
4085
|
-
};
|
|
4086
|
-
break;
|
|
3414
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
4087
3415
|
case "ResourceNotFoundException":
|
|
4088
3416
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4089
|
-
|
|
4090
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4091
|
-
name: errorCode,
|
|
4092
|
-
$metadata: deserializeMetadata(output),
|
|
4093
|
-
};
|
|
4094
|
-
break;
|
|
3417
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4095
3418
|
case "ServiceUnavailableException":
|
|
4096
3419
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4097
|
-
|
|
4098
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4099
|
-
name: errorCode,
|
|
4100
|
-
$metadata: deserializeMetadata(output),
|
|
4101
|
-
};
|
|
4102
|
-
break;
|
|
3420
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4103
3421
|
default:
|
|
4104
3422
|
const parsedBody = parsedOutput.body;
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
...parsedBody,
|
|
4108
|
-
name: `${errorCode}`,
|
|
4109
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3423
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3424
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4110
3425
|
$fault: "client",
|
|
4111
3426
|
$metadata: deserializeMetadata(output),
|
|
4112
|
-
};
|
|
3427
|
+
});
|
|
3428
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4113
3429
|
}
|
|
4114
|
-
const message = response.message || response.Message || errorCode;
|
|
4115
|
-
response.message = message;
|
|
4116
|
-
delete response.Message;
|
|
4117
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4118
3430
|
};
|
|
4119
3431
|
const deserializeAws_restJson1DisassociateRecoveryPointCommand = async (output, context) => {
|
|
4120
3432
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4138,67 +3450,31 @@ const deserializeAws_restJson1DisassociateRecoveryPointCommandError = async (out
|
|
|
4138
3450
|
switch (errorCode) {
|
|
4139
3451
|
case "InvalidParameterValueException":
|
|
4140
3452
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4141
|
-
|
|
4142
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4143
|
-
name: errorCode,
|
|
4144
|
-
$metadata: deserializeMetadata(output),
|
|
4145
|
-
};
|
|
4146
|
-
break;
|
|
3453
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4147
3454
|
case "InvalidRequestException":
|
|
4148
3455
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
4149
|
-
|
|
4150
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
4151
|
-
name: errorCode,
|
|
4152
|
-
$metadata: deserializeMetadata(output),
|
|
4153
|
-
};
|
|
4154
|
-
break;
|
|
3456
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
4155
3457
|
case "InvalidResourceStateException":
|
|
4156
3458
|
case "com.amazonaws.backup#InvalidResourceStateException":
|
|
4157
|
-
|
|
4158
|
-
...(await deserializeAws_restJson1InvalidResourceStateExceptionResponse(parsedOutput, context)),
|
|
4159
|
-
name: errorCode,
|
|
4160
|
-
$metadata: deserializeMetadata(output),
|
|
4161
|
-
};
|
|
4162
|
-
break;
|
|
3459
|
+
throw await deserializeAws_restJson1InvalidResourceStateExceptionResponse(parsedOutput, context);
|
|
4163
3460
|
case "MissingParameterValueException":
|
|
4164
3461
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4165
|
-
|
|
4166
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
4167
|
-
name: errorCode,
|
|
4168
|
-
$metadata: deserializeMetadata(output),
|
|
4169
|
-
};
|
|
4170
|
-
break;
|
|
3462
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
4171
3463
|
case "ResourceNotFoundException":
|
|
4172
3464
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4173
|
-
|
|
4174
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4175
|
-
name: errorCode,
|
|
4176
|
-
$metadata: deserializeMetadata(output),
|
|
4177
|
-
};
|
|
4178
|
-
break;
|
|
3465
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4179
3466
|
case "ServiceUnavailableException":
|
|
4180
3467
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4181
|
-
|
|
4182
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4183
|
-
name: errorCode,
|
|
4184
|
-
$metadata: deserializeMetadata(output),
|
|
4185
|
-
};
|
|
4186
|
-
break;
|
|
3468
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4187
3469
|
default:
|
|
4188
3470
|
const parsedBody = parsedOutput.body;
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
...parsedBody,
|
|
4192
|
-
name: `${errorCode}`,
|
|
4193
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3471
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3472
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4194
3473
|
$fault: "client",
|
|
4195
3474
|
$metadata: deserializeMetadata(output),
|
|
4196
|
-
};
|
|
3475
|
+
});
|
|
3476
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4197
3477
|
}
|
|
4198
|
-
const message = response.message || response.Message || errorCode;
|
|
4199
|
-
response.message = message;
|
|
4200
|
-
delete response.Message;
|
|
4201
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4202
3478
|
};
|
|
4203
3479
|
const deserializeAws_restJson1ExportBackupPlanTemplateCommand = async (output, context) => {
|
|
4204
3480
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4226,51 +3502,25 @@ const deserializeAws_restJson1ExportBackupPlanTemplateCommandError = async (outp
|
|
|
4226
3502
|
switch (errorCode) {
|
|
4227
3503
|
case "InvalidParameterValueException":
|
|
4228
3504
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4229
|
-
|
|
4230
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4231
|
-
name: errorCode,
|
|
4232
|
-
$metadata: deserializeMetadata(output),
|
|
4233
|
-
};
|
|
4234
|
-
break;
|
|
3505
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4235
3506
|
case "MissingParameterValueException":
|
|
4236
3507
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4237
|
-
|
|
4238
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
4239
|
-
name: errorCode,
|
|
4240
|
-
$metadata: deserializeMetadata(output),
|
|
4241
|
-
};
|
|
4242
|
-
break;
|
|
3508
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
4243
3509
|
case "ResourceNotFoundException":
|
|
4244
3510
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4245
|
-
|
|
4246
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4247
|
-
name: errorCode,
|
|
4248
|
-
$metadata: deserializeMetadata(output),
|
|
4249
|
-
};
|
|
4250
|
-
break;
|
|
3511
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4251
3512
|
case "ServiceUnavailableException":
|
|
4252
3513
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4253
|
-
|
|
4254
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4255
|
-
name: errorCode,
|
|
4256
|
-
$metadata: deserializeMetadata(output),
|
|
4257
|
-
};
|
|
4258
|
-
break;
|
|
3514
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4259
3515
|
default:
|
|
4260
3516
|
const parsedBody = parsedOutput.body;
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
...parsedBody,
|
|
4264
|
-
name: `${errorCode}`,
|
|
4265
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3517
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3518
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4266
3519
|
$fault: "client",
|
|
4267
3520
|
$metadata: deserializeMetadata(output),
|
|
4268
|
-
};
|
|
3521
|
+
});
|
|
3522
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4269
3523
|
}
|
|
4270
|
-
const message = response.message || response.Message || errorCode;
|
|
4271
|
-
response.message = message;
|
|
4272
|
-
delete response.Message;
|
|
4273
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4274
3524
|
};
|
|
4275
3525
|
const deserializeAws_restJson1GetBackupPlanCommand = async (output, context) => {
|
|
4276
3526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4330,51 +3580,25 @@ const deserializeAws_restJson1GetBackupPlanCommandError = async (output, context
|
|
|
4330
3580
|
switch (errorCode) {
|
|
4331
3581
|
case "InvalidParameterValueException":
|
|
4332
3582
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4333
|
-
|
|
4334
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4335
|
-
name: errorCode,
|
|
4336
|
-
$metadata: deserializeMetadata(output),
|
|
4337
|
-
};
|
|
4338
|
-
break;
|
|
3583
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4339
3584
|
case "MissingParameterValueException":
|
|
4340
3585
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4341
|
-
|
|
4342
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
4343
|
-
name: errorCode,
|
|
4344
|
-
$metadata: deserializeMetadata(output),
|
|
4345
|
-
};
|
|
4346
|
-
break;
|
|
3586
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
4347
3587
|
case "ResourceNotFoundException":
|
|
4348
3588
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4349
|
-
|
|
4350
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4351
|
-
name: errorCode,
|
|
4352
|
-
$metadata: deserializeMetadata(output),
|
|
4353
|
-
};
|
|
4354
|
-
break;
|
|
3589
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4355
3590
|
case "ServiceUnavailableException":
|
|
4356
3591
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4357
|
-
|
|
4358
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4359
|
-
name: errorCode,
|
|
4360
|
-
$metadata: deserializeMetadata(output),
|
|
4361
|
-
};
|
|
4362
|
-
break;
|
|
3592
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4363
3593
|
default:
|
|
4364
3594
|
const parsedBody = parsedOutput.body;
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
...parsedBody,
|
|
4368
|
-
name: `${errorCode}`,
|
|
4369
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3595
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3596
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4370
3597
|
$fault: "client",
|
|
4371
3598
|
$metadata: deserializeMetadata(output),
|
|
4372
|
-
};
|
|
3599
|
+
});
|
|
3600
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4373
3601
|
}
|
|
4374
|
-
const message = response.message || response.Message || errorCode;
|
|
4375
|
-
response.message = message;
|
|
4376
|
-
delete response.Message;
|
|
4377
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4378
3602
|
};
|
|
4379
3603
|
const deserializeAws_restJson1GetBackupPlanFromJSONCommand = async (output, context) => {
|
|
4380
3604
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4402,59 +3626,28 @@ const deserializeAws_restJson1GetBackupPlanFromJSONCommandError = async (output,
|
|
|
4402
3626
|
switch (errorCode) {
|
|
4403
3627
|
case "InvalidParameterValueException":
|
|
4404
3628
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4405
|
-
|
|
4406
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4407
|
-
name: errorCode,
|
|
4408
|
-
$metadata: deserializeMetadata(output),
|
|
4409
|
-
};
|
|
4410
|
-
break;
|
|
3629
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4411
3630
|
case "InvalidRequestException":
|
|
4412
3631
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
4413
|
-
|
|
4414
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
4415
|
-
name: errorCode,
|
|
4416
|
-
$metadata: deserializeMetadata(output),
|
|
4417
|
-
};
|
|
4418
|
-
break;
|
|
3632
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
4419
3633
|
case "LimitExceededException":
|
|
4420
3634
|
case "com.amazonaws.backup#LimitExceededException":
|
|
4421
|
-
|
|
4422
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
4423
|
-
name: errorCode,
|
|
4424
|
-
$metadata: deserializeMetadata(output),
|
|
4425
|
-
};
|
|
4426
|
-
break;
|
|
3635
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
4427
3636
|
case "MissingParameterValueException":
|
|
4428
3637
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4429
|
-
|
|
4430
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
4431
|
-
name: errorCode,
|
|
4432
|
-
$metadata: deserializeMetadata(output),
|
|
4433
|
-
};
|
|
4434
|
-
break;
|
|
3638
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
4435
3639
|
case "ServiceUnavailableException":
|
|
4436
3640
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4437
|
-
|
|
4438
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4439
|
-
name: errorCode,
|
|
4440
|
-
$metadata: deserializeMetadata(output),
|
|
4441
|
-
};
|
|
4442
|
-
break;
|
|
3641
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4443
3642
|
default:
|
|
4444
3643
|
const parsedBody = parsedOutput.body;
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
...parsedBody,
|
|
4448
|
-
name: `${errorCode}`,
|
|
4449
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3644
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3645
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4450
3646
|
$fault: "client",
|
|
4451
3647
|
$metadata: deserializeMetadata(output),
|
|
4452
|
-
};
|
|
3648
|
+
});
|
|
3649
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4453
3650
|
}
|
|
4454
|
-
const message = response.message || response.Message || errorCode;
|
|
4455
|
-
response.message = message;
|
|
4456
|
-
delete response.Message;
|
|
4457
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4458
3651
|
};
|
|
4459
3652
|
const deserializeAws_restJson1GetBackupPlanFromTemplateCommand = async (output, context) => {
|
|
4460
3653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4482,51 +3675,25 @@ const deserializeAws_restJson1GetBackupPlanFromTemplateCommandError = async (out
|
|
|
4482
3675
|
switch (errorCode) {
|
|
4483
3676
|
case "InvalidParameterValueException":
|
|
4484
3677
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4485
|
-
|
|
4486
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4487
|
-
name: errorCode,
|
|
4488
|
-
$metadata: deserializeMetadata(output),
|
|
4489
|
-
};
|
|
4490
|
-
break;
|
|
3678
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4491
3679
|
case "MissingParameterValueException":
|
|
4492
3680
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4493
|
-
|
|
4494
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
4495
|
-
name: errorCode,
|
|
4496
|
-
$metadata: deserializeMetadata(output),
|
|
4497
|
-
};
|
|
4498
|
-
break;
|
|
3681
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
4499
3682
|
case "ResourceNotFoundException":
|
|
4500
3683
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4501
|
-
|
|
4502
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4503
|
-
name: errorCode,
|
|
4504
|
-
$metadata: deserializeMetadata(output),
|
|
4505
|
-
};
|
|
4506
|
-
break;
|
|
3684
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4507
3685
|
case "ServiceUnavailableException":
|
|
4508
3686
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4509
|
-
|
|
4510
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4511
|
-
name: errorCode,
|
|
4512
|
-
$metadata: deserializeMetadata(output),
|
|
4513
|
-
};
|
|
4514
|
-
break;
|
|
3687
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4515
3688
|
default:
|
|
4516
3689
|
const parsedBody = parsedOutput.body;
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
...parsedBody,
|
|
4520
|
-
name: `${errorCode}`,
|
|
4521
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3690
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3691
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4522
3692
|
$fault: "client",
|
|
4523
3693
|
$metadata: deserializeMetadata(output),
|
|
4524
|
-
};
|
|
3694
|
+
});
|
|
3695
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4525
3696
|
}
|
|
4526
|
-
const message = response.message || response.Message || errorCode;
|
|
4527
|
-
response.message = message;
|
|
4528
|
-
delete response.Message;
|
|
4529
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4530
3697
|
};
|
|
4531
3698
|
const deserializeAws_restJson1GetBackupSelectionCommand = async (output, context) => {
|
|
4532
3699
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4570,51 +3737,25 @@ const deserializeAws_restJson1GetBackupSelectionCommandError = async (output, co
|
|
|
4570
3737
|
switch (errorCode) {
|
|
4571
3738
|
case "InvalidParameterValueException":
|
|
4572
3739
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4573
|
-
|
|
4574
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4575
|
-
name: errorCode,
|
|
4576
|
-
$metadata: deserializeMetadata(output),
|
|
4577
|
-
};
|
|
4578
|
-
break;
|
|
3740
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4579
3741
|
case "MissingParameterValueException":
|
|
4580
3742
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4581
|
-
|
|
4582
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
4583
|
-
name: errorCode,
|
|
4584
|
-
$metadata: deserializeMetadata(output),
|
|
4585
|
-
};
|
|
4586
|
-
break;
|
|
3743
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
4587
3744
|
case "ResourceNotFoundException":
|
|
4588
3745
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4589
|
-
|
|
4590
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4591
|
-
name: errorCode,
|
|
4592
|
-
$metadata: deserializeMetadata(output),
|
|
4593
|
-
};
|
|
4594
|
-
break;
|
|
3746
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4595
3747
|
case "ServiceUnavailableException":
|
|
4596
3748
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4597
|
-
|
|
4598
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4599
|
-
name: errorCode,
|
|
4600
|
-
$metadata: deserializeMetadata(output),
|
|
4601
|
-
};
|
|
4602
|
-
break;
|
|
3749
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4603
3750
|
default:
|
|
4604
3751
|
const parsedBody = parsedOutput.body;
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
...parsedBody,
|
|
4608
|
-
name: `${errorCode}`,
|
|
4609
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3752
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3753
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4610
3754
|
$fault: "client",
|
|
4611
3755
|
$metadata: deserializeMetadata(output),
|
|
4612
|
-
};
|
|
3756
|
+
});
|
|
3757
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4613
3758
|
}
|
|
4614
|
-
const message = response.message || response.Message || errorCode;
|
|
4615
|
-
response.message = message;
|
|
4616
|
-
delete response.Message;
|
|
4617
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4618
3759
|
};
|
|
4619
3760
|
const deserializeAws_restJson1GetBackupVaultAccessPolicyCommand = async (output, context) => {
|
|
4620
3761
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4650,51 +3791,25 @@ const deserializeAws_restJson1GetBackupVaultAccessPolicyCommandError = async (ou
|
|
|
4650
3791
|
switch (errorCode) {
|
|
4651
3792
|
case "InvalidParameterValueException":
|
|
4652
3793
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4653
|
-
|
|
4654
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4655
|
-
name: errorCode,
|
|
4656
|
-
$metadata: deserializeMetadata(output),
|
|
4657
|
-
};
|
|
4658
|
-
break;
|
|
3794
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4659
3795
|
case "MissingParameterValueException":
|
|
4660
3796
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4661
|
-
|
|
4662
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
4663
|
-
name: errorCode,
|
|
4664
|
-
$metadata: deserializeMetadata(output),
|
|
4665
|
-
};
|
|
4666
|
-
break;
|
|
3797
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
4667
3798
|
case "ResourceNotFoundException":
|
|
4668
3799
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4669
|
-
|
|
4670
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4671
|
-
name: errorCode,
|
|
4672
|
-
$metadata: deserializeMetadata(output),
|
|
4673
|
-
};
|
|
4674
|
-
break;
|
|
3800
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4675
3801
|
case "ServiceUnavailableException":
|
|
4676
3802
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4677
|
-
|
|
4678
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4679
|
-
name: errorCode,
|
|
4680
|
-
$metadata: deserializeMetadata(output),
|
|
4681
|
-
};
|
|
4682
|
-
break;
|
|
3803
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4683
3804
|
default:
|
|
4684
3805
|
const parsedBody = parsedOutput.body;
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
...parsedBody,
|
|
4688
|
-
name: `${errorCode}`,
|
|
4689
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3806
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3807
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4690
3808
|
$fault: "client",
|
|
4691
3809
|
$metadata: deserializeMetadata(output),
|
|
4692
|
-
};
|
|
3810
|
+
});
|
|
3811
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4693
3812
|
}
|
|
4694
|
-
const message = response.message || response.Message || errorCode;
|
|
4695
|
-
response.message = message;
|
|
4696
|
-
delete response.Message;
|
|
4697
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4698
3813
|
};
|
|
4699
3814
|
const deserializeAws_restJson1GetBackupVaultNotificationsCommand = async (output, context) => {
|
|
4700
3815
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4734,51 +3849,25 @@ const deserializeAws_restJson1GetBackupVaultNotificationsCommandError = async (o
|
|
|
4734
3849
|
switch (errorCode) {
|
|
4735
3850
|
case "InvalidParameterValueException":
|
|
4736
3851
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4737
|
-
|
|
4738
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4739
|
-
name: errorCode,
|
|
4740
|
-
$metadata: deserializeMetadata(output),
|
|
4741
|
-
};
|
|
4742
|
-
break;
|
|
3852
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4743
3853
|
case "MissingParameterValueException":
|
|
4744
3854
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4745
|
-
|
|
4746
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
4747
|
-
name: errorCode,
|
|
4748
|
-
$metadata: deserializeMetadata(output),
|
|
4749
|
-
};
|
|
4750
|
-
break;
|
|
3855
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
4751
3856
|
case "ResourceNotFoundException":
|
|
4752
3857
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4753
|
-
|
|
4754
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4755
|
-
name: errorCode,
|
|
4756
|
-
$metadata: deserializeMetadata(output),
|
|
4757
|
-
};
|
|
4758
|
-
break;
|
|
3858
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4759
3859
|
case "ServiceUnavailableException":
|
|
4760
3860
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4761
|
-
|
|
4762
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4763
|
-
name: errorCode,
|
|
4764
|
-
$metadata: deserializeMetadata(output),
|
|
4765
|
-
};
|
|
4766
|
-
break;
|
|
3861
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4767
3862
|
default:
|
|
4768
3863
|
const parsedBody = parsedOutput.body;
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
...parsedBody,
|
|
4772
|
-
name: `${errorCode}`,
|
|
4773
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3864
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3865
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4774
3866
|
$fault: "client",
|
|
4775
3867
|
$metadata: deserializeMetadata(output),
|
|
4776
|
-
};
|
|
3868
|
+
});
|
|
3869
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4777
3870
|
}
|
|
4778
|
-
const message = response.message || response.Message || errorCode;
|
|
4779
|
-
response.message = message;
|
|
4780
|
-
delete response.Message;
|
|
4781
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4782
3871
|
};
|
|
4783
3872
|
const deserializeAws_restJson1GetRecoveryPointRestoreMetadataCommand = async (output, context) => {
|
|
4784
3873
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4814,51 +3903,25 @@ const deserializeAws_restJson1GetRecoveryPointRestoreMetadataCommandError = asyn
|
|
|
4814
3903
|
switch (errorCode) {
|
|
4815
3904
|
case "InvalidParameterValueException":
|
|
4816
3905
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4817
|
-
|
|
4818
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4819
|
-
name: errorCode,
|
|
4820
|
-
$metadata: deserializeMetadata(output),
|
|
4821
|
-
};
|
|
4822
|
-
break;
|
|
3906
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4823
3907
|
case "MissingParameterValueException":
|
|
4824
3908
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
4825
|
-
|
|
4826
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
4827
|
-
name: errorCode,
|
|
4828
|
-
$metadata: deserializeMetadata(output),
|
|
4829
|
-
};
|
|
4830
|
-
break;
|
|
3909
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
4831
3910
|
case "ResourceNotFoundException":
|
|
4832
3911
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
4833
|
-
|
|
4834
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
4835
|
-
name: errorCode,
|
|
4836
|
-
$metadata: deserializeMetadata(output),
|
|
4837
|
-
};
|
|
4838
|
-
break;
|
|
3912
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4839
3913
|
case "ServiceUnavailableException":
|
|
4840
3914
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4841
|
-
|
|
4842
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4843
|
-
name: errorCode,
|
|
4844
|
-
$metadata: deserializeMetadata(output),
|
|
4845
|
-
};
|
|
4846
|
-
break;
|
|
3915
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4847
3916
|
default:
|
|
4848
3917
|
const parsedBody = parsedOutput.body;
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
...parsedBody,
|
|
4852
|
-
name: `${errorCode}`,
|
|
4853
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3918
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3919
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4854
3920
|
$fault: "client",
|
|
4855
3921
|
$metadata: deserializeMetadata(output),
|
|
4856
|
-
};
|
|
3922
|
+
});
|
|
3923
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4857
3924
|
}
|
|
4858
|
-
const message = response.message || response.Message || errorCode;
|
|
4859
|
-
response.message = message;
|
|
4860
|
-
delete response.Message;
|
|
4861
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4862
3925
|
};
|
|
4863
3926
|
const deserializeAws_restJson1GetSupportedResourceTypesCommand = async (output, context) => {
|
|
4864
3927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4886,27 +3949,16 @@ const deserializeAws_restJson1GetSupportedResourceTypesCommandError = async (out
|
|
|
4886
3949
|
switch (errorCode) {
|
|
4887
3950
|
case "ServiceUnavailableException":
|
|
4888
3951
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4889
|
-
|
|
4890
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4891
|
-
name: errorCode,
|
|
4892
|
-
$metadata: deserializeMetadata(output),
|
|
4893
|
-
};
|
|
4894
|
-
break;
|
|
3952
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4895
3953
|
default:
|
|
4896
3954
|
const parsedBody = parsedOutput.body;
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
...parsedBody,
|
|
4900
|
-
name: `${errorCode}`,
|
|
4901
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3955
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
3956
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4902
3957
|
$fault: "client",
|
|
4903
3958
|
$metadata: deserializeMetadata(output),
|
|
4904
|
-
};
|
|
3959
|
+
});
|
|
3960
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4905
3961
|
}
|
|
4906
|
-
const message = response.message || response.Message || errorCode;
|
|
4907
|
-
response.message = message;
|
|
4908
|
-
delete response.Message;
|
|
4909
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4910
3962
|
};
|
|
4911
3963
|
const deserializeAws_restJson1ListBackupJobsCommand = async (output, context) => {
|
|
4912
3964
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4938,35 +3990,19 @@ const deserializeAws_restJson1ListBackupJobsCommandError = async (output, contex
|
|
|
4938
3990
|
switch (errorCode) {
|
|
4939
3991
|
case "InvalidParameterValueException":
|
|
4940
3992
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
4941
|
-
|
|
4942
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
4943
|
-
name: errorCode,
|
|
4944
|
-
$metadata: deserializeMetadata(output),
|
|
4945
|
-
};
|
|
4946
|
-
break;
|
|
3993
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
4947
3994
|
case "ServiceUnavailableException":
|
|
4948
3995
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
4949
|
-
|
|
4950
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
4951
|
-
name: errorCode,
|
|
4952
|
-
$metadata: deserializeMetadata(output),
|
|
4953
|
-
};
|
|
4954
|
-
break;
|
|
3996
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
4955
3997
|
default:
|
|
4956
3998
|
const parsedBody = parsedOutput.body;
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
...parsedBody,
|
|
4960
|
-
name: `${errorCode}`,
|
|
4961
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
3999
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4000
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
4962
4001
|
$fault: "client",
|
|
4963
4002
|
$metadata: deserializeMetadata(output),
|
|
4964
|
-
};
|
|
4003
|
+
});
|
|
4004
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
4965
4005
|
}
|
|
4966
|
-
const message = response.message || response.Message || errorCode;
|
|
4967
|
-
response.message = message;
|
|
4968
|
-
delete response.Message;
|
|
4969
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
4970
4006
|
};
|
|
4971
4007
|
const deserializeAws_restJson1ListBackupPlansCommand = async (output, context) => {
|
|
4972
4008
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -4998,51 +4034,25 @@ const deserializeAws_restJson1ListBackupPlansCommandError = async (output, conte
|
|
|
4998
4034
|
switch (errorCode) {
|
|
4999
4035
|
case "InvalidParameterValueException":
|
|
5000
4036
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5001
|
-
|
|
5002
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5003
|
-
name: errorCode,
|
|
5004
|
-
$metadata: deserializeMetadata(output),
|
|
5005
|
-
};
|
|
5006
|
-
break;
|
|
4037
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5007
4038
|
case "MissingParameterValueException":
|
|
5008
4039
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5009
|
-
|
|
5010
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
5011
|
-
name: errorCode,
|
|
5012
|
-
$metadata: deserializeMetadata(output),
|
|
5013
|
-
};
|
|
5014
|
-
break;
|
|
4040
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
5015
4041
|
case "ResourceNotFoundException":
|
|
5016
4042
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5017
|
-
|
|
5018
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5019
|
-
name: errorCode,
|
|
5020
|
-
$metadata: deserializeMetadata(output),
|
|
5021
|
-
};
|
|
5022
|
-
break;
|
|
4043
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5023
4044
|
case "ServiceUnavailableException":
|
|
5024
4045
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5025
|
-
|
|
5026
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5027
|
-
name: errorCode,
|
|
5028
|
-
$metadata: deserializeMetadata(output),
|
|
5029
|
-
};
|
|
5030
|
-
break;
|
|
4046
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5031
4047
|
default:
|
|
5032
4048
|
const parsedBody = parsedOutput.body;
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
...parsedBody,
|
|
5036
|
-
name: `${errorCode}`,
|
|
5037
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4049
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4050
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5038
4051
|
$fault: "client",
|
|
5039
4052
|
$metadata: deserializeMetadata(output),
|
|
5040
|
-
};
|
|
4053
|
+
});
|
|
4054
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5041
4055
|
}
|
|
5042
|
-
const message = response.message || response.Message || errorCode;
|
|
5043
|
-
response.message = message;
|
|
5044
|
-
delete response.Message;
|
|
5045
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5046
4056
|
};
|
|
5047
4057
|
const deserializeAws_restJson1ListBackupPlanTemplatesCommand = async (output, context) => {
|
|
5048
4058
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5074,51 +4084,25 @@ const deserializeAws_restJson1ListBackupPlanTemplatesCommandError = async (outpu
|
|
|
5074
4084
|
switch (errorCode) {
|
|
5075
4085
|
case "InvalidParameterValueException":
|
|
5076
4086
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5077
|
-
|
|
5078
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5079
|
-
name: errorCode,
|
|
5080
|
-
$metadata: deserializeMetadata(output),
|
|
5081
|
-
};
|
|
5082
|
-
break;
|
|
4087
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5083
4088
|
case "MissingParameterValueException":
|
|
5084
4089
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5085
|
-
|
|
5086
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
5087
|
-
name: errorCode,
|
|
5088
|
-
$metadata: deserializeMetadata(output),
|
|
5089
|
-
};
|
|
5090
|
-
break;
|
|
4090
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
5091
4091
|
case "ResourceNotFoundException":
|
|
5092
4092
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5093
|
-
|
|
5094
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5095
|
-
name: errorCode,
|
|
5096
|
-
$metadata: deserializeMetadata(output),
|
|
5097
|
-
};
|
|
5098
|
-
break;
|
|
4093
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5099
4094
|
case "ServiceUnavailableException":
|
|
5100
4095
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5101
|
-
|
|
5102
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5103
|
-
name: errorCode,
|
|
5104
|
-
$metadata: deserializeMetadata(output),
|
|
5105
|
-
};
|
|
5106
|
-
break;
|
|
4096
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5107
4097
|
default:
|
|
5108
4098
|
const parsedBody = parsedOutput.body;
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
...parsedBody,
|
|
5112
|
-
name: `${errorCode}`,
|
|
5113
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4099
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4100
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5114
4101
|
$fault: "client",
|
|
5115
4102
|
$metadata: deserializeMetadata(output),
|
|
5116
|
-
};
|
|
4103
|
+
});
|
|
4104
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5117
4105
|
}
|
|
5118
|
-
const message = response.message || response.Message || errorCode;
|
|
5119
|
-
response.message = message;
|
|
5120
|
-
delete response.Message;
|
|
5121
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5122
4106
|
};
|
|
5123
4107
|
const deserializeAws_restJson1ListBackupPlanVersionsCommand = async (output, context) => {
|
|
5124
4108
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5150,51 +4134,25 @@ const deserializeAws_restJson1ListBackupPlanVersionsCommandError = async (output
|
|
|
5150
4134
|
switch (errorCode) {
|
|
5151
4135
|
case "InvalidParameterValueException":
|
|
5152
4136
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5153
|
-
|
|
5154
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5155
|
-
name: errorCode,
|
|
5156
|
-
$metadata: deserializeMetadata(output),
|
|
5157
|
-
};
|
|
5158
|
-
break;
|
|
4137
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5159
4138
|
case "MissingParameterValueException":
|
|
5160
4139
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5161
|
-
|
|
5162
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
5163
|
-
name: errorCode,
|
|
5164
|
-
$metadata: deserializeMetadata(output),
|
|
5165
|
-
};
|
|
5166
|
-
break;
|
|
4140
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
5167
4141
|
case "ResourceNotFoundException":
|
|
5168
4142
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5169
|
-
|
|
5170
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5171
|
-
name: errorCode,
|
|
5172
|
-
$metadata: deserializeMetadata(output),
|
|
5173
|
-
};
|
|
5174
|
-
break;
|
|
4143
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5175
4144
|
case "ServiceUnavailableException":
|
|
5176
4145
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5177
|
-
|
|
5178
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5179
|
-
name: errorCode,
|
|
5180
|
-
$metadata: deserializeMetadata(output),
|
|
5181
|
-
};
|
|
5182
|
-
break;
|
|
4146
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5183
4147
|
default:
|
|
5184
4148
|
const parsedBody = parsedOutput.body;
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
...parsedBody,
|
|
5188
|
-
name: `${errorCode}`,
|
|
5189
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4149
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4150
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5190
4151
|
$fault: "client",
|
|
5191
4152
|
$metadata: deserializeMetadata(output),
|
|
5192
|
-
};
|
|
4153
|
+
});
|
|
4154
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5193
4155
|
}
|
|
5194
|
-
const message = response.message || response.Message || errorCode;
|
|
5195
|
-
response.message = message;
|
|
5196
|
-
delete response.Message;
|
|
5197
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5198
4156
|
};
|
|
5199
4157
|
const deserializeAws_restJson1ListBackupSelectionsCommand = async (output, context) => {
|
|
5200
4158
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5226,51 +4184,25 @@ const deserializeAws_restJson1ListBackupSelectionsCommandError = async (output,
|
|
|
5226
4184
|
switch (errorCode) {
|
|
5227
4185
|
case "InvalidParameterValueException":
|
|
5228
4186
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5229
|
-
|
|
5230
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5231
|
-
name: errorCode,
|
|
5232
|
-
$metadata: deserializeMetadata(output),
|
|
5233
|
-
};
|
|
5234
|
-
break;
|
|
4187
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5235
4188
|
case "MissingParameterValueException":
|
|
5236
4189
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5237
|
-
|
|
5238
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
5239
|
-
name: errorCode,
|
|
5240
|
-
$metadata: deserializeMetadata(output),
|
|
5241
|
-
};
|
|
5242
|
-
break;
|
|
4190
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
5243
4191
|
case "ResourceNotFoundException":
|
|
5244
4192
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5245
|
-
|
|
5246
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5247
|
-
name: errorCode,
|
|
5248
|
-
$metadata: deserializeMetadata(output),
|
|
5249
|
-
};
|
|
5250
|
-
break;
|
|
4193
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5251
4194
|
case "ServiceUnavailableException":
|
|
5252
4195
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5253
|
-
|
|
5254
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5255
|
-
name: errorCode,
|
|
5256
|
-
$metadata: deserializeMetadata(output),
|
|
5257
|
-
};
|
|
5258
|
-
break;
|
|
4196
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5259
4197
|
default:
|
|
5260
4198
|
const parsedBody = parsedOutput.body;
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
...parsedBody,
|
|
5264
|
-
name: `${errorCode}`,
|
|
5265
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4199
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4200
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5266
4201
|
$fault: "client",
|
|
5267
4202
|
$metadata: deserializeMetadata(output),
|
|
5268
|
-
};
|
|
4203
|
+
});
|
|
4204
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5269
4205
|
}
|
|
5270
|
-
const message = response.message || response.Message || errorCode;
|
|
5271
|
-
response.message = message;
|
|
5272
|
-
delete response.Message;
|
|
5273
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5274
4206
|
};
|
|
5275
4207
|
const deserializeAws_restJson1ListBackupVaultsCommand = async (output, context) => {
|
|
5276
4208
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5302,51 +4234,25 @@ const deserializeAws_restJson1ListBackupVaultsCommandError = async (output, cont
|
|
|
5302
4234
|
switch (errorCode) {
|
|
5303
4235
|
case "InvalidParameterValueException":
|
|
5304
4236
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5305
|
-
|
|
5306
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5307
|
-
name: errorCode,
|
|
5308
|
-
$metadata: deserializeMetadata(output),
|
|
5309
|
-
};
|
|
5310
|
-
break;
|
|
4237
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5311
4238
|
case "MissingParameterValueException":
|
|
5312
4239
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5313
|
-
|
|
5314
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
5315
|
-
name: errorCode,
|
|
5316
|
-
$metadata: deserializeMetadata(output),
|
|
5317
|
-
};
|
|
5318
|
-
break;
|
|
4240
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
5319
4241
|
case "ResourceNotFoundException":
|
|
5320
4242
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5321
|
-
|
|
5322
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5323
|
-
name: errorCode,
|
|
5324
|
-
$metadata: deserializeMetadata(output),
|
|
5325
|
-
};
|
|
5326
|
-
break;
|
|
4243
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5327
4244
|
case "ServiceUnavailableException":
|
|
5328
4245
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5329
|
-
|
|
5330
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5331
|
-
name: errorCode,
|
|
5332
|
-
$metadata: deserializeMetadata(output),
|
|
5333
|
-
};
|
|
5334
|
-
break;
|
|
4246
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5335
4247
|
default:
|
|
5336
4248
|
const parsedBody = parsedOutput.body;
|
|
5337
|
-
|
|
5338
|
-
|
|
5339
|
-
...parsedBody,
|
|
5340
|
-
name: `${errorCode}`,
|
|
5341
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4249
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4250
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5342
4251
|
$fault: "client",
|
|
5343
4252
|
$metadata: deserializeMetadata(output),
|
|
5344
|
-
};
|
|
4253
|
+
});
|
|
4254
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5345
4255
|
}
|
|
5346
|
-
const message = response.message || response.Message || errorCode;
|
|
5347
|
-
response.message = message;
|
|
5348
|
-
delete response.Message;
|
|
5349
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5350
4256
|
};
|
|
5351
4257
|
const deserializeAws_restJson1ListCopyJobsCommand = async (output, context) => {
|
|
5352
4258
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5378,35 +4284,19 @@ const deserializeAws_restJson1ListCopyJobsCommandError = async (output, context)
|
|
|
5378
4284
|
switch (errorCode) {
|
|
5379
4285
|
case "InvalidParameterValueException":
|
|
5380
4286
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5381
|
-
|
|
5382
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5383
|
-
name: errorCode,
|
|
5384
|
-
$metadata: deserializeMetadata(output),
|
|
5385
|
-
};
|
|
5386
|
-
break;
|
|
4287
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5387
4288
|
case "ServiceUnavailableException":
|
|
5388
4289
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5389
|
-
|
|
5390
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5391
|
-
name: errorCode,
|
|
5392
|
-
$metadata: deserializeMetadata(output),
|
|
5393
|
-
};
|
|
5394
|
-
break;
|
|
4290
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5395
4291
|
default:
|
|
5396
4292
|
const parsedBody = parsedOutput.body;
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
...parsedBody,
|
|
5400
|
-
name: `${errorCode}`,
|
|
5401
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4293
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4294
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5402
4295
|
$fault: "client",
|
|
5403
4296
|
$metadata: deserializeMetadata(output),
|
|
5404
|
-
};
|
|
4297
|
+
});
|
|
4298
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5405
4299
|
}
|
|
5406
|
-
const message = response.message || response.Message || errorCode;
|
|
5407
|
-
response.message = message;
|
|
5408
|
-
delete response.Message;
|
|
5409
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5410
4300
|
};
|
|
5411
4301
|
const deserializeAws_restJson1ListFrameworksCommand = async (output, context) => {
|
|
5412
4302
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5438,35 +4328,19 @@ const deserializeAws_restJson1ListFrameworksCommandError = async (output, contex
|
|
|
5438
4328
|
switch (errorCode) {
|
|
5439
4329
|
case "InvalidParameterValueException":
|
|
5440
4330
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5441
|
-
|
|
5442
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5443
|
-
name: errorCode,
|
|
5444
|
-
$metadata: deserializeMetadata(output),
|
|
5445
|
-
};
|
|
5446
|
-
break;
|
|
4331
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5447
4332
|
case "ServiceUnavailableException":
|
|
5448
4333
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5449
|
-
|
|
5450
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5451
|
-
name: errorCode,
|
|
5452
|
-
$metadata: deserializeMetadata(output),
|
|
5453
|
-
};
|
|
5454
|
-
break;
|
|
4334
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5455
4335
|
default:
|
|
5456
4336
|
const parsedBody = parsedOutput.body;
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
...parsedBody,
|
|
5460
|
-
name: `${errorCode}`,
|
|
5461
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4337
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4338
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5462
4339
|
$fault: "client",
|
|
5463
4340
|
$metadata: deserializeMetadata(output),
|
|
5464
|
-
};
|
|
4341
|
+
});
|
|
4342
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5465
4343
|
}
|
|
5466
|
-
const message = response.message || response.Message || errorCode;
|
|
5467
|
-
response.message = message;
|
|
5468
|
-
delete response.Message;
|
|
5469
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5470
4344
|
};
|
|
5471
4345
|
const deserializeAws_restJson1ListProtectedResourcesCommand = async (output, context) => {
|
|
5472
4346
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5498,35 +4372,19 @@ const deserializeAws_restJson1ListProtectedResourcesCommandError = async (output
|
|
|
5498
4372
|
switch (errorCode) {
|
|
5499
4373
|
case "InvalidParameterValueException":
|
|
5500
4374
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5501
|
-
|
|
5502
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5503
|
-
name: errorCode,
|
|
5504
|
-
$metadata: deserializeMetadata(output),
|
|
5505
|
-
};
|
|
5506
|
-
break;
|
|
4375
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5507
4376
|
case "ServiceUnavailableException":
|
|
5508
4377
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5509
|
-
|
|
5510
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5511
|
-
name: errorCode,
|
|
5512
|
-
$metadata: deserializeMetadata(output),
|
|
5513
|
-
};
|
|
5514
|
-
break;
|
|
4378
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5515
4379
|
default:
|
|
5516
4380
|
const parsedBody = parsedOutput.body;
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
...parsedBody,
|
|
5520
|
-
name: `${errorCode}`,
|
|
5521
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4381
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4382
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5522
4383
|
$fault: "client",
|
|
5523
4384
|
$metadata: deserializeMetadata(output),
|
|
5524
|
-
};
|
|
4385
|
+
});
|
|
4386
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5525
4387
|
}
|
|
5526
|
-
const message = response.message || response.Message || errorCode;
|
|
5527
|
-
response.message = message;
|
|
5528
|
-
delete response.Message;
|
|
5529
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5530
4388
|
};
|
|
5531
4389
|
const deserializeAws_restJson1ListRecoveryPointsByBackupVaultCommand = async (output, context) => {
|
|
5532
4390
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5558,51 +4416,25 @@ const deserializeAws_restJson1ListRecoveryPointsByBackupVaultCommandError = asyn
|
|
|
5558
4416
|
switch (errorCode) {
|
|
5559
4417
|
case "InvalidParameterValueException":
|
|
5560
4418
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5561
|
-
|
|
5562
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5563
|
-
name: errorCode,
|
|
5564
|
-
$metadata: deserializeMetadata(output),
|
|
5565
|
-
};
|
|
5566
|
-
break;
|
|
4419
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5567
4420
|
case "MissingParameterValueException":
|
|
5568
4421
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5569
|
-
|
|
5570
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
5571
|
-
name: errorCode,
|
|
5572
|
-
$metadata: deserializeMetadata(output),
|
|
5573
|
-
};
|
|
5574
|
-
break;
|
|
4422
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
5575
4423
|
case "ResourceNotFoundException":
|
|
5576
4424
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5577
|
-
|
|
5578
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5579
|
-
name: errorCode,
|
|
5580
|
-
$metadata: deserializeMetadata(output),
|
|
5581
|
-
};
|
|
5582
|
-
break;
|
|
4425
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5583
4426
|
case "ServiceUnavailableException":
|
|
5584
4427
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5585
|
-
|
|
5586
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5587
|
-
name: errorCode,
|
|
5588
|
-
$metadata: deserializeMetadata(output),
|
|
5589
|
-
};
|
|
5590
|
-
break;
|
|
4428
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5591
4429
|
default:
|
|
5592
4430
|
const parsedBody = parsedOutput.body;
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
...parsedBody,
|
|
5596
|
-
name: `${errorCode}`,
|
|
5597
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4431
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4432
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5598
4433
|
$fault: "client",
|
|
5599
4434
|
$metadata: deserializeMetadata(output),
|
|
5600
|
-
};
|
|
4435
|
+
});
|
|
4436
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5601
4437
|
}
|
|
5602
|
-
const message = response.message || response.Message || errorCode;
|
|
5603
|
-
response.message = message;
|
|
5604
|
-
delete response.Message;
|
|
5605
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5606
4438
|
};
|
|
5607
4439
|
const deserializeAws_restJson1ListRecoveryPointsByResourceCommand = async (output, context) => {
|
|
5608
4440
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5634,51 +4466,25 @@ const deserializeAws_restJson1ListRecoveryPointsByResourceCommandError = async (
|
|
|
5634
4466
|
switch (errorCode) {
|
|
5635
4467
|
case "InvalidParameterValueException":
|
|
5636
4468
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5637
|
-
|
|
5638
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5639
|
-
name: errorCode,
|
|
5640
|
-
$metadata: deserializeMetadata(output),
|
|
5641
|
-
};
|
|
5642
|
-
break;
|
|
4469
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5643
4470
|
case "MissingParameterValueException":
|
|
5644
4471
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5645
|
-
|
|
5646
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
5647
|
-
name: errorCode,
|
|
5648
|
-
$metadata: deserializeMetadata(output),
|
|
5649
|
-
};
|
|
5650
|
-
break;
|
|
4472
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
5651
4473
|
case "ResourceNotFoundException":
|
|
5652
4474
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5653
|
-
|
|
5654
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5655
|
-
name: errorCode,
|
|
5656
|
-
$metadata: deserializeMetadata(output),
|
|
5657
|
-
};
|
|
5658
|
-
break;
|
|
4475
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5659
4476
|
case "ServiceUnavailableException":
|
|
5660
4477
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5661
|
-
|
|
5662
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5663
|
-
name: errorCode,
|
|
5664
|
-
$metadata: deserializeMetadata(output),
|
|
5665
|
-
};
|
|
5666
|
-
break;
|
|
4478
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5667
4479
|
default:
|
|
5668
4480
|
const parsedBody = parsedOutput.body;
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
...parsedBody,
|
|
5672
|
-
name: `${errorCode}`,
|
|
5673
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4481
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4482
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5674
4483
|
$fault: "client",
|
|
5675
4484
|
$metadata: deserializeMetadata(output),
|
|
5676
|
-
};
|
|
4485
|
+
});
|
|
4486
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5677
4487
|
}
|
|
5678
|
-
const message = response.message || response.Message || errorCode;
|
|
5679
|
-
response.message = message;
|
|
5680
|
-
delete response.Message;
|
|
5681
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5682
4488
|
};
|
|
5683
4489
|
const deserializeAws_restJson1ListReportJobsCommand = async (output, context) => {
|
|
5684
4490
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5710,35 +4516,19 @@ const deserializeAws_restJson1ListReportJobsCommandError = async (output, contex
|
|
|
5710
4516
|
switch (errorCode) {
|
|
5711
4517
|
case "InvalidParameterValueException":
|
|
5712
4518
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5713
|
-
|
|
5714
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5715
|
-
name: errorCode,
|
|
5716
|
-
$metadata: deserializeMetadata(output),
|
|
5717
|
-
};
|
|
5718
|
-
break;
|
|
4519
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5719
4520
|
case "ServiceUnavailableException":
|
|
5720
4521
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5721
|
-
|
|
5722
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5723
|
-
name: errorCode,
|
|
5724
|
-
$metadata: deserializeMetadata(output),
|
|
5725
|
-
};
|
|
5726
|
-
break;
|
|
4522
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5727
4523
|
default:
|
|
5728
4524
|
const parsedBody = parsedOutput.body;
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
...parsedBody,
|
|
5732
|
-
name: `${errorCode}`,
|
|
5733
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4525
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4526
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5734
4527
|
$fault: "client",
|
|
5735
4528
|
$metadata: deserializeMetadata(output),
|
|
5736
|
-
};
|
|
4529
|
+
});
|
|
4530
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5737
4531
|
}
|
|
5738
|
-
const message = response.message || response.Message || errorCode;
|
|
5739
|
-
response.message = message;
|
|
5740
|
-
delete response.Message;
|
|
5741
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5742
4532
|
};
|
|
5743
4533
|
const deserializeAws_restJson1ListReportPlansCommand = async (output, context) => {
|
|
5744
4534
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5770,35 +4560,19 @@ const deserializeAws_restJson1ListReportPlansCommandError = async (output, conte
|
|
|
5770
4560
|
switch (errorCode) {
|
|
5771
4561
|
case "InvalidParameterValueException":
|
|
5772
4562
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5773
|
-
|
|
5774
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5775
|
-
name: errorCode,
|
|
5776
|
-
$metadata: deserializeMetadata(output),
|
|
5777
|
-
};
|
|
5778
|
-
break;
|
|
4563
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5779
4564
|
case "ServiceUnavailableException":
|
|
5780
4565
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5781
|
-
|
|
5782
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5783
|
-
name: errorCode,
|
|
5784
|
-
$metadata: deserializeMetadata(output),
|
|
5785
|
-
};
|
|
5786
|
-
break;
|
|
4566
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5787
4567
|
default:
|
|
5788
4568
|
const parsedBody = parsedOutput.body;
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
...parsedBody,
|
|
5792
|
-
name: `${errorCode}`,
|
|
5793
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4569
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4570
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5794
4571
|
$fault: "client",
|
|
5795
4572
|
$metadata: deserializeMetadata(output),
|
|
5796
|
-
};
|
|
4573
|
+
});
|
|
4574
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5797
4575
|
}
|
|
5798
|
-
const message = response.message || response.Message || errorCode;
|
|
5799
|
-
response.message = message;
|
|
5800
|
-
delete response.Message;
|
|
5801
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5802
4576
|
};
|
|
5803
4577
|
const deserializeAws_restJson1ListRestoreJobsCommand = async (output, context) => {
|
|
5804
4578
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5830,51 +4604,25 @@ const deserializeAws_restJson1ListRestoreJobsCommandError = async (output, conte
|
|
|
5830
4604
|
switch (errorCode) {
|
|
5831
4605
|
case "InvalidParameterValueException":
|
|
5832
4606
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5833
|
-
|
|
5834
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5835
|
-
name: errorCode,
|
|
5836
|
-
$metadata: deserializeMetadata(output),
|
|
5837
|
-
};
|
|
5838
|
-
break;
|
|
4607
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5839
4608
|
case "MissingParameterValueException":
|
|
5840
4609
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5841
|
-
|
|
5842
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
5843
|
-
name: errorCode,
|
|
5844
|
-
$metadata: deserializeMetadata(output),
|
|
5845
|
-
};
|
|
5846
|
-
break;
|
|
4610
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
5847
4611
|
case "ResourceNotFoundException":
|
|
5848
4612
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5849
|
-
|
|
5850
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5851
|
-
name: errorCode,
|
|
5852
|
-
$metadata: deserializeMetadata(output),
|
|
5853
|
-
};
|
|
5854
|
-
break;
|
|
4613
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5855
4614
|
case "ServiceUnavailableException":
|
|
5856
4615
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5857
|
-
|
|
5858
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5859
|
-
name: errorCode,
|
|
5860
|
-
$metadata: deserializeMetadata(output),
|
|
5861
|
-
};
|
|
5862
|
-
break;
|
|
4616
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5863
4617
|
default:
|
|
5864
4618
|
const parsedBody = parsedOutput.body;
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
...parsedBody,
|
|
5868
|
-
name: `${errorCode}`,
|
|
5869
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4619
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4620
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5870
4621
|
$fault: "client",
|
|
5871
4622
|
$metadata: deserializeMetadata(output),
|
|
5872
|
-
};
|
|
4623
|
+
});
|
|
4624
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5873
4625
|
}
|
|
5874
|
-
const message = response.message || response.Message || errorCode;
|
|
5875
|
-
response.message = message;
|
|
5876
|
-
delete response.Message;
|
|
5877
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5878
4626
|
};
|
|
5879
4627
|
const deserializeAws_restJson1ListTagsCommand = async (output, context) => {
|
|
5880
4628
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5906,51 +4654,25 @@ const deserializeAws_restJson1ListTagsCommandError = async (output, context) =>
|
|
|
5906
4654
|
switch (errorCode) {
|
|
5907
4655
|
case "InvalidParameterValueException":
|
|
5908
4656
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5909
|
-
|
|
5910
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5911
|
-
name: errorCode,
|
|
5912
|
-
$metadata: deserializeMetadata(output),
|
|
5913
|
-
};
|
|
5914
|
-
break;
|
|
4657
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5915
4658
|
case "MissingParameterValueException":
|
|
5916
4659
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5917
|
-
|
|
5918
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
5919
|
-
name: errorCode,
|
|
5920
|
-
$metadata: deserializeMetadata(output),
|
|
5921
|
-
};
|
|
5922
|
-
break;
|
|
4660
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
5923
4661
|
case "ResourceNotFoundException":
|
|
5924
4662
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5925
|
-
|
|
5926
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5927
|
-
name: errorCode,
|
|
5928
|
-
$metadata: deserializeMetadata(output),
|
|
5929
|
-
};
|
|
5930
|
-
break;
|
|
4663
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5931
4664
|
case "ServiceUnavailableException":
|
|
5932
4665
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
5933
|
-
|
|
5934
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
5935
|
-
name: errorCode,
|
|
5936
|
-
$metadata: deserializeMetadata(output),
|
|
5937
|
-
};
|
|
5938
|
-
break;
|
|
4666
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
5939
4667
|
default:
|
|
5940
4668
|
const parsedBody = parsedOutput.body;
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
...parsedBody,
|
|
5944
|
-
name: `${errorCode}`,
|
|
5945
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4669
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4670
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
5946
4671
|
$fault: "client",
|
|
5947
4672
|
$metadata: deserializeMetadata(output),
|
|
5948
|
-
};
|
|
4673
|
+
});
|
|
4674
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
5949
4675
|
}
|
|
5950
|
-
const message = response.message || response.Message || errorCode;
|
|
5951
|
-
response.message = message;
|
|
5952
|
-
delete response.Message;
|
|
5953
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
5954
4676
|
};
|
|
5955
4677
|
const deserializeAws_restJson1PutBackupVaultAccessPolicyCommand = async (output, context) => {
|
|
5956
4678
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -5974,51 +4696,25 @@ const deserializeAws_restJson1PutBackupVaultAccessPolicyCommandError = async (ou
|
|
|
5974
4696
|
switch (errorCode) {
|
|
5975
4697
|
case "InvalidParameterValueException":
|
|
5976
4698
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
5977
|
-
|
|
5978
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
5979
|
-
name: errorCode,
|
|
5980
|
-
$metadata: deserializeMetadata(output),
|
|
5981
|
-
};
|
|
5982
|
-
break;
|
|
4699
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
5983
4700
|
case "MissingParameterValueException":
|
|
5984
4701
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
5985
|
-
|
|
5986
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
5987
|
-
name: errorCode,
|
|
5988
|
-
$metadata: deserializeMetadata(output),
|
|
5989
|
-
};
|
|
5990
|
-
break;
|
|
4702
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
5991
4703
|
case "ResourceNotFoundException":
|
|
5992
4704
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
5993
|
-
|
|
5994
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
5995
|
-
name: errorCode,
|
|
5996
|
-
$metadata: deserializeMetadata(output),
|
|
5997
|
-
};
|
|
5998
|
-
break;
|
|
4705
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
5999
4706
|
case "ServiceUnavailableException":
|
|
6000
4707
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6001
|
-
|
|
6002
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
6003
|
-
name: errorCode,
|
|
6004
|
-
$metadata: deserializeMetadata(output),
|
|
6005
|
-
};
|
|
6006
|
-
break;
|
|
4708
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6007
4709
|
default:
|
|
6008
4710
|
const parsedBody = parsedOutput.body;
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
...parsedBody,
|
|
6012
|
-
name: `${errorCode}`,
|
|
6013
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4711
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4712
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6014
4713
|
$fault: "client",
|
|
6015
4714
|
$metadata: deserializeMetadata(output),
|
|
6016
|
-
};
|
|
4715
|
+
});
|
|
4716
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6017
4717
|
}
|
|
6018
|
-
const message = response.message || response.Message || errorCode;
|
|
6019
|
-
response.message = message;
|
|
6020
|
-
delete response.Message;
|
|
6021
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6022
4718
|
};
|
|
6023
4719
|
const deserializeAws_restJson1PutBackupVaultLockConfigurationCommand = async (output, context) => {
|
|
6024
4720
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6042,59 +4738,28 @@ const deserializeAws_restJson1PutBackupVaultLockConfigurationCommandError = asyn
|
|
|
6042
4738
|
switch (errorCode) {
|
|
6043
4739
|
case "InvalidParameterValueException":
|
|
6044
4740
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
6045
|
-
|
|
6046
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
6047
|
-
name: errorCode,
|
|
6048
|
-
$metadata: deserializeMetadata(output),
|
|
6049
|
-
};
|
|
6050
|
-
break;
|
|
4741
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
6051
4742
|
case "InvalidRequestException":
|
|
6052
4743
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
6053
|
-
|
|
6054
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
6055
|
-
name: errorCode,
|
|
6056
|
-
$metadata: deserializeMetadata(output),
|
|
6057
|
-
};
|
|
6058
|
-
break;
|
|
4744
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
6059
4745
|
case "MissingParameterValueException":
|
|
6060
4746
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
6061
|
-
|
|
6062
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
6063
|
-
name: errorCode,
|
|
6064
|
-
$metadata: deserializeMetadata(output),
|
|
6065
|
-
};
|
|
6066
|
-
break;
|
|
4747
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
6067
4748
|
case "ResourceNotFoundException":
|
|
6068
4749
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
6069
|
-
|
|
6070
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6071
|
-
name: errorCode,
|
|
6072
|
-
$metadata: deserializeMetadata(output),
|
|
6073
|
-
};
|
|
6074
|
-
break;
|
|
4750
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6075
4751
|
case "ServiceUnavailableException":
|
|
6076
4752
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6077
|
-
|
|
6078
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
6079
|
-
name: errorCode,
|
|
6080
|
-
$metadata: deserializeMetadata(output),
|
|
6081
|
-
};
|
|
6082
|
-
break;
|
|
4753
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6083
4754
|
default:
|
|
6084
4755
|
const parsedBody = parsedOutput.body;
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
...parsedBody,
|
|
6088
|
-
name: `${errorCode}`,
|
|
6089
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4756
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4757
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6090
4758
|
$fault: "client",
|
|
6091
4759
|
$metadata: deserializeMetadata(output),
|
|
6092
|
-
};
|
|
4760
|
+
});
|
|
4761
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6093
4762
|
}
|
|
6094
|
-
const message = response.message || response.Message || errorCode;
|
|
6095
|
-
response.message = message;
|
|
6096
|
-
delete response.Message;
|
|
6097
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6098
4763
|
};
|
|
6099
4764
|
const deserializeAws_restJson1PutBackupVaultNotificationsCommand = async (output, context) => {
|
|
6100
4765
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6118,51 +4783,25 @@ const deserializeAws_restJson1PutBackupVaultNotificationsCommandError = async (o
|
|
|
6118
4783
|
switch (errorCode) {
|
|
6119
4784
|
case "InvalidParameterValueException":
|
|
6120
4785
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
6121
|
-
|
|
6122
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
6123
|
-
name: errorCode,
|
|
6124
|
-
$metadata: deserializeMetadata(output),
|
|
6125
|
-
};
|
|
6126
|
-
break;
|
|
4786
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
6127
4787
|
case "MissingParameterValueException":
|
|
6128
4788
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
6129
|
-
|
|
6130
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
6131
|
-
name: errorCode,
|
|
6132
|
-
$metadata: deserializeMetadata(output),
|
|
6133
|
-
};
|
|
6134
|
-
break;
|
|
4789
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
6135
4790
|
case "ResourceNotFoundException":
|
|
6136
4791
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
6137
|
-
|
|
6138
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6139
|
-
name: errorCode,
|
|
6140
|
-
$metadata: deserializeMetadata(output),
|
|
6141
|
-
};
|
|
6142
|
-
break;
|
|
4792
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6143
4793
|
case "ServiceUnavailableException":
|
|
6144
4794
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6145
|
-
|
|
6146
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
6147
|
-
name: errorCode,
|
|
6148
|
-
$metadata: deserializeMetadata(output),
|
|
6149
|
-
};
|
|
6150
|
-
break;
|
|
4795
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6151
4796
|
default:
|
|
6152
4797
|
const parsedBody = parsedOutput.body;
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
...parsedBody,
|
|
6156
|
-
name: `${errorCode}`,
|
|
6157
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4798
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4799
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6158
4800
|
$fault: "client",
|
|
6159
4801
|
$metadata: deserializeMetadata(output),
|
|
6160
|
-
};
|
|
4802
|
+
});
|
|
4803
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6161
4804
|
}
|
|
6162
|
-
const message = response.message || response.Message || errorCode;
|
|
6163
|
-
response.message = message;
|
|
6164
|
-
delete response.Message;
|
|
6165
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6166
4805
|
};
|
|
6167
4806
|
const deserializeAws_restJson1StartBackupJobCommand = async (output, context) => {
|
|
6168
4807
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6198,67 +4837,31 @@ const deserializeAws_restJson1StartBackupJobCommandError = async (output, contex
|
|
|
6198
4837
|
switch (errorCode) {
|
|
6199
4838
|
case "InvalidParameterValueException":
|
|
6200
4839
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
6201
|
-
|
|
6202
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
6203
|
-
name: errorCode,
|
|
6204
|
-
$metadata: deserializeMetadata(output),
|
|
6205
|
-
};
|
|
6206
|
-
break;
|
|
4840
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
6207
4841
|
case "InvalidRequestException":
|
|
6208
4842
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
6209
|
-
|
|
6210
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
6211
|
-
name: errorCode,
|
|
6212
|
-
$metadata: deserializeMetadata(output),
|
|
6213
|
-
};
|
|
6214
|
-
break;
|
|
4843
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
6215
4844
|
case "LimitExceededException":
|
|
6216
4845
|
case "com.amazonaws.backup#LimitExceededException":
|
|
6217
|
-
|
|
6218
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
6219
|
-
name: errorCode,
|
|
6220
|
-
$metadata: deserializeMetadata(output),
|
|
6221
|
-
};
|
|
6222
|
-
break;
|
|
4846
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
6223
4847
|
case "MissingParameterValueException":
|
|
6224
4848
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
6225
|
-
|
|
6226
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
6227
|
-
name: errorCode,
|
|
6228
|
-
$metadata: deserializeMetadata(output),
|
|
6229
|
-
};
|
|
6230
|
-
break;
|
|
4849
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
6231
4850
|
case "ResourceNotFoundException":
|
|
6232
4851
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
6233
|
-
|
|
6234
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6235
|
-
name: errorCode,
|
|
6236
|
-
$metadata: deserializeMetadata(output),
|
|
6237
|
-
};
|
|
6238
|
-
break;
|
|
4852
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6239
4853
|
case "ServiceUnavailableException":
|
|
6240
4854
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6241
|
-
|
|
6242
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
6243
|
-
name: errorCode,
|
|
6244
|
-
$metadata: deserializeMetadata(output),
|
|
6245
|
-
};
|
|
6246
|
-
break;
|
|
4855
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6247
4856
|
default:
|
|
6248
4857
|
const parsedBody = parsedOutput.body;
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
...parsedBody,
|
|
6252
|
-
name: `${errorCode}`,
|
|
6253
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4858
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4859
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6254
4860
|
$fault: "client",
|
|
6255
4861
|
$metadata: deserializeMetadata(output),
|
|
6256
|
-
};
|
|
4862
|
+
});
|
|
4863
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6257
4864
|
}
|
|
6258
|
-
const message = response.message || response.Message || errorCode;
|
|
6259
|
-
response.message = message;
|
|
6260
|
-
delete response.Message;
|
|
6261
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6262
4865
|
};
|
|
6263
4866
|
const deserializeAws_restJson1StartCopyJobCommand = async (output, context) => {
|
|
6264
4867
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6290,67 +4893,31 @@ const deserializeAws_restJson1StartCopyJobCommandError = async (output, context)
|
|
|
6290
4893
|
switch (errorCode) {
|
|
6291
4894
|
case "InvalidParameterValueException":
|
|
6292
4895
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
6293
|
-
|
|
6294
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
6295
|
-
name: errorCode,
|
|
6296
|
-
$metadata: deserializeMetadata(output),
|
|
6297
|
-
};
|
|
6298
|
-
break;
|
|
4896
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
6299
4897
|
case "InvalidRequestException":
|
|
6300
4898
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
6301
|
-
|
|
6302
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
6303
|
-
name: errorCode,
|
|
6304
|
-
$metadata: deserializeMetadata(output),
|
|
6305
|
-
};
|
|
6306
|
-
break;
|
|
4899
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
6307
4900
|
case "LimitExceededException":
|
|
6308
4901
|
case "com.amazonaws.backup#LimitExceededException":
|
|
6309
|
-
|
|
6310
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
6311
|
-
name: errorCode,
|
|
6312
|
-
$metadata: deserializeMetadata(output),
|
|
6313
|
-
};
|
|
6314
|
-
break;
|
|
4902
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
6315
4903
|
case "MissingParameterValueException":
|
|
6316
4904
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
6317
|
-
|
|
6318
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
6319
|
-
name: errorCode,
|
|
6320
|
-
$metadata: deserializeMetadata(output),
|
|
6321
|
-
};
|
|
6322
|
-
break;
|
|
4905
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
6323
4906
|
case "ResourceNotFoundException":
|
|
6324
4907
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
6325
|
-
|
|
6326
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6327
|
-
name: errorCode,
|
|
6328
|
-
$metadata: deserializeMetadata(output),
|
|
6329
|
-
};
|
|
6330
|
-
break;
|
|
4908
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6331
4909
|
case "ServiceUnavailableException":
|
|
6332
4910
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6333
|
-
|
|
6334
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
6335
|
-
name: errorCode,
|
|
6336
|
-
$metadata: deserializeMetadata(output),
|
|
6337
|
-
};
|
|
6338
|
-
break;
|
|
4911
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6339
4912
|
default:
|
|
6340
4913
|
const parsedBody = parsedOutput.body;
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
...parsedBody,
|
|
6344
|
-
name: `${errorCode}`,
|
|
6345
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4914
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4915
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6346
4916
|
$fault: "client",
|
|
6347
4917
|
$metadata: deserializeMetadata(output),
|
|
6348
|
-
};
|
|
4918
|
+
});
|
|
4919
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6349
4920
|
}
|
|
6350
|
-
const message = response.message || response.Message || errorCode;
|
|
6351
|
-
response.message = message;
|
|
6352
|
-
delete response.Message;
|
|
6353
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6354
4921
|
};
|
|
6355
4922
|
const deserializeAws_restJson1StartReportJobCommand = async (output, context) => {
|
|
6356
4923
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6378,51 +4945,25 @@ const deserializeAws_restJson1StartReportJobCommandError = async (output, contex
|
|
|
6378
4945
|
switch (errorCode) {
|
|
6379
4946
|
case "InvalidParameterValueException":
|
|
6380
4947
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
6381
|
-
|
|
6382
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
6383
|
-
name: errorCode,
|
|
6384
|
-
$metadata: deserializeMetadata(output),
|
|
6385
|
-
};
|
|
6386
|
-
break;
|
|
4948
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
6387
4949
|
case "MissingParameterValueException":
|
|
6388
4950
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
6389
|
-
|
|
6390
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
6391
|
-
name: errorCode,
|
|
6392
|
-
$metadata: deserializeMetadata(output),
|
|
6393
|
-
};
|
|
6394
|
-
break;
|
|
4951
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
6395
4952
|
case "ResourceNotFoundException":
|
|
6396
4953
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
6397
|
-
|
|
6398
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6399
|
-
name: errorCode,
|
|
6400
|
-
$metadata: deserializeMetadata(output),
|
|
6401
|
-
};
|
|
6402
|
-
break;
|
|
4954
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6403
4955
|
case "ServiceUnavailableException":
|
|
6404
4956
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6405
|
-
|
|
6406
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
6407
|
-
name: errorCode,
|
|
6408
|
-
$metadata: deserializeMetadata(output),
|
|
6409
|
-
};
|
|
6410
|
-
break;
|
|
4957
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6411
4958
|
default:
|
|
6412
4959
|
const parsedBody = parsedOutput.body;
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
...parsedBody,
|
|
6416
|
-
name: `${errorCode}`,
|
|
6417
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
4960
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
4961
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6418
4962
|
$fault: "client",
|
|
6419
4963
|
$metadata: deserializeMetadata(output),
|
|
6420
|
-
};
|
|
4964
|
+
});
|
|
4965
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6421
4966
|
}
|
|
6422
|
-
const message = response.message || response.Message || errorCode;
|
|
6423
|
-
response.message = message;
|
|
6424
|
-
delete response.Message;
|
|
6425
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6426
4967
|
};
|
|
6427
4968
|
const deserializeAws_restJson1StartRestoreJobCommand = async (output, context) => {
|
|
6428
4969
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6450,51 +4991,25 @@ const deserializeAws_restJson1StartRestoreJobCommandError = async (output, conte
|
|
|
6450
4991
|
switch (errorCode) {
|
|
6451
4992
|
case "InvalidParameterValueException":
|
|
6452
4993
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
6453
|
-
|
|
6454
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
6455
|
-
name: errorCode,
|
|
6456
|
-
$metadata: deserializeMetadata(output),
|
|
6457
|
-
};
|
|
6458
|
-
break;
|
|
4994
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
6459
4995
|
case "MissingParameterValueException":
|
|
6460
4996
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
6461
|
-
|
|
6462
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
6463
|
-
name: errorCode,
|
|
6464
|
-
$metadata: deserializeMetadata(output),
|
|
6465
|
-
};
|
|
6466
|
-
break;
|
|
4997
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
6467
4998
|
case "ResourceNotFoundException":
|
|
6468
4999
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
6469
|
-
|
|
6470
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6471
|
-
name: errorCode,
|
|
6472
|
-
$metadata: deserializeMetadata(output),
|
|
6473
|
-
};
|
|
6474
|
-
break;
|
|
5000
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6475
5001
|
case "ServiceUnavailableException":
|
|
6476
5002
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6477
|
-
|
|
6478
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
6479
|
-
name: errorCode,
|
|
6480
|
-
$metadata: deserializeMetadata(output),
|
|
6481
|
-
};
|
|
6482
|
-
break;
|
|
5003
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6483
5004
|
default:
|
|
6484
5005
|
const parsedBody = parsedOutput.body;
|
|
6485
|
-
|
|
6486
|
-
|
|
6487
|
-
...parsedBody,
|
|
6488
|
-
name: `${errorCode}`,
|
|
6489
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5006
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
5007
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6490
5008
|
$fault: "client",
|
|
6491
5009
|
$metadata: deserializeMetadata(output),
|
|
6492
|
-
};
|
|
5010
|
+
});
|
|
5011
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6493
5012
|
}
|
|
6494
|
-
const message = response.message || response.Message || errorCode;
|
|
6495
|
-
response.message = message;
|
|
6496
|
-
delete response.Message;
|
|
6497
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6498
5013
|
};
|
|
6499
5014
|
const deserializeAws_restJson1StopBackupJobCommand = async (output, context) => {
|
|
6500
5015
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6518,59 +5033,28 @@ const deserializeAws_restJson1StopBackupJobCommandError = async (output, context
|
|
|
6518
5033
|
switch (errorCode) {
|
|
6519
5034
|
case "InvalidParameterValueException":
|
|
6520
5035
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
6521
|
-
|
|
6522
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
6523
|
-
name: errorCode,
|
|
6524
|
-
$metadata: deserializeMetadata(output),
|
|
6525
|
-
};
|
|
6526
|
-
break;
|
|
5036
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
6527
5037
|
case "InvalidRequestException":
|
|
6528
5038
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
6529
|
-
|
|
6530
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
6531
|
-
name: errorCode,
|
|
6532
|
-
$metadata: deserializeMetadata(output),
|
|
6533
|
-
};
|
|
6534
|
-
break;
|
|
5039
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
6535
5040
|
case "MissingParameterValueException":
|
|
6536
5041
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
6537
|
-
|
|
6538
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
6539
|
-
name: errorCode,
|
|
6540
|
-
$metadata: deserializeMetadata(output),
|
|
6541
|
-
};
|
|
6542
|
-
break;
|
|
5042
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
6543
5043
|
case "ResourceNotFoundException":
|
|
6544
5044
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
6545
|
-
|
|
6546
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6547
|
-
name: errorCode,
|
|
6548
|
-
$metadata: deserializeMetadata(output),
|
|
6549
|
-
};
|
|
6550
|
-
break;
|
|
5045
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6551
5046
|
case "ServiceUnavailableException":
|
|
6552
5047
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6553
|
-
|
|
6554
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
6555
|
-
name: errorCode,
|
|
6556
|
-
$metadata: deserializeMetadata(output),
|
|
6557
|
-
};
|
|
6558
|
-
break;
|
|
5048
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6559
5049
|
default:
|
|
6560
5050
|
const parsedBody = parsedOutput.body;
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
...parsedBody,
|
|
6564
|
-
name: `${errorCode}`,
|
|
6565
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5051
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
5052
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6566
5053
|
$fault: "client",
|
|
6567
5054
|
$metadata: deserializeMetadata(output),
|
|
6568
|
-
};
|
|
5055
|
+
});
|
|
5056
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6569
5057
|
}
|
|
6570
|
-
const message = response.message || response.Message || errorCode;
|
|
6571
|
-
response.message = message;
|
|
6572
|
-
delete response.Message;
|
|
6573
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6574
5058
|
};
|
|
6575
5059
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
6576
5060
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6594,59 +5078,28 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
6594
5078
|
switch (errorCode) {
|
|
6595
5079
|
case "InvalidParameterValueException":
|
|
6596
5080
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
6597
|
-
|
|
6598
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
6599
|
-
name: errorCode,
|
|
6600
|
-
$metadata: deserializeMetadata(output),
|
|
6601
|
-
};
|
|
6602
|
-
break;
|
|
5081
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
6603
5082
|
case "LimitExceededException":
|
|
6604
5083
|
case "com.amazonaws.backup#LimitExceededException":
|
|
6605
|
-
|
|
6606
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
6607
|
-
name: errorCode,
|
|
6608
|
-
$metadata: deserializeMetadata(output),
|
|
6609
|
-
};
|
|
6610
|
-
break;
|
|
5084
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
6611
5085
|
case "MissingParameterValueException":
|
|
6612
5086
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
6613
|
-
|
|
6614
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
6615
|
-
name: errorCode,
|
|
6616
|
-
$metadata: deserializeMetadata(output),
|
|
6617
|
-
};
|
|
6618
|
-
break;
|
|
5087
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
6619
5088
|
case "ResourceNotFoundException":
|
|
6620
5089
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
6621
|
-
|
|
6622
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6623
|
-
name: errorCode,
|
|
6624
|
-
$metadata: deserializeMetadata(output),
|
|
6625
|
-
};
|
|
6626
|
-
break;
|
|
5090
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6627
5091
|
case "ServiceUnavailableException":
|
|
6628
5092
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6629
|
-
|
|
6630
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
6631
|
-
name: errorCode,
|
|
6632
|
-
$metadata: deserializeMetadata(output),
|
|
6633
|
-
};
|
|
6634
|
-
break;
|
|
5093
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6635
5094
|
default:
|
|
6636
5095
|
const parsedBody = parsedOutput.body;
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
...parsedBody,
|
|
6640
|
-
name: `${errorCode}`,
|
|
6641
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5096
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
5097
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6642
5098
|
$fault: "client",
|
|
6643
5099
|
$metadata: deserializeMetadata(output),
|
|
6644
|
-
};
|
|
5100
|
+
});
|
|
5101
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6645
5102
|
}
|
|
6646
|
-
const message = response.message || response.Message || errorCode;
|
|
6647
|
-
response.message = message;
|
|
6648
|
-
delete response.Message;
|
|
6649
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6650
5103
|
};
|
|
6651
5104
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
6652
5105
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6670,51 +5123,25 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
6670
5123
|
switch (errorCode) {
|
|
6671
5124
|
case "InvalidParameterValueException":
|
|
6672
5125
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
6673
|
-
|
|
6674
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
6675
|
-
name: errorCode,
|
|
6676
|
-
$metadata: deserializeMetadata(output),
|
|
6677
|
-
};
|
|
6678
|
-
break;
|
|
5126
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
6679
5127
|
case "MissingParameterValueException":
|
|
6680
5128
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
6681
|
-
|
|
6682
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
6683
|
-
name: errorCode,
|
|
6684
|
-
$metadata: deserializeMetadata(output),
|
|
6685
|
-
};
|
|
6686
|
-
break;
|
|
5129
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
6687
5130
|
case "ResourceNotFoundException":
|
|
6688
5131
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
6689
|
-
|
|
6690
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6691
|
-
name: errorCode,
|
|
6692
|
-
$metadata: deserializeMetadata(output),
|
|
6693
|
-
};
|
|
6694
|
-
break;
|
|
5132
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6695
5133
|
case "ServiceUnavailableException":
|
|
6696
5134
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6697
|
-
|
|
6698
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
6699
|
-
name: errorCode,
|
|
6700
|
-
$metadata: deserializeMetadata(output),
|
|
6701
|
-
};
|
|
6702
|
-
break;
|
|
5135
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6703
5136
|
default:
|
|
6704
5137
|
const parsedBody = parsedOutput.body;
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
...parsedBody,
|
|
6708
|
-
name: `${errorCode}`,
|
|
6709
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5138
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
5139
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6710
5140
|
$fault: "client",
|
|
6711
5141
|
$metadata: deserializeMetadata(output),
|
|
6712
|
-
};
|
|
5142
|
+
});
|
|
5143
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6713
5144
|
}
|
|
6714
|
-
const message = response.message || response.Message || errorCode;
|
|
6715
|
-
response.message = message;
|
|
6716
|
-
delete response.Message;
|
|
6717
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6718
5145
|
};
|
|
6719
5146
|
const deserializeAws_restJson1UpdateBackupPlanCommand = async (output, context) => {
|
|
6720
5147
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6758,51 +5185,25 @@ const deserializeAws_restJson1UpdateBackupPlanCommandError = async (output, cont
|
|
|
6758
5185
|
switch (errorCode) {
|
|
6759
5186
|
case "InvalidParameterValueException":
|
|
6760
5187
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
6761
|
-
|
|
6762
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
6763
|
-
name: errorCode,
|
|
6764
|
-
$metadata: deserializeMetadata(output),
|
|
6765
|
-
};
|
|
6766
|
-
break;
|
|
5188
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
6767
5189
|
case "MissingParameterValueException":
|
|
6768
5190
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
6769
|
-
|
|
6770
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
6771
|
-
name: errorCode,
|
|
6772
|
-
$metadata: deserializeMetadata(output),
|
|
6773
|
-
};
|
|
6774
|
-
break;
|
|
5191
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
6775
5192
|
case "ResourceNotFoundException":
|
|
6776
5193
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
6777
|
-
|
|
6778
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6779
|
-
name: errorCode,
|
|
6780
|
-
$metadata: deserializeMetadata(output),
|
|
6781
|
-
};
|
|
6782
|
-
break;
|
|
5194
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6783
5195
|
case "ServiceUnavailableException":
|
|
6784
5196
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6785
|
-
|
|
6786
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
6787
|
-
name: errorCode,
|
|
6788
|
-
$metadata: deserializeMetadata(output),
|
|
6789
|
-
};
|
|
6790
|
-
break;
|
|
5197
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6791
5198
|
default:
|
|
6792
5199
|
const parsedBody = parsedOutput.body;
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
...parsedBody,
|
|
6796
|
-
name: `${errorCode}`,
|
|
6797
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5200
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
5201
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6798
5202
|
$fault: "client",
|
|
6799
5203
|
$metadata: deserializeMetadata(output),
|
|
6800
|
-
};
|
|
5204
|
+
});
|
|
5205
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6801
5206
|
}
|
|
6802
|
-
const message = response.message || response.Message || errorCode;
|
|
6803
|
-
response.message = message;
|
|
6804
|
-
delete response.Message;
|
|
6805
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6806
5207
|
};
|
|
6807
5208
|
const deserializeAws_restJson1UpdateFrameworkCommand = async (output, context) => {
|
|
6808
5209
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6838,75 +5239,34 @@ const deserializeAws_restJson1UpdateFrameworkCommandError = async (output, conte
|
|
|
6838
5239
|
switch (errorCode) {
|
|
6839
5240
|
case "AlreadyExistsException":
|
|
6840
5241
|
case "com.amazonaws.backup#AlreadyExistsException":
|
|
6841
|
-
|
|
6842
|
-
...(await deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context)),
|
|
6843
|
-
name: errorCode,
|
|
6844
|
-
$metadata: deserializeMetadata(output),
|
|
6845
|
-
};
|
|
6846
|
-
break;
|
|
5242
|
+
throw await deserializeAws_restJson1AlreadyExistsExceptionResponse(parsedOutput, context);
|
|
6847
5243
|
case "ConflictException":
|
|
6848
5244
|
case "com.amazonaws.backup#ConflictException":
|
|
6849
|
-
|
|
6850
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
6851
|
-
name: errorCode,
|
|
6852
|
-
$metadata: deserializeMetadata(output),
|
|
6853
|
-
};
|
|
6854
|
-
break;
|
|
5245
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
6855
5246
|
case "InvalidParameterValueException":
|
|
6856
5247
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
6857
|
-
|
|
6858
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
6859
|
-
name: errorCode,
|
|
6860
|
-
$metadata: deserializeMetadata(output),
|
|
6861
|
-
};
|
|
6862
|
-
break;
|
|
5248
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
6863
5249
|
case "LimitExceededException":
|
|
6864
5250
|
case "com.amazonaws.backup#LimitExceededException":
|
|
6865
|
-
|
|
6866
|
-
...(await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context)),
|
|
6867
|
-
name: errorCode,
|
|
6868
|
-
$metadata: deserializeMetadata(output),
|
|
6869
|
-
};
|
|
6870
|
-
break;
|
|
5251
|
+
throw await deserializeAws_restJson1LimitExceededExceptionResponse(parsedOutput, context);
|
|
6871
5252
|
case "MissingParameterValueException":
|
|
6872
5253
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
6873
|
-
|
|
6874
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
6875
|
-
name: errorCode,
|
|
6876
|
-
$metadata: deserializeMetadata(output),
|
|
6877
|
-
};
|
|
6878
|
-
break;
|
|
5254
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
6879
5255
|
case "ResourceNotFoundException":
|
|
6880
5256
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
6881
|
-
|
|
6882
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
6883
|
-
name: errorCode,
|
|
6884
|
-
$metadata: deserializeMetadata(output),
|
|
6885
|
-
};
|
|
6886
|
-
break;
|
|
5257
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
6887
5258
|
case "ServiceUnavailableException":
|
|
6888
5259
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6889
|
-
|
|
6890
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
6891
|
-
name: errorCode,
|
|
6892
|
-
$metadata: deserializeMetadata(output),
|
|
6893
|
-
};
|
|
6894
|
-
break;
|
|
5260
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6895
5261
|
default:
|
|
6896
5262
|
const parsedBody = parsedOutput.body;
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
...parsedBody,
|
|
6900
|
-
name: `${errorCode}`,
|
|
6901
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5263
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
5264
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6902
5265
|
$fault: "client",
|
|
6903
5266
|
$metadata: deserializeMetadata(output),
|
|
6904
|
-
};
|
|
5267
|
+
});
|
|
5268
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6905
5269
|
}
|
|
6906
|
-
const message = response.message || response.Message || errorCode;
|
|
6907
|
-
response.message = message;
|
|
6908
|
-
delete response.Message;
|
|
6909
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6910
5270
|
};
|
|
6911
5271
|
const deserializeAws_restJson1UpdateGlobalSettingsCommand = async (output, context) => {
|
|
6912
5272
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -6930,51 +5290,25 @@ const deserializeAws_restJson1UpdateGlobalSettingsCommandError = async (output,
|
|
|
6930
5290
|
switch (errorCode) {
|
|
6931
5291
|
case "InvalidParameterValueException":
|
|
6932
5292
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
6933
|
-
|
|
6934
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
6935
|
-
name: errorCode,
|
|
6936
|
-
$metadata: deserializeMetadata(output),
|
|
6937
|
-
};
|
|
6938
|
-
break;
|
|
5293
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
6939
5294
|
case "InvalidRequestException":
|
|
6940
5295
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
6941
|
-
|
|
6942
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
6943
|
-
name: errorCode,
|
|
6944
|
-
$metadata: deserializeMetadata(output),
|
|
6945
|
-
};
|
|
6946
|
-
break;
|
|
5296
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
6947
5297
|
case "MissingParameterValueException":
|
|
6948
5298
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
6949
|
-
|
|
6950
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
6951
|
-
name: errorCode,
|
|
6952
|
-
$metadata: deserializeMetadata(output),
|
|
6953
|
-
};
|
|
6954
|
-
break;
|
|
5299
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
6955
5300
|
case "ServiceUnavailableException":
|
|
6956
5301
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
6957
|
-
|
|
6958
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
6959
|
-
name: errorCode,
|
|
6960
|
-
$metadata: deserializeMetadata(output),
|
|
6961
|
-
};
|
|
6962
|
-
break;
|
|
5302
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
6963
5303
|
default:
|
|
6964
5304
|
const parsedBody = parsedOutput.body;
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
...parsedBody,
|
|
6968
|
-
name: `${errorCode}`,
|
|
6969
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5305
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
5306
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
6970
5307
|
$fault: "client",
|
|
6971
5308
|
$metadata: deserializeMetadata(output),
|
|
6972
|
-
};
|
|
5309
|
+
});
|
|
5310
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
6973
5311
|
}
|
|
6974
|
-
const message = response.message || response.Message || errorCode;
|
|
6975
|
-
response.message = message;
|
|
6976
|
-
delete response.Message;
|
|
6977
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
6978
5312
|
};
|
|
6979
5313
|
const deserializeAws_restJson1UpdateRecoveryPointLifecycleCommand = async (output, context) => {
|
|
6980
5314
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -7014,59 +5348,28 @@ const deserializeAws_restJson1UpdateRecoveryPointLifecycleCommandError = async (
|
|
|
7014
5348
|
switch (errorCode) {
|
|
7015
5349
|
case "InvalidParameterValueException":
|
|
7016
5350
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
7017
|
-
|
|
7018
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
7019
|
-
name: errorCode,
|
|
7020
|
-
$metadata: deserializeMetadata(output),
|
|
7021
|
-
};
|
|
7022
|
-
break;
|
|
5351
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
7023
5352
|
case "InvalidRequestException":
|
|
7024
5353
|
case "com.amazonaws.backup#InvalidRequestException":
|
|
7025
|
-
|
|
7026
|
-
...(await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context)),
|
|
7027
|
-
name: errorCode,
|
|
7028
|
-
$metadata: deserializeMetadata(output),
|
|
7029
|
-
};
|
|
7030
|
-
break;
|
|
5354
|
+
throw await deserializeAws_restJson1InvalidRequestExceptionResponse(parsedOutput, context);
|
|
7031
5355
|
case "MissingParameterValueException":
|
|
7032
5356
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
7033
|
-
|
|
7034
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
7035
|
-
name: errorCode,
|
|
7036
|
-
$metadata: deserializeMetadata(output),
|
|
7037
|
-
};
|
|
7038
|
-
break;
|
|
5357
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
7039
5358
|
case "ResourceNotFoundException":
|
|
7040
5359
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
7041
|
-
|
|
7042
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
7043
|
-
name: errorCode,
|
|
7044
|
-
$metadata: deserializeMetadata(output),
|
|
7045
|
-
};
|
|
7046
|
-
break;
|
|
5360
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
7047
5361
|
case "ServiceUnavailableException":
|
|
7048
5362
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
7049
|
-
|
|
7050
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
7051
|
-
name: errorCode,
|
|
7052
|
-
$metadata: deserializeMetadata(output),
|
|
7053
|
-
};
|
|
7054
|
-
break;
|
|
5363
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
7055
5364
|
default:
|
|
7056
5365
|
const parsedBody = parsedOutput.body;
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
...parsedBody,
|
|
7060
|
-
name: `${errorCode}`,
|
|
7061
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5366
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
5367
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7062
5368
|
$fault: "client",
|
|
7063
5369
|
$metadata: deserializeMetadata(output),
|
|
7064
|
-
};
|
|
5370
|
+
});
|
|
5371
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7065
5372
|
}
|
|
7066
|
-
const message = response.message || response.Message || errorCode;
|
|
7067
|
-
response.message = message;
|
|
7068
|
-
delete response.Message;
|
|
7069
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7070
5373
|
};
|
|
7071
5374
|
const deserializeAws_restJson1UpdateRegionSettingsCommand = async (output, context) => {
|
|
7072
5375
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -7090,43 +5393,22 @@ const deserializeAws_restJson1UpdateRegionSettingsCommandError = async (output,
|
|
|
7090
5393
|
switch (errorCode) {
|
|
7091
5394
|
case "InvalidParameterValueException":
|
|
7092
5395
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
7093
|
-
|
|
7094
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
7095
|
-
name: errorCode,
|
|
7096
|
-
$metadata: deserializeMetadata(output),
|
|
7097
|
-
};
|
|
7098
|
-
break;
|
|
5396
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
7099
5397
|
case "MissingParameterValueException":
|
|
7100
5398
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
7101
|
-
|
|
7102
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
7103
|
-
name: errorCode,
|
|
7104
|
-
$metadata: deserializeMetadata(output),
|
|
7105
|
-
};
|
|
7106
|
-
break;
|
|
5399
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
7107
5400
|
case "ServiceUnavailableException":
|
|
7108
5401
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
7109
|
-
|
|
7110
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
7111
|
-
name: errorCode,
|
|
7112
|
-
$metadata: deserializeMetadata(output),
|
|
7113
|
-
};
|
|
7114
|
-
break;
|
|
5402
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
7115
5403
|
default:
|
|
7116
5404
|
const parsedBody = parsedOutput.body;
|
|
7117
|
-
|
|
7118
|
-
|
|
7119
|
-
...parsedBody,
|
|
7120
|
-
name: `${errorCode}`,
|
|
7121
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5405
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
5406
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7122
5407
|
$fault: "client",
|
|
7123
5408
|
$metadata: deserializeMetadata(output),
|
|
7124
|
-
};
|
|
5409
|
+
});
|
|
5410
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7125
5411
|
}
|
|
7126
|
-
const message = response.message || response.Message || errorCode;
|
|
7127
|
-
response.message = message;
|
|
7128
|
-
delete response.Message;
|
|
7129
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7130
5412
|
};
|
|
7131
5413
|
const deserializeAws_restJson1UpdateReportPlanCommand = async (output, context) => {
|
|
7132
5414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -7162,72 +5444,31 @@ const deserializeAws_restJson1UpdateReportPlanCommandError = async (output, cont
|
|
|
7162
5444
|
switch (errorCode) {
|
|
7163
5445
|
case "ConflictException":
|
|
7164
5446
|
case "com.amazonaws.backup#ConflictException":
|
|
7165
|
-
|
|
7166
|
-
...(await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context)),
|
|
7167
|
-
name: errorCode,
|
|
7168
|
-
$metadata: deserializeMetadata(output),
|
|
7169
|
-
};
|
|
7170
|
-
break;
|
|
5447
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
7171
5448
|
case "InvalidParameterValueException":
|
|
7172
5449
|
case "com.amazonaws.backup#InvalidParameterValueException":
|
|
7173
|
-
|
|
7174
|
-
...(await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context)),
|
|
7175
|
-
name: errorCode,
|
|
7176
|
-
$metadata: deserializeMetadata(output),
|
|
7177
|
-
};
|
|
7178
|
-
break;
|
|
5450
|
+
throw await deserializeAws_restJson1InvalidParameterValueExceptionResponse(parsedOutput, context);
|
|
7179
5451
|
case "MissingParameterValueException":
|
|
7180
5452
|
case "com.amazonaws.backup#MissingParameterValueException":
|
|
7181
|
-
|
|
7182
|
-
...(await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context)),
|
|
7183
|
-
name: errorCode,
|
|
7184
|
-
$metadata: deserializeMetadata(output),
|
|
7185
|
-
};
|
|
7186
|
-
break;
|
|
5453
|
+
throw await deserializeAws_restJson1MissingParameterValueExceptionResponse(parsedOutput, context);
|
|
7187
5454
|
case "ResourceNotFoundException":
|
|
7188
5455
|
case "com.amazonaws.backup#ResourceNotFoundException":
|
|
7189
|
-
|
|
7190
|
-
...(await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context)),
|
|
7191
|
-
name: errorCode,
|
|
7192
|
-
$metadata: deserializeMetadata(output),
|
|
7193
|
-
};
|
|
7194
|
-
break;
|
|
5456
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
7195
5457
|
case "ServiceUnavailableException":
|
|
7196
5458
|
case "com.amazonaws.backup#ServiceUnavailableException":
|
|
7197
|
-
|
|
7198
|
-
...(await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context)),
|
|
7199
|
-
name: errorCode,
|
|
7200
|
-
$metadata: deserializeMetadata(output),
|
|
7201
|
-
};
|
|
7202
|
-
break;
|
|
5459
|
+
throw await deserializeAws_restJson1ServiceUnavailableExceptionResponse(parsedOutput, context);
|
|
7203
5460
|
default:
|
|
7204
5461
|
const parsedBody = parsedOutput.body;
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
...parsedBody,
|
|
7208
|
-
name: `${errorCode}`,
|
|
7209
|
-
message: parsedBody.message || parsedBody.Message || errorCode,
|
|
5462
|
+
response = new BackupServiceException_1.BackupServiceException({
|
|
5463
|
+
name: parsedBody.code || parsedBody.Code || errorCode,
|
|
7210
5464
|
$fault: "client",
|
|
7211
5465
|
$metadata: deserializeMetadata(output),
|
|
7212
|
-
};
|
|
5466
|
+
});
|
|
5467
|
+
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
7213
5468
|
}
|
|
7214
|
-
const message = response.message || response.Message || errorCode;
|
|
7215
|
-
response.message = message;
|
|
7216
|
-
delete response.Message;
|
|
7217
|
-
return Promise.reject(Object.assign(new Error(message), response));
|
|
7218
5469
|
};
|
|
7219
5470
|
const deserializeAws_restJson1AlreadyExistsExceptionResponse = async (parsedOutput, context) => {
|
|
7220
|
-
const contents = {
|
|
7221
|
-
name: "AlreadyExistsException",
|
|
7222
|
-
$fault: "client",
|
|
7223
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7224
|
-
Arn: undefined,
|
|
7225
|
-
Code: undefined,
|
|
7226
|
-
Context: undefined,
|
|
7227
|
-
CreatorRequestId: undefined,
|
|
7228
|
-
Message: undefined,
|
|
7229
|
-
Type: undefined,
|
|
7230
|
-
};
|
|
5471
|
+
const contents = {};
|
|
7231
5472
|
const data = parsedOutput.body;
|
|
7232
5473
|
if (data.Arn !== undefined && data.Arn !== null) {
|
|
7233
5474
|
contents.Arn = smithy_client_1.expectString(data.Arn);
|
|
@@ -7247,18 +5488,14 @@ const deserializeAws_restJson1AlreadyExistsExceptionResponse = async (parsedOutp
|
|
|
7247
5488
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7248
5489
|
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7249
5490
|
}
|
|
7250
|
-
|
|
5491
|
+
const exception = new models_0_1.AlreadyExistsException({
|
|
5492
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5493
|
+
...contents,
|
|
5494
|
+
});
|
|
5495
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
7251
5496
|
};
|
|
7252
5497
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
7253
|
-
const contents = {
|
|
7254
|
-
name: "ConflictException",
|
|
7255
|
-
$fault: "client",
|
|
7256
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7257
|
-
Code: undefined,
|
|
7258
|
-
Context: undefined,
|
|
7259
|
-
Message: undefined,
|
|
7260
|
-
Type: undefined,
|
|
7261
|
-
};
|
|
5498
|
+
const contents = {};
|
|
7262
5499
|
const data = parsedOutput.body;
|
|
7263
5500
|
if (data.Code !== undefined && data.Code !== null) {
|
|
7264
5501
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -7272,18 +5509,14 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
7272
5509
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7273
5510
|
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7274
5511
|
}
|
|
7275
|
-
|
|
5512
|
+
const exception = new models_0_1.ConflictException({
|
|
5513
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5514
|
+
...contents,
|
|
5515
|
+
});
|
|
5516
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
7276
5517
|
};
|
|
7277
5518
|
const deserializeAws_restJson1DependencyFailureExceptionResponse = async (parsedOutput, context) => {
|
|
7278
|
-
const contents = {
|
|
7279
|
-
name: "DependencyFailureException",
|
|
7280
|
-
$fault: "server",
|
|
7281
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7282
|
-
Code: undefined,
|
|
7283
|
-
Context: undefined,
|
|
7284
|
-
Message: undefined,
|
|
7285
|
-
Type: undefined,
|
|
7286
|
-
};
|
|
5519
|
+
const contents = {};
|
|
7287
5520
|
const data = parsedOutput.body;
|
|
7288
5521
|
if (data.Code !== undefined && data.Code !== null) {
|
|
7289
5522
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -7297,18 +5530,14 @@ const deserializeAws_restJson1DependencyFailureExceptionResponse = async (parsed
|
|
|
7297
5530
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7298
5531
|
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7299
5532
|
}
|
|
7300
|
-
|
|
5533
|
+
const exception = new models_0_1.DependencyFailureException({
|
|
5534
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5535
|
+
...contents,
|
|
5536
|
+
});
|
|
5537
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
7301
5538
|
};
|
|
7302
5539
|
const deserializeAws_restJson1InvalidParameterValueExceptionResponse = async (parsedOutput, context) => {
|
|
7303
|
-
const contents = {
|
|
7304
|
-
name: "InvalidParameterValueException",
|
|
7305
|
-
$fault: "client",
|
|
7306
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7307
|
-
Code: undefined,
|
|
7308
|
-
Context: undefined,
|
|
7309
|
-
Message: undefined,
|
|
7310
|
-
Type: undefined,
|
|
7311
|
-
};
|
|
5540
|
+
const contents = {};
|
|
7312
5541
|
const data = parsedOutput.body;
|
|
7313
5542
|
if (data.Code !== undefined && data.Code !== null) {
|
|
7314
5543
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -7322,18 +5551,14 @@ const deserializeAws_restJson1InvalidParameterValueExceptionResponse = async (pa
|
|
|
7322
5551
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7323
5552
|
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7324
5553
|
}
|
|
7325
|
-
|
|
5554
|
+
const exception = new models_0_1.InvalidParameterValueException({
|
|
5555
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5556
|
+
...contents,
|
|
5557
|
+
});
|
|
5558
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
7326
5559
|
};
|
|
7327
5560
|
const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOutput, context) => {
|
|
7328
|
-
const contents = {
|
|
7329
|
-
name: "InvalidRequestException",
|
|
7330
|
-
$fault: "client",
|
|
7331
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7332
|
-
Code: undefined,
|
|
7333
|
-
Context: undefined,
|
|
7334
|
-
Message: undefined,
|
|
7335
|
-
Type: undefined,
|
|
7336
|
-
};
|
|
5561
|
+
const contents = {};
|
|
7337
5562
|
const data = parsedOutput.body;
|
|
7338
5563
|
if (data.Code !== undefined && data.Code !== null) {
|
|
7339
5564
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -7347,18 +5572,14 @@ const deserializeAws_restJson1InvalidRequestExceptionResponse = async (parsedOut
|
|
|
7347
5572
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7348
5573
|
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7349
5574
|
}
|
|
7350
|
-
|
|
5575
|
+
const exception = new models_0_1.InvalidRequestException({
|
|
5576
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5577
|
+
...contents,
|
|
5578
|
+
});
|
|
5579
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
7351
5580
|
};
|
|
7352
5581
|
const deserializeAws_restJson1InvalidResourceStateExceptionResponse = async (parsedOutput, context) => {
|
|
7353
|
-
const contents = {
|
|
7354
|
-
name: "InvalidResourceStateException",
|
|
7355
|
-
$fault: "client",
|
|
7356
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7357
|
-
Code: undefined,
|
|
7358
|
-
Context: undefined,
|
|
7359
|
-
Message: undefined,
|
|
7360
|
-
Type: undefined,
|
|
7361
|
-
};
|
|
5582
|
+
const contents = {};
|
|
7362
5583
|
const data = parsedOutput.body;
|
|
7363
5584
|
if (data.Code !== undefined && data.Code !== null) {
|
|
7364
5585
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -7372,18 +5593,14 @@ const deserializeAws_restJson1InvalidResourceStateExceptionResponse = async (par
|
|
|
7372
5593
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7373
5594
|
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7374
5595
|
}
|
|
7375
|
-
|
|
5596
|
+
const exception = new models_0_1.InvalidResourceStateException({
|
|
5597
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5598
|
+
...contents,
|
|
5599
|
+
});
|
|
5600
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
7376
5601
|
};
|
|
7377
5602
|
const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutput, context) => {
|
|
7378
|
-
const contents = {
|
|
7379
|
-
name: "LimitExceededException",
|
|
7380
|
-
$fault: "client",
|
|
7381
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7382
|
-
Code: undefined,
|
|
7383
|
-
Context: undefined,
|
|
7384
|
-
Message: undefined,
|
|
7385
|
-
Type: undefined,
|
|
7386
|
-
};
|
|
5603
|
+
const contents = {};
|
|
7387
5604
|
const data = parsedOutput.body;
|
|
7388
5605
|
if (data.Code !== undefined && data.Code !== null) {
|
|
7389
5606
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -7397,18 +5614,14 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
7397
5614
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7398
5615
|
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7399
5616
|
}
|
|
7400
|
-
|
|
5617
|
+
const exception = new models_0_1.LimitExceededException({
|
|
5618
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5619
|
+
...contents,
|
|
5620
|
+
});
|
|
5621
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
7401
5622
|
};
|
|
7402
5623
|
const deserializeAws_restJson1MissingParameterValueExceptionResponse = async (parsedOutput, context) => {
|
|
7403
|
-
const contents = {
|
|
7404
|
-
name: "MissingParameterValueException",
|
|
7405
|
-
$fault: "client",
|
|
7406
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7407
|
-
Code: undefined,
|
|
7408
|
-
Context: undefined,
|
|
7409
|
-
Message: undefined,
|
|
7410
|
-
Type: undefined,
|
|
7411
|
-
};
|
|
5624
|
+
const contents = {};
|
|
7412
5625
|
const data = parsedOutput.body;
|
|
7413
5626
|
if (data.Code !== undefined && data.Code !== null) {
|
|
7414
5627
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -7422,18 +5635,14 @@ const deserializeAws_restJson1MissingParameterValueExceptionResponse = async (pa
|
|
|
7422
5635
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7423
5636
|
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7424
5637
|
}
|
|
7425
|
-
|
|
5638
|
+
const exception = new models_0_1.MissingParameterValueException({
|
|
5639
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5640
|
+
...contents,
|
|
5641
|
+
});
|
|
5642
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
7426
5643
|
};
|
|
7427
5644
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
7428
|
-
const contents = {
|
|
7429
|
-
name: "ResourceNotFoundException",
|
|
7430
|
-
$fault: "client",
|
|
7431
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7432
|
-
Code: undefined,
|
|
7433
|
-
Context: undefined,
|
|
7434
|
-
Message: undefined,
|
|
7435
|
-
Type: undefined,
|
|
7436
|
-
};
|
|
5645
|
+
const contents = {};
|
|
7437
5646
|
const data = parsedOutput.body;
|
|
7438
5647
|
if (data.Code !== undefined && data.Code !== null) {
|
|
7439
5648
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -7447,18 +5656,14 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
7447
5656
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7448
5657
|
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7449
5658
|
}
|
|
7450
|
-
|
|
5659
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
5660
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5661
|
+
...contents,
|
|
5662
|
+
});
|
|
5663
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
7451
5664
|
};
|
|
7452
5665
|
const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parsedOutput, context) => {
|
|
7453
|
-
const contents = {
|
|
7454
|
-
name: "ServiceUnavailableException",
|
|
7455
|
-
$fault: "server",
|
|
7456
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
7457
|
-
Code: undefined,
|
|
7458
|
-
Context: undefined,
|
|
7459
|
-
Message: undefined,
|
|
7460
|
-
Type: undefined,
|
|
7461
|
-
};
|
|
5666
|
+
const contents = {};
|
|
7462
5667
|
const data = parsedOutput.body;
|
|
7463
5668
|
if (data.Code !== undefined && data.Code !== null) {
|
|
7464
5669
|
contents.Code = smithy_client_1.expectString(data.Code);
|
|
@@ -7472,7 +5677,11 @@ const deserializeAws_restJson1ServiceUnavailableExceptionResponse = async (parse
|
|
|
7472
5677
|
if (data.Type !== undefined && data.Type !== null) {
|
|
7473
5678
|
contents.Type = smithy_client_1.expectString(data.Type);
|
|
7474
5679
|
}
|
|
7475
|
-
|
|
5680
|
+
const exception = new models_0_1.ServiceUnavailableException({
|
|
5681
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
5682
|
+
...contents,
|
|
5683
|
+
});
|
|
5684
|
+
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
7476
5685
|
};
|
|
7477
5686
|
const serializeAws_restJson1AdvancedBackupSetting = (input, context) => {
|
|
7478
5687
|
return {
|
|
@@ -7861,7 +6070,7 @@ const deserializeAws_restJson1AdvancedBackupSetting = (output, context) => {
|
|
|
7861
6070
|
};
|
|
7862
6071
|
};
|
|
7863
6072
|
const deserializeAws_restJson1AdvancedBackupSettings = (output, context) => {
|
|
7864
|
-
|
|
6073
|
+
const retVal = (output || [])
|
|
7865
6074
|
.filter((e) => e != null)
|
|
7866
6075
|
.map((entry) => {
|
|
7867
6076
|
if (entry === null) {
|
|
@@ -7869,6 +6078,7 @@ const deserializeAws_restJson1AdvancedBackupSettings = (output, context) => {
|
|
|
7869
6078
|
}
|
|
7870
6079
|
return deserializeAws_restJson1AdvancedBackupSetting(entry, context);
|
|
7871
6080
|
});
|
|
6081
|
+
return retVal;
|
|
7872
6082
|
};
|
|
7873
6083
|
const deserializeAws_restJson1BackupJob = (output, context) => {
|
|
7874
6084
|
return {
|
|
@@ -7907,7 +6117,7 @@ const deserializeAws_restJson1BackupJob = (output, context) => {
|
|
|
7907
6117
|
};
|
|
7908
6118
|
};
|
|
7909
6119
|
const deserializeAws_restJson1BackupJobsList = (output, context) => {
|
|
7910
|
-
|
|
6120
|
+
const retVal = (output || [])
|
|
7911
6121
|
.filter((e) => e != null)
|
|
7912
6122
|
.map((entry) => {
|
|
7913
6123
|
if (entry === null) {
|
|
@@ -7915,6 +6125,7 @@ const deserializeAws_restJson1BackupJobsList = (output, context) => {
|
|
|
7915
6125
|
}
|
|
7916
6126
|
return deserializeAws_restJson1BackupJob(entry, context);
|
|
7917
6127
|
});
|
|
6128
|
+
return retVal;
|
|
7918
6129
|
};
|
|
7919
6130
|
const deserializeAws_restJson1BackupOptions = (output, context) => {
|
|
7920
6131
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -7939,7 +6150,7 @@ const deserializeAws_restJson1BackupPlan = (output, context) => {
|
|
|
7939
6150
|
};
|
|
7940
6151
|
};
|
|
7941
6152
|
const deserializeAws_restJson1BackupPlansList = (output, context) => {
|
|
7942
|
-
|
|
6153
|
+
const retVal = (output || [])
|
|
7943
6154
|
.filter((e) => e != null)
|
|
7944
6155
|
.map((entry) => {
|
|
7945
6156
|
if (entry === null) {
|
|
@@ -7947,6 +6158,7 @@ const deserializeAws_restJson1BackupPlansList = (output, context) => {
|
|
|
7947
6158
|
}
|
|
7948
6159
|
return deserializeAws_restJson1BackupPlansListMember(entry, context);
|
|
7949
6160
|
});
|
|
6161
|
+
return retVal;
|
|
7950
6162
|
};
|
|
7951
6163
|
const deserializeAws_restJson1BackupPlansListMember = (output, context) => {
|
|
7952
6164
|
return {
|
|
@@ -7970,7 +6182,7 @@ const deserializeAws_restJson1BackupPlansListMember = (output, context) => {
|
|
|
7970
6182
|
};
|
|
7971
6183
|
};
|
|
7972
6184
|
const deserializeAws_restJson1BackupPlanTemplatesList = (output, context) => {
|
|
7973
|
-
|
|
6185
|
+
const retVal = (output || [])
|
|
7974
6186
|
.filter((e) => e != null)
|
|
7975
6187
|
.map((entry) => {
|
|
7976
6188
|
if (entry === null) {
|
|
@@ -7978,6 +6190,7 @@ const deserializeAws_restJson1BackupPlanTemplatesList = (output, context) => {
|
|
|
7978
6190
|
}
|
|
7979
6191
|
return deserializeAws_restJson1BackupPlanTemplatesListMember(entry, context);
|
|
7980
6192
|
});
|
|
6193
|
+
return retVal;
|
|
7981
6194
|
};
|
|
7982
6195
|
const deserializeAws_restJson1BackupPlanTemplatesListMember = (output, context) => {
|
|
7983
6196
|
return {
|
|
@@ -7986,7 +6199,7 @@ const deserializeAws_restJson1BackupPlanTemplatesListMember = (output, context)
|
|
|
7986
6199
|
};
|
|
7987
6200
|
};
|
|
7988
6201
|
const deserializeAws_restJson1BackupPlanVersionsList = (output, context) => {
|
|
7989
|
-
|
|
6202
|
+
const retVal = (output || [])
|
|
7990
6203
|
.filter((e) => e != null)
|
|
7991
6204
|
.map((entry) => {
|
|
7992
6205
|
if (entry === null) {
|
|
@@ -7994,6 +6207,7 @@ const deserializeAws_restJson1BackupPlanVersionsList = (output, context) => {
|
|
|
7994
6207
|
}
|
|
7995
6208
|
return deserializeAws_restJson1BackupPlansListMember(entry, context);
|
|
7996
6209
|
});
|
|
6210
|
+
return retVal;
|
|
7997
6211
|
};
|
|
7998
6212
|
const deserializeAws_restJson1BackupRule = (output, context) => {
|
|
7999
6213
|
return {
|
|
@@ -8016,7 +6230,7 @@ const deserializeAws_restJson1BackupRule = (output, context) => {
|
|
|
8016
6230
|
};
|
|
8017
6231
|
};
|
|
8018
6232
|
const deserializeAws_restJson1BackupRules = (output, context) => {
|
|
8019
|
-
|
|
6233
|
+
const retVal = (output || [])
|
|
8020
6234
|
.filter((e) => e != null)
|
|
8021
6235
|
.map((entry) => {
|
|
8022
6236
|
if (entry === null) {
|
|
@@ -8024,6 +6238,7 @@ const deserializeAws_restJson1BackupRules = (output, context) => {
|
|
|
8024
6238
|
}
|
|
8025
6239
|
return deserializeAws_restJson1BackupRule(entry, context);
|
|
8026
6240
|
});
|
|
6241
|
+
return retVal;
|
|
8027
6242
|
};
|
|
8028
6243
|
const deserializeAws_restJson1BackupSelection = (output, context) => {
|
|
8029
6244
|
return {
|
|
@@ -8044,7 +6259,7 @@ const deserializeAws_restJson1BackupSelection = (output, context) => {
|
|
|
8044
6259
|
};
|
|
8045
6260
|
};
|
|
8046
6261
|
const deserializeAws_restJson1BackupSelectionsList = (output, context) => {
|
|
8047
|
-
|
|
6262
|
+
const retVal = (output || [])
|
|
8048
6263
|
.filter((e) => e != null)
|
|
8049
6264
|
.map((entry) => {
|
|
8050
6265
|
if (entry === null) {
|
|
@@ -8052,6 +6267,7 @@ const deserializeAws_restJson1BackupSelectionsList = (output, context) => {
|
|
|
8052
6267
|
}
|
|
8053
6268
|
return deserializeAws_restJson1BackupSelectionsListMember(entry, context);
|
|
8054
6269
|
});
|
|
6270
|
+
return retVal;
|
|
8055
6271
|
};
|
|
8056
6272
|
const deserializeAws_restJson1BackupSelectionsListMember = (output, context) => {
|
|
8057
6273
|
return {
|
|
@@ -8066,7 +6282,7 @@ const deserializeAws_restJson1BackupSelectionsListMember = (output, context) =>
|
|
|
8066
6282
|
};
|
|
8067
6283
|
};
|
|
8068
6284
|
const deserializeAws_restJson1BackupVaultEvents = (output, context) => {
|
|
8069
|
-
|
|
6285
|
+
const retVal = (output || [])
|
|
8070
6286
|
.filter((e) => e != null)
|
|
8071
6287
|
.map((entry) => {
|
|
8072
6288
|
if (entry === null) {
|
|
@@ -8074,9 +6290,10 @@ const deserializeAws_restJson1BackupVaultEvents = (output, context) => {
|
|
|
8074
6290
|
}
|
|
8075
6291
|
return smithy_client_1.expectString(entry);
|
|
8076
6292
|
});
|
|
6293
|
+
return retVal;
|
|
8077
6294
|
};
|
|
8078
6295
|
const deserializeAws_restJson1BackupVaultList = (output, context) => {
|
|
8079
|
-
|
|
6296
|
+
const retVal = (output || [])
|
|
8080
6297
|
.filter((e) => e != null)
|
|
8081
6298
|
.map((entry) => {
|
|
8082
6299
|
if (entry === null) {
|
|
@@ -8084,6 +6301,7 @@ const deserializeAws_restJson1BackupVaultList = (output, context) => {
|
|
|
8084
6301
|
}
|
|
8085
6302
|
return deserializeAws_restJson1BackupVaultListMember(entry, context);
|
|
8086
6303
|
});
|
|
6304
|
+
return retVal;
|
|
8087
6305
|
};
|
|
8088
6306
|
const deserializeAws_restJson1BackupVaultListMember = (output, context) => {
|
|
8089
6307
|
return {
|
|
@@ -8114,7 +6332,7 @@ const deserializeAws_restJson1CalculatedLifecycle = (output, context) => {
|
|
|
8114
6332
|
};
|
|
8115
6333
|
};
|
|
8116
6334
|
const deserializeAws_restJson1ComplianceResourceIdList = (output, context) => {
|
|
8117
|
-
|
|
6335
|
+
const retVal = (output || [])
|
|
8118
6336
|
.filter((e) => e != null)
|
|
8119
6337
|
.map((entry) => {
|
|
8120
6338
|
if (entry === null) {
|
|
@@ -8122,6 +6340,7 @@ const deserializeAws_restJson1ComplianceResourceIdList = (output, context) => {
|
|
|
8122
6340
|
}
|
|
8123
6341
|
return smithy_client_1.expectString(entry);
|
|
8124
6342
|
});
|
|
6343
|
+
return retVal;
|
|
8125
6344
|
};
|
|
8126
6345
|
const deserializeAws_restJson1Condition = (output, context) => {
|
|
8127
6346
|
return {
|
|
@@ -8137,7 +6356,7 @@ const deserializeAws_restJson1ConditionParameter = (output, context) => {
|
|
|
8137
6356
|
};
|
|
8138
6357
|
};
|
|
8139
6358
|
const deserializeAws_restJson1ConditionParameters = (output, context) => {
|
|
8140
|
-
|
|
6359
|
+
const retVal = (output || [])
|
|
8141
6360
|
.filter((e) => e != null)
|
|
8142
6361
|
.map((entry) => {
|
|
8143
6362
|
if (entry === null) {
|
|
@@ -8145,6 +6364,7 @@ const deserializeAws_restJson1ConditionParameters = (output, context) => {
|
|
|
8145
6364
|
}
|
|
8146
6365
|
return deserializeAws_restJson1ConditionParameter(entry, context);
|
|
8147
6366
|
});
|
|
6367
|
+
return retVal;
|
|
8148
6368
|
};
|
|
8149
6369
|
const deserializeAws_restJson1Conditions = (output, context) => {
|
|
8150
6370
|
return {
|
|
@@ -8169,7 +6389,7 @@ const deserializeAws_restJson1ControlInputParameter = (output, context) => {
|
|
|
8169
6389
|
};
|
|
8170
6390
|
};
|
|
8171
6391
|
const deserializeAws_restJson1ControlInputParameters = (output, context) => {
|
|
8172
|
-
|
|
6392
|
+
const retVal = (output || [])
|
|
8173
6393
|
.filter((e) => e != null)
|
|
8174
6394
|
.map((entry) => {
|
|
8175
6395
|
if (entry === null) {
|
|
@@ -8177,6 +6397,7 @@ const deserializeAws_restJson1ControlInputParameters = (output, context) => {
|
|
|
8177
6397
|
}
|
|
8178
6398
|
return deserializeAws_restJson1ControlInputParameter(entry, context);
|
|
8179
6399
|
});
|
|
6400
|
+
return retVal;
|
|
8180
6401
|
};
|
|
8181
6402
|
const deserializeAws_restJson1ControlScope = (output, context) => {
|
|
8182
6403
|
return {
|
|
@@ -8200,7 +6421,7 @@ const deserializeAws_restJson1CopyAction = (output, context) => {
|
|
|
8200
6421
|
};
|
|
8201
6422
|
};
|
|
8202
6423
|
const deserializeAws_restJson1CopyActions = (output, context) => {
|
|
8203
|
-
|
|
6424
|
+
const retVal = (output || [])
|
|
8204
6425
|
.filter((e) => e != null)
|
|
8205
6426
|
.map((entry) => {
|
|
8206
6427
|
if (entry === null) {
|
|
@@ -8208,6 +6429,7 @@ const deserializeAws_restJson1CopyActions = (output, context) => {
|
|
|
8208
6429
|
}
|
|
8209
6430
|
return deserializeAws_restJson1CopyAction(entry, context);
|
|
8210
6431
|
});
|
|
6432
|
+
return retVal;
|
|
8211
6433
|
};
|
|
8212
6434
|
const deserializeAws_restJson1CopyJob = (output, context) => {
|
|
8213
6435
|
return {
|
|
@@ -8235,7 +6457,7 @@ const deserializeAws_restJson1CopyJob = (output, context) => {
|
|
|
8235
6457
|
};
|
|
8236
6458
|
};
|
|
8237
6459
|
const deserializeAws_restJson1CopyJobsList = (output, context) => {
|
|
8238
|
-
|
|
6460
|
+
const retVal = (output || [])
|
|
8239
6461
|
.filter((e) => e != null)
|
|
8240
6462
|
.map((entry) => {
|
|
8241
6463
|
if (entry === null) {
|
|
@@ -8243,9 +6465,10 @@ const deserializeAws_restJson1CopyJobsList = (output, context) => {
|
|
|
8243
6465
|
}
|
|
8244
6466
|
return deserializeAws_restJson1CopyJob(entry, context);
|
|
8245
6467
|
});
|
|
6468
|
+
return retVal;
|
|
8246
6469
|
};
|
|
8247
6470
|
const deserializeAws_restJson1FormatList = (output, context) => {
|
|
8248
|
-
|
|
6471
|
+
const retVal = (output || [])
|
|
8249
6472
|
.filter((e) => e != null)
|
|
8250
6473
|
.map((entry) => {
|
|
8251
6474
|
if (entry === null) {
|
|
@@ -8253,6 +6476,7 @@ const deserializeAws_restJson1FormatList = (output, context) => {
|
|
|
8253
6476
|
}
|
|
8254
6477
|
return smithy_client_1.expectString(entry);
|
|
8255
6478
|
});
|
|
6479
|
+
return retVal;
|
|
8256
6480
|
};
|
|
8257
6481
|
const deserializeAws_restJson1Framework = (output, context) => {
|
|
8258
6482
|
return {
|
|
@@ -8278,7 +6502,7 @@ const deserializeAws_restJson1FrameworkControl = (output, context) => {
|
|
|
8278
6502
|
};
|
|
8279
6503
|
};
|
|
8280
6504
|
const deserializeAws_restJson1FrameworkControls = (output, context) => {
|
|
8281
|
-
|
|
6505
|
+
const retVal = (output || [])
|
|
8282
6506
|
.filter((e) => e != null)
|
|
8283
6507
|
.map((entry) => {
|
|
8284
6508
|
if (entry === null) {
|
|
@@ -8286,9 +6510,10 @@ const deserializeAws_restJson1FrameworkControls = (output, context) => {
|
|
|
8286
6510
|
}
|
|
8287
6511
|
return deserializeAws_restJson1FrameworkControl(entry, context);
|
|
8288
6512
|
});
|
|
6513
|
+
return retVal;
|
|
8289
6514
|
};
|
|
8290
6515
|
const deserializeAws_restJson1FrameworkList = (output, context) => {
|
|
8291
|
-
|
|
6516
|
+
const retVal = (output || [])
|
|
8292
6517
|
.filter((e) => e != null)
|
|
8293
6518
|
.map((entry) => {
|
|
8294
6519
|
if (entry === null) {
|
|
@@ -8296,6 +6521,7 @@ const deserializeAws_restJson1FrameworkList = (output, context) => {
|
|
|
8296
6521
|
}
|
|
8297
6522
|
return deserializeAws_restJson1Framework(entry, context);
|
|
8298
6523
|
});
|
|
6524
|
+
return retVal;
|
|
8299
6525
|
};
|
|
8300
6526
|
const deserializeAws_restJson1GlobalSettings = (output, context) => {
|
|
8301
6527
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -8315,7 +6541,7 @@ const deserializeAws_restJson1Lifecycle = (output, context) => {
|
|
|
8315
6541
|
};
|
|
8316
6542
|
};
|
|
8317
6543
|
const deserializeAws_restJson1ListOfTags = (output, context) => {
|
|
8318
|
-
|
|
6544
|
+
const retVal = (output || [])
|
|
8319
6545
|
.filter((e) => e != null)
|
|
8320
6546
|
.map((entry) => {
|
|
8321
6547
|
if (entry === null) {
|
|
@@ -8323,6 +6549,7 @@ const deserializeAws_restJson1ListOfTags = (output, context) => {
|
|
|
8323
6549
|
}
|
|
8324
6550
|
return deserializeAws_restJson1Condition(entry, context);
|
|
8325
6551
|
});
|
|
6552
|
+
return retVal;
|
|
8326
6553
|
};
|
|
8327
6554
|
const deserializeAws_restJson1Metadata = (output, context) => {
|
|
8328
6555
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -8345,7 +6572,7 @@ const deserializeAws_restJson1ProtectedResource = (output, context) => {
|
|
|
8345
6572
|
};
|
|
8346
6573
|
};
|
|
8347
6574
|
const deserializeAws_restJson1ProtectedResourcesList = (output, context) => {
|
|
8348
|
-
|
|
6575
|
+
const retVal = (output || [])
|
|
8349
6576
|
.filter((e) => e != null)
|
|
8350
6577
|
.map((entry) => {
|
|
8351
6578
|
if (entry === null) {
|
|
@@ -8353,6 +6580,7 @@ const deserializeAws_restJson1ProtectedResourcesList = (output, context) => {
|
|
|
8353
6580
|
}
|
|
8354
6581
|
return deserializeAws_restJson1ProtectedResource(entry, context);
|
|
8355
6582
|
});
|
|
6583
|
+
return retVal;
|
|
8356
6584
|
};
|
|
8357
6585
|
const deserializeAws_restJson1RecoveryPointByBackupVault = (output, context) => {
|
|
8358
6586
|
return {
|
|
@@ -8389,7 +6617,7 @@ const deserializeAws_restJson1RecoveryPointByBackupVault = (output, context) =>
|
|
|
8389
6617
|
};
|
|
8390
6618
|
};
|
|
8391
6619
|
const deserializeAws_restJson1RecoveryPointByBackupVaultList = (output, context) => {
|
|
8392
|
-
|
|
6620
|
+
const retVal = (output || [])
|
|
8393
6621
|
.filter((e) => e != null)
|
|
8394
6622
|
.map((entry) => {
|
|
8395
6623
|
if (entry === null) {
|
|
@@ -8397,6 +6625,7 @@ const deserializeAws_restJson1RecoveryPointByBackupVaultList = (output, context)
|
|
|
8397
6625
|
}
|
|
8398
6626
|
return deserializeAws_restJson1RecoveryPointByBackupVault(entry, context);
|
|
8399
6627
|
});
|
|
6628
|
+
return retVal;
|
|
8400
6629
|
};
|
|
8401
6630
|
const deserializeAws_restJson1RecoveryPointByResource = (output, context) => {
|
|
8402
6631
|
return {
|
|
@@ -8412,7 +6641,7 @@ const deserializeAws_restJson1RecoveryPointByResource = (output, context) => {
|
|
|
8412
6641
|
};
|
|
8413
6642
|
};
|
|
8414
6643
|
const deserializeAws_restJson1RecoveryPointByResourceList = (output, context) => {
|
|
8415
|
-
|
|
6644
|
+
const retVal = (output || [])
|
|
8416
6645
|
.filter((e) => e != null)
|
|
8417
6646
|
.map((entry) => {
|
|
8418
6647
|
if (entry === null) {
|
|
@@ -8420,6 +6649,7 @@ const deserializeAws_restJson1RecoveryPointByResourceList = (output, context) =>
|
|
|
8420
6649
|
}
|
|
8421
6650
|
return deserializeAws_restJson1RecoveryPointByResource(entry, context);
|
|
8422
6651
|
});
|
|
6652
|
+
return retVal;
|
|
8423
6653
|
};
|
|
8424
6654
|
const deserializeAws_restJson1RecoveryPointCreator = (output, context) => {
|
|
8425
6655
|
return {
|
|
@@ -8465,7 +6695,7 @@ const deserializeAws_restJson1ReportJob = (output, context) => {
|
|
|
8465
6695
|
};
|
|
8466
6696
|
};
|
|
8467
6697
|
const deserializeAws_restJson1ReportJobList = (output, context) => {
|
|
8468
|
-
|
|
6698
|
+
const retVal = (output || [])
|
|
8469
6699
|
.filter((e) => e != null)
|
|
8470
6700
|
.map((entry) => {
|
|
8471
6701
|
if (entry === null) {
|
|
@@ -8473,6 +6703,7 @@ const deserializeAws_restJson1ReportJobList = (output, context) => {
|
|
|
8473
6703
|
}
|
|
8474
6704
|
return deserializeAws_restJson1ReportJob(entry, context);
|
|
8475
6705
|
});
|
|
6706
|
+
return retVal;
|
|
8476
6707
|
};
|
|
8477
6708
|
const deserializeAws_restJson1ReportPlan = (output, context) => {
|
|
8478
6709
|
return {
|
|
@@ -8498,7 +6729,7 @@ const deserializeAws_restJson1ReportPlan = (output, context) => {
|
|
|
8498
6729
|
};
|
|
8499
6730
|
};
|
|
8500
6731
|
const deserializeAws_restJson1ReportPlanList = (output, context) => {
|
|
8501
|
-
|
|
6732
|
+
const retVal = (output || [])
|
|
8502
6733
|
.filter((e) => e != null)
|
|
8503
6734
|
.map((entry) => {
|
|
8504
6735
|
if (entry === null) {
|
|
@@ -8506,6 +6737,7 @@ const deserializeAws_restJson1ReportPlanList = (output, context) => {
|
|
|
8506
6737
|
}
|
|
8507
6738
|
return deserializeAws_restJson1ReportPlan(entry, context);
|
|
8508
6739
|
});
|
|
6740
|
+
return retVal;
|
|
8509
6741
|
};
|
|
8510
6742
|
const deserializeAws_restJson1ReportSetting = (output, context) => {
|
|
8511
6743
|
return {
|
|
@@ -8517,7 +6749,7 @@ const deserializeAws_restJson1ReportSetting = (output, context) => {
|
|
|
8517
6749
|
};
|
|
8518
6750
|
};
|
|
8519
6751
|
const deserializeAws_restJson1ResourceArns = (output, context) => {
|
|
8520
|
-
|
|
6752
|
+
const retVal = (output || [])
|
|
8521
6753
|
.filter((e) => e != null)
|
|
8522
6754
|
.map((entry) => {
|
|
8523
6755
|
if (entry === null) {
|
|
@@ -8525,9 +6757,10 @@ const deserializeAws_restJson1ResourceArns = (output, context) => {
|
|
|
8525
6757
|
}
|
|
8526
6758
|
return smithy_client_1.expectString(entry);
|
|
8527
6759
|
});
|
|
6760
|
+
return retVal;
|
|
8528
6761
|
};
|
|
8529
6762
|
const deserializeAws_restJson1ResourceTypeList = (output, context) => {
|
|
8530
|
-
|
|
6763
|
+
const retVal = (output || [])
|
|
8531
6764
|
.filter((e) => e != null)
|
|
8532
6765
|
.map((entry) => {
|
|
8533
6766
|
if (entry === null) {
|
|
@@ -8535,6 +6768,7 @@ const deserializeAws_restJson1ResourceTypeList = (output, context) => {
|
|
|
8535
6768
|
}
|
|
8536
6769
|
return smithy_client_1.expectString(entry);
|
|
8537
6770
|
});
|
|
6771
|
+
return retVal;
|
|
8538
6772
|
};
|
|
8539
6773
|
const deserializeAws_restJson1ResourceTypeManagementPreference = (output, context) => {
|
|
8540
6774
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
@@ -8559,7 +6793,7 @@ const deserializeAws_restJson1ResourceTypeOptInPreference = (output, context) =>
|
|
|
8559
6793
|
}, {});
|
|
8560
6794
|
};
|
|
8561
6795
|
const deserializeAws_restJson1ResourceTypes = (output, context) => {
|
|
8562
|
-
|
|
6796
|
+
const retVal = (output || [])
|
|
8563
6797
|
.filter((e) => e != null)
|
|
8564
6798
|
.map((entry) => {
|
|
8565
6799
|
if (entry === null) {
|
|
@@ -8567,9 +6801,10 @@ const deserializeAws_restJson1ResourceTypes = (output, context) => {
|
|
|
8567
6801
|
}
|
|
8568
6802
|
return smithy_client_1.expectString(entry);
|
|
8569
6803
|
});
|
|
6804
|
+
return retVal;
|
|
8570
6805
|
};
|
|
8571
6806
|
const deserializeAws_restJson1RestoreJobsList = (output, context) => {
|
|
8572
|
-
|
|
6807
|
+
const retVal = (output || [])
|
|
8573
6808
|
.filter((e) => e != null)
|
|
8574
6809
|
.map((entry) => {
|
|
8575
6810
|
if (entry === null) {
|
|
@@ -8577,6 +6812,7 @@ const deserializeAws_restJson1RestoreJobsList = (output, context) => {
|
|
|
8577
6812
|
}
|
|
8578
6813
|
return deserializeAws_restJson1RestoreJobsListMember(entry, context);
|
|
8579
6814
|
});
|
|
6815
|
+
return retVal;
|
|
8580
6816
|
};
|
|
8581
6817
|
const deserializeAws_restJson1RestoreJobsListMember = (output, context) => {
|
|
8582
6818
|
return {
|
|
@@ -8600,7 +6836,7 @@ const deserializeAws_restJson1RestoreJobsListMember = (output, context) => {
|
|
|
8600
6836
|
};
|
|
8601
6837
|
};
|
|
8602
6838
|
const deserializeAws_restJson1stringList = (output, context) => {
|
|
8603
|
-
|
|
6839
|
+
const retVal = (output || [])
|
|
8604
6840
|
.filter((e) => e != null)
|
|
8605
6841
|
.map((entry) => {
|
|
8606
6842
|
if (entry === null) {
|
|
@@ -8608,6 +6844,7 @@ const deserializeAws_restJson1stringList = (output, context) => {
|
|
|
8608
6844
|
}
|
|
8609
6845
|
return smithy_client_1.expectString(entry);
|
|
8610
6846
|
});
|
|
6847
|
+
return retVal;
|
|
8611
6848
|
};
|
|
8612
6849
|
const deserializeAws_restJson1stringMap = (output, context) => {
|
|
8613
6850
|
return Object.entries(output).reduce((acc, [key, value]) => {
|