@aws-sdk/client-imagebuilder 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +124 -2827
- package/dist-es/protocols/Aws_restJson1.js +117 -2820
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1956,7 +1956,7 @@ var se_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (input, conte
|
|
|
1956
1956
|
}, "se_UpdateLifecyclePolicyCommand");
|
|
1957
1957
|
var de_CancelImageCreationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1958
1958
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1959
|
-
return
|
|
1959
|
+
return de_CommandError(output, context);
|
|
1960
1960
|
}
|
|
1961
1961
|
const contents = (0, import_smithy_client.map)({
|
|
1962
1962
|
$metadata: deserializeMetadata(output)
|
|
@@ -1970,49 +1970,9 @@ var de_CancelImageCreationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1970
1970
|
Object.assign(contents, doc);
|
|
1971
1971
|
return contents;
|
|
1972
1972
|
}, "de_CancelImageCreationCommand");
|
|
1973
|
-
var de_CancelImageCreationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1974
|
-
const parsedOutput = {
|
|
1975
|
-
...output,
|
|
1976
|
-
body: await parseErrorBody(output.body, context)
|
|
1977
|
-
};
|
|
1978
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1979
|
-
switch (errorCode) {
|
|
1980
|
-
case "CallRateLimitExceededException":
|
|
1981
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
1982
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
1983
|
-
case "ClientException":
|
|
1984
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
1985
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1986
|
-
case "ForbiddenException":
|
|
1987
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
1988
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
1989
|
-
case "IdempotentParameterMismatchException":
|
|
1990
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
1991
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "InvalidRequestException":
|
|
1993
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
1994
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
1995
|
-
case "ResourceInUseException":
|
|
1996
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
1997
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
1998
|
-
case "ServiceException":
|
|
1999
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2000
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2001
|
-
case "ServiceUnavailableException":
|
|
2002
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2003
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2004
|
-
default:
|
|
2005
|
-
const parsedBody = parsedOutput.body;
|
|
2006
|
-
return throwDefaultError({
|
|
2007
|
-
output,
|
|
2008
|
-
parsedBody,
|
|
2009
|
-
errorCode
|
|
2010
|
-
});
|
|
2011
|
-
}
|
|
2012
|
-
}, "de_CancelImageCreationCommandError");
|
|
2013
1973
|
var de_CancelLifecycleExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2014
1974
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2015
|
-
return
|
|
1975
|
+
return de_CommandError(output, context);
|
|
2016
1976
|
}
|
|
2017
1977
|
const contents = (0, import_smithy_client.map)({
|
|
2018
1978
|
$metadata: deserializeMetadata(output)
|
|
@@ -2024,49 +1984,9 @@ var de_CancelLifecycleExecutionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2024
1984
|
Object.assign(contents, doc);
|
|
2025
1985
|
return contents;
|
|
2026
1986
|
}, "de_CancelLifecycleExecutionCommand");
|
|
2027
|
-
var de_CancelLifecycleExecutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2028
|
-
const parsedOutput = {
|
|
2029
|
-
...output,
|
|
2030
|
-
body: await parseErrorBody(output.body, context)
|
|
2031
|
-
};
|
|
2032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2033
|
-
switch (errorCode) {
|
|
2034
|
-
case "CallRateLimitExceededException":
|
|
2035
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2036
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2037
|
-
case "ClientException":
|
|
2038
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2039
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2040
|
-
case "ForbiddenException":
|
|
2041
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2042
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2043
|
-
case "IdempotentParameterMismatchException":
|
|
2044
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
2045
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2046
|
-
case "InvalidRequestException":
|
|
2047
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2048
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2049
|
-
case "ResourceInUseException":
|
|
2050
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
2051
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2052
|
-
case "ServiceException":
|
|
2053
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2054
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2055
|
-
case "ServiceUnavailableException":
|
|
2056
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2057
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2058
|
-
default:
|
|
2059
|
-
const parsedBody = parsedOutput.body;
|
|
2060
|
-
return throwDefaultError({
|
|
2061
|
-
output,
|
|
2062
|
-
parsedBody,
|
|
2063
|
-
errorCode
|
|
2064
|
-
});
|
|
2065
|
-
}
|
|
2066
|
-
}, "de_CancelLifecycleExecutionCommandError");
|
|
2067
1987
|
var de_CreateComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2068
1988
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2069
|
-
return
|
|
1989
|
+
return de_CommandError(output, context);
|
|
2070
1990
|
}
|
|
2071
1991
|
const contents = (0, import_smithy_client.map)({
|
|
2072
1992
|
$metadata: deserializeMetadata(output)
|
|
@@ -2080,58 +2000,9 @@ var de_CreateComponentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2080
2000
|
Object.assign(contents, doc);
|
|
2081
2001
|
return contents;
|
|
2082
2002
|
}, "de_CreateComponentCommand");
|
|
2083
|
-
var de_CreateComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2084
|
-
const parsedOutput = {
|
|
2085
|
-
...output,
|
|
2086
|
-
body: await parseErrorBody(output.body, context)
|
|
2087
|
-
};
|
|
2088
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2089
|
-
switch (errorCode) {
|
|
2090
|
-
case "CallRateLimitExceededException":
|
|
2091
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2092
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2093
|
-
case "ClientException":
|
|
2094
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2095
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2096
|
-
case "ForbiddenException":
|
|
2097
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2098
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2099
|
-
case "IdempotentParameterMismatchException":
|
|
2100
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
2101
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2102
|
-
case "InvalidParameterCombinationException":
|
|
2103
|
-
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
2104
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2105
|
-
case "InvalidRequestException":
|
|
2106
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2107
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2108
|
-
case "InvalidVersionNumberException":
|
|
2109
|
-
case "com.amazonaws.imagebuilder#InvalidVersionNumberException":
|
|
2110
|
-
throw await de_InvalidVersionNumberExceptionRes(parsedOutput, context);
|
|
2111
|
-
case "ResourceInUseException":
|
|
2112
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
2113
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2114
|
-
case "ServiceException":
|
|
2115
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2116
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2117
|
-
case "ServiceQuotaExceededException":
|
|
2118
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
2119
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "ServiceUnavailableException":
|
|
2121
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2122
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2123
|
-
default:
|
|
2124
|
-
const parsedBody = parsedOutput.body;
|
|
2125
|
-
return throwDefaultError({
|
|
2126
|
-
output,
|
|
2127
|
-
parsedBody,
|
|
2128
|
-
errorCode
|
|
2129
|
-
});
|
|
2130
|
-
}
|
|
2131
|
-
}, "de_CreateComponentCommandError");
|
|
2132
2003
|
var de_CreateContainerRecipeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2133
2004
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2134
|
-
return
|
|
2005
|
+
return de_CommandError(output, context);
|
|
2135
2006
|
}
|
|
2136
2007
|
const contents = (0, import_smithy_client.map)({
|
|
2137
2008
|
$metadata: deserializeMetadata(output)
|
|
@@ -2145,58 +2016,9 @@ var de_CreateContainerRecipeCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2145
2016
|
Object.assign(contents, doc);
|
|
2146
2017
|
return contents;
|
|
2147
2018
|
}, "de_CreateContainerRecipeCommand");
|
|
2148
|
-
var de_CreateContainerRecipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2149
|
-
const parsedOutput = {
|
|
2150
|
-
...output,
|
|
2151
|
-
body: await parseErrorBody(output.body, context)
|
|
2152
|
-
};
|
|
2153
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2154
|
-
switch (errorCode) {
|
|
2155
|
-
case "CallRateLimitExceededException":
|
|
2156
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2157
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2158
|
-
case "ClientException":
|
|
2159
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2160
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2161
|
-
case "ForbiddenException":
|
|
2162
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2163
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2164
|
-
case "IdempotentParameterMismatchException":
|
|
2165
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
2166
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2167
|
-
case "InvalidRequestException":
|
|
2168
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2169
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2170
|
-
case "InvalidVersionNumberException":
|
|
2171
|
-
case "com.amazonaws.imagebuilder#InvalidVersionNumberException":
|
|
2172
|
-
throw await de_InvalidVersionNumberExceptionRes(parsedOutput, context);
|
|
2173
|
-
case "ResourceAlreadyExistsException":
|
|
2174
|
-
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
2175
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2176
|
-
case "ResourceInUseException":
|
|
2177
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
2178
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2179
|
-
case "ServiceException":
|
|
2180
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2181
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2182
|
-
case "ServiceQuotaExceededException":
|
|
2183
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
2184
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2185
|
-
case "ServiceUnavailableException":
|
|
2186
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2187
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2188
|
-
default:
|
|
2189
|
-
const parsedBody = parsedOutput.body;
|
|
2190
|
-
return throwDefaultError({
|
|
2191
|
-
output,
|
|
2192
|
-
parsedBody,
|
|
2193
|
-
errorCode
|
|
2194
|
-
});
|
|
2195
|
-
}
|
|
2196
|
-
}, "de_CreateContainerRecipeCommandError");
|
|
2197
2019
|
var de_CreateDistributionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2198
2020
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2199
|
-
return
|
|
2021
|
+
return de_CommandError(output, context);
|
|
2200
2022
|
}
|
|
2201
2023
|
const contents = (0, import_smithy_client.map)({
|
|
2202
2024
|
$metadata: deserializeMetadata(output)
|
|
@@ -2210,58 +2032,9 @@ var de_CreateDistributionConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2210
2032
|
Object.assign(contents, doc);
|
|
2211
2033
|
return contents;
|
|
2212
2034
|
}, "de_CreateDistributionConfigurationCommand");
|
|
2213
|
-
var de_CreateDistributionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2214
|
-
const parsedOutput = {
|
|
2215
|
-
...output,
|
|
2216
|
-
body: await parseErrorBody(output.body, context)
|
|
2217
|
-
};
|
|
2218
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2219
|
-
switch (errorCode) {
|
|
2220
|
-
case "CallRateLimitExceededException":
|
|
2221
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2222
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2223
|
-
case "ClientException":
|
|
2224
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2225
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2226
|
-
case "ForbiddenException":
|
|
2227
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2228
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2229
|
-
case "IdempotentParameterMismatchException":
|
|
2230
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
2231
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2232
|
-
case "InvalidParameterCombinationException":
|
|
2233
|
-
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
2234
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2235
|
-
case "InvalidRequestException":
|
|
2236
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2237
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2238
|
-
case "ResourceAlreadyExistsException":
|
|
2239
|
-
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
2240
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "ResourceInUseException":
|
|
2242
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
2243
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "ServiceException":
|
|
2245
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2246
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ServiceQuotaExceededException":
|
|
2248
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
2249
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2250
|
-
case "ServiceUnavailableException":
|
|
2251
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2252
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2253
|
-
default:
|
|
2254
|
-
const parsedBody = parsedOutput.body;
|
|
2255
|
-
return throwDefaultError({
|
|
2256
|
-
output,
|
|
2257
|
-
parsedBody,
|
|
2258
|
-
errorCode
|
|
2259
|
-
});
|
|
2260
|
-
}
|
|
2261
|
-
}, "de_CreateDistributionConfigurationCommandError");
|
|
2262
2035
|
var de_CreateImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2263
2036
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2264
|
-
return
|
|
2037
|
+
return de_CommandError(output, context);
|
|
2265
2038
|
}
|
|
2266
2039
|
const contents = (0, import_smithy_client.map)({
|
|
2267
2040
|
$metadata: deserializeMetadata(output)
|
|
@@ -2275,52 +2048,9 @@ var de_CreateImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2275
2048
|
Object.assign(contents, doc);
|
|
2276
2049
|
return contents;
|
|
2277
2050
|
}, "de_CreateImageCommand");
|
|
2278
|
-
var de_CreateImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2279
|
-
const parsedOutput = {
|
|
2280
|
-
...output,
|
|
2281
|
-
body: await parseErrorBody(output.body, context)
|
|
2282
|
-
};
|
|
2283
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2284
|
-
switch (errorCode) {
|
|
2285
|
-
case "CallRateLimitExceededException":
|
|
2286
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2287
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "ClientException":
|
|
2289
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2290
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "ForbiddenException":
|
|
2292
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2293
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2294
|
-
case "IdempotentParameterMismatchException":
|
|
2295
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
2296
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2297
|
-
case "InvalidRequestException":
|
|
2298
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2299
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2300
|
-
case "ResourceInUseException":
|
|
2301
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
2302
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2303
|
-
case "ServiceException":
|
|
2304
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2305
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2306
|
-
case "ServiceQuotaExceededException":
|
|
2307
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
2308
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2309
|
-
case "ServiceUnavailableException":
|
|
2310
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2311
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2312
|
-
default:
|
|
2313
|
-
const parsedBody = parsedOutput.body;
|
|
2314
|
-
return throwDefaultError({
|
|
2315
|
-
output,
|
|
2316
|
-
parsedBody,
|
|
2317
|
-
errorCode
|
|
2318
|
-
});
|
|
2319
|
-
}
|
|
2320
|
-
}, "de_CreateImageCommandError");
|
|
2321
2051
|
var de_CreateImagePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2322
2052
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2323
|
-
return
|
|
2053
|
+
return de_CommandError(output, context);
|
|
2324
2054
|
}
|
|
2325
2055
|
const contents = (0, import_smithy_client.map)({
|
|
2326
2056
|
$metadata: deserializeMetadata(output)
|
|
@@ -2334,55 +2064,9 @@ var de_CreateImagePipelineCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2334
2064
|
Object.assign(contents, doc);
|
|
2335
2065
|
return contents;
|
|
2336
2066
|
}, "de_CreateImagePipelineCommand");
|
|
2337
|
-
var de_CreateImagePipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2338
|
-
const parsedOutput = {
|
|
2339
|
-
...output,
|
|
2340
|
-
body: await parseErrorBody(output.body, context)
|
|
2341
|
-
};
|
|
2342
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2343
|
-
switch (errorCode) {
|
|
2344
|
-
case "CallRateLimitExceededException":
|
|
2345
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2346
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2347
|
-
case "ClientException":
|
|
2348
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2349
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2350
|
-
case "ForbiddenException":
|
|
2351
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2352
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2353
|
-
case "IdempotentParameterMismatchException":
|
|
2354
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
2355
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2356
|
-
case "InvalidRequestException":
|
|
2357
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2358
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2359
|
-
case "ResourceAlreadyExistsException":
|
|
2360
|
-
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
2361
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2362
|
-
case "ResourceInUseException":
|
|
2363
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
2364
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2365
|
-
case "ServiceException":
|
|
2366
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2367
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2368
|
-
case "ServiceQuotaExceededException":
|
|
2369
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
2370
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2371
|
-
case "ServiceUnavailableException":
|
|
2372
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2373
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2374
|
-
default:
|
|
2375
|
-
const parsedBody = parsedOutput.body;
|
|
2376
|
-
return throwDefaultError({
|
|
2377
|
-
output,
|
|
2378
|
-
parsedBody,
|
|
2379
|
-
errorCode
|
|
2380
|
-
});
|
|
2381
|
-
}
|
|
2382
|
-
}, "de_CreateImagePipelineCommandError");
|
|
2383
2067
|
var de_CreateImageRecipeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2384
2068
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2385
|
-
return
|
|
2069
|
+
return de_CommandError(output, context);
|
|
2386
2070
|
}
|
|
2387
2071
|
const contents = (0, import_smithy_client.map)({
|
|
2388
2072
|
$metadata: deserializeMetadata(output)
|
|
@@ -2396,58 +2080,9 @@ var de_CreateImageRecipeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2396
2080
|
Object.assign(contents, doc);
|
|
2397
2081
|
return contents;
|
|
2398
2082
|
}, "de_CreateImageRecipeCommand");
|
|
2399
|
-
var de_CreateImageRecipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2400
|
-
const parsedOutput = {
|
|
2401
|
-
...output,
|
|
2402
|
-
body: await parseErrorBody(output.body, context)
|
|
2403
|
-
};
|
|
2404
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2405
|
-
switch (errorCode) {
|
|
2406
|
-
case "CallRateLimitExceededException":
|
|
2407
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2408
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2409
|
-
case "ClientException":
|
|
2410
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2411
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2412
|
-
case "ForbiddenException":
|
|
2413
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2414
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2415
|
-
case "IdempotentParameterMismatchException":
|
|
2416
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
2417
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2418
|
-
case "InvalidRequestException":
|
|
2419
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2420
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2421
|
-
case "InvalidVersionNumberException":
|
|
2422
|
-
case "com.amazonaws.imagebuilder#InvalidVersionNumberException":
|
|
2423
|
-
throw await de_InvalidVersionNumberExceptionRes(parsedOutput, context);
|
|
2424
|
-
case "ResourceAlreadyExistsException":
|
|
2425
|
-
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
2426
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2427
|
-
case "ResourceInUseException":
|
|
2428
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
2429
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2430
|
-
case "ServiceException":
|
|
2431
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2432
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2433
|
-
case "ServiceQuotaExceededException":
|
|
2434
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
2435
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2436
|
-
case "ServiceUnavailableException":
|
|
2437
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2438
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2439
|
-
default:
|
|
2440
|
-
const parsedBody = parsedOutput.body;
|
|
2441
|
-
return throwDefaultError({
|
|
2442
|
-
output,
|
|
2443
|
-
parsedBody,
|
|
2444
|
-
errorCode
|
|
2445
|
-
});
|
|
2446
|
-
}
|
|
2447
|
-
}, "de_CreateImageRecipeCommandError");
|
|
2448
2083
|
var de_CreateInfrastructureConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2449
2084
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2450
|
-
return
|
|
2085
|
+
return de_CommandError(output, context);
|
|
2451
2086
|
}
|
|
2452
2087
|
const contents = (0, import_smithy_client.map)({
|
|
2453
2088
|
$metadata: deserializeMetadata(output)
|
|
@@ -2461,55 +2096,9 @@ var de_CreateInfrastructureConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
2461
2096
|
Object.assign(contents, doc);
|
|
2462
2097
|
return contents;
|
|
2463
2098
|
}, "de_CreateInfrastructureConfigurationCommand");
|
|
2464
|
-
var de_CreateInfrastructureConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2465
|
-
const parsedOutput = {
|
|
2466
|
-
...output,
|
|
2467
|
-
body: await parseErrorBody(output.body, context)
|
|
2468
|
-
};
|
|
2469
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2470
|
-
switch (errorCode) {
|
|
2471
|
-
case "CallRateLimitExceededException":
|
|
2472
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2473
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2474
|
-
case "ClientException":
|
|
2475
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2476
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2477
|
-
case "ForbiddenException":
|
|
2478
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2479
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2480
|
-
case "IdempotentParameterMismatchException":
|
|
2481
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
2482
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2483
|
-
case "InvalidRequestException":
|
|
2484
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2485
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2486
|
-
case "ResourceAlreadyExistsException":
|
|
2487
|
-
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
2488
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2489
|
-
case "ResourceInUseException":
|
|
2490
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
2491
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2492
|
-
case "ServiceException":
|
|
2493
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2494
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2495
|
-
case "ServiceQuotaExceededException":
|
|
2496
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
2497
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2498
|
-
case "ServiceUnavailableException":
|
|
2499
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2500
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2501
|
-
default:
|
|
2502
|
-
const parsedBody = parsedOutput.body;
|
|
2503
|
-
return throwDefaultError({
|
|
2504
|
-
output,
|
|
2505
|
-
parsedBody,
|
|
2506
|
-
errorCode
|
|
2507
|
-
});
|
|
2508
|
-
}
|
|
2509
|
-
}, "de_CreateInfrastructureConfigurationCommandError");
|
|
2510
2099
|
var de_CreateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2511
2100
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2512
|
-
return
|
|
2101
|
+
return de_CommandError(output, context);
|
|
2513
2102
|
}
|
|
2514
2103
|
const contents = (0, import_smithy_client.map)({
|
|
2515
2104
|
$metadata: deserializeMetadata(output)
|
|
@@ -2522,55 +2111,9 @@ var de_CreateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2522
2111
|
Object.assign(contents, doc);
|
|
2523
2112
|
return contents;
|
|
2524
2113
|
}, "de_CreateLifecyclePolicyCommand");
|
|
2525
|
-
var de_CreateLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2526
|
-
const parsedOutput = {
|
|
2527
|
-
...output,
|
|
2528
|
-
body: await parseErrorBody(output.body, context)
|
|
2529
|
-
};
|
|
2530
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2531
|
-
switch (errorCode) {
|
|
2532
|
-
case "CallRateLimitExceededException":
|
|
2533
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2534
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2535
|
-
case "ClientException":
|
|
2536
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2537
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2538
|
-
case "ForbiddenException":
|
|
2539
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2540
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2541
|
-
case "IdempotentParameterMismatchException":
|
|
2542
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
2543
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2544
|
-
case "InvalidRequestException":
|
|
2545
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2546
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2547
|
-
case "ResourceAlreadyExistsException":
|
|
2548
|
-
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
2549
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
2550
|
-
case "ResourceInUseException":
|
|
2551
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
2552
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2553
|
-
case "ServiceException":
|
|
2554
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2555
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2556
|
-
case "ServiceQuotaExceededException":
|
|
2557
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
2558
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2559
|
-
case "ServiceUnavailableException":
|
|
2560
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2561
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2562
|
-
default:
|
|
2563
|
-
const parsedBody = parsedOutput.body;
|
|
2564
|
-
return throwDefaultError({
|
|
2565
|
-
output,
|
|
2566
|
-
parsedBody,
|
|
2567
|
-
errorCode
|
|
2568
|
-
});
|
|
2569
|
-
}
|
|
2570
|
-
}, "de_CreateLifecyclePolicyCommandError");
|
|
2571
2114
|
var de_CreateWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2572
2115
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2573
|
-
return
|
|
2116
|
+
return de_CommandError(output, context);
|
|
2574
2117
|
}
|
|
2575
2118
|
const contents = (0, import_smithy_client.map)({
|
|
2576
2119
|
$metadata: deserializeMetadata(output)
|
|
@@ -2583,58 +2126,9 @@ var de_CreateWorkflowCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2583
2126
|
Object.assign(contents, doc);
|
|
2584
2127
|
return contents;
|
|
2585
2128
|
}, "de_CreateWorkflowCommand");
|
|
2586
|
-
var de_CreateWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2587
|
-
const parsedOutput = {
|
|
2588
|
-
...output,
|
|
2589
|
-
body: await parseErrorBody(output.body, context)
|
|
2590
|
-
};
|
|
2591
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2592
|
-
switch (errorCode) {
|
|
2593
|
-
case "CallRateLimitExceededException":
|
|
2594
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2595
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2596
|
-
case "ClientException":
|
|
2597
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2598
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2599
|
-
case "ForbiddenException":
|
|
2600
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2601
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2602
|
-
case "IdempotentParameterMismatchException":
|
|
2603
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
2604
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
2605
|
-
case "InvalidParameterCombinationException":
|
|
2606
|
-
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
2607
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
2608
|
-
case "InvalidRequestException":
|
|
2609
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2610
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2611
|
-
case "InvalidVersionNumberException":
|
|
2612
|
-
case "com.amazonaws.imagebuilder#InvalidVersionNumberException":
|
|
2613
|
-
throw await de_InvalidVersionNumberExceptionRes(parsedOutput, context);
|
|
2614
|
-
case "ResourceInUseException":
|
|
2615
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
2616
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
2617
|
-
case "ServiceException":
|
|
2618
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2619
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2620
|
-
case "ServiceQuotaExceededException":
|
|
2621
|
-
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
2622
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2623
|
-
case "ServiceUnavailableException":
|
|
2624
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2625
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2626
|
-
default:
|
|
2627
|
-
const parsedBody = parsedOutput.body;
|
|
2628
|
-
return throwDefaultError({
|
|
2629
|
-
output,
|
|
2630
|
-
parsedBody,
|
|
2631
|
-
errorCode
|
|
2632
|
-
});
|
|
2633
|
-
}
|
|
2634
|
-
}, "de_CreateWorkflowCommandError");
|
|
2635
2129
|
var de_DeleteComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2636
2130
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2637
|
-
return
|
|
2131
|
+
return de_CommandError(output, context);
|
|
2638
2132
|
}
|
|
2639
2133
|
const contents = (0, import_smithy_client.map)({
|
|
2640
2134
|
$metadata: deserializeMetadata(output)
|
|
@@ -2647,46 +2141,9 @@ var de_DeleteComponentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
2647
2141
|
Object.assign(contents, doc);
|
|
2648
2142
|
return contents;
|
|
2649
2143
|
}, "de_DeleteComponentCommand");
|
|
2650
|
-
var de_DeleteComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2651
|
-
const parsedOutput = {
|
|
2652
|
-
...output,
|
|
2653
|
-
body: await parseErrorBody(output.body, context)
|
|
2654
|
-
};
|
|
2655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2656
|
-
switch (errorCode) {
|
|
2657
|
-
case "CallRateLimitExceededException":
|
|
2658
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2659
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2660
|
-
case "ClientException":
|
|
2661
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2662
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2663
|
-
case "ForbiddenException":
|
|
2664
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2665
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2666
|
-
case "InvalidRequestException":
|
|
2667
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2668
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2669
|
-
case "ResourceDependencyException":
|
|
2670
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2671
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "ServiceException":
|
|
2673
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2674
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2675
|
-
case "ServiceUnavailableException":
|
|
2676
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2677
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2678
|
-
default:
|
|
2679
|
-
const parsedBody = parsedOutput.body;
|
|
2680
|
-
return throwDefaultError({
|
|
2681
|
-
output,
|
|
2682
|
-
parsedBody,
|
|
2683
|
-
errorCode
|
|
2684
|
-
});
|
|
2685
|
-
}
|
|
2686
|
-
}, "de_DeleteComponentCommandError");
|
|
2687
2144
|
var de_DeleteContainerRecipeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2688
2145
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2689
|
-
return
|
|
2146
|
+
return de_CommandError(output, context);
|
|
2690
2147
|
}
|
|
2691
2148
|
const contents = (0, import_smithy_client.map)({
|
|
2692
2149
|
$metadata: deserializeMetadata(output)
|
|
@@ -2699,46 +2156,9 @@ var de_DeleteContainerRecipeCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2699
2156
|
Object.assign(contents, doc);
|
|
2700
2157
|
return contents;
|
|
2701
2158
|
}, "de_DeleteContainerRecipeCommand");
|
|
2702
|
-
var de_DeleteContainerRecipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2703
|
-
const parsedOutput = {
|
|
2704
|
-
...output,
|
|
2705
|
-
body: await parseErrorBody(output.body, context)
|
|
2706
|
-
};
|
|
2707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2708
|
-
switch (errorCode) {
|
|
2709
|
-
case "CallRateLimitExceededException":
|
|
2710
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2711
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2712
|
-
case "ClientException":
|
|
2713
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2714
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2715
|
-
case "ForbiddenException":
|
|
2716
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2717
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2718
|
-
case "InvalidRequestException":
|
|
2719
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2720
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2721
|
-
case "ResourceDependencyException":
|
|
2722
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2723
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2724
|
-
case "ServiceException":
|
|
2725
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2726
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2727
|
-
case "ServiceUnavailableException":
|
|
2728
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2729
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2730
|
-
default:
|
|
2731
|
-
const parsedBody = parsedOutput.body;
|
|
2732
|
-
return throwDefaultError({
|
|
2733
|
-
output,
|
|
2734
|
-
parsedBody,
|
|
2735
|
-
errorCode
|
|
2736
|
-
});
|
|
2737
|
-
}
|
|
2738
|
-
}, "de_DeleteContainerRecipeCommandError");
|
|
2739
2159
|
var de_DeleteDistributionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2740
2160
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2741
|
-
return
|
|
2161
|
+
return de_CommandError(output, context);
|
|
2742
2162
|
}
|
|
2743
2163
|
const contents = (0, import_smithy_client.map)({
|
|
2744
2164
|
$metadata: deserializeMetadata(output)
|
|
@@ -2751,46 +2171,9 @@ var de_DeleteDistributionConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
2751
2171
|
Object.assign(contents, doc);
|
|
2752
2172
|
return contents;
|
|
2753
2173
|
}, "de_DeleteDistributionConfigurationCommand");
|
|
2754
|
-
var de_DeleteDistributionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2755
|
-
const parsedOutput = {
|
|
2756
|
-
...output,
|
|
2757
|
-
body: await parseErrorBody(output.body, context)
|
|
2758
|
-
};
|
|
2759
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2760
|
-
switch (errorCode) {
|
|
2761
|
-
case "CallRateLimitExceededException":
|
|
2762
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2763
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2764
|
-
case "ClientException":
|
|
2765
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2766
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2767
|
-
case "ForbiddenException":
|
|
2768
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2769
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2770
|
-
case "InvalidRequestException":
|
|
2771
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2772
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2773
|
-
case "ResourceDependencyException":
|
|
2774
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2775
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2776
|
-
case "ServiceException":
|
|
2777
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2778
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2779
|
-
case "ServiceUnavailableException":
|
|
2780
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2781
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2782
|
-
default:
|
|
2783
|
-
const parsedBody = parsedOutput.body;
|
|
2784
|
-
return throwDefaultError({
|
|
2785
|
-
output,
|
|
2786
|
-
parsedBody,
|
|
2787
|
-
errorCode
|
|
2788
|
-
});
|
|
2789
|
-
}
|
|
2790
|
-
}, "de_DeleteDistributionConfigurationCommandError");
|
|
2791
2174
|
var de_DeleteImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2792
2175
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2793
|
-
return
|
|
2176
|
+
return de_CommandError(output, context);
|
|
2794
2177
|
}
|
|
2795
2178
|
const contents = (0, import_smithy_client.map)({
|
|
2796
2179
|
$metadata: deserializeMetadata(output)
|
|
@@ -2803,46 +2186,9 @@ var de_DeleteImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2803
2186
|
Object.assign(contents, doc);
|
|
2804
2187
|
return contents;
|
|
2805
2188
|
}, "de_DeleteImageCommand");
|
|
2806
|
-
var de_DeleteImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2807
|
-
const parsedOutput = {
|
|
2808
|
-
...output,
|
|
2809
|
-
body: await parseErrorBody(output.body, context)
|
|
2810
|
-
};
|
|
2811
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2812
|
-
switch (errorCode) {
|
|
2813
|
-
case "CallRateLimitExceededException":
|
|
2814
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2815
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2816
|
-
case "ClientException":
|
|
2817
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2818
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2819
|
-
case "ForbiddenException":
|
|
2820
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2821
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2822
|
-
case "InvalidRequestException":
|
|
2823
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2824
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2825
|
-
case "ResourceDependencyException":
|
|
2826
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2827
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2828
|
-
case "ServiceException":
|
|
2829
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2830
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2831
|
-
case "ServiceUnavailableException":
|
|
2832
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2833
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2834
|
-
default:
|
|
2835
|
-
const parsedBody = parsedOutput.body;
|
|
2836
|
-
return throwDefaultError({
|
|
2837
|
-
output,
|
|
2838
|
-
parsedBody,
|
|
2839
|
-
errorCode
|
|
2840
|
-
});
|
|
2841
|
-
}
|
|
2842
|
-
}, "de_DeleteImageCommandError");
|
|
2843
2189
|
var de_DeleteImagePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2844
2190
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2845
|
-
return
|
|
2191
|
+
return de_CommandError(output, context);
|
|
2846
2192
|
}
|
|
2847
2193
|
const contents = (0, import_smithy_client.map)({
|
|
2848
2194
|
$metadata: deserializeMetadata(output)
|
|
@@ -2855,46 +2201,9 @@ var de_DeleteImagePipelineCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2855
2201
|
Object.assign(contents, doc);
|
|
2856
2202
|
return contents;
|
|
2857
2203
|
}, "de_DeleteImagePipelineCommand");
|
|
2858
|
-
var de_DeleteImagePipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2859
|
-
const parsedOutput = {
|
|
2860
|
-
...output,
|
|
2861
|
-
body: await parseErrorBody(output.body, context)
|
|
2862
|
-
};
|
|
2863
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2864
|
-
switch (errorCode) {
|
|
2865
|
-
case "CallRateLimitExceededException":
|
|
2866
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2867
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2868
|
-
case "ClientException":
|
|
2869
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2870
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2871
|
-
case "ForbiddenException":
|
|
2872
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2873
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2874
|
-
case "InvalidRequestException":
|
|
2875
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2876
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2877
|
-
case "ResourceDependencyException":
|
|
2878
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2879
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2880
|
-
case "ServiceException":
|
|
2881
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2882
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2883
|
-
case "ServiceUnavailableException":
|
|
2884
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2885
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2886
|
-
default:
|
|
2887
|
-
const parsedBody = parsedOutput.body;
|
|
2888
|
-
return throwDefaultError({
|
|
2889
|
-
output,
|
|
2890
|
-
parsedBody,
|
|
2891
|
-
errorCode
|
|
2892
|
-
});
|
|
2893
|
-
}
|
|
2894
|
-
}, "de_DeleteImagePipelineCommandError");
|
|
2895
2204
|
var de_DeleteImageRecipeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2896
2205
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2897
|
-
return
|
|
2206
|
+
return de_CommandError(output, context);
|
|
2898
2207
|
}
|
|
2899
2208
|
const contents = (0, import_smithy_client.map)({
|
|
2900
2209
|
$metadata: deserializeMetadata(output)
|
|
@@ -2907,46 +2216,9 @@ var de_DeleteImageRecipeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2907
2216
|
Object.assign(contents, doc);
|
|
2908
2217
|
return contents;
|
|
2909
2218
|
}, "de_DeleteImageRecipeCommand");
|
|
2910
|
-
var de_DeleteImageRecipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2911
|
-
const parsedOutput = {
|
|
2912
|
-
...output,
|
|
2913
|
-
body: await parseErrorBody(output.body, context)
|
|
2914
|
-
};
|
|
2915
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2916
|
-
switch (errorCode) {
|
|
2917
|
-
case "CallRateLimitExceededException":
|
|
2918
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2919
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2920
|
-
case "ClientException":
|
|
2921
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2922
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2923
|
-
case "ForbiddenException":
|
|
2924
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2925
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2926
|
-
case "InvalidRequestException":
|
|
2927
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2928
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2929
|
-
case "ResourceDependencyException":
|
|
2930
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2931
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2932
|
-
case "ServiceException":
|
|
2933
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2934
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2935
|
-
case "ServiceUnavailableException":
|
|
2936
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2937
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2938
|
-
default:
|
|
2939
|
-
const parsedBody = parsedOutput.body;
|
|
2940
|
-
return throwDefaultError({
|
|
2941
|
-
output,
|
|
2942
|
-
parsedBody,
|
|
2943
|
-
errorCode
|
|
2944
|
-
});
|
|
2945
|
-
}
|
|
2946
|
-
}, "de_DeleteImageRecipeCommandError");
|
|
2947
2219
|
var de_DeleteInfrastructureConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2948
2220
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2949
|
-
return
|
|
2221
|
+
return de_CommandError(output, context);
|
|
2950
2222
|
}
|
|
2951
2223
|
const contents = (0, import_smithy_client.map)({
|
|
2952
2224
|
$metadata: deserializeMetadata(output)
|
|
@@ -2959,46 +2231,9 @@ var de_DeleteInfrastructureConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
2959
2231
|
Object.assign(contents, doc);
|
|
2960
2232
|
return contents;
|
|
2961
2233
|
}, "de_DeleteInfrastructureConfigurationCommand");
|
|
2962
|
-
var de_DeleteInfrastructureConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2963
|
-
const parsedOutput = {
|
|
2964
|
-
...output,
|
|
2965
|
-
body: await parseErrorBody(output.body, context)
|
|
2966
|
-
};
|
|
2967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2968
|
-
switch (errorCode) {
|
|
2969
|
-
case "CallRateLimitExceededException":
|
|
2970
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
2971
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
2972
|
-
case "ClientException":
|
|
2973
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
2974
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
2975
|
-
case "ForbiddenException":
|
|
2976
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
2977
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
2978
|
-
case "InvalidRequestException":
|
|
2979
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
2980
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
2981
|
-
case "ResourceDependencyException":
|
|
2982
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
2983
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
2984
|
-
case "ServiceException":
|
|
2985
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
2986
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
2987
|
-
case "ServiceUnavailableException":
|
|
2988
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
2989
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
2990
|
-
default:
|
|
2991
|
-
const parsedBody = parsedOutput.body;
|
|
2992
|
-
return throwDefaultError({
|
|
2993
|
-
output,
|
|
2994
|
-
parsedBody,
|
|
2995
|
-
errorCode
|
|
2996
|
-
});
|
|
2997
|
-
}
|
|
2998
|
-
}, "de_DeleteInfrastructureConfigurationCommandError");
|
|
2999
2234
|
var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3000
2235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3001
|
-
return
|
|
2236
|
+
return de_CommandError(output, context);
|
|
3002
2237
|
}
|
|
3003
2238
|
const contents = (0, import_smithy_client.map)({
|
|
3004
2239
|
$metadata: deserializeMetadata(output)
|
|
@@ -3010,46 +2245,9 @@ var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3010
2245
|
Object.assign(contents, doc);
|
|
3011
2246
|
return contents;
|
|
3012
2247
|
}, "de_DeleteLifecyclePolicyCommand");
|
|
3013
|
-
var de_DeleteLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3014
|
-
const parsedOutput = {
|
|
3015
|
-
...output,
|
|
3016
|
-
body: await parseErrorBody(output.body, context)
|
|
3017
|
-
};
|
|
3018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3019
|
-
switch (errorCode) {
|
|
3020
|
-
case "CallRateLimitExceededException":
|
|
3021
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3022
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3023
|
-
case "ClientException":
|
|
3024
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3025
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3026
|
-
case "ForbiddenException":
|
|
3027
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3028
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3029
|
-
case "InvalidRequestException":
|
|
3030
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3031
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3032
|
-
case "ResourceDependencyException":
|
|
3033
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
3034
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
3035
|
-
case "ServiceException":
|
|
3036
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3037
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3038
|
-
case "ServiceUnavailableException":
|
|
3039
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3040
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3041
|
-
default:
|
|
3042
|
-
const parsedBody = parsedOutput.body;
|
|
3043
|
-
return throwDefaultError({
|
|
3044
|
-
output,
|
|
3045
|
-
parsedBody,
|
|
3046
|
-
errorCode
|
|
3047
|
-
});
|
|
3048
|
-
}
|
|
3049
|
-
}, "de_DeleteLifecyclePolicyCommandError");
|
|
3050
2248
|
var de_DeleteWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3051
2249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3052
|
-
return
|
|
2250
|
+
return de_CommandError(output, context);
|
|
3053
2251
|
}
|
|
3054
2252
|
const contents = (0, import_smithy_client.map)({
|
|
3055
2253
|
$metadata: deserializeMetadata(output)
|
|
@@ -3061,46 +2259,9 @@ var de_DeleteWorkflowCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3061
2259
|
Object.assign(contents, doc);
|
|
3062
2260
|
return contents;
|
|
3063
2261
|
}, "de_DeleteWorkflowCommand");
|
|
3064
|
-
var de_DeleteWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3065
|
-
const parsedOutput = {
|
|
3066
|
-
...output,
|
|
3067
|
-
body: await parseErrorBody(output.body, context)
|
|
3068
|
-
};
|
|
3069
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3070
|
-
switch (errorCode) {
|
|
3071
|
-
case "CallRateLimitExceededException":
|
|
3072
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3073
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3074
|
-
case "ClientException":
|
|
3075
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3076
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3077
|
-
case "ForbiddenException":
|
|
3078
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3079
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3080
|
-
case "InvalidRequestException":
|
|
3081
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3082
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3083
|
-
case "ResourceDependencyException":
|
|
3084
|
-
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
3085
|
-
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
3086
|
-
case "ServiceException":
|
|
3087
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3088
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3089
|
-
case "ServiceUnavailableException":
|
|
3090
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3091
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3092
|
-
default:
|
|
3093
|
-
const parsedBody = parsedOutput.body;
|
|
3094
|
-
return throwDefaultError({
|
|
3095
|
-
output,
|
|
3096
|
-
parsedBody,
|
|
3097
|
-
errorCode
|
|
3098
|
-
});
|
|
3099
|
-
}
|
|
3100
|
-
}, "de_DeleteWorkflowCommandError");
|
|
3101
2262
|
var de_GetComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3102
2263
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3103
|
-
return
|
|
2264
|
+
return de_CommandError(output, context);
|
|
3104
2265
|
}
|
|
3105
2266
|
const contents = (0, import_smithy_client.map)({
|
|
3106
2267
|
$metadata: deserializeMetadata(output)
|
|
@@ -3113,43 +2274,9 @@ var de_GetComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3113
2274
|
Object.assign(contents, doc);
|
|
3114
2275
|
return contents;
|
|
3115
2276
|
}, "de_GetComponentCommand");
|
|
3116
|
-
var de_GetComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3117
|
-
const parsedOutput = {
|
|
3118
|
-
...output,
|
|
3119
|
-
body: await parseErrorBody(output.body, context)
|
|
3120
|
-
};
|
|
3121
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3122
|
-
switch (errorCode) {
|
|
3123
|
-
case "CallRateLimitExceededException":
|
|
3124
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3125
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3126
|
-
case "ClientException":
|
|
3127
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3128
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3129
|
-
case "ForbiddenException":
|
|
3130
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3131
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3132
|
-
case "InvalidRequestException":
|
|
3133
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3134
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3135
|
-
case "ServiceException":
|
|
3136
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3137
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3138
|
-
case "ServiceUnavailableException":
|
|
3139
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3140
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3141
|
-
default:
|
|
3142
|
-
const parsedBody = parsedOutput.body;
|
|
3143
|
-
return throwDefaultError({
|
|
3144
|
-
output,
|
|
3145
|
-
parsedBody,
|
|
3146
|
-
errorCode
|
|
3147
|
-
});
|
|
3148
|
-
}
|
|
3149
|
-
}, "de_GetComponentCommandError");
|
|
3150
2277
|
var de_GetComponentPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3151
2278
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3152
|
-
return
|
|
2279
|
+
return de_CommandError(output, context);
|
|
3153
2280
|
}
|
|
3154
2281
|
const contents = (0, import_smithy_client.map)({
|
|
3155
2282
|
$metadata: deserializeMetadata(output)
|
|
@@ -3162,43 +2289,9 @@ var de_GetComponentPolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3162
2289
|
Object.assign(contents, doc);
|
|
3163
2290
|
return contents;
|
|
3164
2291
|
}, "de_GetComponentPolicyCommand");
|
|
3165
|
-
var de_GetComponentPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3166
|
-
const parsedOutput = {
|
|
3167
|
-
...output,
|
|
3168
|
-
body: await parseErrorBody(output.body, context)
|
|
3169
|
-
};
|
|
3170
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3171
|
-
switch (errorCode) {
|
|
3172
|
-
case "CallRateLimitExceededException":
|
|
3173
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3174
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3175
|
-
case "ForbiddenException":
|
|
3176
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3177
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3178
|
-
case "InvalidRequestException":
|
|
3179
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3180
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3181
|
-
case "ResourceNotFoundException":
|
|
3182
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
3183
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3184
|
-
case "ServiceException":
|
|
3185
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3186
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3187
|
-
case "ServiceUnavailableException":
|
|
3188
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3189
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3190
|
-
default:
|
|
3191
|
-
const parsedBody = parsedOutput.body;
|
|
3192
|
-
return throwDefaultError({
|
|
3193
|
-
output,
|
|
3194
|
-
parsedBody,
|
|
3195
|
-
errorCode
|
|
3196
|
-
});
|
|
3197
|
-
}
|
|
3198
|
-
}, "de_GetComponentPolicyCommandError");
|
|
3199
2292
|
var de_GetContainerRecipeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3200
2293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3201
|
-
return
|
|
2294
|
+
return de_CommandError(output, context);
|
|
3202
2295
|
}
|
|
3203
2296
|
const contents = (0, import_smithy_client.map)({
|
|
3204
2297
|
$metadata: deserializeMetadata(output)
|
|
@@ -3211,43 +2304,9 @@ var de_GetContainerRecipeCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3211
2304
|
Object.assign(contents, doc);
|
|
3212
2305
|
return contents;
|
|
3213
2306
|
}, "de_GetContainerRecipeCommand");
|
|
3214
|
-
var de_GetContainerRecipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3215
|
-
const parsedOutput = {
|
|
3216
|
-
...output,
|
|
3217
|
-
body: await parseErrorBody(output.body, context)
|
|
3218
|
-
};
|
|
3219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3220
|
-
switch (errorCode) {
|
|
3221
|
-
case "CallRateLimitExceededException":
|
|
3222
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3223
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3224
|
-
case "ClientException":
|
|
3225
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3226
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3227
|
-
case "ForbiddenException":
|
|
3228
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3229
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3230
|
-
case "InvalidRequestException":
|
|
3231
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3232
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3233
|
-
case "ServiceException":
|
|
3234
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3235
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3236
|
-
case "ServiceUnavailableException":
|
|
3237
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3238
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3239
|
-
default:
|
|
3240
|
-
const parsedBody = parsedOutput.body;
|
|
3241
|
-
return throwDefaultError({
|
|
3242
|
-
output,
|
|
3243
|
-
parsedBody,
|
|
3244
|
-
errorCode
|
|
3245
|
-
});
|
|
3246
|
-
}
|
|
3247
|
-
}, "de_GetContainerRecipeCommandError");
|
|
3248
2307
|
var de_GetContainerRecipePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3249
2308
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3250
|
-
return
|
|
2309
|
+
return de_CommandError(output, context);
|
|
3251
2310
|
}
|
|
3252
2311
|
const contents = (0, import_smithy_client.map)({
|
|
3253
2312
|
$metadata: deserializeMetadata(output)
|
|
@@ -3260,43 +2319,9 @@ var de_GetContainerRecipePolicyCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3260
2319
|
Object.assign(contents, doc);
|
|
3261
2320
|
return contents;
|
|
3262
2321
|
}, "de_GetContainerRecipePolicyCommand");
|
|
3263
|
-
var de_GetContainerRecipePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3264
|
-
const parsedOutput = {
|
|
3265
|
-
...output,
|
|
3266
|
-
body: await parseErrorBody(output.body, context)
|
|
3267
|
-
};
|
|
3268
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3269
|
-
switch (errorCode) {
|
|
3270
|
-
case "CallRateLimitExceededException":
|
|
3271
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3272
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3273
|
-
case "ForbiddenException":
|
|
3274
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3275
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3276
|
-
case "InvalidRequestException":
|
|
3277
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3278
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3279
|
-
case "ResourceNotFoundException":
|
|
3280
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
3281
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3282
|
-
case "ServiceException":
|
|
3283
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3284
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3285
|
-
case "ServiceUnavailableException":
|
|
3286
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3287
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3288
|
-
default:
|
|
3289
|
-
const parsedBody = parsedOutput.body;
|
|
3290
|
-
return throwDefaultError({
|
|
3291
|
-
output,
|
|
3292
|
-
parsedBody,
|
|
3293
|
-
errorCode
|
|
3294
|
-
});
|
|
3295
|
-
}
|
|
3296
|
-
}, "de_GetContainerRecipePolicyCommandError");
|
|
3297
2322
|
var de_GetDistributionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3298
2323
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3299
|
-
return
|
|
2324
|
+
return de_CommandError(output, context);
|
|
3300
2325
|
}
|
|
3301
2326
|
const contents = (0, import_smithy_client.map)({
|
|
3302
2327
|
$metadata: deserializeMetadata(output)
|
|
@@ -3309,43 +2334,9 @@ var de_GetDistributionConfigurationCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
3309
2334
|
Object.assign(contents, doc);
|
|
3310
2335
|
return contents;
|
|
3311
2336
|
}, "de_GetDistributionConfigurationCommand");
|
|
3312
|
-
var de_GetDistributionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3313
|
-
const parsedOutput = {
|
|
3314
|
-
...output,
|
|
3315
|
-
body: await parseErrorBody(output.body, context)
|
|
3316
|
-
};
|
|
3317
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3318
|
-
switch (errorCode) {
|
|
3319
|
-
case "CallRateLimitExceededException":
|
|
3320
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3321
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3322
|
-
case "ClientException":
|
|
3323
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3324
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3325
|
-
case "ForbiddenException":
|
|
3326
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3327
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3328
|
-
case "InvalidRequestException":
|
|
3329
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3330
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3331
|
-
case "ServiceException":
|
|
3332
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3333
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3334
|
-
case "ServiceUnavailableException":
|
|
3335
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3336
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3337
|
-
default:
|
|
3338
|
-
const parsedBody = parsedOutput.body;
|
|
3339
|
-
return throwDefaultError({
|
|
3340
|
-
output,
|
|
3341
|
-
parsedBody,
|
|
3342
|
-
errorCode
|
|
3343
|
-
});
|
|
3344
|
-
}
|
|
3345
|
-
}, "de_GetDistributionConfigurationCommandError");
|
|
3346
2337
|
var de_GetImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3347
2338
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3348
|
-
return
|
|
2339
|
+
return de_CommandError(output, context);
|
|
3349
2340
|
}
|
|
3350
2341
|
const contents = (0, import_smithy_client.map)({
|
|
3351
2342
|
$metadata: deserializeMetadata(output)
|
|
@@ -3358,43 +2349,9 @@ var de_GetImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3358
2349
|
Object.assign(contents, doc);
|
|
3359
2350
|
return contents;
|
|
3360
2351
|
}, "de_GetImageCommand");
|
|
3361
|
-
var de_GetImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3362
|
-
const parsedOutput = {
|
|
3363
|
-
...output,
|
|
3364
|
-
body: await parseErrorBody(output.body, context)
|
|
3365
|
-
};
|
|
3366
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3367
|
-
switch (errorCode) {
|
|
3368
|
-
case "CallRateLimitExceededException":
|
|
3369
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3370
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3371
|
-
case "ClientException":
|
|
3372
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3373
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3374
|
-
case "ForbiddenException":
|
|
3375
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3376
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3377
|
-
case "InvalidRequestException":
|
|
3378
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3379
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3380
|
-
case "ServiceException":
|
|
3381
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3382
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3383
|
-
case "ServiceUnavailableException":
|
|
3384
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3385
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3386
|
-
default:
|
|
3387
|
-
const parsedBody = parsedOutput.body;
|
|
3388
|
-
return throwDefaultError({
|
|
3389
|
-
output,
|
|
3390
|
-
parsedBody,
|
|
3391
|
-
errorCode
|
|
3392
|
-
});
|
|
3393
|
-
}
|
|
3394
|
-
}, "de_GetImageCommandError");
|
|
3395
2352
|
var de_GetImagePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3396
2353
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3397
|
-
return
|
|
2354
|
+
return de_CommandError(output, context);
|
|
3398
2355
|
}
|
|
3399
2356
|
const contents = (0, import_smithy_client.map)({
|
|
3400
2357
|
$metadata: deserializeMetadata(output)
|
|
@@ -3407,43 +2364,9 @@ var de_GetImagePipelineCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3407
2364
|
Object.assign(contents, doc);
|
|
3408
2365
|
return contents;
|
|
3409
2366
|
}, "de_GetImagePipelineCommand");
|
|
3410
|
-
var de_GetImagePipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3411
|
-
const parsedOutput = {
|
|
3412
|
-
...output,
|
|
3413
|
-
body: await parseErrorBody(output.body, context)
|
|
3414
|
-
};
|
|
3415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3416
|
-
switch (errorCode) {
|
|
3417
|
-
case "CallRateLimitExceededException":
|
|
3418
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3419
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3420
|
-
case "ClientException":
|
|
3421
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3422
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3423
|
-
case "ForbiddenException":
|
|
3424
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3425
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3426
|
-
case "InvalidRequestException":
|
|
3427
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3428
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3429
|
-
case "ServiceException":
|
|
3430
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3431
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3432
|
-
case "ServiceUnavailableException":
|
|
3433
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3434
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3435
|
-
default:
|
|
3436
|
-
const parsedBody = parsedOutput.body;
|
|
3437
|
-
return throwDefaultError({
|
|
3438
|
-
output,
|
|
3439
|
-
parsedBody,
|
|
3440
|
-
errorCode
|
|
3441
|
-
});
|
|
3442
|
-
}
|
|
3443
|
-
}, "de_GetImagePipelineCommandError");
|
|
3444
2367
|
var de_GetImagePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3445
2368
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3446
|
-
return
|
|
2369
|
+
return de_CommandError(output, context);
|
|
3447
2370
|
}
|
|
3448
2371
|
const contents = (0, import_smithy_client.map)({
|
|
3449
2372
|
$metadata: deserializeMetadata(output)
|
|
@@ -3456,43 +2379,9 @@ var de_GetImagePolicyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3456
2379
|
Object.assign(contents, doc);
|
|
3457
2380
|
return contents;
|
|
3458
2381
|
}, "de_GetImagePolicyCommand");
|
|
3459
|
-
var de_GetImagePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3460
|
-
const parsedOutput = {
|
|
3461
|
-
...output,
|
|
3462
|
-
body: await parseErrorBody(output.body, context)
|
|
3463
|
-
};
|
|
3464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3465
|
-
switch (errorCode) {
|
|
3466
|
-
case "CallRateLimitExceededException":
|
|
3467
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3468
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3469
|
-
case "ForbiddenException":
|
|
3470
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3471
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3472
|
-
case "InvalidRequestException":
|
|
3473
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3474
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3475
|
-
case "ResourceNotFoundException":
|
|
3476
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
3477
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3478
|
-
case "ServiceException":
|
|
3479
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3480
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3481
|
-
case "ServiceUnavailableException":
|
|
3482
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3483
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3484
|
-
default:
|
|
3485
|
-
const parsedBody = parsedOutput.body;
|
|
3486
|
-
return throwDefaultError({
|
|
3487
|
-
output,
|
|
3488
|
-
parsedBody,
|
|
3489
|
-
errorCode
|
|
3490
|
-
});
|
|
3491
|
-
}
|
|
3492
|
-
}, "de_GetImagePolicyCommandError");
|
|
3493
2382
|
var de_GetImageRecipeCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3494
2383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3495
|
-
return
|
|
2384
|
+
return de_CommandError(output, context);
|
|
3496
2385
|
}
|
|
3497
2386
|
const contents = (0, import_smithy_client.map)({
|
|
3498
2387
|
$metadata: deserializeMetadata(output)
|
|
@@ -3505,43 +2394,9 @@ var de_GetImageRecipeCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3505
2394
|
Object.assign(contents, doc);
|
|
3506
2395
|
return contents;
|
|
3507
2396
|
}, "de_GetImageRecipeCommand");
|
|
3508
|
-
var de_GetImageRecipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3509
|
-
const parsedOutput = {
|
|
3510
|
-
...output,
|
|
3511
|
-
body: await parseErrorBody(output.body, context)
|
|
3512
|
-
};
|
|
3513
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3514
|
-
switch (errorCode) {
|
|
3515
|
-
case "CallRateLimitExceededException":
|
|
3516
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3517
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3518
|
-
case "ClientException":
|
|
3519
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3520
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3521
|
-
case "ForbiddenException":
|
|
3522
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3523
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3524
|
-
case "InvalidRequestException":
|
|
3525
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3526
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3527
|
-
case "ServiceException":
|
|
3528
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3529
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3530
|
-
case "ServiceUnavailableException":
|
|
3531
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3532
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3533
|
-
default:
|
|
3534
|
-
const parsedBody = parsedOutput.body;
|
|
3535
|
-
return throwDefaultError({
|
|
3536
|
-
output,
|
|
3537
|
-
parsedBody,
|
|
3538
|
-
errorCode
|
|
3539
|
-
});
|
|
3540
|
-
}
|
|
3541
|
-
}, "de_GetImageRecipeCommandError");
|
|
3542
2397
|
var de_GetImageRecipePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3543
2398
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3544
|
-
return
|
|
2399
|
+
return de_CommandError(output, context);
|
|
3545
2400
|
}
|
|
3546
2401
|
const contents = (0, import_smithy_client.map)({
|
|
3547
2402
|
$metadata: deserializeMetadata(output)
|
|
@@ -3554,43 +2409,9 @@ var de_GetImageRecipePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3554
2409
|
Object.assign(contents, doc);
|
|
3555
2410
|
return contents;
|
|
3556
2411
|
}, "de_GetImageRecipePolicyCommand");
|
|
3557
|
-
var de_GetImageRecipePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3558
|
-
const parsedOutput = {
|
|
3559
|
-
...output,
|
|
3560
|
-
body: await parseErrorBody(output.body, context)
|
|
3561
|
-
};
|
|
3562
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3563
|
-
switch (errorCode) {
|
|
3564
|
-
case "CallRateLimitExceededException":
|
|
3565
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3566
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3567
|
-
case "ForbiddenException":
|
|
3568
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3569
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3570
|
-
case "InvalidRequestException":
|
|
3571
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3572
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3573
|
-
case "ResourceNotFoundException":
|
|
3574
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
3575
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3576
|
-
case "ServiceException":
|
|
3577
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3578
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3579
|
-
case "ServiceUnavailableException":
|
|
3580
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3581
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3582
|
-
default:
|
|
3583
|
-
const parsedBody = parsedOutput.body;
|
|
3584
|
-
return throwDefaultError({
|
|
3585
|
-
output,
|
|
3586
|
-
parsedBody,
|
|
3587
|
-
errorCode
|
|
3588
|
-
});
|
|
3589
|
-
}
|
|
3590
|
-
}, "de_GetImageRecipePolicyCommandError");
|
|
3591
2412
|
var de_GetInfrastructureConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3592
2413
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3593
|
-
return
|
|
2414
|
+
return de_CommandError(output, context);
|
|
3594
2415
|
}
|
|
3595
2416
|
const contents = (0, import_smithy_client.map)({
|
|
3596
2417
|
$metadata: deserializeMetadata(output)
|
|
@@ -3603,43 +2424,9 @@ var de_GetInfrastructureConfigurationCommand = /* @__PURE__ */ __name(async (out
|
|
|
3603
2424
|
Object.assign(contents, doc);
|
|
3604
2425
|
return contents;
|
|
3605
2426
|
}, "de_GetInfrastructureConfigurationCommand");
|
|
3606
|
-
var de_GetInfrastructureConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3607
|
-
const parsedOutput = {
|
|
3608
|
-
...output,
|
|
3609
|
-
body: await parseErrorBody(output.body, context)
|
|
3610
|
-
};
|
|
3611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3612
|
-
switch (errorCode) {
|
|
3613
|
-
case "CallRateLimitExceededException":
|
|
3614
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3615
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3616
|
-
case "ClientException":
|
|
3617
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3618
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3619
|
-
case "ForbiddenException":
|
|
3620
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3621
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3622
|
-
case "InvalidRequestException":
|
|
3623
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3624
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3625
|
-
case "ServiceException":
|
|
3626
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3627
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3628
|
-
case "ServiceUnavailableException":
|
|
3629
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3630
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3631
|
-
default:
|
|
3632
|
-
const parsedBody = parsedOutput.body;
|
|
3633
|
-
return throwDefaultError({
|
|
3634
|
-
output,
|
|
3635
|
-
parsedBody,
|
|
3636
|
-
errorCode
|
|
3637
|
-
});
|
|
3638
|
-
}
|
|
3639
|
-
}, "de_GetInfrastructureConfigurationCommandError");
|
|
3640
2427
|
var de_GetLifecycleExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3641
2428
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3642
|
-
return
|
|
2429
|
+
return de_CommandError(output, context);
|
|
3643
2430
|
}
|
|
3644
2431
|
const contents = (0, import_smithy_client.map)({
|
|
3645
2432
|
$metadata: deserializeMetadata(output)
|
|
@@ -3651,43 +2438,9 @@ var de_GetLifecycleExecutionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
3651
2438
|
Object.assign(contents, doc);
|
|
3652
2439
|
return contents;
|
|
3653
2440
|
}, "de_GetLifecycleExecutionCommand");
|
|
3654
|
-
var de_GetLifecycleExecutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3655
|
-
const parsedOutput = {
|
|
3656
|
-
...output,
|
|
3657
|
-
body: await parseErrorBody(output.body, context)
|
|
3658
|
-
};
|
|
3659
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3660
|
-
switch (errorCode) {
|
|
3661
|
-
case "CallRateLimitExceededException":
|
|
3662
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3663
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3664
|
-
case "ClientException":
|
|
3665
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3666
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3667
|
-
case "ForbiddenException":
|
|
3668
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3669
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3670
|
-
case "InvalidRequestException":
|
|
3671
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3672
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3673
|
-
case "ServiceException":
|
|
3674
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3675
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3676
|
-
case "ServiceUnavailableException":
|
|
3677
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3678
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3679
|
-
default:
|
|
3680
|
-
const parsedBody = parsedOutput.body;
|
|
3681
|
-
return throwDefaultError({
|
|
3682
|
-
output,
|
|
3683
|
-
parsedBody,
|
|
3684
|
-
errorCode
|
|
3685
|
-
});
|
|
3686
|
-
}
|
|
3687
|
-
}, "de_GetLifecycleExecutionCommandError");
|
|
3688
2441
|
var de_GetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3689
2442
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3690
|
-
return
|
|
2443
|
+
return de_CommandError(output, context);
|
|
3691
2444
|
}
|
|
3692
2445
|
const contents = (0, import_smithy_client.map)({
|
|
3693
2446
|
$metadata: deserializeMetadata(output)
|
|
@@ -3699,43 +2452,9 @@ var de_GetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
3699
2452
|
Object.assign(contents, doc);
|
|
3700
2453
|
return contents;
|
|
3701
2454
|
}, "de_GetLifecyclePolicyCommand");
|
|
3702
|
-
var de_GetLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3703
|
-
const parsedOutput = {
|
|
3704
|
-
...output,
|
|
3705
|
-
body: await parseErrorBody(output.body, context)
|
|
3706
|
-
};
|
|
3707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3708
|
-
switch (errorCode) {
|
|
3709
|
-
case "CallRateLimitExceededException":
|
|
3710
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3711
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3712
|
-
case "ClientException":
|
|
3713
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3714
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3715
|
-
case "ForbiddenException":
|
|
3716
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3717
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3718
|
-
case "InvalidRequestException":
|
|
3719
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3720
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3721
|
-
case "ServiceException":
|
|
3722
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3723
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3724
|
-
case "ServiceUnavailableException":
|
|
3725
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3726
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3727
|
-
default:
|
|
3728
|
-
const parsedBody = parsedOutput.body;
|
|
3729
|
-
return throwDefaultError({
|
|
3730
|
-
output,
|
|
3731
|
-
parsedBody,
|
|
3732
|
-
errorCode
|
|
3733
|
-
});
|
|
3734
|
-
}
|
|
3735
|
-
}, "de_GetLifecyclePolicyCommandError");
|
|
3736
2455
|
var de_GetWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3737
2456
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3738
|
-
return
|
|
2457
|
+
return de_CommandError(output, context);
|
|
3739
2458
|
}
|
|
3740
2459
|
const contents = (0, import_smithy_client.map)({
|
|
3741
2460
|
$metadata: deserializeMetadata(output)
|
|
@@ -3747,43 +2466,9 @@ var de_GetWorkflowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3747
2466
|
Object.assign(contents, doc);
|
|
3748
2467
|
return contents;
|
|
3749
2468
|
}, "de_GetWorkflowCommand");
|
|
3750
|
-
var de_GetWorkflowCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3751
|
-
const parsedOutput = {
|
|
3752
|
-
...output,
|
|
3753
|
-
body: await parseErrorBody(output.body, context)
|
|
3754
|
-
};
|
|
3755
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3756
|
-
switch (errorCode) {
|
|
3757
|
-
case "CallRateLimitExceededException":
|
|
3758
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3759
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3760
|
-
case "ClientException":
|
|
3761
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3762
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3763
|
-
case "ForbiddenException":
|
|
3764
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3765
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3766
|
-
case "InvalidRequestException":
|
|
3767
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3768
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3769
|
-
case "ServiceException":
|
|
3770
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3771
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3772
|
-
case "ServiceUnavailableException":
|
|
3773
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3774
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3775
|
-
default:
|
|
3776
|
-
const parsedBody = parsedOutput.body;
|
|
3777
|
-
return throwDefaultError({
|
|
3778
|
-
output,
|
|
3779
|
-
parsedBody,
|
|
3780
|
-
errorCode
|
|
3781
|
-
});
|
|
3782
|
-
}
|
|
3783
|
-
}, "de_GetWorkflowCommandError");
|
|
3784
2469
|
var de_GetWorkflowExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3785
2470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3786
|
-
return
|
|
2471
|
+
return de_CommandError(output, context);
|
|
3787
2472
|
}
|
|
3788
2473
|
const contents = (0, import_smithy_client.map)({
|
|
3789
2474
|
$metadata: deserializeMetadata(output)
|
|
@@ -3808,43 +2493,9 @@ var de_GetWorkflowExecutionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3808
2493
|
Object.assign(contents, doc);
|
|
3809
2494
|
return contents;
|
|
3810
2495
|
}, "de_GetWorkflowExecutionCommand");
|
|
3811
|
-
var de_GetWorkflowExecutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3812
|
-
const parsedOutput = {
|
|
3813
|
-
...output,
|
|
3814
|
-
body: await parseErrorBody(output.body, context)
|
|
3815
|
-
};
|
|
3816
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3817
|
-
switch (errorCode) {
|
|
3818
|
-
case "CallRateLimitExceededException":
|
|
3819
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3820
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3821
|
-
case "ClientException":
|
|
3822
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3823
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3824
|
-
case "ForbiddenException":
|
|
3825
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3826
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3827
|
-
case "InvalidRequestException":
|
|
3828
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3829
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3830
|
-
case "ServiceException":
|
|
3831
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3832
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3833
|
-
case "ServiceUnavailableException":
|
|
3834
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3835
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3836
|
-
default:
|
|
3837
|
-
const parsedBody = parsedOutput.body;
|
|
3838
|
-
return throwDefaultError({
|
|
3839
|
-
output,
|
|
3840
|
-
parsedBody,
|
|
3841
|
-
errorCode
|
|
3842
|
-
});
|
|
3843
|
-
}
|
|
3844
|
-
}, "de_GetWorkflowExecutionCommandError");
|
|
3845
2496
|
var de_GetWorkflowStepExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3846
2497
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3847
|
-
return
|
|
2498
|
+
return de_CommandError(output, context);
|
|
3848
2499
|
}
|
|
3849
2500
|
const contents = (0, import_smithy_client.map)({
|
|
3850
2501
|
$metadata: deserializeMetadata(output)
|
|
@@ -3872,43 +2523,9 @@ var de_GetWorkflowStepExecutionCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3872
2523
|
Object.assign(contents, doc);
|
|
3873
2524
|
return contents;
|
|
3874
2525
|
}, "de_GetWorkflowStepExecutionCommand");
|
|
3875
|
-
var de_GetWorkflowStepExecutionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3876
|
-
const parsedOutput = {
|
|
3877
|
-
...output,
|
|
3878
|
-
body: await parseErrorBody(output.body, context)
|
|
3879
|
-
};
|
|
3880
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3881
|
-
switch (errorCode) {
|
|
3882
|
-
case "CallRateLimitExceededException":
|
|
3883
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3884
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3885
|
-
case "ClientException":
|
|
3886
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3887
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3888
|
-
case "ForbiddenException":
|
|
3889
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3890
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3891
|
-
case "InvalidRequestException":
|
|
3892
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3893
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3894
|
-
case "ServiceException":
|
|
3895
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3896
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3897
|
-
case "ServiceUnavailableException":
|
|
3898
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3899
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3900
|
-
default:
|
|
3901
|
-
const parsedBody = parsedOutput.body;
|
|
3902
|
-
return throwDefaultError({
|
|
3903
|
-
output,
|
|
3904
|
-
parsedBody,
|
|
3905
|
-
errorCode
|
|
3906
|
-
});
|
|
3907
|
-
}
|
|
3908
|
-
}, "de_GetWorkflowStepExecutionCommandError");
|
|
3909
2526
|
var de_ImportComponentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3910
2527
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3911
|
-
return
|
|
2528
|
+
return de_CommandError(output, context);
|
|
3912
2529
|
}
|
|
3913
2530
|
const contents = (0, import_smithy_client.map)({
|
|
3914
2531
|
$metadata: deserializeMetadata(output)
|
|
@@ -3922,55 +2539,9 @@ var de_ImportComponentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3922
2539
|
Object.assign(contents, doc);
|
|
3923
2540
|
return contents;
|
|
3924
2541
|
}, "de_ImportComponentCommand");
|
|
3925
|
-
var de_ImportComponentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3926
|
-
const parsedOutput = {
|
|
3927
|
-
...output,
|
|
3928
|
-
body: await parseErrorBody(output.body, context)
|
|
3929
|
-
};
|
|
3930
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3931
|
-
switch (errorCode) {
|
|
3932
|
-
case "CallRateLimitExceededException":
|
|
3933
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
3934
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
3935
|
-
case "ClientException":
|
|
3936
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3937
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3938
|
-
case "ForbiddenException":
|
|
3939
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
3940
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
3941
|
-
case "IdempotentParameterMismatchException":
|
|
3942
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
3943
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
3944
|
-
case "InvalidParameterCombinationException":
|
|
3945
|
-
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
3946
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3947
|
-
case "InvalidRequestException":
|
|
3948
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
3949
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
3950
|
-
case "InvalidVersionNumberException":
|
|
3951
|
-
case "com.amazonaws.imagebuilder#InvalidVersionNumberException":
|
|
3952
|
-
throw await de_InvalidVersionNumberExceptionRes(parsedOutput, context);
|
|
3953
|
-
case "ResourceInUseException":
|
|
3954
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
3955
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
3956
|
-
case "ServiceException":
|
|
3957
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3958
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
3959
|
-
case "ServiceUnavailableException":
|
|
3960
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
3961
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3962
|
-
default:
|
|
3963
|
-
const parsedBody = parsedOutput.body;
|
|
3964
|
-
return throwDefaultError({
|
|
3965
|
-
output,
|
|
3966
|
-
parsedBody,
|
|
3967
|
-
errorCode
|
|
3968
|
-
});
|
|
3969
|
-
}
|
|
3970
|
-
}, "de_ImportComponentCommandError");
|
|
3971
2542
|
var de_ImportVmImageCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3972
2543
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3973
|
-
return
|
|
2544
|
+
return de_CommandError(output, context);
|
|
3974
2545
|
}
|
|
3975
2546
|
const contents = (0, import_smithy_client.map)({
|
|
3976
2547
|
$metadata: deserializeMetadata(output)
|
|
@@ -3984,34 +2555,9 @@ var de_ImportVmImageCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3984
2555
|
Object.assign(contents, doc);
|
|
3985
2556
|
return contents;
|
|
3986
2557
|
}, "de_ImportVmImageCommand");
|
|
3987
|
-
var de_ImportVmImageCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3988
|
-
const parsedOutput = {
|
|
3989
|
-
...output,
|
|
3990
|
-
body: await parseErrorBody(output.body, context)
|
|
3991
|
-
};
|
|
3992
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3993
|
-
switch (errorCode) {
|
|
3994
|
-
case "ClientException":
|
|
3995
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
3996
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
3997
|
-
case "ServiceException":
|
|
3998
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
3999
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4000
|
-
case "ServiceUnavailableException":
|
|
4001
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4002
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4003
|
-
default:
|
|
4004
|
-
const parsedBody = parsedOutput.body;
|
|
4005
|
-
return throwDefaultError({
|
|
4006
|
-
output,
|
|
4007
|
-
parsedBody,
|
|
4008
|
-
errorCode
|
|
4009
|
-
});
|
|
4010
|
-
}
|
|
4011
|
-
}, "de_ImportVmImageCommandError");
|
|
4012
2558
|
var de_ListComponentBuildVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4013
2559
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4014
|
-
return
|
|
2560
|
+
return de_CommandError(output, context);
|
|
4015
2561
|
}
|
|
4016
2562
|
const contents = (0, import_smithy_client.map)({
|
|
4017
2563
|
$metadata: deserializeMetadata(output)
|
|
@@ -4025,46 +2571,9 @@ var de_ListComponentBuildVersionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4025
2571
|
Object.assign(contents, doc);
|
|
4026
2572
|
return contents;
|
|
4027
2573
|
}, "de_ListComponentBuildVersionsCommand");
|
|
4028
|
-
var de_ListComponentBuildVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4029
|
-
const parsedOutput = {
|
|
4030
|
-
...output,
|
|
4031
|
-
body: await parseErrorBody(output.body, context)
|
|
4032
|
-
};
|
|
4033
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4034
|
-
switch (errorCode) {
|
|
4035
|
-
case "CallRateLimitExceededException":
|
|
4036
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4037
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4038
|
-
case "ClientException":
|
|
4039
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4040
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4041
|
-
case "ForbiddenException":
|
|
4042
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4043
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4044
|
-
case "InvalidPaginationTokenException":
|
|
4045
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4046
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4047
|
-
case "InvalidRequestException":
|
|
4048
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4049
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4050
|
-
case "ServiceException":
|
|
4051
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4052
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4053
|
-
case "ServiceUnavailableException":
|
|
4054
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4055
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4056
|
-
default:
|
|
4057
|
-
const parsedBody = parsedOutput.body;
|
|
4058
|
-
return throwDefaultError({
|
|
4059
|
-
output,
|
|
4060
|
-
parsedBody,
|
|
4061
|
-
errorCode
|
|
4062
|
-
});
|
|
4063
|
-
}
|
|
4064
|
-
}, "de_ListComponentBuildVersionsCommandError");
|
|
4065
2574
|
var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4066
2575
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4067
|
-
return
|
|
2576
|
+
return de_CommandError(output, context);
|
|
4068
2577
|
}
|
|
4069
2578
|
const contents = (0, import_smithy_client.map)({
|
|
4070
2579
|
$metadata: deserializeMetadata(output)
|
|
@@ -4078,46 +2587,9 @@ var de_ListComponentsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
4078
2587
|
Object.assign(contents, doc);
|
|
4079
2588
|
return contents;
|
|
4080
2589
|
}, "de_ListComponentsCommand");
|
|
4081
|
-
var de_ListComponentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4082
|
-
const parsedOutput = {
|
|
4083
|
-
...output,
|
|
4084
|
-
body: await parseErrorBody(output.body, context)
|
|
4085
|
-
};
|
|
4086
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4087
|
-
switch (errorCode) {
|
|
4088
|
-
case "CallRateLimitExceededException":
|
|
4089
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4090
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4091
|
-
case "ClientException":
|
|
4092
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4093
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4094
|
-
case "ForbiddenException":
|
|
4095
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4096
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4097
|
-
case "InvalidPaginationTokenException":
|
|
4098
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4099
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4100
|
-
case "InvalidRequestException":
|
|
4101
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4102
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4103
|
-
case "ServiceException":
|
|
4104
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4105
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4106
|
-
case "ServiceUnavailableException":
|
|
4107
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4108
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4109
|
-
default:
|
|
4110
|
-
const parsedBody = parsedOutput.body;
|
|
4111
|
-
return throwDefaultError({
|
|
4112
|
-
output,
|
|
4113
|
-
parsedBody,
|
|
4114
|
-
errorCode
|
|
4115
|
-
});
|
|
4116
|
-
}
|
|
4117
|
-
}, "de_ListComponentsCommandError");
|
|
4118
2590
|
var de_ListContainerRecipesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4119
2591
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4120
|
-
return
|
|
2592
|
+
return de_CommandError(output, context);
|
|
4121
2593
|
}
|
|
4122
2594
|
const contents = (0, import_smithy_client.map)({
|
|
4123
2595
|
$metadata: deserializeMetadata(output)
|
|
@@ -4131,46 +2603,9 @@ var de_ListContainerRecipesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
4131
2603
|
Object.assign(contents, doc);
|
|
4132
2604
|
return contents;
|
|
4133
2605
|
}, "de_ListContainerRecipesCommand");
|
|
4134
|
-
var de_ListContainerRecipesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4135
|
-
const parsedOutput = {
|
|
4136
|
-
...output,
|
|
4137
|
-
body: await parseErrorBody(output.body, context)
|
|
4138
|
-
};
|
|
4139
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4140
|
-
switch (errorCode) {
|
|
4141
|
-
case "CallRateLimitExceededException":
|
|
4142
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4143
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4144
|
-
case "ClientException":
|
|
4145
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4146
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4147
|
-
case "ForbiddenException":
|
|
4148
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4149
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4150
|
-
case "InvalidPaginationTokenException":
|
|
4151
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4152
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4153
|
-
case "InvalidRequestException":
|
|
4154
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4155
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4156
|
-
case "ServiceException":
|
|
4157
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4158
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4159
|
-
case "ServiceUnavailableException":
|
|
4160
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4161
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4162
|
-
default:
|
|
4163
|
-
const parsedBody = parsedOutput.body;
|
|
4164
|
-
return throwDefaultError({
|
|
4165
|
-
output,
|
|
4166
|
-
parsedBody,
|
|
4167
|
-
errorCode
|
|
4168
|
-
});
|
|
4169
|
-
}
|
|
4170
|
-
}, "de_ListContainerRecipesCommandError");
|
|
4171
2606
|
var de_ListDistributionConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4172
2607
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4173
|
-
return
|
|
2608
|
+
return de_CommandError(output, context);
|
|
4174
2609
|
}
|
|
4175
2610
|
const contents = (0, import_smithy_client.map)({
|
|
4176
2611
|
$metadata: deserializeMetadata(output)
|
|
@@ -4184,46 +2619,9 @@ var de_ListDistributionConfigurationsCommand = /* @__PURE__ */ __name(async (out
|
|
|
4184
2619
|
Object.assign(contents, doc);
|
|
4185
2620
|
return contents;
|
|
4186
2621
|
}, "de_ListDistributionConfigurationsCommand");
|
|
4187
|
-
var de_ListDistributionConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4188
|
-
const parsedOutput = {
|
|
4189
|
-
...output,
|
|
4190
|
-
body: await parseErrorBody(output.body, context)
|
|
4191
|
-
};
|
|
4192
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4193
|
-
switch (errorCode) {
|
|
4194
|
-
case "CallRateLimitExceededException":
|
|
4195
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4196
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4197
|
-
case "ClientException":
|
|
4198
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4199
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4200
|
-
case "ForbiddenException":
|
|
4201
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4202
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4203
|
-
case "InvalidPaginationTokenException":
|
|
4204
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4205
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4206
|
-
case "InvalidRequestException":
|
|
4207
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4208
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4209
|
-
case "ServiceException":
|
|
4210
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4211
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4212
|
-
case "ServiceUnavailableException":
|
|
4213
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4214
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4215
|
-
default:
|
|
4216
|
-
const parsedBody = parsedOutput.body;
|
|
4217
|
-
return throwDefaultError({
|
|
4218
|
-
output,
|
|
4219
|
-
parsedBody,
|
|
4220
|
-
errorCode
|
|
4221
|
-
});
|
|
4222
|
-
}
|
|
4223
|
-
}, "de_ListDistributionConfigurationsCommandError");
|
|
4224
2622
|
var de_ListImageBuildVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4225
2623
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4226
|
-
return
|
|
2624
|
+
return de_CommandError(output, context);
|
|
4227
2625
|
}
|
|
4228
2626
|
const contents = (0, import_smithy_client.map)({
|
|
4229
2627
|
$metadata: deserializeMetadata(output)
|
|
@@ -4237,46 +2635,9 @@ var de_ListImageBuildVersionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
4237
2635
|
Object.assign(contents, doc);
|
|
4238
2636
|
return contents;
|
|
4239
2637
|
}, "de_ListImageBuildVersionsCommand");
|
|
4240
|
-
var de_ListImageBuildVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4241
|
-
const parsedOutput = {
|
|
4242
|
-
...output,
|
|
4243
|
-
body: await parseErrorBody(output.body, context)
|
|
4244
|
-
};
|
|
4245
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4246
|
-
switch (errorCode) {
|
|
4247
|
-
case "CallRateLimitExceededException":
|
|
4248
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4249
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4250
|
-
case "ClientException":
|
|
4251
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4252
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4253
|
-
case "ForbiddenException":
|
|
4254
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4255
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4256
|
-
case "InvalidPaginationTokenException":
|
|
4257
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4258
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4259
|
-
case "InvalidRequestException":
|
|
4260
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4261
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4262
|
-
case "ServiceException":
|
|
4263
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4264
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4265
|
-
case "ServiceUnavailableException":
|
|
4266
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4267
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4268
|
-
default:
|
|
4269
|
-
const parsedBody = parsedOutput.body;
|
|
4270
|
-
return throwDefaultError({
|
|
4271
|
-
output,
|
|
4272
|
-
parsedBody,
|
|
4273
|
-
errorCode
|
|
4274
|
-
});
|
|
4275
|
-
}
|
|
4276
|
-
}, "de_ListImageBuildVersionsCommandError");
|
|
4277
2638
|
var de_ListImagePackagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4278
2639
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4279
|
-
return
|
|
2640
|
+
return de_CommandError(output, context);
|
|
4280
2641
|
}
|
|
4281
2642
|
const contents = (0, import_smithy_client.map)({
|
|
4282
2643
|
$metadata: deserializeMetadata(output)
|
|
@@ -4290,49 +2651,9 @@ var de_ListImagePackagesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4290
2651
|
Object.assign(contents, doc);
|
|
4291
2652
|
return contents;
|
|
4292
2653
|
}, "de_ListImagePackagesCommand");
|
|
4293
|
-
var de_ListImagePackagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4294
|
-
const parsedOutput = {
|
|
4295
|
-
...output,
|
|
4296
|
-
body: await parseErrorBody(output.body, context)
|
|
4297
|
-
};
|
|
4298
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4299
|
-
switch (errorCode) {
|
|
4300
|
-
case "CallRateLimitExceededException":
|
|
4301
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4302
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4303
|
-
case "ClientException":
|
|
4304
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4305
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4306
|
-
case "ForbiddenException":
|
|
4307
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4308
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4309
|
-
case "InvalidPaginationTokenException":
|
|
4310
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4311
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4312
|
-
case "InvalidRequestException":
|
|
4313
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4314
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4315
|
-
case "ResourceNotFoundException":
|
|
4316
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4317
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4318
|
-
case "ServiceException":
|
|
4319
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4320
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4321
|
-
case "ServiceUnavailableException":
|
|
4322
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4323
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4324
|
-
default:
|
|
4325
|
-
const parsedBody = parsedOutput.body;
|
|
4326
|
-
return throwDefaultError({
|
|
4327
|
-
output,
|
|
4328
|
-
parsedBody,
|
|
4329
|
-
errorCode
|
|
4330
|
-
});
|
|
4331
|
-
}
|
|
4332
|
-
}, "de_ListImagePackagesCommandError");
|
|
4333
2654
|
var de_ListImagePipelineImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4334
2655
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4335
|
-
return
|
|
2656
|
+
return de_CommandError(output, context);
|
|
4336
2657
|
}
|
|
4337
2658
|
const contents = (0, import_smithy_client.map)({
|
|
4338
2659
|
$metadata: deserializeMetadata(output)
|
|
@@ -4346,49 +2667,9 @@ var de_ListImagePipelineImagesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4346
2667
|
Object.assign(contents, doc);
|
|
4347
2668
|
return contents;
|
|
4348
2669
|
}, "de_ListImagePipelineImagesCommand");
|
|
4349
|
-
var de_ListImagePipelineImagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4350
|
-
const parsedOutput = {
|
|
4351
|
-
...output,
|
|
4352
|
-
body: await parseErrorBody(output.body, context)
|
|
4353
|
-
};
|
|
4354
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4355
|
-
switch (errorCode) {
|
|
4356
|
-
case "CallRateLimitExceededException":
|
|
4357
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4358
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4359
|
-
case "ClientException":
|
|
4360
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4361
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4362
|
-
case "ForbiddenException":
|
|
4363
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4364
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4365
|
-
case "InvalidPaginationTokenException":
|
|
4366
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4367
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4368
|
-
case "InvalidRequestException":
|
|
4369
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4370
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4371
|
-
case "ResourceNotFoundException":
|
|
4372
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4373
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4374
|
-
case "ServiceException":
|
|
4375
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4376
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4377
|
-
case "ServiceUnavailableException":
|
|
4378
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4379
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4380
|
-
default:
|
|
4381
|
-
const parsedBody = parsedOutput.body;
|
|
4382
|
-
return throwDefaultError({
|
|
4383
|
-
output,
|
|
4384
|
-
parsedBody,
|
|
4385
|
-
errorCode
|
|
4386
|
-
});
|
|
4387
|
-
}
|
|
4388
|
-
}, "de_ListImagePipelineImagesCommandError");
|
|
4389
2670
|
var de_ListImagePipelinesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4390
2671
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4391
|
-
return
|
|
2672
|
+
return de_CommandError(output, context);
|
|
4392
2673
|
}
|
|
4393
2674
|
const contents = (0, import_smithy_client.map)({
|
|
4394
2675
|
$metadata: deserializeMetadata(output)
|
|
@@ -4402,46 +2683,9 @@ var de_ListImagePipelinesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
4402
2683
|
Object.assign(contents, doc);
|
|
4403
2684
|
return contents;
|
|
4404
2685
|
}, "de_ListImagePipelinesCommand");
|
|
4405
|
-
var de_ListImagePipelinesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4406
|
-
const parsedOutput = {
|
|
4407
|
-
...output,
|
|
4408
|
-
body: await parseErrorBody(output.body, context)
|
|
4409
|
-
};
|
|
4410
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4411
|
-
switch (errorCode) {
|
|
4412
|
-
case "CallRateLimitExceededException":
|
|
4413
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4414
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4415
|
-
case "ClientException":
|
|
4416
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4417
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4418
|
-
case "ForbiddenException":
|
|
4419
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4420
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4421
|
-
case "InvalidPaginationTokenException":
|
|
4422
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4423
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4424
|
-
case "InvalidRequestException":
|
|
4425
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4426
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4427
|
-
case "ServiceException":
|
|
4428
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4429
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4430
|
-
case "ServiceUnavailableException":
|
|
4431
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4432
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4433
|
-
default:
|
|
4434
|
-
const parsedBody = parsedOutput.body;
|
|
4435
|
-
return throwDefaultError({
|
|
4436
|
-
output,
|
|
4437
|
-
parsedBody,
|
|
4438
|
-
errorCode
|
|
4439
|
-
});
|
|
4440
|
-
}
|
|
4441
|
-
}, "de_ListImagePipelinesCommandError");
|
|
4442
2686
|
var de_ListImageRecipesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4443
2687
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4444
|
-
return
|
|
2688
|
+
return de_CommandError(output, context);
|
|
4445
2689
|
}
|
|
4446
2690
|
const contents = (0, import_smithy_client.map)({
|
|
4447
2691
|
$metadata: deserializeMetadata(output)
|
|
@@ -4455,46 +2699,9 @@ var de_ListImageRecipesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4455
2699
|
Object.assign(contents, doc);
|
|
4456
2700
|
return contents;
|
|
4457
2701
|
}, "de_ListImageRecipesCommand");
|
|
4458
|
-
var de_ListImageRecipesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4459
|
-
const parsedOutput = {
|
|
4460
|
-
...output,
|
|
4461
|
-
body: await parseErrorBody(output.body, context)
|
|
4462
|
-
};
|
|
4463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4464
|
-
switch (errorCode) {
|
|
4465
|
-
case "CallRateLimitExceededException":
|
|
4466
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4467
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4468
|
-
case "ClientException":
|
|
4469
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4470
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4471
|
-
case "ForbiddenException":
|
|
4472
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4473
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4474
|
-
case "InvalidPaginationTokenException":
|
|
4475
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4476
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4477
|
-
case "InvalidRequestException":
|
|
4478
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4479
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4480
|
-
case "ServiceException":
|
|
4481
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4482
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4483
|
-
case "ServiceUnavailableException":
|
|
4484
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4485
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4486
|
-
default:
|
|
4487
|
-
const parsedBody = parsedOutput.body;
|
|
4488
|
-
return throwDefaultError({
|
|
4489
|
-
output,
|
|
4490
|
-
parsedBody,
|
|
4491
|
-
errorCode
|
|
4492
|
-
});
|
|
4493
|
-
}
|
|
4494
|
-
}, "de_ListImageRecipesCommandError");
|
|
4495
2702
|
var de_ListImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4496
2703
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4497
|
-
return
|
|
2704
|
+
return de_CommandError(output, context);
|
|
4498
2705
|
}
|
|
4499
2706
|
const contents = (0, import_smithy_client.map)({
|
|
4500
2707
|
$metadata: deserializeMetadata(output)
|
|
@@ -4508,46 +2715,9 @@ var de_ListImagesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4508
2715
|
Object.assign(contents, doc);
|
|
4509
2716
|
return contents;
|
|
4510
2717
|
}, "de_ListImagesCommand");
|
|
4511
|
-
var de_ListImagesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4512
|
-
const parsedOutput = {
|
|
4513
|
-
...output,
|
|
4514
|
-
body: await parseErrorBody(output.body, context)
|
|
4515
|
-
};
|
|
4516
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4517
|
-
switch (errorCode) {
|
|
4518
|
-
case "CallRateLimitExceededException":
|
|
4519
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4520
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4521
|
-
case "ClientException":
|
|
4522
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4523
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4524
|
-
case "ForbiddenException":
|
|
4525
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4526
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4527
|
-
case "InvalidPaginationTokenException":
|
|
4528
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4529
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4530
|
-
case "InvalidRequestException":
|
|
4531
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4532
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4533
|
-
case "ServiceException":
|
|
4534
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4535
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4536
|
-
case "ServiceUnavailableException":
|
|
4537
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4538
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4539
|
-
default:
|
|
4540
|
-
const parsedBody = parsedOutput.body;
|
|
4541
|
-
return throwDefaultError({
|
|
4542
|
-
output,
|
|
4543
|
-
parsedBody,
|
|
4544
|
-
errorCode
|
|
4545
|
-
});
|
|
4546
|
-
}
|
|
4547
|
-
}, "de_ListImagesCommandError");
|
|
4548
2718
|
var de_ListImageScanFindingAggregationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4549
2719
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4550
|
-
return
|
|
2720
|
+
return de_CommandError(output, context);
|
|
4551
2721
|
}
|
|
4552
2722
|
const contents = (0, import_smithy_client.map)({
|
|
4553
2723
|
$metadata: deserializeMetadata(output)
|
|
@@ -4562,46 +2732,9 @@ var de_ListImageScanFindingAggregationsCommand = /* @__PURE__ */ __name(async (o
|
|
|
4562
2732
|
Object.assign(contents, doc);
|
|
4563
2733
|
return contents;
|
|
4564
2734
|
}, "de_ListImageScanFindingAggregationsCommand");
|
|
4565
|
-
var de_ListImageScanFindingAggregationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4566
|
-
const parsedOutput = {
|
|
4567
|
-
...output,
|
|
4568
|
-
body: await parseErrorBody(output.body, context)
|
|
4569
|
-
};
|
|
4570
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4571
|
-
switch (errorCode) {
|
|
4572
|
-
case "CallRateLimitExceededException":
|
|
4573
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4574
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4575
|
-
case "ClientException":
|
|
4576
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4577
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4578
|
-
case "ForbiddenException":
|
|
4579
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4580
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4581
|
-
case "InvalidPaginationTokenException":
|
|
4582
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4583
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4584
|
-
case "InvalidRequestException":
|
|
4585
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4586
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4587
|
-
case "ServiceException":
|
|
4588
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4589
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4590
|
-
case "ServiceUnavailableException":
|
|
4591
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4592
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4593
|
-
default:
|
|
4594
|
-
const parsedBody = parsedOutput.body;
|
|
4595
|
-
return throwDefaultError({
|
|
4596
|
-
output,
|
|
4597
|
-
parsedBody,
|
|
4598
|
-
errorCode
|
|
4599
|
-
});
|
|
4600
|
-
}
|
|
4601
|
-
}, "de_ListImageScanFindingAggregationsCommandError");
|
|
4602
2735
|
var de_ListImageScanFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4603
2736
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4604
|
-
return
|
|
2737
|
+
return de_CommandError(output, context);
|
|
4605
2738
|
}
|
|
4606
2739
|
const contents = (0, import_smithy_client.map)({
|
|
4607
2740
|
$metadata: deserializeMetadata(output)
|
|
@@ -4615,46 +2748,9 @@ var de_ListImageScanFindingsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4615
2748
|
Object.assign(contents, doc);
|
|
4616
2749
|
return contents;
|
|
4617
2750
|
}, "de_ListImageScanFindingsCommand");
|
|
4618
|
-
var de_ListImageScanFindingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4619
|
-
const parsedOutput = {
|
|
4620
|
-
...output,
|
|
4621
|
-
body: await parseErrorBody(output.body, context)
|
|
4622
|
-
};
|
|
4623
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4624
|
-
switch (errorCode) {
|
|
4625
|
-
case "CallRateLimitExceededException":
|
|
4626
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4627
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4628
|
-
case "ClientException":
|
|
4629
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4630
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4631
|
-
case "ForbiddenException":
|
|
4632
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4633
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4634
|
-
case "InvalidPaginationTokenException":
|
|
4635
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4636
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4637
|
-
case "InvalidRequestException":
|
|
4638
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4639
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4640
|
-
case "ServiceException":
|
|
4641
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4642
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4643
|
-
case "ServiceUnavailableException":
|
|
4644
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4645
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4646
|
-
default:
|
|
4647
|
-
const parsedBody = parsedOutput.body;
|
|
4648
|
-
return throwDefaultError({
|
|
4649
|
-
output,
|
|
4650
|
-
parsedBody,
|
|
4651
|
-
errorCode
|
|
4652
|
-
});
|
|
4653
|
-
}
|
|
4654
|
-
}, "de_ListImageScanFindingsCommandError");
|
|
4655
2751
|
var de_ListInfrastructureConfigurationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4656
2752
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4657
|
-
return
|
|
2753
|
+
return de_CommandError(output, context);
|
|
4658
2754
|
}
|
|
4659
2755
|
const contents = (0, import_smithy_client.map)({
|
|
4660
2756
|
$metadata: deserializeMetadata(output)
|
|
@@ -4668,46 +2764,9 @@ var de_ListInfrastructureConfigurationsCommand = /* @__PURE__ */ __name(async (o
|
|
|
4668
2764
|
Object.assign(contents, doc);
|
|
4669
2765
|
return contents;
|
|
4670
2766
|
}, "de_ListInfrastructureConfigurationsCommand");
|
|
4671
|
-
var de_ListInfrastructureConfigurationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4672
|
-
const parsedOutput = {
|
|
4673
|
-
...output,
|
|
4674
|
-
body: await parseErrorBody(output.body, context)
|
|
4675
|
-
};
|
|
4676
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4677
|
-
switch (errorCode) {
|
|
4678
|
-
case "CallRateLimitExceededException":
|
|
4679
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4680
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4681
|
-
case "ClientException":
|
|
4682
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4683
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4684
|
-
case "ForbiddenException":
|
|
4685
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4686
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4687
|
-
case "InvalidPaginationTokenException":
|
|
4688
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4689
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4690
|
-
case "InvalidRequestException":
|
|
4691
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4692
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4693
|
-
case "ServiceException":
|
|
4694
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4695
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4696
|
-
case "ServiceUnavailableException":
|
|
4697
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4698
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4699
|
-
default:
|
|
4700
|
-
const parsedBody = parsedOutput.body;
|
|
4701
|
-
return throwDefaultError({
|
|
4702
|
-
output,
|
|
4703
|
-
parsedBody,
|
|
4704
|
-
errorCode
|
|
4705
|
-
});
|
|
4706
|
-
}
|
|
4707
|
-
}, "de_ListInfrastructureConfigurationsCommandError");
|
|
4708
2767
|
var de_ListLifecycleExecutionResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4709
2768
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4710
|
-
return
|
|
2769
|
+
return de_CommandError(output, context);
|
|
4711
2770
|
}
|
|
4712
2771
|
const contents = (0, import_smithy_client.map)({
|
|
4713
2772
|
$metadata: deserializeMetadata(output)
|
|
@@ -4722,46 +2781,9 @@ var de_ListLifecycleExecutionResourcesCommand = /* @__PURE__ */ __name(async (ou
|
|
|
4722
2781
|
Object.assign(contents, doc);
|
|
4723
2782
|
return contents;
|
|
4724
2783
|
}, "de_ListLifecycleExecutionResourcesCommand");
|
|
4725
|
-
var de_ListLifecycleExecutionResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4726
|
-
const parsedOutput = {
|
|
4727
|
-
...output,
|
|
4728
|
-
body: await parseErrorBody(output.body, context)
|
|
4729
|
-
};
|
|
4730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4731
|
-
switch (errorCode) {
|
|
4732
|
-
case "CallRateLimitExceededException":
|
|
4733
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4734
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4735
|
-
case "ClientException":
|
|
4736
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4737
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4738
|
-
case "ForbiddenException":
|
|
4739
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4740
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4741
|
-
case "InvalidPaginationTokenException":
|
|
4742
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4743
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4744
|
-
case "InvalidRequestException":
|
|
4745
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4746
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4747
|
-
case "ServiceException":
|
|
4748
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4749
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4750
|
-
case "ServiceUnavailableException":
|
|
4751
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4752
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4753
|
-
default:
|
|
4754
|
-
const parsedBody = parsedOutput.body;
|
|
4755
|
-
return throwDefaultError({
|
|
4756
|
-
output,
|
|
4757
|
-
parsedBody,
|
|
4758
|
-
errorCode
|
|
4759
|
-
});
|
|
4760
|
-
}
|
|
4761
|
-
}, "de_ListLifecycleExecutionResourcesCommandError");
|
|
4762
2784
|
var de_ListLifecycleExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4763
2785
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4764
|
-
return
|
|
2786
|
+
return de_CommandError(output, context);
|
|
4765
2787
|
}
|
|
4766
2788
|
const contents = (0, import_smithy_client.map)({
|
|
4767
2789
|
$metadata: deserializeMetadata(output)
|
|
@@ -4774,46 +2796,9 @@ var de_ListLifecycleExecutionsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
4774
2796
|
Object.assign(contents, doc);
|
|
4775
2797
|
return contents;
|
|
4776
2798
|
}, "de_ListLifecycleExecutionsCommand");
|
|
4777
|
-
var de_ListLifecycleExecutionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4778
|
-
const parsedOutput = {
|
|
4779
|
-
...output,
|
|
4780
|
-
body: await parseErrorBody(output.body, context)
|
|
4781
|
-
};
|
|
4782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4783
|
-
switch (errorCode) {
|
|
4784
|
-
case "CallRateLimitExceededException":
|
|
4785
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4786
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4787
|
-
case "ClientException":
|
|
4788
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4789
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4790
|
-
case "ForbiddenException":
|
|
4791
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4792
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4793
|
-
case "InvalidPaginationTokenException":
|
|
4794
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4795
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4796
|
-
case "InvalidRequestException":
|
|
4797
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4798
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4799
|
-
case "ServiceException":
|
|
4800
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4801
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4802
|
-
case "ServiceUnavailableException":
|
|
4803
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4804
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4805
|
-
default:
|
|
4806
|
-
const parsedBody = parsedOutput.body;
|
|
4807
|
-
return throwDefaultError({
|
|
4808
|
-
output,
|
|
4809
|
-
parsedBody,
|
|
4810
|
-
errorCode
|
|
4811
|
-
});
|
|
4812
|
-
}
|
|
4813
|
-
}, "de_ListLifecycleExecutionsCommandError");
|
|
4814
2799
|
var de_ListLifecyclePoliciesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4815
2800
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4816
|
-
return
|
|
2801
|
+
return de_CommandError(output, context);
|
|
4817
2802
|
}
|
|
4818
2803
|
const contents = (0, import_smithy_client.map)({
|
|
4819
2804
|
$metadata: deserializeMetadata(output)
|
|
@@ -4826,46 +2811,9 @@ var de_ListLifecyclePoliciesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
4826
2811
|
Object.assign(contents, doc);
|
|
4827
2812
|
return contents;
|
|
4828
2813
|
}, "de_ListLifecyclePoliciesCommand");
|
|
4829
|
-
var de_ListLifecyclePoliciesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4830
|
-
const parsedOutput = {
|
|
4831
|
-
...output,
|
|
4832
|
-
body: await parseErrorBody(output.body, context)
|
|
4833
|
-
};
|
|
4834
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4835
|
-
switch (errorCode) {
|
|
4836
|
-
case "CallRateLimitExceededException":
|
|
4837
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4838
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4839
|
-
case "ClientException":
|
|
4840
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4841
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4842
|
-
case "ForbiddenException":
|
|
4843
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4844
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4845
|
-
case "InvalidPaginationTokenException":
|
|
4846
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4847
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4848
|
-
case "InvalidRequestException":
|
|
4849
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4850
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4851
|
-
case "ServiceException":
|
|
4852
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4853
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4854
|
-
case "ServiceUnavailableException":
|
|
4855
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4856
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4857
|
-
default:
|
|
4858
|
-
const parsedBody = parsedOutput.body;
|
|
4859
|
-
return throwDefaultError({
|
|
4860
|
-
output,
|
|
4861
|
-
parsedBody,
|
|
4862
|
-
errorCode
|
|
4863
|
-
});
|
|
4864
|
-
}
|
|
4865
|
-
}, "de_ListLifecyclePoliciesCommandError");
|
|
4866
2814
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4867
2815
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4868
|
-
return
|
|
2816
|
+
return de_CommandError(output, context);
|
|
4869
2817
|
}
|
|
4870
2818
|
const contents = (0, import_smithy_client.map)({
|
|
4871
2819
|
$metadata: deserializeMetadata(output)
|
|
@@ -4877,34 +2825,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4877
2825
|
Object.assign(contents, doc);
|
|
4878
2826
|
return contents;
|
|
4879
2827
|
}, "de_ListTagsForResourceCommand");
|
|
4880
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4881
|
-
const parsedOutput = {
|
|
4882
|
-
...output,
|
|
4883
|
-
body: await parseErrorBody(output.body, context)
|
|
4884
|
-
};
|
|
4885
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4886
|
-
switch (errorCode) {
|
|
4887
|
-
case "InvalidParameterException":
|
|
4888
|
-
case "com.amazonaws.imagebuilder#InvalidParameterException":
|
|
4889
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
4890
|
-
case "ResourceNotFoundException":
|
|
4891
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
4892
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4893
|
-
case "ServiceException":
|
|
4894
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4895
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4896
|
-
default:
|
|
4897
|
-
const parsedBody = parsedOutput.body;
|
|
4898
|
-
return throwDefaultError({
|
|
4899
|
-
output,
|
|
4900
|
-
parsedBody,
|
|
4901
|
-
errorCode
|
|
4902
|
-
});
|
|
4903
|
-
}
|
|
4904
|
-
}, "de_ListTagsForResourceCommandError");
|
|
4905
2828
|
var de_ListWaitingWorkflowStepsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4906
2829
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4907
|
-
return
|
|
2830
|
+
return de_CommandError(output, context);
|
|
4908
2831
|
}
|
|
4909
2832
|
const contents = (0, import_smithy_client.map)({
|
|
4910
2833
|
$metadata: deserializeMetadata(output)
|
|
@@ -4917,46 +2840,9 @@ var de_ListWaitingWorkflowStepsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
4917
2840
|
Object.assign(contents, doc);
|
|
4918
2841
|
return contents;
|
|
4919
2842
|
}, "de_ListWaitingWorkflowStepsCommand");
|
|
4920
|
-
var de_ListWaitingWorkflowStepsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4921
|
-
const parsedOutput = {
|
|
4922
|
-
...output,
|
|
4923
|
-
body: await parseErrorBody(output.body, context)
|
|
4924
|
-
};
|
|
4925
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4926
|
-
switch (errorCode) {
|
|
4927
|
-
case "CallRateLimitExceededException":
|
|
4928
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4929
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4930
|
-
case "ClientException":
|
|
4931
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4932
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4933
|
-
case "ForbiddenException":
|
|
4934
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4935
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4936
|
-
case "InvalidPaginationTokenException":
|
|
4937
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4938
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4939
|
-
case "InvalidRequestException":
|
|
4940
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4941
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4942
|
-
case "ServiceException":
|
|
4943
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4944
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4945
|
-
case "ServiceUnavailableException":
|
|
4946
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4947
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
4948
|
-
default:
|
|
4949
|
-
const parsedBody = parsedOutput.body;
|
|
4950
|
-
return throwDefaultError({
|
|
4951
|
-
output,
|
|
4952
|
-
parsedBody,
|
|
4953
|
-
errorCode
|
|
4954
|
-
});
|
|
4955
|
-
}
|
|
4956
|
-
}, "de_ListWaitingWorkflowStepsCommandError");
|
|
4957
2843
|
var de_ListWorkflowBuildVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4958
2844
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4959
|
-
return
|
|
2845
|
+
return de_CommandError(output, context);
|
|
4960
2846
|
}
|
|
4961
2847
|
const contents = (0, import_smithy_client.map)({
|
|
4962
2848
|
$metadata: deserializeMetadata(output)
|
|
@@ -4969,46 +2855,9 @@ var de_ListWorkflowBuildVersionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4969
2855
|
Object.assign(contents, doc);
|
|
4970
2856
|
return contents;
|
|
4971
2857
|
}, "de_ListWorkflowBuildVersionsCommand");
|
|
4972
|
-
var de_ListWorkflowBuildVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4973
|
-
const parsedOutput = {
|
|
4974
|
-
...output,
|
|
4975
|
-
body: await parseErrorBody(output.body, context)
|
|
4976
|
-
};
|
|
4977
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4978
|
-
switch (errorCode) {
|
|
4979
|
-
case "CallRateLimitExceededException":
|
|
4980
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
4981
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
4982
|
-
case "ClientException":
|
|
4983
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
4984
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
4985
|
-
case "ForbiddenException":
|
|
4986
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
4987
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
4988
|
-
case "InvalidPaginationTokenException":
|
|
4989
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
4990
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
4991
|
-
case "InvalidRequestException":
|
|
4992
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
4993
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
4994
|
-
case "ServiceException":
|
|
4995
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
4996
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
4997
|
-
case "ServiceUnavailableException":
|
|
4998
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
4999
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5000
|
-
default:
|
|
5001
|
-
const parsedBody = parsedOutput.body;
|
|
5002
|
-
return throwDefaultError({
|
|
5003
|
-
output,
|
|
5004
|
-
parsedBody,
|
|
5005
|
-
errorCode
|
|
5006
|
-
});
|
|
5007
|
-
}
|
|
5008
|
-
}, "de_ListWorkflowBuildVersionsCommandError");
|
|
5009
2858
|
var de_ListWorkflowExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5010
2859
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5011
|
-
return
|
|
2860
|
+
return de_CommandError(output, context);
|
|
5012
2861
|
}
|
|
5013
2862
|
const contents = (0, import_smithy_client.map)({
|
|
5014
2863
|
$metadata: deserializeMetadata(output)
|
|
@@ -5024,46 +2873,9 @@ var de_ListWorkflowExecutionsCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
5024
2873
|
Object.assign(contents, doc);
|
|
5025
2874
|
return contents;
|
|
5026
2875
|
}, "de_ListWorkflowExecutionsCommand");
|
|
5027
|
-
var de_ListWorkflowExecutionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5028
|
-
const parsedOutput = {
|
|
5029
|
-
...output,
|
|
5030
|
-
body: await parseErrorBody(output.body, context)
|
|
5031
|
-
};
|
|
5032
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5033
|
-
switch (errorCode) {
|
|
5034
|
-
case "CallRateLimitExceededException":
|
|
5035
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5036
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5037
|
-
case "ClientException":
|
|
5038
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
5039
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5040
|
-
case "ForbiddenException":
|
|
5041
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5042
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5043
|
-
case "InvalidPaginationTokenException":
|
|
5044
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
5045
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
5046
|
-
case "InvalidRequestException":
|
|
5047
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5048
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5049
|
-
case "ServiceException":
|
|
5050
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5051
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5052
|
-
case "ServiceUnavailableException":
|
|
5053
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5054
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5055
|
-
default:
|
|
5056
|
-
const parsedBody = parsedOutput.body;
|
|
5057
|
-
return throwDefaultError({
|
|
5058
|
-
output,
|
|
5059
|
-
parsedBody,
|
|
5060
|
-
errorCode
|
|
5061
|
-
});
|
|
5062
|
-
}
|
|
5063
|
-
}, "de_ListWorkflowExecutionsCommandError");
|
|
5064
2876
|
var de_ListWorkflowsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5065
2877
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5066
|
-
return
|
|
2878
|
+
return de_CommandError(output, context);
|
|
5067
2879
|
}
|
|
5068
2880
|
const contents = (0, import_smithy_client.map)({
|
|
5069
2881
|
$metadata: deserializeMetadata(output)
|
|
@@ -5076,46 +2888,9 @@ var de_ListWorkflowsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5076
2888
|
Object.assign(contents, doc);
|
|
5077
2889
|
return contents;
|
|
5078
2890
|
}, "de_ListWorkflowsCommand");
|
|
5079
|
-
var de_ListWorkflowsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5080
|
-
const parsedOutput = {
|
|
5081
|
-
...output,
|
|
5082
|
-
body: await parseErrorBody(output.body, context)
|
|
5083
|
-
};
|
|
5084
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5085
|
-
switch (errorCode) {
|
|
5086
|
-
case "CallRateLimitExceededException":
|
|
5087
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5088
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5089
|
-
case "ClientException":
|
|
5090
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
5091
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5092
|
-
case "ForbiddenException":
|
|
5093
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5094
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5095
|
-
case "InvalidPaginationTokenException":
|
|
5096
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
5097
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
5098
|
-
case "InvalidRequestException":
|
|
5099
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5100
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5101
|
-
case "ServiceException":
|
|
5102
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5103
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5104
|
-
case "ServiceUnavailableException":
|
|
5105
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5106
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5107
|
-
default:
|
|
5108
|
-
const parsedBody = parsedOutput.body;
|
|
5109
|
-
return throwDefaultError({
|
|
5110
|
-
output,
|
|
5111
|
-
parsedBody,
|
|
5112
|
-
errorCode
|
|
5113
|
-
});
|
|
5114
|
-
}
|
|
5115
|
-
}, "de_ListWorkflowsCommandError");
|
|
5116
2891
|
var de_ListWorkflowStepExecutionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5117
2892
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5118
|
-
return
|
|
2893
|
+
return de_CommandError(output, context);
|
|
5119
2894
|
}
|
|
5120
2895
|
const contents = (0, import_smithy_client.map)({
|
|
5121
2896
|
$metadata: deserializeMetadata(output)
|
|
@@ -5133,46 +2908,9 @@ var de_ListWorkflowStepExecutionsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
5133
2908
|
Object.assign(contents, doc);
|
|
5134
2909
|
return contents;
|
|
5135
2910
|
}, "de_ListWorkflowStepExecutionsCommand");
|
|
5136
|
-
var de_ListWorkflowStepExecutionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5137
|
-
const parsedOutput = {
|
|
5138
|
-
...output,
|
|
5139
|
-
body: await parseErrorBody(output.body, context)
|
|
5140
|
-
};
|
|
5141
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5142
|
-
switch (errorCode) {
|
|
5143
|
-
case "CallRateLimitExceededException":
|
|
5144
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5145
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5146
|
-
case "ClientException":
|
|
5147
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
5148
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5149
|
-
case "ForbiddenException":
|
|
5150
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5151
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5152
|
-
case "InvalidPaginationTokenException":
|
|
5153
|
-
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
5154
|
-
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
5155
|
-
case "InvalidRequestException":
|
|
5156
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5157
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5158
|
-
case "ServiceException":
|
|
5159
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5160
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5161
|
-
case "ServiceUnavailableException":
|
|
5162
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5163
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5164
|
-
default:
|
|
5165
|
-
const parsedBody = parsedOutput.body;
|
|
5166
|
-
return throwDefaultError({
|
|
5167
|
-
output,
|
|
5168
|
-
parsedBody,
|
|
5169
|
-
errorCode
|
|
5170
|
-
});
|
|
5171
|
-
}
|
|
5172
|
-
}, "de_ListWorkflowStepExecutionsCommandError");
|
|
5173
2911
|
var de_PutComponentPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5174
2912
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5175
|
-
return
|
|
2913
|
+
return de_CommandError(output, context);
|
|
5176
2914
|
}
|
|
5177
2915
|
const contents = (0, import_smithy_client.map)({
|
|
5178
2916
|
$metadata: deserializeMetadata(output)
|
|
@@ -5185,49 +2923,9 @@ var de_PutComponentPolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
5185
2923
|
Object.assign(contents, doc);
|
|
5186
2924
|
return contents;
|
|
5187
2925
|
}, "de_PutComponentPolicyCommand");
|
|
5188
|
-
var de_PutComponentPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5189
|
-
const parsedOutput = {
|
|
5190
|
-
...output,
|
|
5191
|
-
body: await parseErrorBody(output.body, context)
|
|
5192
|
-
};
|
|
5193
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5194
|
-
switch (errorCode) {
|
|
5195
|
-
case "CallRateLimitExceededException":
|
|
5196
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5197
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5198
|
-
case "ClientException":
|
|
5199
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
5200
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5201
|
-
case "ForbiddenException":
|
|
5202
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5203
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5204
|
-
case "InvalidParameterValueException":
|
|
5205
|
-
case "com.amazonaws.imagebuilder#InvalidParameterValueException":
|
|
5206
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5207
|
-
case "InvalidRequestException":
|
|
5208
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5209
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5210
|
-
case "ResourceNotFoundException":
|
|
5211
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
5212
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5213
|
-
case "ServiceException":
|
|
5214
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5215
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5216
|
-
case "ServiceUnavailableException":
|
|
5217
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5218
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5219
|
-
default:
|
|
5220
|
-
const parsedBody = parsedOutput.body;
|
|
5221
|
-
return throwDefaultError({
|
|
5222
|
-
output,
|
|
5223
|
-
parsedBody,
|
|
5224
|
-
errorCode
|
|
5225
|
-
});
|
|
5226
|
-
}
|
|
5227
|
-
}, "de_PutComponentPolicyCommandError");
|
|
5228
2926
|
var de_PutContainerRecipePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5229
2927
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5230
|
-
return
|
|
2928
|
+
return de_CommandError(output, context);
|
|
5231
2929
|
}
|
|
5232
2930
|
const contents = (0, import_smithy_client.map)({
|
|
5233
2931
|
$metadata: deserializeMetadata(output)
|
|
@@ -5240,49 +2938,9 @@ var de_PutContainerRecipePolicyCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
5240
2938
|
Object.assign(contents, doc);
|
|
5241
2939
|
return contents;
|
|
5242
2940
|
}, "de_PutContainerRecipePolicyCommand");
|
|
5243
|
-
var de_PutContainerRecipePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5244
|
-
const parsedOutput = {
|
|
5245
|
-
...output,
|
|
5246
|
-
body: await parseErrorBody(output.body, context)
|
|
5247
|
-
};
|
|
5248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5249
|
-
switch (errorCode) {
|
|
5250
|
-
case "CallRateLimitExceededException":
|
|
5251
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5252
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5253
|
-
case "ClientException":
|
|
5254
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
5255
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5256
|
-
case "ForbiddenException":
|
|
5257
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5258
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5259
|
-
case "InvalidParameterValueException":
|
|
5260
|
-
case "com.amazonaws.imagebuilder#InvalidParameterValueException":
|
|
5261
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5262
|
-
case "InvalidRequestException":
|
|
5263
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5264
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5265
|
-
case "ResourceNotFoundException":
|
|
5266
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
5267
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5268
|
-
case "ServiceException":
|
|
5269
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5270
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5271
|
-
case "ServiceUnavailableException":
|
|
5272
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5273
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5274
|
-
default:
|
|
5275
|
-
const parsedBody = parsedOutput.body;
|
|
5276
|
-
return throwDefaultError({
|
|
5277
|
-
output,
|
|
5278
|
-
parsedBody,
|
|
5279
|
-
errorCode
|
|
5280
|
-
});
|
|
5281
|
-
}
|
|
5282
|
-
}, "de_PutContainerRecipePolicyCommandError");
|
|
5283
2941
|
var de_PutImagePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5284
2942
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5285
|
-
return
|
|
2943
|
+
return de_CommandError(output, context);
|
|
5286
2944
|
}
|
|
5287
2945
|
const contents = (0, import_smithy_client.map)({
|
|
5288
2946
|
$metadata: deserializeMetadata(output)
|
|
@@ -5295,49 +2953,9 @@ var de_PutImagePolicyCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5295
2953
|
Object.assign(contents, doc);
|
|
5296
2954
|
return contents;
|
|
5297
2955
|
}, "de_PutImagePolicyCommand");
|
|
5298
|
-
var de_PutImagePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5299
|
-
const parsedOutput = {
|
|
5300
|
-
...output,
|
|
5301
|
-
body: await parseErrorBody(output.body, context)
|
|
5302
|
-
};
|
|
5303
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5304
|
-
switch (errorCode) {
|
|
5305
|
-
case "CallRateLimitExceededException":
|
|
5306
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5307
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5308
|
-
case "ClientException":
|
|
5309
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
5310
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5311
|
-
case "ForbiddenException":
|
|
5312
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5313
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5314
|
-
case "InvalidParameterValueException":
|
|
5315
|
-
case "com.amazonaws.imagebuilder#InvalidParameterValueException":
|
|
5316
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5317
|
-
case "InvalidRequestException":
|
|
5318
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5319
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5320
|
-
case "ResourceNotFoundException":
|
|
5321
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
5322
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5323
|
-
case "ServiceException":
|
|
5324
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5325
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5326
|
-
case "ServiceUnavailableException":
|
|
5327
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5328
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5329
|
-
default:
|
|
5330
|
-
const parsedBody = parsedOutput.body;
|
|
5331
|
-
return throwDefaultError({
|
|
5332
|
-
output,
|
|
5333
|
-
parsedBody,
|
|
5334
|
-
errorCode
|
|
5335
|
-
});
|
|
5336
|
-
}
|
|
5337
|
-
}, "de_PutImagePolicyCommandError");
|
|
5338
2956
|
var de_PutImageRecipePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5339
2957
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5340
|
-
return
|
|
2958
|
+
return de_CommandError(output, context);
|
|
5341
2959
|
}
|
|
5342
2960
|
const contents = (0, import_smithy_client.map)({
|
|
5343
2961
|
$metadata: deserializeMetadata(output)
|
|
@@ -5350,170 +2968,41 @@ var de_PutImageRecipePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
5350
2968
|
Object.assign(contents, doc);
|
|
5351
2969
|
return contents;
|
|
5352
2970
|
}, "de_PutImageRecipePolicyCommand");
|
|
5353
|
-
var de_PutImageRecipePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5354
|
-
const parsedOutput = {
|
|
5355
|
-
...output,
|
|
5356
|
-
body: await parseErrorBody(output.body, context)
|
|
5357
|
-
};
|
|
5358
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5359
|
-
switch (errorCode) {
|
|
5360
|
-
case "CallRateLimitExceededException":
|
|
5361
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5362
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5363
|
-
case "ClientException":
|
|
5364
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
5365
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5366
|
-
case "ForbiddenException":
|
|
5367
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5368
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5369
|
-
case "InvalidParameterValueException":
|
|
5370
|
-
case "com.amazonaws.imagebuilder#InvalidParameterValueException":
|
|
5371
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5372
|
-
case "InvalidRequestException":
|
|
5373
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5374
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5375
|
-
case "ResourceNotFoundException":
|
|
5376
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
5377
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5378
|
-
case "ServiceException":
|
|
5379
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5380
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5381
|
-
case "ServiceUnavailableException":
|
|
5382
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5383
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5384
|
-
default:
|
|
5385
|
-
const parsedBody = parsedOutput.body;
|
|
5386
|
-
return throwDefaultError({
|
|
5387
|
-
output,
|
|
5388
|
-
parsedBody,
|
|
5389
|
-
errorCode
|
|
5390
|
-
});
|
|
5391
|
-
}
|
|
5392
|
-
}, "de_PutImageRecipePolicyCommandError");
|
|
5393
2971
|
var de_SendWorkflowStepActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5394
2972
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5395
|
-
return
|
|
5396
|
-
}
|
|
5397
|
-
const contents = (0, import_smithy_client.map)({
|
|
5398
|
-
$metadata: deserializeMetadata(output)
|
|
5399
|
-
});
|
|
5400
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
5401
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
5402
|
-
clientToken: import_smithy_client.expectString,
|
|
5403
|
-
imageBuildVersionArn: import_smithy_client.expectString,
|
|
5404
|
-
stepExecutionId: import_smithy_client.expectString
|
|
5405
|
-
});
|
|
5406
|
-
Object.assign(contents, doc);
|
|
5407
|
-
return contents;
|
|
5408
|
-
}, "de_SendWorkflowStepActionCommand");
|
|
5409
|
-
var de_SendWorkflowStepActionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5410
|
-
const parsedOutput = {
|
|
5411
|
-
...output,
|
|
5412
|
-
body: await parseErrorBody(output.body, context)
|
|
5413
|
-
};
|
|
5414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5415
|
-
switch (errorCode) {
|
|
5416
|
-
case "CallRateLimitExceededException":
|
|
5417
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5418
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5419
|
-
case "ClientException":
|
|
5420
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
5421
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5422
|
-
case "ForbiddenException":
|
|
5423
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5424
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5425
|
-
case "IdempotentParameterMismatchException":
|
|
5426
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
5427
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
5428
|
-
case "InvalidParameterValueException":
|
|
5429
|
-
case "com.amazonaws.imagebuilder#InvalidParameterValueException":
|
|
5430
|
-
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5431
|
-
case "InvalidRequestException":
|
|
5432
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5433
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5434
|
-
case "ResourceInUseException":
|
|
5435
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
5436
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
5437
|
-
case "ResourceNotFoundException":
|
|
5438
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
5439
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5440
|
-
case "ServiceException":
|
|
5441
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5442
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5443
|
-
case "ServiceUnavailableException":
|
|
5444
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5445
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5446
|
-
default:
|
|
5447
|
-
const parsedBody = parsedOutput.body;
|
|
5448
|
-
return throwDefaultError({
|
|
5449
|
-
output,
|
|
5450
|
-
parsedBody,
|
|
5451
|
-
errorCode
|
|
5452
|
-
});
|
|
5453
|
-
}
|
|
5454
|
-
}, "de_SendWorkflowStepActionCommandError");
|
|
5455
|
-
var de_StartImagePipelineExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5456
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5457
|
-
return de_StartImagePipelineExecutionCommandError(output, context);
|
|
2973
|
+
return de_CommandError(output, context);
|
|
5458
2974
|
}
|
|
5459
2975
|
const contents = (0, import_smithy_client.map)({
|
|
5460
2976
|
$metadata: deserializeMetadata(output)
|
|
5461
2977
|
});
|
|
5462
2978
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
5463
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
5464
|
-
clientToken: import_smithy_client.expectString,
|
|
5465
|
-
imageBuildVersionArn: import_smithy_client.expectString,
|
|
5466
|
-
|
|
5467
|
-
});
|
|
5468
|
-
Object.assign(contents, doc);
|
|
5469
|
-
return contents;
|
|
5470
|
-
}, "
|
|
5471
|
-
var
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
body: await parseErrorBody(output.body, context)
|
|
5475
|
-
};
|
|
5476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5477
|
-
switch (errorCode) {
|
|
5478
|
-
case "CallRateLimitExceededException":
|
|
5479
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5480
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5481
|
-
case "ClientException":
|
|
5482
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
5483
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5484
|
-
case "ForbiddenException":
|
|
5485
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5486
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5487
|
-
case "IdempotentParameterMismatchException":
|
|
5488
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
5489
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
5490
|
-
case "InvalidRequestException":
|
|
5491
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5492
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5493
|
-
case "ResourceInUseException":
|
|
5494
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
5495
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
5496
|
-
case "ResourceNotFoundException":
|
|
5497
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
5498
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5499
|
-
case "ServiceException":
|
|
5500
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5501
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5502
|
-
case "ServiceUnavailableException":
|
|
5503
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5504
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5505
|
-
default:
|
|
5506
|
-
const parsedBody = parsedOutput.body;
|
|
5507
|
-
return throwDefaultError({
|
|
5508
|
-
output,
|
|
5509
|
-
parsedBody,
|
|
5510
|
-
errorCode
|
|
5511
|
-
});
|
|
2979
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2980
|
+
clientToken: import_smithy_client.expectString,
|
|
2981
|
+
imageBuildVersionArn: import_smithy_client.expectString,
|
|
2982
|
+
stepExecutionId: import_smithy_client.expectString
|
|
2983
|
+
});
|
|
2984
|
+
Object.assign(contents, doc);
|
|
2985
|
+
return contents;
|
|
2986
|
+
}, "de_SendWorkflowStepActionCommand");
|
|
2987
|
+
var de_StartImagePipelineExecutionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2988
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2989
|
+
return de_CommandError(output, context);
|
|
5512
2990
|
}
|
|
5513
|
-
|
|
2991
|
+
const contents = (0, import_smithy_client.map)({
|
|
2992
|
+
$metadata: deserializeMetadata(output)
|
|
2993
|
+
});
|
|
2994
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
2995
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2996
|
+
clientToken: import_smithy_client.expectString,
|
|
2997
|
+
imageBuildVersionArn: import_smithy_client.expectString,
|
|
2998
|
+
requestId: import_smithy_client.expectString
|
|
2999
|
+
});
|
|
3000
|
+
Object.assign(contents, doc);
|
|
3001
|
+
return contents;
|
|
3002
|
+
}, "de_StartImagePipelineExecutionCommand");
|
|
5514
3003
|
var de_StartResourceStateUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5515
3004
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5516
|
-
return
|
|
3005
|
+
return de_CommandError(output, context);
|
|
5517
3006
|
}
|
|
5518
3007
|
const contents = (0, import_smithy_client.map)({
|
|
5519
3008
|
$metadata: deserializeMetadata(output)
|
|
@@ -5526,52 +3015,9 @@ var de_StartResourceStateUpdateCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
5526
3015
|
Object.assign(contents, doc);
|
|
5527
3016
|
return contents;
|
|
5528
3017
|
}, "de_StartResourceStateUpdateCommand");
|
|
5529
|
-
var de_StartResourceStateUpdateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5530
|
-
const parsedOutput = {
|
|
5531
|
-
...output,
|
|
5532
|
-
body: await parseErrorBody(output.body, context)
|
|
5533
|
-
};
|
|
5534
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5535
|
-
switch (errorCode) {
|
|
5536
|
-
case "CallRateLimitExceededException":
|
|
5537
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5538
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5539
|
-
case "ClientException":
|
|
5540
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
5541
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5542
|
-
case "ForbiddenException":
|
|
5543
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5544
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5545
|
-
case "IdempotentParameterMismatchException":
|
|
5546
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
5547
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
5548
|
-
case "InvalidRequestException":
|
|
5549
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5550
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5551
|
-
case "ResourceInUseException":
|
|
5552
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
5553
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
5554
|
-
case "ResourceNotFoundException":
|
|
5555
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
5556
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5557
|
-
case "ServiceException":
|
|
5558
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5559
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5560
|
-
case "ServiceUnavailableException":
|
|
5561
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5562
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5563
|
-
default:
|
|
5564
|
-
const parsedBody = parsedOutput.body;
|
|
5565
|
-
return throwDefaultError({
|
|
5566
|
-
output,
|
|
5567
|
-
parsedBody,
|
|
5568
|
-
errorCode
|
|
5569
|
-
});
|
|
5570
|
-
}
|
|
5571
|
-
}, "de_StartResourceStateUpdateCommandError");
|
|
5572
3018
|
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5573
3019
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5574
|
-
return
|
|
3020
|
+
return de_CommandError(output, context);
|
|
5575
3021
|
}
|
|
5576
3022
|
const contents = (0, import_smithy_client.map)({
|
|
5577
3023
|
$metadata: deserializeMetadata(output)
|
|
@@ -5579,34 +3025,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5579
3025
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5580
3026
|
return contents;
|
|
5581
3027
|
}, "de_TagResourceCommand");
|
|
5582
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5583
|
-
const parsedOutput = {
|
|
5584
|
-
...output,
|
|
5585
|
-
body: await parseErrorBody(output.body, context)
|
|
5586
|
-
};
|
|
5587
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5588
|
-
switch (errorCode) {
|
|
5589
|
-
case "InvalidParameterException":
|
|
5590
|
-
case "com.amazonaws.imagebuilder#InvalidParameterException":
|
|
5591
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
5592
|
-
case "ResourceNotFoundException":
|
|
5593
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
5594
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5595
|
-
case "ServiceException":
|
|
5596
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5597
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5598
|
-
default:
|
|
5599
|
-
const parsedBody = parsedOutput.body;
|
|
5600
|
-
return throwDefaultError({
|
|
5601
|
-
output,
|
|
5602
|
-
parsedBody,
|
|
5603
|
-
errorCode
|
|
5604
|
-
});
|
|
5605
|
-
}
|
|
5606
|
-
}, "de_TagResourceCommandError");
|
|
5607
3028
|
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5608
3029
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5609
|
-
return
|
|
3030
|
+
return de_CommandError(output, context);
|
|
5610
3031
|
}
|
|
5611
3032
|
const contents = (0, import_smithy_client.map)({
|
|
5612
3033
|
$metadata: deserializeMetadata(output)
|
|
@@ -5614,34 +3035,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
5614
3035
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5615
3036
|
return contents;
|
|
5616
3037
|
}, "de_UntagResourceCommand");
|
|
5617
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5618
|
-
const parsedOutput = {
|
|
5619
|
-
...output,
|
|
5620
|
-
body: await parseErrorBody(output.body, context)
|
|
5621
|
-
};
|
|
5622
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5623
|
-
switch (errorCode) {
|
|
5624
|
-
case "InvalidParameterException":
|
|
5625
|
-
case "com.amazonaws.imagebuilder#InvalidParameterException":
|
|
5626
|
-
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
5627
|
-
case "ResourceNotFoundException":
|
|
5628
|
-
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
5629
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5630
|
-
case "ServiceException":
|
|
5631
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5632
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5633
|
-
default:
|
|
5634
|
-
const parsedBody = parsedOutput.body;
|
|
5635
|
-
return throwDefaultError({
|
|
5636
|
-
output,
|
|
5637
|
-
parsedBody,
|
|
5638
|
-
errorCode
|
|
5639
|
-
});
|
|
5640
|
-
}
|
|
5641
|
-
}, "de_UntagResourceCommandError");
|
|
5642
3038
|
var de_UpdateDistributionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5643
3039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5644
|
-
return
|
|
3040
|
+
return de_CommandError(output, context);
|
|
5645
3041
|
}
|
|
5646
3042
|
const contents = (0, import_smithy_client.map)({
|
|
5647
3043
|
$metadata: deserializeMetadata(output)
|
|
@@ -5655,52 +3051,9 @@ var de_UpdateDistributionConfigurationCommand = /* @__PURE__ */ __name(async (ou
|
|
|
5655
3051
|
Object.assign(contents, doc);
|
|
5656
3052
|
return contents;
|
|
5657
3053
|
}, "de_UpdateDistributionConfigurationCommand");
|
|
5658
|
-
var de_UpdateDistributionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5659
|
-
const parsedOutput = {
|
|
5660
|
-
...output,
|
|
5661
|
-
body: await parseErrorBody(output.body, context)
|
|
5662
|
-
};
|
|
5663
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5664
|
-
switch (errorCode) {
|
|
5665
|
-
case "CallRateLimitExceededException":
|
|
5666
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5667
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5668
|
-
case "ClientException":
|
|
5669
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
5670
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5671
|
-
case "ForbiddenException":
|
|
5672
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5673
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5674
|
-
case "IdempotentParameterMismatchException":
|
|
5675
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
5676
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
5677
|
-
case "InvalidParameterCombinationException":
|
|
5678
|
-
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
5679
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5680
|
-
case "InvalidRequestException":
|
|
5681
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5682
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5683
|
-
case "ResourceInUseException":
|
|
5684
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
5685
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
5686
|
-
case "ServiceException":
|
|
5687
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5688
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5689
|
-
case "ServiceUnavailableException":
|
|
5690
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5691
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5692
|
-
default:
|
|
5693
|
-
const parsedBody = parsedOutput.body;
|
|
5694
|
-
return throwDefaultError({
|
|
5695
|
-
output,
|
|
5696
|
-
parsedBody,
|
|
5697
|
-
errorCode
|
|
5698
|
-
});
|
|
5699
|
-
}
|
|
5700
|
-
}, "de_UpdateDistributionConfigurationCommandError");
|
|
5701
3054
|
var de_UpdateImagePipelineCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5702
3055
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5703
|
-
return
|
|
3056
|
+
return de_CommandError(output, context);
|
|
5704
3057
|
}
|
|
5705
3058
|
const contents = (0, import_smithy_client.map)({
|
|
5706
3059
|
$metadata: deserializeMetadata(output)
|
|
@@ -5714,49 +3067,9 @@ var de_UpdateImagePipelineCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
5714
3067
|
Object.assign(contents, doc);
|
|
5715
3068
|
return contents;
|
|
5716
3069
|
}, "de_UpdateImagePipelineCommand");
|
|
5717
|
-
var de_UpdateImagePipelineCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5718
|
-
const parsedOutput = {
|
|
5719
|
-
...output,
|
|
5720
|
-
body: await parseErrorBody(output.body, context)
|
|
5721
|
-
};
|
|
5722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5723
|
-
switch (errorCode) {
|
|
5724
|
-
case "CallRateLimitExceededException":
|
|
5725
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5726
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5727
|
-
case "ClientException":
|
|
5728
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
5729
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5730
|
-
case "ForbiddenException":
|
|
5731
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5732
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5733
|
-
case "IdempotentParameterMismatchException":
|
|
5734
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
5735
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
5736
|
-
case "InvalidRequestException":
|
|
5737
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5738
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5739
|
-
case "ResourceInUseException":
|
|
5740
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
5741
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
5742
|
-
case "ServiceException":
|
|
5743
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5744
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5745
|
-
case "ServiceUnavailableException":
|
|
5746
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5747
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5748
|
-
default:
|
|
5749
|
-
const parsedBody = parsedOutput.body;
|
|
5750
|
-
return throwDefaultError({
|
|
5751
|
-
output,
|
|
5752
|
-
parsedBody,
|
|
5753
|
-
errorCode
|
|
5754
|
-
});
|
|
5755
|
-
}
|
|
5756
|
-
}, "de_UpdateImagePipelineCommandError");
|
|
5757
3070
|
var de_UpdateInfrastructureConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5758
3071
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5759
|
-
return
|
|
3072
|
+
return de_CommandError(output, context);
|
|
5760
3073
|
}
|
|
5761
3074
|
const contents = (0, import_smithy_client.map)({
|
|
5762
3075
|
$metadata: deserializeMetadata(output)
|
|
@@ -5770,49 +3083,9 @@ var de_UpdateInfrastructureConfigurationCommand = /* @__PURE__ */ __name(async (
|
|
|
5770
3083
|
Object.assign(contents, doc);
|
|
5771
3084
|
return contents;
|
|
5772
3085
|
}, "de_UpdateInfrastructureConfigurationCommand");
|
|
5773
|
-
var de_UpdateInfrastructureConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5774
|
-
const parsedOutput = {
|
|
5775
|
-
...output,
|
|
5776
|
-
body: await parseErrorBody(output.body, context)
|
|
5777
|
-
};
|
|
5778
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5779
|
-
switch (errorCode) {
|
|
5780
|
-
case "CallRateLimitExceededException":
|
|
5781
|
-
case "com.amazonaws.imagebuilder#CallRateLimitExceededException":
|
|
5782
|
-
throw await de_CallRateLimitExceededExceptionRes(parsedOutput, context);
|
|
5783
|
-
case "ClientException":
|
|
5784
|
-
case "com.amazonaws.imagebuilder#ClientException":
|
|
5785
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
5786
|
-
case "ForbiddenException":
|
|
5787
|
-
case "com.amazonaws.imagebuilder#ForbiddenException":
|
|
5788
|
-
throw await de_ForbiddenExceptionRes(parsedOutput, context);
|
|
5789
|
-
case "IdempotentParameterMismatchException":
|
|
5790
|
-
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
5791
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
5792
|
-
case "InvalidRequestException":
|
|
5793
|
-
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5794
|
-
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
5795
|
-
case "ResourceInUseException":
|
|
5796
|
-
case "com.amazonaws.imagebuilder#ResourceInUseException":
|
|
5797
|
-
throw await de_ResourceInUseExceptionRes(parsedOutput, context);
|
|
5798
|
-
case "ServiceException":
|
|
5799
|
-
case "com.amazonaws.imagebuilder#ServiceException":
|
|
5800
|
-
throw await de_ServiceExceptionRes(parsedOutput, context);
|
|
5801
|
-
case "ServiceUnavailableException":
|
|
5802
|
-
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5803
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
5804
|
-
default:
|
|
5805
|
-
const parsedBody = parsedOutput.body;
|
|
5806
|
-
return throwDefaultError({
|
|
5807
|
-
output,
|
|
5808
|
-
parsedBody,
|
|
5809
|
-
errorCode
|
|
5810
|
-
});
|
|
5811
|
-
}
|
|
5812
|
-
}, "de_UpdateInfrastructureConfigurationCommandError");
|
|
5813
3086
|
var de_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5814
3087
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5815
|
-
return
|
|
3088
|
+
return de_CommandError(output, context);
|
|
5816
3089
|
}
|
|
5817
3090
|
const contents = (0, import_smithy_client.map)({
|
|
5818
3091
|
$metadata: deserializeMetadata(output)
|
|
@@ -5824,7 +3097,7 @@ var de_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
5824
3097
|
Object.assign(contents, doc);
|
|
5825
3098
|
return contents;
|
|
5826
3099
|
}, "de_UpdateLifecyclePolicyCommand");
|
|
5827
|
-
var
|
|
3100
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5828
3101
|
const parsedOutput = {
|
|
5829
3102
|
...output,
|
|
5830
3103
|
body: await parseErrorBody(output.body, context)
|
|
@@ -5843,9 +3116,6 @@ var de_UpdateLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
5843
3116
|
case "IdempotentParameterMismatchException":
|
|
5844
3117
|
case "com.amazonaws.imagebuilder#IdempotentParameterMismatchException":
|
|
5845
3118
|
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
5846
|
-
case "InvalidParameterCombinationException":
|
|
5847
|
-
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
5848
|
-
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
5849
3119
|
case "InvalidRequestException":
|
|
5850
3120
|
case "com.amazonaws.imagebuilder#InvalidRequestException":
|
|
5851
3121
|
throw await de_InvalidRequestExceptionRes(parsedOutput, context);
|
|
@@ -5858,6 +3128,33 @@ var de_UpdateLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
5858
3128
|
case "ServiceUnavailableException":
|
|
5859
3129
|
case "com.amazonaws.imagebuilder#ServiceUnavailableException":
|
|
5860
3130
|
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
3131
|
+
case "InvalidParameterCombinationException":
|
|
3132
|
+
case "com.amazonaws.imagebuilder#InvalidParameterCombinationException":
|
|
3133
|
+
throw await de_InvalidParameterCombinationExceptionRes(parsedOutput, context);
|
|
3134
|
+
case "InvalidVersionNumberException":
|
|
3135
|
+
case "com.amazonaws.imagebuilder#InvalidVersionNumberException":
|
|
3136
|
+
throw await de_InvalidVersionNumberExceptionRes(parsedOutput, context);
|
|
3137
|
+
case "ServiceQuotaExceededException":
|
|
3138
|
+
case "com.amazonaws.imagebuilder#ServiceQuotaExceededException":
|
|
3139
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3140
|
+
case "ResourceAlreadyExistsException":
|
|
3141
|
+
case "com.amazonaws.imagebuilder#ResourceAlreadyExistsException":
|
|
3142
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
3143
|
+
case "ResourceDependencyException":
|
|
3144
|
+
case "com.amazonaws.imagebuilder#ResourceDependencyException":
|
|
3145
|
+
throw await de_ResourceDependencyExceptionRes(parsedOutput, context);
|
|
3146
|
+
case "ResourceNotFoundException":
|
|
3147
|
+
case "com.amazonaws.imagebuilder#ResourceNotFoundException":
|
|
3148
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3149
|
+
case "InvalidPaginationTokenException":
|
|
3150
|
+
case "com.amazonaws.imagebuilder#InvalidPaginationTokenException":
|
|
3151
|
+
throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
|
|
3152
|
+
case "InvalidParameterException":
|
|
3153
|
+
case "com.amazonaws.imagebuilder#InvalidParameterException":
|
|
3154
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
3155
|
+
case "InvalidParameterValueException":
|
|
3156
|
+
case "com.amazonaws.imagebuilder#InvalidParameterValueException":
|
|
3157
|
+
throw await de_InvalidParameterValueExceptionRes(parsedOutput, context);
|
|
5861
3158
|
default:
|
|
5862
3159
|
const parsedBody = parsedOutput.body;
|
|
5863
3160
|
return throwDefaultError({
|
|
@@ -5866,7 +3163,7 @@ var de_UpdateLifecyclePolicyCommandError = /* @__PURE__ */ __name(async (output,
|
|
|
5866
3163
|
errorCode
|
|
5867
3164
|
});
|
|
5868
3165
|
}
|
|
5869
|
-
}, "
|
|
3166
|
+
}, "de_CommandError");
|
|
5870
3167
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ImagebuilderServiceException);
|
|
5871
3168
|
var de_CallRateLimitExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
5872
3169
|
const contents = (0, import_smithy_client.map)({});
|