@aws-sdk/client-networkmanager 3.504.0 → 3.509.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +116 -2867
- package/dist-es/protocols/Aws_restJson1.js +108 -2859
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -1939,7 +1939,7 @@ var se_UpdateVpcAttachmentCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
1939
1939
|
}, "se_UpdateVpcAttachmentCommand");
|
|
1940
1940
|
var de_AcceptAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1941
1941
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1942
|
-
return
|
|
1942
|
+
return de_CommandError(output, context);
|
|
1943
1943
|
}
|
|
1944
1944
|
const contents = (0, import_smithy_client.map)({
|
|
1945
1945
|
$metadata: deserializeMetadata(output)
|
|
@@ -1951,43 +1951,9 @@ var de_AcceptAttachmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1951
1951
|
Object.assign(contents, doc);
|
|
1952
1952
|
return contents;
|
|
1953
1953
|
}, "de_AcceptAttachmentCommand");
|
|
1954
|
-
var de_AcceptAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1955
|
-
const parsedOutput = {
|
|
1956
|
-
...output,
|
|
1957
|
-
body: await parseErrorBody(output.body, context)
|
|
1958
|
-
};
|
|
1959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1960
|
-
switch (errorCode) {
|
|
1961
|
-
case "AccessDeniedException":
|
|
1962
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
1963
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1964
|
-
case "ConflictException":
|
|
1965
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
1966
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1967
|
-
case "InternalServerException":
|
|
1968
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
1969
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1970
|
-
case "ResourceNotFoundException":
|
|
1971
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
1972
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1973
|
-
case "ThrottlingException":
|
|
1974
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
1975
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1976
|
-
case "ValidationException":
|
|
1977
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
1978
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1979
|
-
default:
|
|
1980
|
-
const parsedBody = parsedOutput.body;
|
|
1981
|
-
return throwDefaultError({
|
|
1982
|
-
output,
|
|
1983
|
-
parsedBody,
|
|
1984
|
-
errorCode
|
|
1985
|
-
});
|
|
1986
|
-
}
|
|
1987
|
-
}, "de_AcceptAttachmentCommandError");
|
|
1988
1954
|
var de_AssociateConnectPeerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1989
1955
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1990
|
-
return
|
|
1956
|
+
return de_CommandError(output, context);
|
|
1991
1957
|
}
|
|
1992
1958
|
const contents = (0, import_smithy_client.map)({
|
|
1993
1959
|
$metadata: deserializeMetadata(output)
|
|
@@ -1999,46 +1965,9 @@ var de_AssociateConnectPeerCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1999
1965
|
Object.assign(contents, doc);
|
|
2000
1966
|
return contents;
|
|
2001
1967
|
}, "de_AssociateConnectPeerCommand");
|
|
2002
|
-
var de_AssociateConnectPeerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2003
|
-
const parsedOutput = {
|
|
2004
|
-
...output,
|
|
2005
|
-
body: await parseErrorBody(output.body, context)
|
|
2006
|
-
};
|
|
2007
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2008
|
-
switch (errorCode) {
|
|
2009
|
-
case "AccessDeniedException":
|
|
2010
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2011
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2012
|
-
case "ConflictException":
|
|
2013
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2014
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2015
|
-
case "InternalServerException":
|
|
2016
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2017
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2018
|
-
case "ResourceNotFoundException":
|
|
2019
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2020
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2021
|
-
case "ServiceQuotaExceededException":
|
|
2022
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
2023
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2024
|
-
case "ThrottlingException":
|
|
2025
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2026
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2027
|
-
case "ValidationException":
|
|
2028
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2029
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2030
|
-
default:
|
|
2031
|
-
const parsedBody = parsedOutput.body;
|
|
2032
|
-
return throwDefaultError({
|
|
2033
|
-
output,
|
|
2034
|
-
parsedBody,
|
|
2035
|
-
errorCode
|
|
2036
|
-
});
|
|
2037
|
-
}
|
|
2038
|
-
}, "de_AssociateConnectPeerCommandError");
|
|
2039
1968
|
var de_AssociateCustomerGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2040
1969
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2041
|
-
return
|
|
1970
|
+
return de_CommandError(output, context);
|
|
2042
1971
|
}
|
|
2043
1972
|
const contents = (0, import_smithy_client.map)({
|
|
2044
1973
|
$metadata: deserializeMetadata(output)
|
|
@@ -2050,46 +1979,9 @@ var de_AssociateCustomerGatewayCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2050
1979
|
Object.assign(contents, doc);
|
|
2051
1980
|
return contents;
|
|
2052
1981
|
}, "de_AssociateCustomerGatewayCommand");
|
|
2053
|
-
var de_AssociateCustomerGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2054
|
-
const parsedOutput = {
|
|
2055
|
-
...output,
|
|
2056
|
-
body: await parseErrorBody(output.body, context)
|
|
2057
|
-
};
|
|
2058
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2059
|
-
switch (errorCode) {
|
|
2060
|
-
case "AccessDeniedException":
|
|
2061
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2062
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2063
|
-
case "ConflictException":
|
|
2064
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2065
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2066
|
-
case "InternalServerException":
|
|
2067
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2068
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2069
|
-
case "ResourceNotFoundException":
|
|
2070
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2071
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2072
|
-
case "ServiceQuotaExceededException":
|
|
2073
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
2074
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2075
|
-
case "ThrottlingException":
|
|
2076
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2077
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2078
|
-
case "ValidationException":
|
|
2079
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2080
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2081
|
-
default:
|
|
2082
|
-
const parsedBody = parsedOutput.body;
|
|
2083
|
-
return throwDefaultError({
|
|
2084
|
-
output,
|
|
2085
|
-
parsedBody,
|
|
2086
|
-
errorCode
|
|
2087
|
-
});
|
|
2088
|
-
}
|
|
2089
|
-
}, "de_AssociateCustomerGatewayCommandError");
|
|
2090
1982
|
var de_AssociateLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2091
1983
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2092
|
-
return
|
|
1984
|
+
return de_CommandError(output, context);
|
|
2093
1985
|
}
|
|
2094
1986
|
const contents = (0, import_smithy_client.map)({
|
|
2095
1987
|
$metadata: deserializeMetadata(output)
|
|
@@ -2101,46 +1993,9 @@ var de_AssociateLinkCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2101
1993
|
Object.assign(contents, doc);
|
|
2102
1994
|
return contents;
|
|
2103
1995
|
}, "de_AssociateLinkCommand");
|
|
2104
|
-
var de_AssociateLinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2105
|
-
const parsedOutput = {
|
|
2106
|
-
...output,
|
|
2107
|
-
body: await parseErrorBody(output.body, context)
|
|
2108
|
-
};
|
|
2109
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2110
|
-
switch (errorCode) {
|
|
2111
|
-
case "AccessDeniedException":
|
|
2112
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2113
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2114
|
-
case "ConflictException":
|
|
2115
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2116
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2117
|
-
case "InternalServerException":
|
|
2118
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2119
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2120
|
-
case "ResourceNotFoundException":
|
|
2121
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2122
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2123
|
-
case "ServiceQuotaExceededException":
|
|
2124
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
2125
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2126
|
-
case "ThrottlingException":
|
|
2127
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2128
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2129
|
-
case "ValidationException":
|
|
2130
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2131
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2132
|
-
default:
|
|
2133
|
-
const parsedBody = parsedOutput.body;
|
|
2134
|
-
return throwDefaultError({
|
|
2135
|
-
output,
|
|
2136
|
-
parsedBody,
|
|
2137
|
-
errorCode
|
|
2138
|
-
});
|
|
2139
|
-
}
|
|
2140
|
-
}, "de_AssociateLinkCommandError");
|
|
2141
1996
|
var de_AssociateTransitGatewayConnectPeerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2142
1997
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2143
|
-
return
|
|
1998
|
+
return de_CommandError(output, context);
|
|
2144
1999
|
}
|
|
2145
2000
|
const contents = (0, import_smithy_client.map)({
|
|
2146
2001
|
$metadata: deserializeMetadata(output)
|
|
@@ -2152,46 +2007,9 @@ var de_AssociateTransitGatewayConnectPeerCommand = /* @__PURE__ */ __name(async
|
|
|
2152
2007
|
Object.assign(contents, doc);
|
|
2153
2008
|
return contents;
|
|
2154
2009
|
}, "de_AssociateTransitGatewayConnectPeerCommand");
|
|
2155
|
-
var de_AssociateTransitGatewayConnectPeerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2156
|
-
const parsedOutput = {
|
|
2157
|
-
...output,
|
|
2158
|
-
body: await parseErrorBody(output.body, context)
|
|
2159
|
-
};
|
|
2160
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2161
|
-
switch (errorCode) {
|
|
2162
|
-
case "AccessDeniedException":
|
|
2163
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2164
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2165
|
-
case "ConflictException":
|
|
2166
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2167
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2168
|
-
case "InternalServerException":
|
|
2169
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2170
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2171
|
-
case "ResourceNotFoundException":
|
|
2172
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2173
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2174
|
-
case "ServiceQuotaExceededException":
|
|
2175
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
2176
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2177
|
-
case "ThrottlingException":
|
|
2178
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2179
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2180
|
-
case "ValidationException":
|
|
2181
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2182
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2183
|
-
default:
|
|
2184
|
-
const parsedBody = parsedOutput.body;
|
|
2185
|
-
return throwDefaultError({
|
|
2186
|
-
output,
|
|
2187
|
-
parsedBody,
|
|
2188
|
-
errorCode
|
|
2189
|
-
});
|
|
2190
|
-
}
|
|
2191
|
-
}, "de_AssociateTransitGatewayConnectPeerCommandError");
|
|
2192
2010
|
var de_CreateConnectAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2193
2011
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2194
|
-
return
|
|
2012
|
+
return de_CommandError(output, context);
|
|
2195
2013
|
}
|
|
2196
2014
|
const contents = (0, import_smithy_client.map)({
|
|
2197
2015
|
$metadata: deserializeMetadata(output)
|
|
@@ -2203,43 +2021,9 @@ var de_CreateConnectAttachmentCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
2203
2021
|
Object.assign(contents, doc);
|
|
2204
2022
|
return contents;
|
|
2205
2023
|
}, "de_CreateConnectAttachmentCommand");
|
|
2206
|
-
var de_CreateConnectAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2207
|
-
const parsedOutput = {
|
|
2208
|
-
...output,
|
|
2209
|
-
body: await parseErrorBody(output.body, context)
|
|
2210
|
-
};
|
|
2211
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2212
|
-
switch (errorCode) {
|
|
2213
|
-
case "AccessDeniedException":
|
|
2214
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2215
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2216
|
-
case "ConflictException":
|
|
2217
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2218
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2219
|
-
case "InternalServerException":
|
|
2220
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2221
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2222
|
-
case "ResourceNotFoundException":
|
|
2223
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2224
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2225
|
-
case "ThrottlingException":
|
|
2226
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2227
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2228
|
-
case "ValidationException":
|
|
2229
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2230
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2231
|
-
default:
|
|
2232
|
-
const parsedBody = parsedOutput.body;
|
|
2233
|
-
return throwDefaultError({
|
|
2234
|
-
output,
|
|
2235
|
-
parsedBody,
|
|
2236
|
-
errorCode
|
|
2237
|
-
});
|
|
2238
|
-
}
|
|
2239
|
-
}, "de_CreateConnectAttachmentCommandError");
|
|
2240
2024
|
var de_CreateConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2241
2025
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2242
|
-
return
|
|
2026
|
+
return de_CommandError(output, context);
|
|
2243
2027
|
}
|
|
2244
2028
|
const contents = (0, import_smithy_client.map)({
|
|
2245
2029
|
$metadata: deserializeMetadata(output)
|
|
@@ -2251,43 +2035,9 @@ var de_CreateConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2251
2035
|
Object.assign(contents, doc);
|
|
2252
2036
|
return contents;
|
|
2253
2037
|
}, "de_CreateConnectionCommand");
|
|
2254
|
-
var de_CreateConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2255
|
-
const parsedOutput = {
|
|
2256
|
-
...output,
|
|
2257
|
-
body: await parseErrorBody(output.body, context)
|
|
2258
|
-
};
|
|
2259
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2260
|
-
switch (errorCode) {
|
|
2261
|
-
case "AccessDeniedException":
|
|
2262
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2263
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2264
|
-
case "ConflictException":
|
|
2265
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2266
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2267
|
-
case "InternalServerException":
|
|
2268
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2269
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2270
|
-
case "ServiceQuotaExceededException":
|
|
2271
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
2272
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2273
|
-
case "ThrottlingException":
|
|
2274
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2275
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2276
|
-
case "ValidationException":
|
|
2277
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2278
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2279
|
-
default:
|
|
2280
|
-
const parsedBody = parsedOutput.body;
|
|
2281
|
-
return throwDefaultError({
|
|
2282
|
-
output,
|
|
2283
|
-
parsedBody,
|
|
2284
|
-
errorCode
|
|
2285
|
-
});
|
|
2286
|
-
}
|
|
2287
|
-
}, "de_CreateConnectionCommandError");
|
|
2288
2038
|
var de_CreateConnectPeerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2289
2039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2290
|
-
return
|
|
2040
|
+
return de_CommandError(output, context);
|
|
2291
2041
|
}
|
|
2292
2042
|
const contents = (0, import_smithy_client.map)({
|
|
2293
2043
|
$metadata: deserializeMetadata(output)
|
|
@@ -2299,43 +2049,9 @@ var de_CreateConnectPeerCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2299
2049
|
Object.assign(contents, doc);
|
|
2300
2050
|
return contents;
|
|
2301
2051
|
}, "de_CreateConnectPeerCommand");
|
|
2302
|
-
var de_CreateConnectPeerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2303
|
-
const parsedOutput = {
|
|
2304
|
-
...output,
|
|
2305
|
-
body: await parseErrorBody(output.body, context)
|
|
2306
|
-
};
|
|
2307
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2308
|
-
switch (errorCode) {
|
|
2309
|
-
case "AccessDeniedException":
|
|
2310
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2311
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2312
|
-
case "ConflictException":
|
|
2313
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2314
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2315
|
-
case "InternalServerException":
|
|
2316
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2317
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2318
|
-
case "ResourceNotFoundException":
|
|
2319
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2320
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2321
|
-
case "ThrottlingException":
|
|
2322
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2323
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2324
|
-
case "ValidationException":
|
|
2325
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2326
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2327
|
-
default:
|
|
2328
|
-
const parsedBody = parsedOutput.body;
|
|
2329
|
-
return throwDefaultError({
|
|
2330
|
-
output,
|
|
2331
|
-
parsedBody,
|
|
2332
|
-
errorCode
|
|
2333
|
-
});
|
|
2334
|
-
}
|
|
2335
|
-
}, "de_CreateConnectPeerCommandError");
|
|
2336
2052
|
var de_CreateCoreNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2337
2053
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2338
|
-
return
|
|
2054
|
+
return de_CommandError(output, context);
|
|
2339
2055
|
}
|
|
2340
2056
|
const contents = (0, import_smithy_client.map)({
|
|
2341
2057
|
$metadata: deserializeMetadata(output)
|
|
@@ -2347,46 +2063,9 @@ var de_CreateCoreNetworkCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2347
2063
|
Object.assign(contents, doc);
|
|
2348
2064
|
return contents;
|
|
2349
2065
|
}, "de_CreateCoreNetworkCommand");
|
|
2350
|
-
var de_CreateCoreNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2351
|
-
const parsedOutput = {
|
|
2352
|
-
...output,
|
|
2353
|
-
body: await parseErrorBody(output.body, context)
|
|
2354
|
-
};
|
|
2355
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2356
|
-
switch (errorCode) {
|
|
2357
|
-
case "AccessDeniedException":
|
|
2358
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2359
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2360
|
-
case "ConflictException":
|
|
2361
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2362
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2363
|
-
case "CoreNetworkPolicyException":
|
|
2364
|
-
case "com.amazonaws.networkmanager#CoreNetworkPolicyException":
|
|
2365
|
-
throw await de_CoreNetworkPolicyExceptionRes(parsedOutput, context);
|
|
2366
|
-
case "InternalServerException":
|
|
2367
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2368
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2369
|
-
case "ServiceQuotaExceededException":
|
|
2370
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
2371
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2372
|
-
case "ThrottlingException":
|
|
2373
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2374
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2375
|
-
case "ValidationException":
|
|
2376
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2377
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2378
|
-
default:
|
|
2379
|
-
const parsedBody = parsedOutput.body;
|
|
2380
|
-
return throwDefaultError({
|
|
2381
|
-
output,
|
|
2382
|
-
parsedBody,
|
|
2383
|
-
errorCode
|
|
2384
|
-
});
|
|
2385
|
-
}
|
|
2386
|
-
}, "de_CreateCoreNetworkCommandError");
|
|
2387
2066
|
var de_CreateDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2388
2067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2389
|
-
return
|
|
2068
|
+
return de_CommandError(output, context);
|
|
2390
2069
|
}
|
|
2391
2070
|
const contents = (0, import_smithy_client.map)({
|
|
2392
2071
|
$metadata: deserializeMetadata(output)
|
|
@@ -2398,46 +2077,9 @@ var de_CreateDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2398
2077
|
Object.assign(contents, doc);
|
|
2399
2078
|
return contents;
|
|
2400
2079
|
}, "de_CreateDeviceCommand");
|
|
2401
|
-
var de_CreateDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2402
|
-
const parsedOutput = {
|
|
2403
|
-
...output,
|
|
2404
|
-
body: await parseErrorBody(output.body, context)
|
|
2405
|
-
};
|
|
2406
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2407
|
-
switch (errorCode) {
|
|
2408
|
-
case "AccessDeniedException":
|
|
2409
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2410
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2411
|
-
case "ConflictException":
|
|
2412
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2413
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2414
|
-
case "InternalServerException":
|
|
2415
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2416
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2417
|
-
case "ResourceNotFoundException":
|
|
2418
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2419
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "ServiceQuotaExceededException":
|
|
2421
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
2422
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2423
|
-
case "ThrottlingException":
|
|
2424
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2425
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2426
|
-
case "ValidationException":
|
|
2427
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2428
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2429
|
-
default:
|
|
2430
|
-
const parsedBody = parsedOutput.body;
|
|
2431
|
-
return throwDefaultError({
|
|
2432
|
-
output,
|
|
2433
|
-
parsedBody,
|
|
2434
|
-
errorCode
|
|
2435
|
-
});
|
|
2436
|
-
}
|
|
2437
|
-
}, "de_CreateDeviceCommandError");
|
|
2438
2080
|
var de_CreateGlobalNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2439
2081
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2440
|
-
return
|
|
2082
|
+
return de_CommandError(output, context);
|
|
2441
2083
|
}
|
|
2442
2084
|
const contents = (0, import_smithy_client.map)({
|
|
2443
2085
|
$metadata: deserializeMetadata(output)
|
|
@@ -2449,43 +2091,9 @@ var de_CreateGlobalNetworkCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2449
2091
|
Object.assign(contents, doc);
|
|
2450
2092
|
return contents;
|
|
2451
2093
|
}, "de_CreateGlobalNetworkCommand");
|
|
2452
|
-
var de_CreateGlobalNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2453
|
-
const parsedOutput = {
|
|
2454
|
-
...output,
|
|
2455
|
-
body: await parseErrorBody(output.body, context)
|
|
2456
|
-
};
|
|
2457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2458
|
-
switch (errorCode) {
|
|
2459
|
-
case "AccessDeniedException":
|
|
2460
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2461
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2462
|
-
case "ConflictException":
|
|
2463
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2464
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2465
|
-
case "InternalServerException":
|
|
2466
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2467
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2468
|
-
case "ServiceQuotaExceededException":
|
|
2469
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
2470
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2471
|
-
case "ThrottlingException":
|
|
2472
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2473
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2474
|
-
case "ValidationException":
|
|
2475
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2476
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2477
|
-
default:
|
|
2478
|
-
const parsedBody = parsedOutput.body;
|
|
2479
|
-
return throwDefaultError({
|
|
2480
|
-
output,
|
|
2481
|
-
parsedBody,
|
|
2482
|
-
errorCode
|
|
2483
|
-
});
|
|
2484
|
-
}
|
|
2485
|
-
}, "de_CreateGlobalNetworkCommandError");
|
|
2486
2094
|
var de_CreateLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2487
2095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2488
|
-
return
|
|
2096
|
+
return de_CommandError(output, context);
|
|
2489
2097
|
}
|
|
2490
2098
|
const contents = (0, import_smithy_client.map)({
|
|
2491
2099
|
$metadata: deserializeMetadata(output)
|
|
@@ -2497,46 +2105,9 @@ var de_CreateLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2497
2105
|
Object.assign(contents, doc);
|
|
2498
2106
|
return contents;
|
|
2499
2107
|
}, "de_CreateLinkCommand");
|
|
2500
|
-
var de_CreateLinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2501
|
-
const parsedOutput = {
|
|
2502
|
-
...output,
|
|
2503
|
-
body: await parseErrorBody(output.body, context)
|
|
2504
|
-
};
|
|
2505
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2506
|
-
switch (errorCode) {
|
|
2507
|
-
case "AccessDeniedException":
|
|
2508
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2509
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2510
|
-
case "ConflictException":
|
|
2511
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2512
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2513
|
-
case "InternalServerException":
|
|
2514
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2515
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2516
|
-
case "ResourceNotFoundException":
|
|
2517
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2518
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2519
|
-
case "ServiceQuotaExceededException":
|
|
2520
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
2521
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2522
|
-
case "ThrottlingException":
|
|
2523
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2524
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2525
|
-
case "ValidationException":
|
|
2526
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2527
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2528
|
-
default:
|
|
2529
|
-
const parsedBody = parsedOutput.body;
|
|
2530
|
-
return throwDefaultError({
|
|
2531
|
-
output,
|
|
2532
|
-
parsedBody,
|
|
2533
|
-
errorCode
|
|
2534
|
-
});
|
|
2535
|
-
}
|
|
2536
|
-
}, "de_CreateLinkCommandError");
|
|
2537
2108
|
var de_CreateSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2538
2109
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2539
|
-
return
|
|
2110
|
+
return de_CommandError(output, context);
|
|
2540
2111
|
}
|
|
2541
2112
|
const contents = (0, import_smithy_client.map)({
|
|
2542
2113
|
$metadata: deserializeMetadata(output)
|
|
@@ -2548,46 +2119,9 @@ var de_CreateSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2548
2119
|
Object.assign(contents, doc);
|
|
2549
2120
|
return contents;
|
|
2550
2121
|
}, "de_CreateSiteCommand");
|
|
2551
|
-
var de_CreateSiteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2552
|
-
const parsedOutput = {
|
|
2553
|
-
...output,
|
|
2554
|
-
body: await parseErrorBody(output.body, context)
|
|
2555
|
-
};
|
|
2556
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2557
|
-
switch (errorCode) {
|
|
2558
|
-
case "AccessDeniedException":
|
|
2559
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2560
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2561
|
-
case "ConflictException":
|
|
2562
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2563
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2564
|
-
case "InternalServerException":
|
|
2565
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2566
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2567
|
-
case "ResourceNotFoundException":
|
|
2568
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2569
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2570
|
-
case "ServiceQuotaExceededException":
|
|
2571
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
2572
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
2573
|
-
case "ThrottlingException":
|
|
2574
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2575
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2576
|
-
case "ValidationException":
|
|
2577
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2578
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2579
|
-
default:
|
|
2580
|
-
const parsedBody = parsedOutput.body;
|
|
2581
|
-
return throwDefaultError({
|
|
2582
|
-
output,
|
|
2583
|
-
parsedBody,
|
|
2584
|
-
errorCode
|
|
2585
|
-
});
|
|
2586
|
-
}
|
|
2587
|
-
}, "de_CreateSiteCommandError");
|
|
2588
2122
|
var de_CreateSiteToSiteVpnAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2589
2123
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2590
|
-
return
|
|
2124
|
+
return de_CommandError(output, context);
|
|
2591
2125
|
}
|
|
2592
2126
|
const contents = (0, import_smithy_client.map)({
|
|
2593
2127
|
$metadata: deserializeMetadata(output)
|
|
@@ -2599,43 +2133,9 @@ var de_CreateSiteToSiteVpnAttachmentCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2599
2133
|
Object.assign(contents, doc);
|
|
2600
2134
|
return contents;
|
|
2601
2135
|
}, "de_CreateSiteToSiteVpnAttachmentCommand");
|
|
2602
|
-
var de_CreateSiteToSiteVpnAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2603
|
-
const parsedOutput = {
|
|
2604
|
-
...output,
|
|
2605
|
-
body: await parseErrorBody(output.body, context)
|
|
2606
|
-
};
|
|
2607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2608
|
-
switch (errorCode) {
|
|
2609
|
-
case "AccessDeniedException":
|
|
2610
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2611
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2612
|
-
case "ConflictException":
|
|
2613
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2614
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2615
|
-
case "InternalServerException":
|
|
2616
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2617
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2618
|
-
case "ResourceNotFoundException":
|
|
2619
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2620
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2621
|
-
case "ThrottlingException":
|
|
2622
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2623
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2624
|
-
case "ValidationException":
|
|
2625
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2626
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2627
|
-
default:
|
|
2628
|
-
const parsedBody = parsedOutput.body;
|
|
2629
|
-
return throwDefaultError({
|
|
2630
|
-
output,
|
|
2631
|
-
parsedBody,
|
|
2632
|
-
errorCode
|
|
2633
|
-
});
|
|
2634
|
-
}
|
|
2635
|
-
}, "de_CreateSiteToSiteVpnAttachmentCommandError");
|
|
2636
2136
|
var de_CreateTransitGatewayPeeringCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2637
2137
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2638
|
-
return
|
|
2138
|
+
return de_CommandError(output, context);
|
|
2639
2139
|
}
|
|
2640
2140
|
const contents = (0, import_smithy_client.map)({
|
|
2641
2141
|
$metadata: deserializeMetadata(output)
|
|
@@ -2647,43 +2147,9 @@ var de_CreateTransitGatewayPeeringCommand = /* @__PURE__ */ __name(async (output
|
|
|
2647
2147
|
Object.assign(contents, doc);
|
|
2648
2148
|
return contents;
|
|
2649
2149
|
}, "de_CreateTransitGatewayPeeringCommand");
|
|
2650
|
-
var de_CreateTransitGatewayPeeringCommandError = /* @__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 "AccessDeniedException":
|
|
2658
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2659
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2660
|
-
case "ConflictException":
|
|
2661
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2662
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2663
|
-
case "InternalServerException":
|
|
2664
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2665
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2666
|
-
case "ResourceNotFoundException":
|
|
2667
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2668
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2669
|
-
case "ThrottlingException":
|
|
2670
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2671
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2672
|
-
case "ValidationException":
|
|
2673
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2674
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2675
|
-
default:
|
|
2676
|
-
const parsedBody = parsedOutput.body;
|
|
2677
|
-
return throwDefaultError({
|
|
2678
|
-
output,
|
|
2679
|
-
parsedBody,
|
|
2680
|
-
errorCode
|
|
2681
|
-
});
|
|
2682
|
-
}
|
|
2683
|
-
}, "de_CreateTransitGatewayPeeringCommandError");
|
|
2684
2150
|
var de_CreateTransitGatewayRouteTableAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2685
2151
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2686
|
-
return
|
|
2152
|
+
return de_CommandError(output, context);
|
|
2687
2153
|
}
|
|
2688
2154
|
const contents = (0, import_smithy_client.map)({
|
|
2689
2155
|
$metadata: deserializeMetadata(output)
|
|
@@ -2695,43 +2161,9 @@ var de_CreateTransitGatewayRouteTableAttachmentCommand = /* @__PURE__ */ __name(
|
|
|
2695
2161
|
Object.assign(contents, doc);
|
|
2696
2162
|
return contents;
|
|
2697
2163
|
}, "de_CreateTransitGatewayRouteTableAttachmentCommand");
|
|
2698
|
-
var de_CreateTransitGatewayRouteTableAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2699
|
-
const parsedOutput = {
|
|
2700
|
-
...output,
|
|
2701
|
-
body: await parseErrorBody(output.body, context)
|
|
2702
|
-
};
|
|
2703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2704
|
-
switch (errorCode) {
|
|
2705
|
-
case "AccessDeniedException":
|
|
2706
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2707
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2708
|
-
case "ConflictException":
|
|
2709
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2710
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2711
|
-
case "InternalServerException":
|
|
2712
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2713
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2714
|
-
case "ResourceNotFoundException":
|
|
2715
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2716
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2717
|
-
case "ThrottlingException":
|
|
2718
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2719
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2720
|
-
case "ValidationException":
|
|
2721
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2722
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2723
|
-
default:
|
|
2724
|
-
const parsedBody = parsedOutput.body;
|
|
2725
|
-
return throwDefaultError({
|
|
2726
|
-
output,
|
|
2727
|
-
parsedBody,
|
|
2728
|
-
errorCode
|
|
2729
|
-
});
|
|
2730
|
-
}
|
|
2731
|
-
}, "de_CreateTransitGatewayRouteTableAttachmentCommandError");
|
|
2732
2164
|
var de_CreateVpcAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2733
2165
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2734
|
-
return
|
|
2166
|
+
return de_CommandError(output, context);
|
|
2735
2167
|
}
|
|
2736
2168
|
const contents = (0, import_smithy_client.map)({
|
|
2737
2169
|
$metadata: deserializeMetadata(output)
|
|
@@ -2743,43 +2175,9 @@ var de_CreateVpcAttachmentCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
2743
2175
|
Object.assign(contents, doc);
|
|
2744
2176
|
return contents;
|
|
2745
2177
|
}, "de_CreateVpcAttachmentCommand");
|
|
2746
|
-
var de_CreateVpcAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2747
|
-
const parsedOutput = {
|
|
2748
|
-
...output,
|
|
2749
|
-
body: await parseErrorBody(output.body, context)
|
|
2750
|
-
};
|
|
2751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2752
|
-
switch (errorCode) {
|
|
2753
|
-
case "AccessDeniedException":
|
|
2754
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2755
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2756
|
-
case "ConflictException":
|
|
2757
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2758
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2759
|
-
case "InternalServerException":
|
|
2760
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2761
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2762
|
-
case "ResourceNotFoundException":
|
|
2763
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2764
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2765
|
-
case "ThrottlingException":
|
|
2766
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2767
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2768
|
-
case "ValidationException":
|
|
2769
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2770
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2771
|
-
default:
|
|
2772
|
-
const parsedBody = parsedOutput.body;
|
|
2773
|
-
return throwDefaultError({
|
|
2774
|
-
output,
|
|
2775
|
-
parsedBody,
|
|
2776
|
-
errorCode
|
|
2777
|
-
});
|
|
2778
|
-
}
|
|
2779
|
-
}, "de_CreateVpcAttachmentCommandError");
|
|
2780
2178
|
var de_DeleteAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2781
2179
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2782
|
-
return
|
|
2180
|
+
return de_CommandError(output, context);
|
|
2783
2181
|
}
|
|
2784
2182
|
const contents = (0, import_smithy_client.map)({
|
|
2785
2183
|
$metadata: deserializeMetadata(output)
|
|
@@ -2791,43 +2189,9 @@ var de_DeleteAttachmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2791
2189
|
Object.assign(contents, doc);
|
|
2792
2190
|
return contents;
|
|
2793
2191
|
}, "de_DeleteAttachmentCommand");
|
|
2794
|
-
var de_DeleteAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2795
|
-
const parsedOutput = {
|
|
2796
|
-
...output,
|
|
2797
|
-
body: await parseErrorBody(output.body, context)
|
|
2798
|
-
};
|
|
2799
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2800
|
-
switch (errorCode) {
|
|
2801
|
-
case "AccessDeniedException":
|
|
2802
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2803
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2804
|
-
case "ConflictException":
|
|
2805
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2806
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2807
|
-
case "InternalServerException":
|
|
2808
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2809
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2810
|
-
case "ResourceNotFoundException":
|
|
2811
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2812
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2813
|
-
case "ThrottlingException":
|
|
2814
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2815
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2816
|
-
case "ValidationException":
|
|
2817
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2818
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2819
|
-
default:
|
|
2820
|
-
const parsedBody = parsedOutput.body;
|
|
2821
|
-
return throwDefaultError({
|
|
2822
|
-
output,
|
|
2823
|
-
parsedBody,
|
|
2824
|
-
errorCode
|
|
2825
|
-
});
|
|
2826
|
-
}
|
|
2827
|
-
}, "de_DeleteAttachmentCommandError");
|
|
2828
2192
|
var de_DeleteConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2829
2193
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2830
|
-
return
|
|
2194
|
+
return de_CommandError(output, context);
|
|
2831
2195
|
}
|
|
2832
2196
|
const contents = (0, import_smithy_client.map)({
|
|
2833
2197
|
$metadata: deserializeMetadata(output)
|
|
@@ -2839,43 +2203,9 @@ var de_DeleteConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2839
2203
|
Object.assign(contents, doc);
|
|
2840
2204
|
return contents;
|
|
2841
2205
|
}, "de_DeleteConnectionCommand");
|
|
2842
|
-
var de_DeleteConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2843
|
-
const parsedOutput = {
|
|
2844
|
-
...output,
|
|
2845
|
-
body: await parseErrorBody(output.body, context)
|
|
2846
|
-
};
|
|
2847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2848
|
-
switch (errorCode) {
|
|
2849
|
-
case "AccessDeniedException":
|
|
2850
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2851
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2852
|
-
case "ConflictException":
|
|
2853
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2854
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2855
|
-
case "InternalServerException":
|
|
2856
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2857
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2858
|
-
case "ResourceNotFoundException":
|
|
2859
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2860
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2861
|
-
case "ThrottlingException":
|
|
2862
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2863
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2864
|
-
case "ValidationException":
|
|
2865
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2866
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2867
|
-
default:
|
|
2868
|
-
const parsedBody = parsedOutput.body;
|
|
2869
|
-
return throwDefaultError({
|
|
2870
|
-
output,
|
|
2871
|
-
parsedBody,
|
|
2872
|
-
errorCode
|
|
2873
|
-
});
|
|
2874
|
-
}
|
|
2875
|
-
}, "de_DeleteConnectionCommandError");
|
|
2876
2206
|
var de_DeleteConnectPeerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2877
2207
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2878
|
-
return
|
|
2208
|
+
return de_CommandError(output, context);
|
|
2879
2209
|
}
|
|
2880
2210
|
const contents = (0, import_smithy_client.map)({
|
|
2881
2211
|
$metadata: deserializeMetadata(output)
|
|
@@ -2887,43 +2217,9 @@ var de_DeleteConnectPeerCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2887
2217
|
Object.assign(contents, doc);
|
|
2888
2218
|
return contents;
|
|
2889
2219
|
}, "de_DeleteConnectPeerCommand");
|
|
2890
|
-
var de_DeleteConnectPeerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2891
|
-
const parsedOutput = {
|
|
2892
|
-
...output,
|
|
2893
|
-
body: await parseErrorBody(output.body, context)
|
|
2894
|
-
};
|
|
2895
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2896
|
-
switch (errorCode) {
|
|
2897
|
-
case "AccessDeniedException":
|
|
2898
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2899
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2900
|
-
case "ConflictException":
|
|
2901
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2902
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2903
|
-
case "InternalServerException":
|
|
2904
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2905
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2906
|
-
case "ResourceNotFoundException":
|
|
2907
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2908
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2909
|
-
case "ThrottlingException":
|
|
2910
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2911
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2912
|
-
case "ValidationException":
|
|
2913
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2914
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2915
|
-
default:
|
|
2916
|
-
const parsedBody = parsedOutput.body;
|
|
2917
|
-
return throwDefaultError({
|
|
2918
|
-
output,
|
|
2919
|
-
parsedBody,
|
|
2920
|
-
errorCode
|
|
2921
|
-
});
|
|
2922
|
-
}
|
|
2923
|
-
}, "de_DeleteConnectPeerCommandError");
|
|
2924
2220
|
var de_DeleteCoreNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2925
2221
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2926
|
-
return
|
|
2222
|
+
return de_CommandError(output, context);
|
|
2927
2223
|
}
|
|
2928
2224
|
const contents = (0, import_smithy_client.map)({
|
|
2929
2225
|
$metadata: deserializeMetadata(output)
|
|
@@ -2935,43 +2231,9 @@ var de_DeleteCoreNetworkCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2935
2231
|
Object.assign(contents, doc);
|
|
2936
2232
|
return contents;
|
|
2937
2233
|
}, "de_DeleteCoreNetworkCommand");
|
|
2938
|
-
var de_DeleteCoreNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2939
|
-
const parsedOutput = {
|
|
2940
|
-
...output,
|
|
2941
|
-
body: await parseErrorBody(output.body, context)
|
|
2942
|
-
};
|
|
2943
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2944
|
-
switch (errorCode) {
|
|
2945
|
-
case "AccessDeniedException":
|
|
2946
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2947
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2948
|
-
case "ConflictException":
|
|
2949
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2950
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2951
|
-
case "InternalServerException":
|
|
2952
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
2953
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2954
|
-
case "ResourceNotFoundException":
|
|
2955
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
2956
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2957
|
-
case "ThrottlingException":
|
|
2958
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
2959
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2960
|
-
case "ValidationException":
|
|
2961
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
2962
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2963
|
-
default:
|
|
2964
|
-
const parsedBody = parsedOutput.body;
|
|
2965
|
-
return throwDefaultError({
|
|
2966
|
-
output,
|
|
2967
|
-
parsedBody,
|
|
2968
|
-
errorCode
|
|
2969
|
-
});
|
|
2970
|
-
}
|
|
2971
|
-
}, "de_DeleteCoreNetworkCommandError");
|
|
2972
2234
|
var de_DeleteCoreNetworkPolicyVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2973
2235
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2974
|
-
return
|
|
2236
|
+
return de_CommandError(output, context);
|
|
2975
2237
|
}
|
|
2976
2238
|
const contents = (0, import_smithy_client.map)({
|
|
2977
2239
|
$metadata: deserializeMetadata(output)
|
|
@@ -2983,43 +2245,9 @@ var de_DeleteCoreNetworkPolicyVersionCommand = /* @__PURE__ */ __name(async (out
|
|
|
2983
2245
|
Object.assign(contents, doc);
|
|
2984
2246
|
return contents;
|
|
2985
2247
|
}, "de_DeleteCoreNetworkPolicyVersionCommand");
|
|
2986
|
-
var de_DeleteCoreNetworkPolicyVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2987
|
-
const parsedOutput = {
|
|
2988
|
-
...output,
|
|
2989
|
-
body: await parseErrorBody(output.body, context)
|
|
2990
|
-
};
|
|
2991
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2992
|
-
switch (errorCode) {
|
|
2993
|
-
case "AccessDeniedException":
|
|
2994
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
2995
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2996
|
-
case "ConflictException":
|
|
2997
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
2998
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2999
|
-
case "InternalServerException":
|
|
3000
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3001
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3002
|
-
case "ResourceNotFoundException":
|
|
3003
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3004
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3005
|
-
case "ThrottlingException":
|
|
3006
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3007
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3008
|
-
case "ValidationException":
|
|
3009
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3010
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3011
|
-
default:
|
|
3012
|
-
const parsedBody = parsedOutput.body;
|
|
3013
|
-
return throwDefaultError({
|
|
3014
|
-
output,
|
|
3015
|
-
parsedBody,
|
|
3016
|
-
errorCode
|
|
3017
|
-
});
|
|
3018
|
-
}
|
|
3019
|
-
}, "de_DeleteCoreNetworkPolicyVersionCommandError");
|
|
3020
2248
|
var de_DeleteDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3021
2249
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3022
|
-
return
|
|
2250
|
+
return de_CommandError(output, context);
|
|
3023
2251
|
}
|
|
3024
2252
|
const contents = (0, import_smithy_client.map)({
|
|
3025
2253
|
$metadata: deserializeMetadata(output)
|
|
@@ -3031,43 +2259,9 @@ var de_DeleteDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3031
2259
|
Object.assign(contents, doc);
|
|
3032
2260
|
return contents;
|
|
3033
2261
|
}, "de_DeleteDeviceCommand");
|
|
3034
|
-
var de_DeleteDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3035
|
-
const parsedOutput = {
|
|
3036
|
-
...output,
|
|
3037
|
-
body: await parseErrorBody(output.body, context)
|
|
3038
|
-
};
|
|
3039
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3040
|
-
switch (errorCode) {
|
|
3041
|
-
case "AccessDeniedException":
|
|
3042
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3043
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3044
|
-
case "ConflictException":
|
|
3045
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
3046
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3047
|
-
case "InternalServerException":
|
|
3048
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3049
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3050
|
-
case "ResourceNotFoundException":
|
|
3051
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3052
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3053
|
-
case "ThrottlingException":
|
|
3054
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3055
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3056
|
-
case "ValidationException":
|
|
3057
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3058
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3059
|
-
default:
|
|
3060
|
-
const parsedBody = parsedOutput.body;
|
|
3061
|
-
return throwDefaultError({
|
|
3062
|
-
output,
|
|
3063
|
-
parsedBody,
|
|
3064
|
-
errorCode
|
|
3065
|
-
});
|
|
3066
|
-
}
|
|
3067
|
-
}, "de_DeleteDeviceCommandError");
|
|
3068
2262
|
var de_DeleteGlobalNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3069
2263
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3070
|
-
return
|
|
2264
|
+
return de_CommandError(output, context);
|
|
3071
2265
|
}
|
|
3072
2266
|
const contents = (0, import_smithy_client.map)({
|
|
3073
2267
|
$metadata: deserializeMetadata(output)
|
|
@@ -3079,43 +2273,9 @@ var de_DeleteGlobalNetworkCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3079
2273
|
Object.assign(contents, doc);
|
|
3080
2274
|
return contents;
|
|
3081
2275
|
}, "de_DeleteGlobalNetworkCommand");
|
|
3082
|
-
var de_DeleteGlobalNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3083
|
-
const parsedOutput = {
|
|
3084
|
-
...output,
|
|
3085
|
-
body: await parseErrorBody(output.body, context)
|
|
3086
|
-
};
|
|
3087
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3088
|
-
switch (errorCode) {
|
|
3089
|
-
case "AccessDeniedException":
|
|
3090
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3091
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3092
|
-
case "ConflictException":
|
|
3093
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
3094
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3095
|
-
case "InternalServerException":
|
|
3096
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3097
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3098
|
-
case "ResourceNotFoundException":
|
|
3099
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3100
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3101
|
-
case "ThrottlingException":
|
|
3102
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3103
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3104
|
-
case "ValidationException":
|
|
3105
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3106
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3107
|
-
default:
|
|
3108
|
-
const parsedBody = parsedOutput.body;
|
|
3109
|
-
return throwDefaultError({
|
|
3110
|
-
output,
|
|
3111
|
-
parsedBody,
|
|
3112
|
-
errorCode
|
|
3113
|
-
});
|
|
3114
|
-
}
|
|
3115
|
-
}, "de_DeleteGlobalNetworkCommandError");
|
|
3116
2276
|
var de_DeleteLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3117
2277
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3118
|
-
return
|
|
2278
|
+
return de_CommandError(output, context);
|
|
3119
2279
|
}
|
|
3120
2280
|
const contents = (0, import_smithy_client.map)({
|
|
3121
2281
|
$metadata: deserializeMetadata(output)
|
|
@@ -3127,43 +2287,9 @@ var de_DeleteLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3127
2287
|
Object.assign(contents, doc);
|
|
3128
2288
|
return contents;
|
|
3129
2289
|
}, "de_DeleteLinkCommand");
|
|
3130
|
-
var de_DeleteLinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3131
|
-
const parsedOutput = {
|
|
3132
|
-
...output,
|
|
3133
|
-
body: await parseErrorBody(output.body, context)
|
|
3134
|
-
};
|
|
3135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3136
|
-
switch (errorCode) {
|
|
3137
|
-
case "AccessDeniedException":
|
|
3138
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3139
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3140
|
-
case "ConflictException":
|
|
3141
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
3142
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3143
|
-
case "InternalServerException":
|
|
3144
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3145
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3146
|
-
case "ResourceNotFoundException":
|
|
3147
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3148
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3149
|
-
case "ThrottlingException":
|
|
3150
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3151
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3152
|
-
case "ValidationException":
|
|
3153
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3154
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3155
|
-
default:
|
|
3156
|
-
const parsedBody = parsedOutput.body;
|
|
3157
|
-
return throwDefaultError({
|
|
3158
|
-
output,
|
|
3159
|
-
parsedBody,
|
|
3160
|
-
errorCode
|
|
3161
|
-
});
|
|
3162
|
-
}
|
|
3163
|
-
}, "de_DeleteLinkCommandError");
|
|
3164
2290
|
var de_DeletePeeringCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3165
2291
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3166
|
-
return
|
|
2292
|
+
return de_CommandError(output, context);
|
|
3167
2293
|
}
|
|
3168
2294
|
const contents = (0, import_smithy_client.map)({
|
|
3169
2295
|
$metadata: deserializeMetadata(output)
|
|
@@ -3175,43 +2301,9 @@ var de_DeletePeeringCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3175
2301
|
Object.assign(contents, doc);
|
|
3176
2302
|
return contents;
|
|
3177
2303
|
}, "de_DeletePeeringCommand");
|
|
3178
|
-
var de_DeletePeeringCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3179
|
-
const parsedOutput = {
|
|
3180
|
-
...output,
|
|
3181
|
-
body: await parseErrorBody(output.body, context)
|
|
3182
|
-
};
|
|
3183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3184
|
-
switch (errorCode) {
|
|
3185
|
-
case "AccessDeniedException":
|
|
3186
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3187
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3188
|
-
case "ConflictException":
|
|
3189
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
3190
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3191
|
-
case "InternalServerException":
|
|
3192
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3193
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3194
|
-
case "ResourceNotFoundException":
|
|
3195
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3196
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3197
|
-
case "ThrottlingException":
|
|
3198
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3199
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3200
|
-
case "ValidationException":
|
|
3201
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3202
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3203
|
-
default:
|
|
3204
|
-
const parsedBody = parsedOutput.body;
|
|
3205
|
-
return throwDefaultError({
|
|
3206
|
-
output,
|
|
3207
|
-
parsedBody,
|
|
3208
|
-
errorCode
|
|
3209
|
-
});
|
|
3210
|
-
}
|
|
3211
|
-
}, "de_DeletePeeringCommandError");
|
|
3212
2304
|
var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3213
2305
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3214
|
-
return
|
|
2306
|
+
return de_CommandError(output, context);
|
|
3215
2307
|
}
|
|
3216
2308
|
const contents = (0, import_smithy_client.map)({
|
|
3217
2309
|
$metadata: deserializeMetadata(output)
|
|
@@ -3219,40 +2311,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3219
2311
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3220
2312
|
return contents;
|
|
3221
2313
|
}, "de_DeleteResourcePolicyCommand");
|
|
3222
|
-
var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3223
|
-
const parsedOutput = {
|
|
3224
|
-
...output,
|
|
3225
|
-
body: await parseErrorBody(output.body, context)
|
|
3226
|
-
};
|
|
3227
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3228
|
-
switch (errorCode) {
|
|
3229
|
-
case "AccessDeniedException":
|
|
3230
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3231
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3232
|
-
case "ConflictException":
|
|
3233
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
3234
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3235
|
-
case "InternalServerException":
|
|
3236
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3237
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3238
|
-
case "ThrottlingException":
|
|
3239
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3240
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3241
|
-
case "ValidationException":
|
|
3242
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3243
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3244
|
-
default:
|
|
3245
|
-
const parsedBody = parsedOutput.body;
|
|
3246
|
-
return throwDefaultError({
|
|
3247
|
-
output,
|
|
3248
|
-
parsedBody,
|
|
3249
|
-
errorCode
|
|
3250
|
-
});
|
|
3251
|
-
}
|
|
3252
|
-
}, "de_DeleteResourcePolicyCommandError");
|
|
3253
2314
|
var de_DeleteSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3254
2315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3255
|
-
return
|
|
2316
|
+
return de_CommandError(output, context);
|
|
3256
2317
|
}
|
|
3257
2318
|
const contents = (0, import_smithy_client.map)({
|
|
3258
2319
|
$metadata: deserializeMetadata(output)
|
|
@@ -3264,43 +2325,9 @@ var de_DeleteSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3264
2325
|
Object.assign(contents, doc);
|
|
3265
2326
|
return contents;
|
|
3266
2327
|
}, "de_DeleteSiteCommand");
|
|
3267
|
-
var de_DeleteSiteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3268
|
-
const parsedOutput = {
|
|
3269
|
-
...output,
|
|
3270
|
-
body: await parseErrorBody(output.body, context)
|
|
3271
|
-
};
|
|
3272
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3273
|
-
switch (errorCode) {
|
|
3274
|
-
case "AccessDeniedException":
|
|
3275
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3276
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3277
|
-
case "ConflictException":
|
|
3278
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
3279
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3280
|
-
case "InternalServerException":
|
|
3281
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3282
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3283
|
-
case "ResourceNotFoundException":
|
|
3284
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3285
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3286
|
-
case "ThrottlingException":
|
|
3287
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3288
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3289
|
-
case "ValidationException":
|
|
3290
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3291
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3292
|
-
default:
|
|
3293
|
-
const parsedBody = parsedOutput.body;
|
|
3294
|
-
return throwDefaultError({
|
|
3295
|
-
output,
|
|
3296
|
-
parsedBody,
|
|
3297
|
-
errorCode
|
|
3298
|
-
});
|
|
3299
|
-
}
|
|
3300
|
-
}, "de_DeleteSiteCommandError");
|
|
3301
2328
|
var de_DeregisterTransitGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3302
2329
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3303
|
-
return
|
|
2330
|
+
return de_CommandError(output, context);
|
|
3304
2331
|
}
|
|
3305
2332
|
const contents = (0, import_smithy_client.map)({
|
|
3306
2333
|
$metadata: deserializeMetadata(output)
|
|
@@ -3312,43 +2339,9 @@ var de_DeregisterTransitGatewayCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
3312
2339
|
Object.assign(contents, doc);
|
|
3313
2340
|
return contents;
|
|
3314
2341
|
}, "de_DeregisterTransitGatewayCommand");
|
|
3315
|
-
var de_DeregisterTransitGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3316
|
-
const parsedOutput = {
|
|
3317
|
-
...output,
|
|
3318
|
-
body: await parseErrorBody(output.body, context)
|
|
3319
|
-
};
|
|
3320
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3321
|
-
switch (errorCode) {
|
|
3322
|
-
case "AccessDeniedException":
|
|
3323
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3324
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3325
|
-
case "ConflictException":
|
|
3326
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
3327
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3328
|
-
case "InternalServerException":
|
|
3329
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3330
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3331
|
-
case "ResourceNotFoundException":
|
|
3332
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3333
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3334
|
-
case "ThrottlingException":
|
|
3335
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3336
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3337
|
-
case "ValidationException":
|
|
3338
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3339
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3340
|
-
default:
|
|
3341
|
-
const parsedBody = parsedOutput.body;
|
|
3342
|
-
return throwDefaultError({
|
|
3343
|
-
output,
|
|
3344
|
-
parsedBody,
|
|
3345
|
-
errorCode
|
|
3346
|
-
});
|
|
3347
|
-
}
|
|
3348
|
-
}, "de_DeregisterTransitGatewayCommandError");
|
|
3349
2342
|
var de_DescribeGlobalNetworksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3350
2343
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3351
|
-
return
|
|
2344
|
+
return de_CommandError(output, context);
|
|
3352
2345
|
}
|
|
3353
2346
|
const contents = (0, import_smithy_client.map)({
|
|
3354
2347
|
$metadata: deserializeMetadata(output)
|
|
@@ -3361,40 +2354,9 @@ var de_DescribeGlobalNetworksCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
3361
2354
|
Object.assign(contents, doc);
|
|
3362
2355
|
return contents;
|
|
3363
2356
|
}, "de_DescribeGlobalNetworksCommand");
|
|
3364
|
-
var de_DescribeGlobalNetworksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3365
|
-
const parsedOutput = {
|
|
3366
|
-
...output,
|
|
3367
|
-
body: await parseErrorBody(output.body, context)
|
|
3368
|
-
};
|
|
3369
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3370
|
-
switch (errorCode) {
|
|
3371
|
-
case "AccessDeniedException":
|
|
3372
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3373
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3374
|
-
case "InternalServerException":
|
|
3375
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3376
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3377
|
-
case "ResourceNotFoundException":
|
|
3378
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3379
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3380
|
-
case "ThrottlingException":
|
|
3381
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3382
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3383
|
-
case "ValidationException":
|
|
3384
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3385
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3386
|
-
default:
|
|
3387
|
-
const parsedBody = parsedOutput.body;
|
|
3388
|
-
return throwDefaultError({
|
|
3389
|
-
output,
|
|
3390
|
-
parsedBody,
|
|
3391
|
-
errorCode
|
|
3392
|
-
});
|
|
3393
|
-
}
|
|
3394
|
-
}, "de_DescribeGlobalNetworksCommandError");
|
|
3395
2357
|
var de_DisassociateConnectPeerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3396
2358
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3397
|
-
return
|
|
2359
|
+
return de_CommandError(output, context);
|
|
3398
2360
|
}
|
|
3399
2361
|
const contents = (0, import_smithy_client.map)({
|
|
3400
2362
|
$metadata: deserializeMetadata(output)
|
|
@@ -3406,43 +2368,9 @@ var de_DisassociateConnectPeerCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3406
2368
|
Object.assign(contents, doc);
|
|
3407
2369
|
return contents;
|
|
3408
2370
|
}, "de_DisassociateConnectPeerCommand");
|
|
3409
|
-
var de_DisassociateConnectPeerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3410
|
-
const parsedOutput = {
|
|
3411
|
-
...output,
|
|
3412
|
-
body: await parseErrorBody(output.body, context)
|
|
3413
|
-
};
|
|
3414
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3415
|
-
switch (errorCode) {
|
|
3416
|
-
case "AccessDeniedException":
|
|
3417
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3418
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3419
|
-
case "ConflictException":
|
|
3420
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
3421
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3422
|
-
case "InternalServerException":
|
|
3423
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3424
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3425
|
-
case "ResourceNotFoundException":
|
|
3426
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3427
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3428
|
-
case "ThrottlingException":
|
|
3429
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3430
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3431
|
-
case "ValidationException":
|
|
3432
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3433
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3434
|
-
default:
|
|
3435
|
-
const parsedBody = parsedOutput.body;
|
|
3436
|
-
return throwDefaultError({
|
|
3437
|
-
output,
|
|
3438
|
-
parsedBody,
|
|
3439
|
-
errorCode
|
|
3440
|
-
});
|
|
3441
|
-
}
|
|
3442
|
-
}, "de_DisassociateConnectPeerCommandError");
|
|
3443
2371
|
var de_DisassociateCustomerGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3444
2372
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3445
|
-
return
|
|
2373
|
+
return de_CommandError(output, context);
|
|
3446
2374
|
}
|
|
3447
2375
|
const contents = (0, import_smithy_client.map)({
|
|
3448
2376
|
$metadata: deserializeMetadata(output)
|
|
@@ -3454,43 +2382,9 @@ var de_DisassociateCustomerGatewayCommand = /* @__PURE__ */ __name(async (output
|
|
|
3454
2382
|
Object.assign(contents, doc);
|
|
3455
2383
|
return contents;
|
|
3456
2384
|
}, "de_DisassociateCustomerGatewayCommand");
|
|
3457
|
-
var de_DisassociateCustomerGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3458
|
-
const parsedOutput = {
|
|
3459
|
-
...output,
|
|
3460
|
-
body: await parseErrorBody(output.body, context)
|
|
3461
|
-
};
|
|
3462
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3463
|
-
switch (errorCode) {
|
|
3464
|
-
case "AccessDeniedException":
|
|
3465
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3466
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3467
|
-
case "ConflictException":
|
|
3468
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
3469
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3470
|
-
case "InternalServerException":
|
|
3471
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3472
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3473
|
-
case "ResourceNotFoundException":
|
|
3474
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3475
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3476
|
-
case "ThrottlingException":
|
|
3477
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3478
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3479
|
-
case "ValidationException":
|
|
3480
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3481
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3482
|
-
default:
|
|
3483
|
-
const parsedBody = parsedOutput.body;
|
|
3484
|
-
return throwDefaultError({
|
|
3485
|
-
output,
|
|
3486
|
-
parsedBody,
|
|
3487
|
-
errorCode
|
|
3488
|
-
});
|
|
3489
|
-
}
|
|
3490
|
-
}, "de_DisassociateCustomerGatewayCommandError");
|
|
3491
2385
|
var de_DisassociateLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3492
2386
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3493
|
-
return
|
|
2387
|
+
return de_CommandError(output, context);
|
|
3494
2388
|
}
|
|
3495
2389
|
const contents = (0, import_smithy_client.map)({
|
|
3496
2390
|
$metadata: deserializeMetadata(output)
|
|
@@ -3502,43 +2396,9 @@ var de_DisassociateLinkCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
3502
2396
|
Object.assign(contents, doc);
|
|
3503
2397
|
return contents;
|
|
3504
2398
|
}, "de_DisassociateLinkCommand");
|
|
3505
|
-
var de_DisassociateLinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3506
|
-
const parsedOutput = {
|
|
3507
|
-
...output,
|
|
3508
|
-
body: await parseErrorBody(output.body, context)
|
|
3509
|
-
};
|
|
3510
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3511
|
-
switch (errorCode) {
|
|
3512
|
-
case "AccessDeniedException":
|
|
3513
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3514
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3515
|
-
case "ConflictException":
|
|
3516
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
3517
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3518
|
-
case "InternalServerException":
|
|
3519
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3520
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3521
|
-
case "ResourceNotFoundException":
|
|
3522
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3523
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3524
|
-
case "ThrottlingException":
|
|
3525
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3526
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3527
|
-
case "ValidationException":
|
|
3528
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3529
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3530
|
-
default:
|
|
3531
|
-
const parsedBody = parsedOutput.body;
|
|
3532
|
-
return throwDefaultError({
|
|
3533
|
-
output,
|
|
3534
|
-
parsedBody,
|
|
3535
|
-
errorCode
|
|
3536
|
-
});
|
|
3537
|
-
}
|
|
3538
|
-
}, "de_DisassociateLinkCommandError");
|
|
3539
2399
|
var de_DisassociateTransitGatewayConnectPeerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3540
2400
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3541
|
-
return
|
|
2401
|
+
return de_CommandError(output, context);
|
|
3542
2402
|
}
|
|
3543
2403
|
const contents = (0, import_smithy_client.map)({
|
|
3544
2404
|
$metadata: deserializeMetadata(output)
|
|
@@ -3550,43 +2410,9 @@ var de_DisassociateTransitGatewayConnectPeerCommand = /* @__PURE__ */ __name(asy
|
|
|
3550
2410
|
Object.assign(contents, doc);
|
|
3551
2411
|
return contents;
|
|
3552
2412
|
}, "de_DisassociateTransitGatewayConnectPeerCommand");
|
|
3553
|
-
var de_DisassociateTransitGatewayConnectPeerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3554
|
-
const parsedOutput = {
|
|
3555
|
-
...output,
|
|
3556
|
-
body: await parseErrorBody(output.body, context)
|
|
3557
|
-
};
|
|
3558
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3559
|
-
switch (errorCode) {
|
|
3560
|
-
case "AccessDeniedException":
|
|
3561
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3562
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3563
|
-
case "ConflictException":
|
|
3564
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
3565
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3566
|
-
case "InternalServerException":
|
|
3567
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3568
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3569
|
-
case "ResourceNotFoundException":
|
|
3570
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3571
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3572
|
-
case "ThrottlingException":
|
|
3573
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3574
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3575
|
-
case "ValidationException":
|
|
3576
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3577
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3578
|
-
default:
|
|
3579
|
-
const parsedBody = parsedOutput.body;
|
|
3580
|
-
return throwDefaultError({
|
|
3581
|
-
output,
|
|
3582
|
-
parsedBody,
|
|
3583
|
-
errorCode
|
|
3584
|
-
});
|
|
3585
|
-
}
|
|
3586
|
-
}, "de_DisassociateTransitGatewayConnectPeerCommandError");
|
|
3587
2413
|
var de_ExecuteCoreNetworkChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3588
2414
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3589
|
-
return
|
|
2415
|
+
return de_CommandError(output, context);
|
|
3590
2416
|
}
|
|
3591
2417
|
const contents = (0, import_smithy_client.map)({
|
|
3592
2418
|
$metadata: deserializeMetadata(output)
|
|
@@ -3594,43 +2420,9 @@ var de_ExecuteCoreNetworkChangeSetCommand = /* @__PURE__ */ __name(async (output
|
|
|
3594
2420
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3595
2421
|
return contents;
|
|
3596
2422
|
}, "de_ExecuteCoreNetworkChangeSetCommand");
|
|
3597
|
-
var de_ExecuteCoreNetworkChangeSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3598
|
-
const parsedOutput = {
|
|
3599
|
-
...output,
|
|
3600
|
-
body: await parseErrorBody(output.body, context)
|
|
3601
|
-
};
|
|
3602
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3603
|
-
switch (errorCode) {
|
|
3604
|
-
case "AccessDeniedException":
|
|
3605
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3606
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3607
|
-
case "ConflictException":
|
|
3608
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
3609
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3610
|
-
case "InternalServerException":
|
|
3611
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3612
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3613
|
-
case "ResourceNotFoundException":
|
|
3614
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3615
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3616
|
-
case "ThrottlingException":
|
|
3617
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3618
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3619
|
-
case "ValidationException":
|
|
3620
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3621
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3622
|
-
default:
|
|
3623
|
-
const parsedBody = parsedOutput.body;
|
|
3624
|
-
return throwDefaultError({
|
|
3625
|
-
output,
|
|
3626
|
-
parsedBody,
|
|
3627
|
-
errorCode
|
|
3628
|
-
});
|
|
3629
|
-
}
|
|
3630
|
-
}, "de_ExecuteCoreNetworkChangeSetCommandError");
|
|
3631
2423
|
var de_GetConnectAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3632
2424
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3633
|
-
return
|
|
2425
|
+
return de_CommandError(output, context);
|
|
3634
2426
|
}
|
|
3635
2427
|
const contents = (0, import_smithy_client.map)({
|
|
3636
2428
|
$metadata: deserializeMetadata(output)
|
|
@@ -3642,40 +2434,9 @@ var de_GetConnectAttachmentCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3642
2434
|
Object.assign(contents, doc);
|
|
3643
2435
|
return contents;
|
|
3644
2436
|
}, "de_GetConnectAttachmentCommand");
|
|
3645
|
-
var de_GetConnectAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3646
|
-
const parsedOutput = {
|
|
3647
|
-
...output,
|
|
3648
|
-
body: await parseErrorBody(output.body, context)
|
|
3649
|
-
};
|
|
3650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3651
|
-
switch (errorCode) {
|
|
3652
|
-
case "AccessDeniedException":
|
|
3653
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3654
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3655
|
-
case "InternalServerException":
|
|
3656
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3657
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3658
|
-
case "ResourceNotFoundException":
|
|
3659
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3660
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3661
|
-
case "ThrottlingException":
|
|
3662
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3663
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3664
|
-
case "ValidationException":
|
|
3665
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3666
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3667
|
-
default:
|
|
3668
|
-
const parsedBody = parsedOutput.body;
|
|
3669
|
-
return throwDefaultError({
|
|
3670
|
-
output,
|
|
3671
|
-
parsedBody,
|
|
3672
|
-
errorCode
|
|
3673
|
-
});
|
|
3674
|
-
}
|
|
3675
|
-
}, "de_GetConnectAttachmentCommandError");
|
|
3676
2437
|
var de_GetConnectionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3677
2438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3678
|
-
return
|
|
2439
|
+
return de_CommandError(output, context);
|
|
3679
2440
|
}
|
|
3680
2441
|
const contents = (0, import_smithy_client.map)({
|
|
3681
2442
|
$metadata: deserializeMetadata(output)
|
|
@@ -3688,40 +2449,9 @@ var de_GetConnectionsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3688
2449
|
Object.assign(contents, doc);
|
|
3689
2450
|
return contents;
|
|
3690
2451
|
}, "de_GetConnectionsCommand");
|
|
3691
|
-
var de_GetConnectionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3692
|
-
const parsedOutput = {
|
|
3693
|
-
...output,
|
|
3694
|
-
body: await parseErrorBody(output.body, context)
|
|
3695
|
-
};
|
|
3696
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3697
|
-
switch (errorCode) {
|
|
3698
|
-
case "AccessDeniedException":
|
|
3699
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3700
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3701
|
-
case "InternalServerException":
|
|
3702
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3703
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3704
|
-
case "ResourceNotFoundException":
|
|
3705
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3706
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3707
|
-
case "ThrottlingException":
|
|
3708
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3709
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3710
|
-
case "ValidationException":
|
|
3711
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3712
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3713
|
-
default:
|
|
3714
|
-
const parsedBody = parsedOutput.body;
|
|
3715
|
-
return throwDefaultError({
|
|
3716
|
-
output,
|
|
3717
|
-
parsedBody,
|
|
3718
|
-
errorCode
|
|
3719
|
-
});
|
|
3720
|
-
}
|
|
3721
|
-
}, "de_GetConnectionsCommandError");
|
|
3722
2452
|
var de_GetConnectPeerCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3723
2453
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3724
|
-
return
|
|
2454
|
+
return de_CommandError(output, context);
|
|
3725
2455
|
}
|
|
3726
2456
|
const contents = (0, import_smithy_client.map)({
|
|
3727
2457
|
$metadata: deserializeMetadata(output)
|
|
@@ -3733,40 +2463,9 @@ var de_GetConnectPeerCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3733
2463
|
Object.assign(contents, doc);
|
|
3734
2464
|
return contents;
|
|
3735
2465
|
}, "de_GetConnectPeerCommand");
|
|
3736
|
-
var de_GetConnectPeerCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3737
|
-
const parsedOutput = {
|
|
3738
|
-
...output,
|
|
3739
|
-
body: await parseErrorBody(output.body, context)
|
|
3740
|
-
};
|
|
3741
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3742
|
-
switch (errorCode) {
|
|
3743
|
-
case "AccessDeniedException":
|
|
3744
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3745
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3746
|
-
case "InternalServerException":
|
|
3747
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3748
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3749
|
-
case "ResourceNotFoundException":
|
|
3750
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3751
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3752
|
-
case "ThrottlingException":
|
|
3753
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3754
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3755
|
-
case "ValidationException":
|
|
3756
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3757
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3758
|
-
default:
|
|
3759
|
-
const parsedBody = parsedOutput.body;
|
|
3760
|
-
return throwDefaultError({
|
|
3761
|
-
output,
|
|
3762
|
-
parsedBody,
|
|
3763
|
-
errorCode
|
|
3764
|
-
});
|
|
3765
|
-
}
|
|
3766
|
-
}, "de_GetConnectPeerCommandError");
|
|
3767
2466
|
var de_GetConnectPeerAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3768
2467
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3769
|
-
return
|
|
2468
|
+
return de_CommandError(output, context);
|
|
3770
2469
|
}
|
|
3771
2470
|
const contents = (0, import_smithy_client.map)({
|
|
3772
2471
|
$metadata: deserializeMetadata(output)
|
|
@@ -3779,43 +2478,9 @@ var de_GetConnectPeerAssociationsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3779
2478
|
Object.assign(contents, doc);
|
|
3780
2479
|
return contents;
|
|
3781
2480
|
}, "de_GetConnectPeerAssociationsCommand");
|
|
3782
|
-
var de_GetConnectPeerAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3783
|
-
const parsedOutput = {
|
|
3784
|
-
...output,
|
|
3785
|
-
body: await parseErrorBody(output.body, context)
|
|
3786
|
-
};
|
|
3787
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3788
|
-
switch (errorCode) {
|
|
3789
|
-
case "AccessDeniedException":
|
|
3790
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3791
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3792
|
-
case "ConflictException":
|
|
3793
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
3794
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3795
|
-
case "InternalServerException":
|
|
3796
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3797
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3798
|
-
case "ResourceNotFoundException":
|
|
3799
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3800
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3801
|
-
case "ThrottlingException":
|
|
3802
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3803
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3804
|
-
case "ValidationException":
|
|
3805
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3806
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3807
|
-
default:
|
|
3808
|
-
const parsedBody = parsedOutput.body;
|
|
3809
|
-
return throwDefaultError({
|
|
3810
|
-
output,
|
|
3811
|
-
parsedBody,
|
|
3812
|
-
errorCode
|
|
3813
|
-
});
|
|
3814
|
-
}
|
|
3815
|
-
}, "de_GetConnectPeerAssociationsCommandError");
|
|
3816
2481
|
var de_GetCoreNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3817
2482
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3818
|
-
return
|
|
2483
|
+
return de_CommandError(output, context);
|
|
3819
2484
|
}
|
|
3820
2485
|
const contents = (0, import_smithy_client.map)({
|
|
3821
2486
|
$metadata: deserializeMetadata(output)
|
|
@@ -3827,40 +2492,9 @@ var de_GetCoreNetworkCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3827
2492
|
Object.assign(contents, doc);
|
|
3828
2493
|
return contents;
|
|
3829
2494
|
}, "de_GetCoreNetworkCommand");
|
|
3830
|
-
var de_GetCoreNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3831
|
-
const parsedOutput = {
|
|
3832
|
-
...output,
|
|
3833
|
-
body: await parseErrorBody(output.body, context)
|
|
3834
|
-
};
|
|
3835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3836
|
-
switch (errorCode) {
|
|
3837
|
-
case "AccessDeniedException":
|
|
3838
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3839
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3840
|
-
case "InternalServerException":
|
|
3841
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3842
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3843
|
-
case "ResourceNotFoundException":
|
|
3844
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3845
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3846
|
-
case "ThrottlingException":
|
|
3847
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3848
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3849
|
-
case "ValidationException":
|
|
3850
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3851
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3852
|
-
default:
|
|
3853
|
-
const parsedBody = parsedOutput.body;
|
|
3854
|
-
return throwDefaultError({
|
|
3855
|
-
output,
|
|
3856
|
-
parsedBody,
|
|
3857
|
-
errorCode
|
|
3858
|
-
});
|
|
3859
|
-
}
|
|
3860
|
-
}, "de_GetCoreNetworkCommandError");
|
|
3861
2495
|
var de_GetCoreNetworkChangeEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3862
2496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3863
|
-
return
|
|
2497
|
+
return de_CommandError(output, context);
|
|
3864
2498
|
}
|
|
3865
2499
|
const contents = (0, import_smithy_client.map)({
|
|
3866
2500
|
$metadata: deserializeMetadata(output)
|
|
@@ -3873,40 +2507,9 @@ var de_GetCoreNetworkChangeEventsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
3873
2507
|
Object.assign(contents, doc);
|
|
3874
2508
|
return contents;
|
|
3875
2509
|
}, "de_GetCoreNetworkChangeEventsCommand");
|
|
3876
|
-
var de_GetCoreNetworkChangeEventsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3877
|
-
const parsedOutput = {
|
|
3878
|
-
...output,
|
|
3879
|
-
body: await parseErrorBody(output.body, context)
|
|
3880
|
-
};
|
|
3881
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3882
|
-
switch (errorCode) {
|
|
3883
|
-
case "AccessDeniedException":
|
|
3884
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3885
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3886
|
-
case "InternalServerException":
|
|
3887
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3888
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3889
|
-
case "ResourceNotFoundException":
|
|
3890
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3891
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3892
|
-
case "ThrottlingException":
|
|
3893
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3894
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3895
|
-
case "ValidationException":
|
|
3896
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3897
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3898
|
-
default:
|
|
3899
|
-
const parsedBody = parsedOutput.body;
|
|
3900
|
-
return throwDefaultError({
|
|
3901
|
-
output,
|
|
3902
|
-
parsedBody,
|
|
3903
|
-
errorCode
|
|
3904
|
-
});
|
|
3905
|
-
}
|
|
3906
|
-
}, "de_GetCoreNetworkChangeEventsCommandError");
|
|
3907
2510
|
var de_GetCoreNetworkChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3908
2511
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3909
|
-
return
|
|
2512
|
+
return de_CommandError(output, context);
|
|
3910
2513
|
}
|
|
3911
2514
|
const contents = (0, import_smithy_client.map)({
|
|
3912
2515
|
$metadata: deserializeMetadata(output)
|
|
@@ -3919,40 +2522,9 @@ var de_GetCoreNetworkChangeSetCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
3919
2522
|
Object.assign(contents, doc);
|
|
3920
2523
|
return contents;
|
|
3921
2524
|
}, "de_GetCoreNetworkChangeSetCommand");
|
|
3922
|
-
var de_GetCoreNetworkChangeSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3923
|
-
const parsedOutput = {
|
|
3924
|
-
...output,
|
|
3925
|
-
body: await parseErrorBody(output.body, context)
|
|
3926
|
-
};
|
|
3927
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3928
|
-
switch (errorCode) {
|
|
3929
|
-
case "AccessDeniedException":
|
|
3930
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3931
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3932
|
-
case "InternalServerException":
|
|
3933
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3934
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3935
|
-
case "ResourceNotFoundException":
|
|
3936
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3937
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3938
|
-
case "ThrottlingException":
|
|
3939
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3940
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3941
|
-
case "ValidationException":
|
|
3942
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3943
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3944
|
-
default:
|
|
3945
|
-
const parsedBody = parsedOutput.body;
|
|
3946
|
-
return throwDefaultError({
|
|
3947
|
-
output,
|
|
3948
|
-
parsedBody,
|
|
3949
|
-
errorCode
|
|
3950
|
-
});
|
|
3951
|
-
}
|
|
3952
|
-
}, "de_GetCoreNetworkChangeSetCommandError");
|
|
3953
2525
|
var de_GetCoreNetworkPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3954
2526
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3955
|
-
return
|
|
2527
|
+
return de_CommandError(output, context);
|
|
3956
2528
|
}
|
|
3957
2529
|
const contents = (0, import_smithy_client.map)({
|
|
3958
2530
|
$metadata: deserializeMetadata(output)
|
|
@@ -3964,40 +2536,9 @@ var de_GetCoreNetworkPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
3964
2536
|
Object.assign(contents, doc);
|
|
3965
2537
|
return contents;
|
|
3966
2538
|
}, "de_GetCoreNetworkPolicyCommand");
|
|
3967
|
-
var de_GetCoreNetworkPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
3968
|
-
const parsedOutput = {
|
|
3969
|
-
...output,
|
|
3970
|
-
body: await parseErrorBody(output.body, context)
|
|
3971
|
-
};
|
|
3972
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3973
|
-
switch (errorCode) {
|
|
3974
|
-
case "AccessDeniedException":
|
|
3975
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
3976
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3977
|
-
case "InternalServerException":
|
|
3978
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
3979
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3980
|
-
case "ResourceNotFoundException":
|
|
3981
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
3982
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3983
|
-
case "ThrottlingException":
|
|
3984
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
3985
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3986
|
-
case "ValidationException":
|
|
3987
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
3988
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3989
|
-
default:
|
|
3990
|
-
const parsedBody = parsedOutput.body;
|
|
3991
|
-
return throwDefaultError({
|
|
3992
|
-
output,
|
|
3993
|
-
parsedBody,
|
|
3994
|
-
errorCode
|
|
3995
|
-
});
|
|
3996
|
-
}
|
|
3997
|
-
}, "de_GetCoreNetworkPolicyCommandError");
|
|
3998
2539
|
var de_GetCustomerGatewayAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3999
2540
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4000
|
-
return
|
|
2541
|
+
return de_CommandError(output, context);
|
|
4001
2542
|
}
|
|
4002
2543
|
const contents = (0, import_smithy_client.map)({
|
|
4003
2544
|
$metadata: deserializeMetadata(output)
|
|
@@ -4010,43 +2551,9 @@ var de_GetCustomerGatewayAssociationsCommand = /* @__PURE__ */ __name(async (out
|
|
|
4010
2551
|
Object.assign(contents, doc);
|
|
4011
2552
|
return contents;
|
|
4012
2553
|
}, "de_GetCustomerGatewayAssociationsCommand");
|
|
4013
|
-
var de_GetCustomerGatewayAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4014
|
-
const parsedOutput = {
|
|
4015
|
-
...output,
|
|
4016
|
-
body: await parseErrorBody(output.body, context)
|
|
4017
|
-
};
|
|
4018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4019
|
-
switch (errorCode) {
|
|
4020
|
-
case "AccessDeniedException":
|
|
4021
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4022
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4023
|
-
case "ConflictException":
|
|
4024
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
4025
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4026
|
-
case "InternalServerException":
|
|
4027
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4028
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4029
|
-
case "ResourceNotFoundException":
|
|
4030
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4031
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4032
|
-
case "ThrottlingException":
|
|
4033
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4034
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4035
|
-
case "ValidationException":
|
|
4036
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4037
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4038
|
-
default:
|
|
4039
|
-
const parsedBody = parsedOutput.body;
|
|
4040
|
-
return throwDefaultError({
|
|
4041
|
-
output,
|
|
4042
|
-
parsedBody,
|
|
4043
|
-
errorCode
|
|
4044
|
-
});
|
|
4045
|
-
}
|
|
4046
|
-
}, "de_GetCustomerGatewayAssociationsCommandError");
|
|
4047
2554
|
var de_GetDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4048
2555
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4049
|
-
return
|
|
2556
|
+
return de_CommandError(output, context);
|
|
4050
2557
|
}
|
|
4051
2558
|
const contents = (0, import_smithy_client.map)({
|
|
4052
2559
|
$metadata: deserializeMetadata(output)
|
|
@@ -4059,40 +2566,9 @@ var de_GetDevicesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4059
2566
|
Object.assign(contents, doc);
|
|
4060
2567
|
return contents;
|
|
4061
2568
|
}, "de_GetDevicesCommand");
|
|
4062
|
-
var de_GetDevicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4063
|
-
const parsedOutput = {
|
|
4064
|
-
...output,
|
|
4065
|
-
body: await parseErrorBody(output.body, context)
|
|
4066
|
-
};
|
|
4067
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4068
|
-
switch (errorCode) {
|
|
4069
|
-
case "AccessDeniedException":
|
|
4070
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4071
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4072
|
-
case "InternalServerException":
|
|
4073
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4074
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4075
|
-
case "ResourceNotFoundException":
|
|
4076
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4077
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4078
|
-
case "ThrottlingException":
|
|
4079
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4080
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4081
|
-
case "ValidationException":
|
|
4082
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4083
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4084
|
-
default:
|
|
4085
|
-
const parsedBody = parsedOutput.body;
|
|
4086
|
-
return throwDefaultError({
|
|
4087
|
-
output,
|
|
4088
|
-
parsedBody,
|
|
4089
|
-
errorCode
|
|
4090
|
-
});
|
|
4091
|
-
}
|
|
4092
|
-
}, "de_GetDevicesCommandError");
|
|
4093
2569
|
var de_GetLinkAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4094
2570
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4095
|
-
return
|
|
2571
|
+
return de_CommandError(output, context);
|
|
4096
2572
|
}
|
|
4097
2573
|
const contents = (0, import_smithy_client.map)({
|
|
4098
2574
|
$metadata: deserializeMetadata(output)
|
|
@@ -4105,40 +2581,9 @@ var de_GetLinkAssociationsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4105
2581
|
Object.assign(contents, doc);
|
|
4106
2582
|
return contents;
|
|
4107
2583
|
}, "de_GetLinkAssociationsCommand");
|
|
4108
|
-
var de_GetLinkAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4109
|
-
const parsedOutput = {
|
|
4110
|
-
...output,
|
|
4111
|
-
body: await parseErrorBody(output.body, context)
|
|
4112
|
-
};
|
|
4113
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4114
|
-
switch (errorCode) {
|
|
4115
|
-
case "AccessDeniedException":
|
|
4116
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4117
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4118
|
-
case "InternalServerException":
|
|
4119
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4120
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4121
|
-
case "ResourceNotFoundException":
|
|
4122
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4123
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4124
|
-
case "ThrottlingException":
|
|
4125
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4126
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4127
|
-
case "ValidationException":
|
|
4128
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4129
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4130
|
-
default:
|
|
4131
|
-
const parsedBody = parsedOutput.body;
|
|
4132
|
-
return throwDefaultError({
|
|
4133
|
-
output,
|
|
4134
|
-
parsedBody,
|
|
4135
|
-
errorCode
|
|
4136
|
-
});
|
|
4137
|
-
}
|
|
4138
|
-
}, "de_GetLinkAssociationsCommandError");
|
|
4139
2584
|
var de_GetLinksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4140
2585
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4141
|
-
return
|
|
2586
|
+
return de_CommandError(output, context);
|
|
4142
2587
|
}
|
|
4143
2588
|
const contents = (0, import_smithy_client.map)({
|
|
4144
2589
|
$metadata: deserializeMetadata(output)
|
|
@@ -4151,40 +2596,9 @@ var de_GetLinksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4151
2596
|
Object.assign(contents, doc);
|
|
4152
2597
|
return contents;
|
|
4153
2598
|
}, "de_GetLinksCommand");
|
|
4154
|
-
var de_GetLinksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4155
|
-
const parsedOutput = {
|
|
4156
|
-
...output,
|
|
4157
|
-
body: await parseErrorBody(output.body, context)
|
|
4158
|
-
};
|
|
4159
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4160
|
-
switch (errorCode) {
|
|
4161
|
-
case "AccessDeniedException":
|
|
4162
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4163
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4164
|
-
case "InternalServerException":
|
|
4165
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4166
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4167
|
-
case "ResourceNotFoundException":
|
|
4168
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4169
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4170
|
-
case "ThrottlingException":
|
|
4171
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4172
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4173
|
-
case "ValidationException":
|
|
4174
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4175
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4176
|
-
default:
|
|
4177
|
-
const parsedBody = parsedOutput.body;
|
|
4178
|
-
return throwDefaultError({
|
|
4179
|
-
output,
|
|
4180
|
-
parsedBody,
|
|
4181
|
-
errorCode
|
|
4182
|
-
});
|
|
4183
|
-
}
|
|
4184
|
-
}, "de_GetLinksCommandError");
|
|
4185
2599
|
var de_GetNetworkResourceCountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4186
2600
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4187
|
-
return
|
|
2601
|
+
return de_CommandError(output, context);
|
|
4188
2602
|
}
|
|
4189
2603
|
const contents = (0, import_smithy_client.map)({
|
|
4190
2604
|
$metadata: deserializeMetadata(output)
|
|
@@ -4197,37 +2611,9 @@ var de_GetNetworkResourceCountsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
4197
2611
|
Object.assign(contents, doc);
|
|
4198
2612
|
return contents;
|
|
4199
2613
|
}, "de_GetNetworkResourceCountsCommand");
|
|
4200
|
-
var de_GetNetworkResourceCountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4201
|
-
const parsedOutput = {
|
|
4202
|
-
...output,
|
|
4203
|
-
body: await parseErrorBody(output.body, context)
|
|
4204
|
-
};
|
|
4205
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4206
|
-
switch (errorCode) {
|
|
4207
|
-
case "AccessDeniedException":
|
|
4208
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4209
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4210
|
-
case "InternalServerException":
|
|
4211
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4212
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4213
|
-
case "ThrottlingException":
|
|
4214
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4215
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4216
|
-
case "ValidationException":
|
|
4217
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4218
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4219
|
-
default:
|
|
4220
|
-
const parsedBody = parsedOutput.body;
|
|
4221
|
-
return throwDefaultError({
|
|
4222
|
-
output,
|
|
4223
|
-
parsedBody,
|
|
4224
|
-
errorCode
|
|
4225
|
-
});
|
|
4226
|
-
}
|
|
4227
|
-
}, "de_GetNetworkResourceCountsCommandError");
|
|
4228
2614
|
var de_GetNetworkResourceRelationshipsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4229
2615
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4230
|
-
return
|
|
2616
|
+
return de_CommandError(output, context);
|
|
4231
2617
|
}
|
|
4232
2618
|
const contents = (0, import_smithy_client.map)({
|
|
4233
2619
|
$metadata: deserializeMetadata(output)
|
|
@@ -4240,40 +2626,9 @@ var de_GetNetworkResourceRelationshipsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
4240
2626
|
Object.assign(contents, doc);
|
|
4241
2627
|
return contents;
|
|
4242
2628
|
}, "de_GetNetworkResourceRelationshipsCommand");
|
|
4243
|
-
var de_GetNetworkResourceRelationshipsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4244
|
-
const parsedOutput = {
|
|
4245
|
-
...output,
|
|
4246
|
-
body: await parseErrorBody(output.body, context)
|
|
4247
|
-
};
|
|
4248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4249
|
-
switch (errorCode) {
|
|
4250
|
-
case "AccessDeniedException":
|
|
4251
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4252
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4253
|
-
case "InternalServerException":
|
|
4254
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4255
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4256
|
-
case "ResourceNotFoundException":
|
|
4257
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4258
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4259
|
-
case "ThrottlingException":
|
|
4260
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4261
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4262
|
-
case "ValidationException":
|
|
4263
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4264
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4265
|
-
default:
|
|
4266
|
-
const parsedBody = parsedOutput.body;
|
|
4267
|
-
return throwDefaultError({
|
|
4268
|
-
output,
|
|
4269
|
-
parsedBody,
|
|
4270
|
-
errorCode
|
|
4271
|
-
});
|
|
4272
|
-
}
|
|
4273
|
-
}, "de_GetNetworkResourceRelationshipsCommandError");
|
|
4274
2629
|
var de_GetNetworkResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4275
2630
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4276
|
-
return
|
|
2631
|
+
return de_CommandError(output, context);
|
|
4277
2632
|
}
|
|
4278
2633
|
const contents = (0, import_smithy_client.map)({
|
|
4279
2634
|
$metadata: deserializeMetadata(output)
|
|
@@ -4286,40 +2641,9 @@ var de_GetNetworkResourcesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4286
2641
|
Object.assign(contents, doc);
|
|
4287
2642
|
return contents;
|
|
4288
2643
|
}, "de_GetNetworkResourcesCommand");
|
|
4289
|
-
var de_GetNetworkResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4290
|
-
const parsedOutput = {
|
|
4291
|
-
...output,
|
|
4292
|
-
body: await parseErrorBody(output.body, context)
|
|
4293
|
-
};
|
|
4294
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4295
|
-
switch (errorCode) {
|
|
4296
|
-
case "AccessDeniedException":
|
|
4297
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4298
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4299
|
-
case "InternalServerException":
|
|
4300
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4301
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4302
|
-
case "ResourceNotFoundException":
|
|
4303
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4304
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4305
|
-
case "ThrottlingException":
|
|
4306
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4307
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4308
|
-
case "ValidationException":
|
|
4309
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4310
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4311
|
-
default:
|
|
4312
|
-
const parsedBody = parsedOutput.body;
|
|
4313
|
-
return throwDefaultError({
|
|
4314
|
-
output,
|
|
4315
|
-
parsedBody,
|
|
4316
|
-
errorCode
|
|
4317
|
-
});
|
|
4318
|
-
}
|
|
4319
|
-
}, "de_GetNetworkResourcesCommandError");
|
|
4320
2644
|
var de_GetNetworkRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4321
2645
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4322
|
-
return
|
|
2646
|
+
return de_CommandError(output, context);
|
|
4323
2647
|
}
|
|
4324
2648
|
const contents = (0, import_smithy_client.map)({
|
|
4325
2649
|
$metadata: deserializeMetadata(output)
|
|
@@ -4335,40 +2659,9 @@ var de_GetNetworkRoutesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4335
2659
|
Object.assign(contents, doc);
|
|
4336
2660
|
return contents;
|
|
4337
2661
|
}, "de_GetNetworkRoutesCommand");
|
|
4338
|
-
var de_GetNetworkRoutesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4339
|
-
const parsedOutput = {
|
|
4340
|
-
...output,
|
|
4341
|
-
body: await parseErrorBody(output.body, context)
|
|
4342
|
-
};
|
|
4343
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4344
|
-
switch (errorCode) {
|
|
4345
|
-
case "AccessDeniedException":
|
|
4346
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4347
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4348
|
-
case "InternalServerException":
|
|
4349
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4350
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4351
|
-
case "ResourceNotFoundException":
|
|
4352
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4353
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4354
|
-
case "ThrottlingException":
|
|
4355
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4356
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4357
|
-
case "ValidationException":
|
|
4358
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4359
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4360
|
-
default:
|
|
4361
|
-
const parsedBody = parsedOutput.body;
|
|
4362
|
-
return throwDefaultError({
|
|
4363
|
-
output,
|
|
4364
|
-
parsedBody,
|
|
4365
|
-
errorCode
|
|
4366
|
-
});
|
|
4367
|
-
}
|
|
4368
|
-
}, "de_GetNetworkRoutesCommandError");
|
|
4369
2662
|
var de_GetNetworkTelemetryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4370
2663
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4371
|
-
return
|
|
2664
|
+
return de_CommandError(output, context);
|
|
4372
2665
|
}
|
|
4373
2666
|
const contents = (0, import_smithy_client.map)({
|
|
4374
2667
|
$metadata: deserializeMetadata(output)
|
|
@@ -4381,40 +2674,9 @@ var de_GetNetworkTelemetryCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
4381
2674
|
Object.assign(contents, doc);
|
|
4382
2675
|
return contents;
|
|
4383
2676
|
}, "de_GetNetworkTelemetryCommand");
|
|
4384
|
-
var de_GetNetworkTelemetryCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4385
|
-
const parsedOutput = {
|
|
4386
|
-
...output,
|
|
4387
|
-
body: await parseErrorBody(output.body, context)
|
|
4388
|
-
};
|
|
4389
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4390
|
-
switch (errorCode) {
|
|
4391
|
-
case "AccessDeniedException":
|
|
4392
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4393
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4394
|
-
case "InternalServerException":
|
|
4395
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4396
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4397
|
-
case "ResourceNotFoundException":
|
|
4398
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4399
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4400
|
-
case "ThrottlingException":
|
|
4401
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4402
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4403
|
-
case "ValidationException":
|
|
4404
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4405
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4406
|
-
default:
|
|
4407
|
-
const parsedBody = parsedOutput.body;
|
|
4408
|
-
return throwDefaultError({
|
|
4409
|
-
output,
|
|
4410
|
-
parsedBody,
|
|
4411
|
-
errorCode
|
|
4412
|
-
});
|
|
4413
|
-
}
|
|
4414
|
-
}, "de_GetNetworkTelemetryCommandError");
|
|
4415
2677
|
var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4416
2678
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4417
|
-
return
|
|
2679
|
+
return de_CommandError(output, context);
|
|
4418
2680
|
}
|
|
4419
2681
|
const contents = (0, import_smithy_client.map)({
|
|
4420
2682
|
$metadata: deserializeMetadata(output)
|
|
@@ -4426,37 +2688,9 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4426
2688
|
Object.assign(contents, doc);
|
|
4427
2689
|
return contents;
|
|
4428
2690
|
}, "de_GetResourcePolicyCommand");
|
|
4429
|
-
var de_GetResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4430
|
-
const parsedOutput = {
|
|
4431
|
-
...output,
|
|
4432
|
-
body: await parseErrorBody(output.body, context)
|
|
4433
|
-
};
|
|
4434
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4435
|
-
switch (errorCode) {
|
|
4436
|
-
case "AccessDeniedException":
|
|
4437
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4438
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4439
|
-
case "InternalServerException":
|
|
4440
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4441
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4442
|
-
case "ThrottlingException":
|
|
4443
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4444
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4445
|
-
case "ValidationException":
|
|
4446
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4447
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4448
|
-
default:
|
|
4449
|
-
const parsedBody = parsedOutput.body;
|
|
4450
|
-
return throwDefaultError({
|
|
4451
|
-
output,
|
|
4452
|
-
parsedBody,
|
|
4453
|
-
errorCode
|
|
4454
|
-
});
|
|
4455
|
-
}
|
|
4456
|
-
}, "de_GetResourcePolicyCommandError");
|
|
4457
2691
|
var de_GetRouteAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4458
2692
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4459
|
-
return
|
|
2693
|
+
return de_CommandError(output, context);
|
|
4460
2694
|
}
|
|
4461
2695
|
const contents = (0, import_smithy_client.map)({
|
|
4462
2696
|
$metadata: deserializeMetadata(output)
|
|
@@ -4468,40 +2702,9 @@ var de_GetRouteAnalysisCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4468
2702
|
Object.assign(contents, doc);
|
|
4469
2703
|
return contents;
|
|
4470
2704
|
}, "de_GetRouteAnalysisCommand");
|
|
4471
|
-
var de_GetRouteAnalysisCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4472
|
-
const parsedOutput = {
|
|
4473
|
-
...output,
|
|
4474
|
-
body: await parseErrorBody(output.body, context)
|
|
4475
|
-
};
|
|
4476
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4477
|
-
switch (errorCode) {
|
|
4478
|
-
case "AccessDeniedException":
|
|
4479
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4480
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4481
|
-
case "InternalServerException":
|
|
4482
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4483
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4484
|
-
case "ResourceNotFoundException":
|
|
4485
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4486
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4487
|
-
case "ThrottlingException":
|
|
4488
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4489
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4490
|
-
case "ValidationException":
|
|
4491
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4492
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4493
|
-
default:
|
|
4494
|
-
const parsedBody = parsedOutput.body;
|
|
4495
|
-
return throwDefaultError({
|
|
4496
|
-
output,
|
|
4497
|
-
parsedBody,
|
|
4498
|
-
errorCode
|
|
4499
|
-
});
|
|
4500
|
-
}
|
|
4501
|
-
}, "de_GetRouteAnalysisCommandError");
|
|
4502
2705
|
var de_GetSitesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4503
2706
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4504
|
-
return
|
|
2707
|
+
return de_CommandError(output, context);
|
|
4505
2708
|
}
|
|
4506
2709
|
const contents = (0, import_smithy_client.map)({
|
|
4507
2710
|
$metadata: deserializeMetadata(output)
|
|
@@ -4514,40 +2717,9 @@ var de_GetSitesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
4514
2717
|
Object.assign(contents, doc);
|
|
4515
2718
|
return contents;
|
|
4516
2719
|
}, "de_GetSitesCommand");
|
|
4517
|
-
var de_GetSitesCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4518
|
-
const parsedOutput = {
|
|
4519
|
-
...output,
|
|
4520
|
-
body: await parseErrorBody(output.body, context)
|
|
4521
|
-
};
|
|
4522
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4523
|
-
switch (errorCode) {
|
|
4524
|
-
case "AccessDeniedException":
|
|
4525
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4526
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4527
|
-
case "InternalServerException":
|
|
4528
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4529
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4530
|
-
case "ResourceNotFoundException":
|
|
4531
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4532
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4533
|
-
case "ThrottlingException":
|
|
4534
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4535
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4536
|
-
case "ValidationException":
|
|
4537
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4538
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4539
|
-
default:
|
|
4540
|
-
const parsedBody = parsedOutput.body;
|
|
4541
|
-
return throwDefaultError({
|
|
4542
|
-
output,
|
|
4543
|
-
parsedBody,
|
|
4544
|
-
errorCode
|
|
4545
|
-
});
|
|
4546
|
-
}
|
|
4547
|
-
}, "de_GetSitesCommandError");
|
|
4548
2720
|
var de_GetSiteToSiteVpnAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4549
2721
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4550
|
-
return
|
|
2722
|
+
return de_CommandError(output, context);
|
|
4551
2723
|
}
|
|
4552
2724
|
const contents = (0, import_smithy_client.map)({
|
|
4553
2725
|
$metadata: deserializeMetadata(output)
|
|
@@ -4559,40 +2731,9 @@ var de_GetSiteToSiteVpnAttachmentCommand = /* @__PURE__ */ __name(async (output,
|
|
|
4559
2731
|
Object.assign(contents, doc);
|
|
4560
2732
|
return contents;
|
|
4561
2733
|
}, "de_GetSiteToSiteVpnAttachmentCommand");
|
|
4562
|
-
var de_GetSiteToSiteVpnAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4563
|
-
const parsedOutput = {
|
|
4564
|
-
...output,
|
|
4565
|
-
body: await parseErrorBody(output.body, context)
|
|
4566
|
-
};
|
|
4567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4568
|
-
switch (errorCode) {
|
|
4569
|
-
case "AccessDeniedException":
|
|
4570
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4571
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4572
|
-
case "InternalServerException":
|
|
4573
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4574
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4575
|
-
case "ResourceNotFoundException":
|
|
4576
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4577
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4578
|
-
case "ThrottlingException":
|
|
4579
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4580
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4581
|
-
case "ValidationException":
|
|
4582
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4583
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4584
|
-
default:
|
|
4585
|
-
const parsedBody = parsedOutput.body;
|
|
4586
|
-
return throwDefaultError({
|
|
4587
|
-
output,
|
|
4588
|
-
parsedBody,
|
|
4589
|
-
errorCode
|
|
4590
|
-
});
|
|
4591
|
-
}
|
|
4592
|
-
}, "de_GetSiteToSiteVpnAttachmentCommandError");
|
|
4593
2734
|
var de_GetTransitGatewayConnectPeerAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4594
2735
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4595
|
-
return
|
|
2736
|
+
return de_CommandError(output, context);
|
|
4596
2737
|
}
|
|
4597
2738
|
const contents = (0, import_smithy_client.map)({
|
|
4598
2739
|
$metadata: deserializeMetadata(output)
|
|
@@ -4605,43 +2746,9 @@ var de_GetTransitGatewayConnectPeerAssociationsCommand = /* @__PURE__ */ __name(
|
|
|
4605
2746
|
Object.assign(contents, doc);
|
|
4606
2747
|
return contents;
|
|
4607
2748
|
}, "de_GetTransitGatewayConnectPeerAssociationsCommand");
|
|
4608
|
-
var de_GetTransitGatewayConnectPeerAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4609
|
-
const parsedOutput = {
|
|
4610
|
-
...output,
|
|
4611
|
-
body: await parseErrorBody(output.body, context)
|
|
4612
|
-
};
|
|
4613
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4614
|
-
switch (errorCode) {
|
|
4615
|
-
case "AccessDeniedException":
|
|
4616
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4617
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4618
|
-
case "ConflictException":
|
|
4619
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
4620
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4621
|
-
case "InternalServerException":
|
|
4622
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4623
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4624
|
-
case "ResourceNotFoundException":
|
|
4625
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4626
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4627
|
-
case "ThrottlingException":
|
|
4628
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4629
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4630
|
-
case "ValidationException":
|
|
4631
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4632
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4633
|
-
default:
|
|
4634
|
-
const parsedBody = parsedOutput.body;
|
|
4635
|
-
return throwDefaultError({
|
|
4636
|
-
output,
|
|
4637
|
-
parsedBody,
|
|
4638
|
-
errorCode
|
|
4639
|
-
});
|
|
4640
|
-
}
|
|
4641
|
-
}, "de_GetTransitGatewayConnectPeerAssociationsCommandError");
|
|
4642
2749
|
var de_GetTransitGatewayPeeringCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4643
2750
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4644
|
-
return
|
|
2751
|
+
return de_CommandError(output, context);
|
|
4645
2752
|
}
|
|
4646
2753
|
const contents = (0, import_smithy_client.map)({
|
|
4647
2754
|
$metadata: deserializeMetadata(output)
|
|
@@ -4653,40 +2760,9 @@ var de_GetTransitGatewayPeeringCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
4653
2760
|
Object.assign(contents, doc);
|
|
4654
2761
|
return contents;
|
|
4655
2762
|
}, "de_GetTransitGatewayPeeringCommand");
|
|
4656
|
-
var de_GetTransitGatewayPeeringCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4657
|
-
const parsedOutput = {
|
|
4658
|
-
...output,
|
|
4659
|
-
body: await parseErrorBody(output.body, context)
|
|
4660
|
-
};
|
|
4661
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4662
|
-
switch (errorCode) {
|
|
4663
|
-
case "AccessDeniedException":
|
|
4664
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4665
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4666
|
-
case "InternalServerException":
|
|
4667
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4668
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4669
|
-
case "ResourceNotFoundException":
|
|
4670
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4671
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4672
|
-
case "ThrottlingException":
|
|
4673
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4674
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4675
|
-
case "ValidationException":
|
|
4676
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4677
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4678
|
-
default:
|
|
4679
|
-
const parsedBody = parsedOutput.body;
|
|
4680
|
-
return throwDefaultError({
|
|
4681
|
-
output,
|
|
4682
|
-
parsedBody,
|
|
4683
|
-
errorCode
|
|
4684
|
-
});
|
|
4685
|
-
}
|
|
4686
|
-
}, "de_GetTransitGatewayPeeringCommandError");
|
|
4687
2763
|
var de_GetTransitGatewayRegistrationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4688
2764
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4689
|
-
return
|
|
2765
|
+
return de_CommandError(output, context);
|
|
4690
2766
|
}
|
|
4691
2767
|
const contents = (0, import_smithy_client.map)({
|
|
4692
2768
|
$metadata: deserializeMetadata(output)
|
|
@@ -4699,40 +2775,9 @@ var de_GetTransitGatewayRegistrationsCommand = /* @__PURE__ */ __name(async (out
|
|
|
4699
2775
|
Object.assign(contents, doc);
|
|
4700
2776
|
return contents;
|
|
4701
2777
|
}, "de_GetTransitGatewayRegistrationsCommand");
|
|
4702
|
-
var de_GetTransitGatewayRegistrationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4703
|
-
const parsedOutput = {
|
|
4704
|
-
...output,
|
|
4705
|
-
body: await parseErrorBody(output.body, context)
|
|
4706
|
-
};
|
|
4707
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4708
|
-
switch (errorCode) {
|
|
4709
|
-
case "AccessDeniedException":
|
|
4710
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4711
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4712
|
-
case "InternalServerException":
|
|
4713
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4714
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4715
|
-
case "ResourceNotFoundException":
|
|
4716
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4717
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4718
|
-
case "ThrottlingException":
|
|
4719
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4720
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4721
|
-
case "ValidationException":
|
|
4722
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4723
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4724
|
-
default:
|
|
4725
|
-
const parsedBody = parsedOutput.body;
|
|
4726
|
-
return throwDefaultError({
|
|
4727
|
-
output,
|
|
4728
|
-
parsedBody,
|
|
4729
|
-
errorCode
|
|
4730
|
-
});
|
|
4731
|
-
}
|
|
4732
|
-
}, "de_GetTransitGatewayRegistrationsCommandError");
|
|
4733
2778
|
var de_GetTransitGatewayRouteTableAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4734
2779
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4735
|
-
return
|
|
2780
|
+
return de_CommandError(output, context);
|
|
4736
2781
|
}
|
|
4737
2782
|
const contents = (0, import_smithy_client.map)({
|
|
4738
2783
|
$metadata: deserializeMetadata(output)
|
|
@@ -4744,40 +2789,9 @@ var de_GetTransitGatewayRouteTableAttachmentCommand = /* @__PURE__ */ __name(asy
|
|
|
4744
2789
|
Object.assign(contents, doc);
|
|
4745
2790
|
return contents;
|
|
4746
2791
|
}, "de_GetTransitGatewayRouteTableAttachmentCommand");
|
|
4747
|
-
var de_GetTransitGatewayRouteTableAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4748
|
-
const parsedOutput = {
|
|
4749
|
-
...output,
|
|
4750
|
-
body: await parseErrorBody(output.body, context)
|
|
4751
|
-
};
|
|
4752
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4753
|
-
switch (errorCode) {
|
|
4754
|
-
case "AccessDeniedException":
|
|
4755
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4756
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4757
|
-
case "InternalServerException":
|
|
4758
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4759
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4760
|
-
case "ResourceNotFoundException":
|
|
4761
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4762
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4763
|
-
case "ThrottlingException":
|
|
4764
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4765
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4766
|
-
case "ValidationException":
|
|
4767
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4768
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4769
|
-
default:
|
|
4770
|
-
const parsedBody = parsedOutput.body;
|
|
4771
|
-
return throwDefaultError({
|
|
4772
|
-
output,
|
|
4773
|
-
parsedBody,
|
|
4774
|
-
errorCode
|
|
4775
|
-
});
|
|
4776
|
-
}
|
|
4777
|
-
}, "de_GetTransitGatewayRouteTableAttachmentCommandError");
|
|
4778
2792
|
var de_GetVpcAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4779
2793
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4780
|
-
return
|
|
2794
|
+
return de_CommandError(output, context);
|
|
4781
2795
|
}
|
|
4782
2796
|
const contents = (0, import_smithy_client.map)({
|
|
4783
2797
|
$metadata: deserializeMetadata(output)
|
|
@@ -4789,40 +2803,9 @@ var de_GetVpcAttachmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4789
2803
|
Object.assign(contents, doc);
|
|
4790
2804
|
return contents;
|
|
4791
2805
|
}, "de_GetVpcAttachmentCommand");
|
|
4792
|
-
var de_GetVpcAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4793
|
-
const parsedOutput = {
|
|
4794
|
-
...output,
|
|
4795
|
-
body: await parseErrorBody(output.body, context)
|
|
4796
|
-
};
|
|
4797
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4798
|
-
switch (errorCode) {
|
|
4799
|
-
case "AccessDeniedException":
|
|
4800
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4801
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4802
|
-
case "InternalServerException":
|
|
4803
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4804
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4805
|
-
case "ResourceNotFoundException":
|
|
4806
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4807
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4808
|
-
case "ThrottlingException":
|
|
4809
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4810
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4811
|
-
case "ValidationException":
|
|
4812
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4813
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4814
|
-
default:
|
|
4815
|
-
const parsedBody = parsedOutput.body;
|
|
4816
|
-
return throwDefaultError({
|
|
4817
|
-
output,
|
|
4818
|
-
parsedBody,
|
|
4819
|
-
errorCode
|
|
4820
|
-
});
|
|
4821
|
-
}
|
|
4822
|
-
}, "de_GetVpcAttachmentCommandError");
|
|
4823
2806
|
var de_ListAttachmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4824
2807
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4825
|
-
return
|
|
2808
|
+
return de_CommandError(output, context);
|
|
4826
2809
|
}
|
|
4827
2810
|
const contents = (0, import_smithy_client.map)({
|
|
4828
2811
|
$metadata: deserializeMetadata(output)
|
|
@@ -4835,37 +2818,9 @@ var de_ListAttachmentsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
4835
2818
|
Object.assign(contents, doc);
|
|
4836
2819
|
return contents;
|
|
4837
2820
|
}, "de_ListAttachmentsCommand");
|
|
4838
|
-
var de_ListAttachmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4839
|
-
const parsedOutput = {
|
|
4840
|
-
...output,
|
|
4841
|
-
body: await parseErrorBody(output.body, context)
|
|
4842
|
-
};
|
|
4843
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4844
|
-
switch (errorCode) {
|
|
4845
|
-
case "AccessDeniedException":
|
|
4846
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4847
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4848
|
-
case "InternalServerException":
|
|
4849
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4850
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4851
|
-
case "ThrottlingException":
|
|
4852
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4853
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4854
|
-
case "ValidationException":
|
|
4855
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4856
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4857
|
-
default:
|
|
4858
|
-
const parsedBody = parsedOutput.body;
|
|
4859
|
-
return throwDefaultError({
|
|
4860
|
-
output,
|
|
4861
|
-
parsedBody,
|
|
4862
|
-
errorCode
|
|
4863
|
-
});
|
|
4864
|
-
}
|
|
4865
|
-
}, "de_ListAttachmentsCommandError");
|
|
4866
2821
|
var de_ListConnectPeersCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4867
2822
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4868
|
-
return
|
|
2823
|
+
return de_CommandError(output, context);
|
|
4869
2824
|
}
|
|
4870
2825
|
const contents = (0, import_smithy_client.map)({
|
|
4871
2826
|
$metadata: deserializeMetadata(output)
|
|
@@ -4878,37 +2833,9 @@ var de_ListConnectPeersCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4878
2833
|
Object.assign(contents, doc);
|
|
4879
2834
|
return contents;
|
|
4880
2835
|
}, "de_ListConnectPeersCommand");
|
|
4881
|
-
var de_ListConnectPeersCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4882
|
-
const parsedOutput = {
|
|
4883
|
-
...output,
|
|
4884
|
-
body: await parseErrorBody(output.body, context)
|
|
4885
|
-
};
|
|
4886
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4887
|
-
switch (errorCode) {
|
|
4888
|
-
case "AccessDeniedException":
|
|
4889
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4890
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4891
|
-
case "InternalServerException":
|
|
4892
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4893
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4894
|
-
case "ThrottlingException":
|
|
4895
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4896
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4897
|
-
case "ValidationException":
|
|
4898
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4899
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4900
|
-
default:
|
|
4901
|
-
const parsedBody = parsedOutput.body;
|
|
4902
|
-
return throwDefaultError({
|
|
4903
|
-
output,
|
|
4904
|
-
parsedBody,
|
|
4905
|
-
errorCode
|
|
4906
|
-
});
|
|
4907
|
-
}
|
|
4908
|
-
}, "de_ListConnectPeersCommandError");
|
|
4909
2836
|
var de_ListCoreNetworkPolicyVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4910
2837
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4911
|
-
return
|
|
2838
|
+
return de_CommandError(output, context);
|
|
4912
2839
|
}
|
|
4913
2840
|
const contents = (0, import_smithy_client.map)({
|
|
4914
2841
|
$metadata: deserializeMetadata(output)
|
|
@@ -4921,40 +2848,9 @@ var de_ListCoreNetworkPolicyVersionsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
4921
2848
|
Object.assign(contents, doc);
|
|
4922
2849
|
return contents;
|
|
4923
2850
|
}, "de_ListCoreNetworkPolicyVersionsCommand");
|
|
4924
|
-
var de_ListCoreNetworkPolicyVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4925
|
-
const parsedOutput = {
|
|
4926
|
-
...output,
|
|
4927
|
-
body: await parseErrorBody(output.body, context)
|
|
4928
|
-
};
|
|
4929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4930
|
-
switch (errorCode) {
|
|
4931
|
-
case "AccessDeniedException":
|
|
4932
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4933
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4934
|
-
case "InternalServerException":
|
|
4935
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4936
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4937
|
-
case "ResourceNotFoundException":
|
|
4938
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
4939
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4940
|
-
case "ThrottlingException":
|
|
4941
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4942
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4943
|
-
case "ValidationException":
|
|
4944
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4945
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4946
|
-
default:
|
|
4947
|
-
const parsedBody = parsedOutput.body;
|
|
4948
|
-
return throwDefaultError({
|
|
4949
|
-
output,
|
|
4950
|
-
parsedBody,
|
|
4951
|
-
errorCode
|
|
4952
|
-
});
|
|
4953
|
-
}
|
|
4954
|
-
}, "de_ListCoreNetworkPolicyVersionsCommandError");
|
|
4955
2851
|
var de_ListCoreNetworksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4956
2852
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4957
|
-
return
|
|
2853
|
+
return de_CommandError(output, context);
|
|
4958
2854
|
}
|
|
4959
2855
|
const contents = (0, import_smithy_client.map)({
|
|
4960
2856
|
$metadata: deserializeMetadata(output)
|
|
@@ -4967,37 +2863,9 @@ var de_ListCoreNetworksCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
4967
2863
|
Object.assign(contents, doc);
|
|
4968
2864
|
return contents;
|
|
4969
2865
|
}, "de_ListCoreNetworksCommand");
|
|
4970
|
-
var de_ListCoreNetworksCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
4971
|
-
const parsedOutput = {
|
|
4972
|
-
...output,
|
|
4973
|
-
body: await parseErrorBody(output.body, context)
|
|
4974
|
-
};
|
|
4975
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4976
|
-
switch (errorCode) {
|
|
4977
|
-
case "AccessDeniedException":
|
|
4978
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
4979
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4980
|
-
case "InternalServerException":
|
|
4981
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
4982
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
4983
|
-
case "ThrottlingException":
|
|
4984
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
4985
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
4986
|
-
case "ValidationException":
|
|
4987
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
4988
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4989
|
-
default:
|
|
4990
|
-
const parsedBody = parsedOutput.body;
|
|
4991
|
-
return throwDefaultError({
|
|
4992
|
-
output,
|
|
4993
|
-
parsedBody,
|
|
4994
|
-
errorCode
|
|
4995
|
-
});
|
|
4996
|
-
}
|
|
4997
|
-
}, "de_ListCoreNetworksCommandError");
|
|
4998
2866
|
var de_ListOrganizationServiceAccessStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
4999
2867
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5000
|
-
return
|
|
2868
|
+
return de_CommandError(output, context);
|
|
5001
2869
|
}
|
|
5002
2870
|
const contents = (0, import_smithy_client.map)({
|
|
5003
2871
|
$metadata: deserializeMetadata(output)
|
|
@@ -5010,22 +2878,9 @@ var de_ListOrganizationServiceAccessStatusCommand = /* @__PURE__ */ __name(async
|
|
|
5010
2878
|
Object.assign(contents, doc);
|
|
5011
2879
|
return contents;
|
|
5012
2880
|
}, "de_ListOrganizationServiceAccessStatusCommand");
|
|
5013
|
-
var de_ListOrganizationServiceAccessStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5014
|
-
const parsedOutput = {
|
|
5015
|
-
...output,
|
|
5016
|
-
body: await parseErrorBody(output.body, context)
|
|
5017
|
-
};
|
|
5018
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5019
|
-
const parsedBody = parsedOutput.body;
|
|
5020
|
-
return throwDefaultError({
|
|
5021
|
-
output,
|
|
5022
|
-
parsedBody,
|
|
5023
|
-
errorCode
|
|
5024
|
-
});
|
|
5025
|
-
}, "de_ListOrganizationServiceAccessStatusCommandError");
|
|
5026
2881
|
var de_ListPeeringsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5027
2882
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5028
|
-
return
|
|
2883
|
+
return de_CommandError(output, context);
|
|
5029
2884
|
}
|
|
5030
2885
|
const contents = (0, import_smithy_client.map)({
|
|
5031
2886
|
$metadata: deserializeMetadata(output)
|
|
@@ -5038,37 +2893,9 @@ var de_ListPeeringsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5038
2893
|
Object.assign(contents, doc);
|
|
5039
2894
|
return contents;
|
|
5040
2895
|
}, "de_ListPeeringsCommand");
|
|
5041
|
-
var de_ListPeeringsCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5042
|
-
const parsedOutput = {
|
|
5043
|
-
...output,
|
|
5044
|
-
body: await parseErrorBody(output.body, context)
|
|
5045
|
-
};
|
|
5046
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5047
|
-
switch (errorCode) {
|
|
5048
|
-
case "AccessDeniedException":
|
|
5049
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5050
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5051
|
-
case "InternalServerException":
|
|
5052
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5053
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5054
|
-
case "ThrottlingException":
|
|
5055
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5056
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5057
|
-
case "ValidationException":
|
|
5058
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5059
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5060
|
-
default:
|
|
5061
|
-
const parsedBody = parsedOutput.body;
|
|
5062
|
-
return throwDefaultError({
|
|
5063
|
-
output,
|
|
5064
|
-
parsedBody,
|
|
5065
|
-
errorCode
|
|
5066
|
-
});
|
|
5067
|
-
}
|
|
5068
|
-
}, "de_ListPeeringsCommandError");
|
|
5069
2896
|
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5070
2897
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5071
|
-
return
|
|
2898
|
+
return de_CommandError(output, context);
|
|
5072
2899
|
}
|
|
5073
2900
|
const contents = (0, import_smithy_client.map)({
|
|
5074
2901
|
$metadata: deserializeMetadata(output)
|
|
@@ -5080,40 +2907,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
5080
2907
|
Object.assign(contents, doc);
|
|
5081
2908
|
return contents;
|
|
5082
2909
|
}, "de_ListTagsForResourceCommand");
|
|
5083
|
-
var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5084
|
-
const parsedOutput = {
|
|
5085
|
-
...output,
|
|
5086
|
-
body: await parseErrorBody(output.body, context)
|
|
5087
|
-
};
|
|
5088
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5089
|
-
switch (errorCode) {
|
|
5090
|
-
case "AccessDeniedException":
|
|
5091
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5092
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5093
|
-
case "InternalServerException":
|
|
5094
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5095
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5096
|
-
case "ResourceNotFoundException":
|
|
5097
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5098
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5099
|
-
case "ThrottlingException":
|
|
5100
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5101
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5102
|
-
case "ValidationException":
|
|
5103
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5104
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5105
|
-
default:
|
|
5106
|
-
const parsedBody = parsedOutput.body;
|
|
5107
|
-
return throwDefaultError({
|
|
5108
|
-
output,
|
|
5109
|
-
parsedBody,
|
|
5110
|
-
errorCode
|
|
5111
|
-
});
|
|
5112
|
-
}
|
|
5113
|
-
}, "de_ListTagsForResourceCommandError");
|
|
5114
2910
|
var de_PutCoreNetworkPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5115
2911
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5116
|
-
return
|
|
2912
|
+
return de_CommandError(output, context);
|
|
5117
2913
|
}
|
|
5118
2914
|
const contents = (0, import_smithy_client.map)({
|
|
5119
2915
|
$metadata: deserializeMetadata(output)
|
|
@@ -5125,46 +2921,9 @@ var de_PutCoreNetworkPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
5125
2921
|
Object.assign(contents, doc);
|
|
5126
2922
|
return contents;
|
|
5127
2923
|
}, "de_PutCoreNetworkPolicyCommand");
|
|
5128
|
-
var de_PutCoreNetworkPolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5129
|
-
const parsedOutput = {
|
|
5130
|
-
...output,
|
|
5131
|
-
body: await parseErrorBody(output.body, context)
|
|
5132
|
-
};
|
|
5133
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5134
|
-
switch (errorCode) {
|
|
5135
|
-
case "AccessDeniedException":
|
|
5136
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5137
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5138
|
-
case "ConflictException":
|
|
5139
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5140
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5141
|
-
case "CoreNetworkPolicyException":
|
|
5142
|
-
case "com.amazonaws.networkmanager#CoreNetworkPolicyException":
|
|
5143
|
-
throw await de_CoreNetworkPolicyExceptionRes(parsedOutput, context);
|
|
5144
|
-
case "InternalServerException":
|
|
5145
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5146
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5147
|
-
case "ResourceNotFoundException":
|
|
5148
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5149
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5150
|
-
case "ThrottlingException":
|
|
5151
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5152
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5153
|
-
case "ValidationException":
|
|
5154
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5155
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5156
|
-
default:
|
|
5157
|
-
const parsedBody = parsedOutput.body;
|
|
5158
|
-
return throwDefaultError({
|
|
5159
|
-
output,
|
|
5160
|
-
parsedBody,
|
|
5161
|
-
errorCode
|
|
5162
|
-
});
|
|
5163
|
-
}
|
|
5164
|
-
}, "de_PutCoreNetworkPolicyCommandError");
|
|
5165
2924
|
var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5166
2925
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5167
|
-
return
|
|
2926
|
+
return de_CommandError(output, context);
|
|
5168
2927
|
}
|
|
5169
2928
|
const contents = (0, import_smithy_client.map)({
|
|
5170
2929
|
$metadata: deserializeMetadata(output)
|
|
@@ -5172,43 +2931,9 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
5172
2931
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5173
2932
|
return contents;
|
|
5174
2933
|
}, "de_PutResourcePolicyCommand");
|
|
5175
|
-
var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5176
|
-
const parsedOutput = {
|
|
5177
|
-
...output,
|
|
5178
|
-
body: await parseErrorBody(output.body, context)
|
|
5179
|
-
};
|
|
5180
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5181
|
-
switch (errorCode) {
|
|
5182
|
-
case "AccessDeniedException":
|
|
5183
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5184
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5185
|
-
case "ConflictException":
|
|
5186
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5187
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5188
|
-
case "InternalServerException":
|
|
5189
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5190
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5191
|
-
case "ServiceQuotaExceededException":
|
|
5192
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
5193
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5194
|
-
case "ThrottlingException":
|
|
5195
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5196
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5197
|
-
case "ValidationException":
|
|
5198
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5199
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5200
|
-
default:
|
|
5201
|
-
const parsedBody = parsedOutput.body;
|
|
5202
|
-
return throwDefaultError({
|
|
5203
|
-
output,
|
|
5204
|
-
parsedBody,
|
|
5205
|
-
errorCode
|
|
5206
|
-
});
|
|
5207
|
-
}
|
|
5208
|
-
}, "de_PutResourcePolicyCommandError");
|
|
5209
2934
|
var de_RegisterTransitGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5210
2935
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5211
|
-
return
|
|
2936
|
+
return de_CommandError(output, context);
|
|
5212
2937
|
}
|
|
5213
2938
|
const contents = (0, import_smithy_client.map)({
|
|
5214
2939
|
$metadata: deserializeMetadata(output)
|
|
@@ -5220,43 +2945,9 @@ var de_RegisterTransitGatewayCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
5220
2945
|
Object.assign(contents, doc);
|
|
5221
2946
|
return contents;
|
|
5222
2947
|
}, "de_RegisterTransitGatewayCommand");
|
|
5223
|
-
var de_RegisterTransitGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5224
|
-
const parsedOutput = {
|
|
5225
|
-
...output,
|
|
5226
|
-
body: await parseErrorBody(output.body, context)
|
|
5227
|
-
};
|
|
5228
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5229
|
-
switch (errorCode) {
|
|
5230
|
-
case "AccessDeniedException":
|
|
5231
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5232
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5233
|
-
case "ConflictException":
|
|
5234
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5235
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5236
|
-
case "InternalServerException":
|
|
5237
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5238
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5239
|
-
case "ResourceNotFoundException":
|
|
5240
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5241
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5242
|
-
case "ThrottlingException":
|
|
5243
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5244
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5245
|
-
case "ValidationException":
|
|
5246
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5247
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5248
|
-
default:
|
|
5249
|
-
const parsedBody = parsedOutput.body;
|
|
5250
|
-
return throwDefaultError({
|
|
5251
|
-
output,
|
|
5252
|
-
parsedBody,
|
|
5253
|
-
errorCode
|
|
5254
|
-
});
|
|
5255
|
-
}
|
|
5256
|
-
}, "de_RegisterTransitGatewayCommandError");
|
|
5257
2948
|
var de_RejectAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5258
2949
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5259
|
-
return
|
|
2950
|
+
return de_CommandError(output, context);
|
|
5260
2951
|
}
|
|
5261
2952
|
const contents = (0, import_smithy_client.map)({
|
|
5262
2953
|
$metadata: deserializeMetadata(output)
|
|
@@ -5268,43 +2959,9 @@ var de_RejectAttachmentCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
5268
2959
|
Object.assign(contents, doc);
|
|
5269
2960
|
return contents;
|
|
5270
2961
|
}, "de_RejectAttachmentCommand");
|
|
5271
|
-
var de_RejectAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5272
|
-
const parsedOutput = {
|
|
5273
|
-
...output,
|
|
5274
|
-
body: await parseErrorBody(output.body, context)
|
|
5275
|
-
};
|
|
5276
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5277
|
-
switch (errorCode) {
|
|
5278
|
-
case "AccessDeniedException":
|
|
5279
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5280
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5281
|
-
case "ConflictException":
|
|
5282
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5283
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5284
|
-
case "InternalServerException":
|
|
5285
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5286
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5287
|
-
case "ResourceNotFoundException":
|
|
5288
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5289
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5290
|
-
case "ThrottlingException":
|
|
5291
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5292
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5293
|
-
case "ValidationException":
|
|
5294
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5295
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5296
|
-
default:
|
|
5297
|
-
const parsedBody = parsedOutput.body;
|
|
5298
|
-
return throwDefaultError({
|
|
5299
|
-
output,
|
|
5300
|
-
parsedBody,
|
|
5301
|
-
errorCode
|
|
5302
|
-
});
|
|
5303
|
-
}
|
|
5304
|
-
}, "de_RejectAttachmentCommandError");
|
|
5305
2962
|
var de_RestoreCoreNetworkPolicyVersionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5306
2963
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5307
|
-
return
|
|
2964
|
+
return de_CommandError(output, context);
|
|
5308
2965
|
}
|
|
5309
2966
|
const contents = (0, import_smithy_client.map)({
|
|
5310
2967
|
$metadata: deserializeMetadata(output)
|
|
@@ -5316,43 +2973,9 @@ var de_RestoreCoreNetworkPolicyVersionCommand = /* @__PURE__ */ __name(async (ou
|
|
|
5316
2973
|
Object.assign(contents, doc);
|
|
5317
2974
|
return contents;
|
|
5318
2975
|
}, "de_RestoreCoreNetworkPolicyVersionCommand");
|
|
5319
|
-
var de_RestoreCoreNetworkPolicyVersionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5320
|
-
const parsedOutput = {
|
|
5321
|
-
...output,
|
|
5322
|
-
body: await parseErrorBody(output.body, context)
|
|
5323
|
-
};
|
|
5324
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5325
|
-
switch (errorCode) {
|
|
5326
|
-
case "AccessDeniedException":
|
|
5327
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5328
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5329
|
-
case "ConflictException":
|
|
5330
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5331
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5332
|
-
case "InternalServerException":
|
|
5333
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5334
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5335
|
-
case "ResourceNotFoundException":
|
|
5336
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5337
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5338
|
-
case "ThrottlingException":
|
|
5339
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5340
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5341
|
-
case "ValidationException":
|
|
5342
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5343
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5344
|
-
default:
|
|
5345
|
-
const parsedBody = parsedOutput.body;
|
|
5346
|
-
return throwDefaultError({
|
|
5347
|
-
output,
|
|
5348
|
-
parsedBody,
|
|
5349
|
-
errorCode
|
|
5350
|
-
});
|
|
5351
|
-
}
|
|
5352
|
-
}, "de_RestoreCoreNetworkPolicyVersionCommandError");
|
|
5353
2976
|
var de_StartOrganizationServiceAccessUpdateCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5354
2977
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5355
|
-
return
|
|
2978
|
+
return de_CommandError(output, context);
|
|
5356
2979
|
}
|
|
5357
2980
|
const contents = (0, import_smithy_client.map)({
|
|
5358
2981
|
$metadata: deserializeMetadata(output)
|
|
@@ -5364,182 +2987,43 @@ var de_StartOrganizationServiceAccessUpdateCommand = /* @__PURE__ */ __name(asyn
|
|
|
5364
2987
|
Object.assign(contents, doc);
|
|
5365
2988
|
return contents;
|
|
5366
2989
|
}, "de_StartOrganizationServiceAccessUpdateCommand");
|
|
5367
|
-
var de_StartOrganizationServiceAccessUpdateCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5368
|
-
const parsedOutput = {
|
|
5369
|
-
...output,
|
|
5370
|
-
body: await parseErrorBody(output.body, context)
|
|
5371
|
-
};
|
|
5372
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5373
|
-
switch (errorCode) {
|
|
5374
|
-
case "AccessDeniedException":
|
|
5375
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5376
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5377
|
-
case "ConflictException":
|
|
5378
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5379
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5380
|
-
case "InternalServerException":
|
|
5381
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5382
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5383
|
-
case "ServiceQuotaExceededException":
|
|
5384
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
5385
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5386
|
-
case "ThrottlingException":
|
|
5387
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5388
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5389
|
-
case "ValidationException":
|
|
5390
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5391
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5392
|
-
default:
|
|
5393
|
-
const parsedBody = parsedOutput.body;
|
|
5394
|
-
return throwDefaultError({
|
|
5395
|
-
output,
|
|
5396
|
-
parsedBody,
|
|
5397
|
-
errorCode
|
|
5398
|
-
});
|
|
5399
|
-
}
|
|
5400
|
-
}, "de_StartOrganizationServiceAccessUpdateCommandError");
|
|
5401
2990
|
var de_StartRouteAnalysisCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5402
2991
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5403
|
-
return
|
|
2992
|
+
return de_CommandError(output, context);
|
|
5404
2993
|
}
|
|
5405
2994
|
const contents = (0, import_smithy_client.map)({
|
|
5406
2995
|
$metadata: deserializeMetadata(output)
|
|
5407
2996
|
});
|
|
5408
2997
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
|
|
5409
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
5410
|
-
RouteAnalysis: (_) => de_RouteAnalysis(_, context)
|
|
5411
|
-
});
|
|
5412
|
-
Object.assign(contents, doc);
|
|
5413
|
-
return contents;
|
|
5414
|
-
}, "de_StartRouteAnalysisCommand");
|
|
5415
|
-
var
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
case "InternalServerException":
|
|
5429
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5430
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5431
|
-
case "ResourceNotFoundException":
|
|
5432
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5433
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5434
|
-
case "ThrottlingException":
|
|
5435
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5436
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5437
|
-
case "ValidationException":
|
|
5438
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5439
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5440
|
-
default:
|
|
5441
|
-
const parsedBody = parsedOutput.body;
|
|
5442
|
-
return throwDefaultError({
|
|
5443
|
-
output,
|
|
5444
|
-
parsedBody,
|
|
5445
|
-
errorCode
|
|
5446
|
-
});
|
|
5447
|
-
}
|
|
5448
|
-
}, "de_StartRouteAnalysisCommandError");
|
|
5449
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5450
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5451
|
-
return de_TagResourceCommandError(output, context);
|
|
5452
|
-
}
|
|
5453
|
-
const contents = (0, import_smithy_client.map)({
|
|
5454
|
-
$metadata: deserializeMetadata(output)
|
|
5455
|
-
});
|
|
5456
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5457
|
-
return contents;
|
|
5458
|
-
}, "de_TagResourceCommand");
|
|
5459
|
-
var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5460
|
-
const parsedOutput = {
|
|
5461
|
-
...output,
|
|
5462
|
-
body: await parseErrorBody(output.body, context)
|
|
5463
|
-
};
|
|
5464
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5465
|
-
switch (errorCode) {
|
|
5466
|
-
case "AccessDeniedException":
|
|
5467
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5468
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5469
|
-
case "ConflictException":
|
|
5470
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5471
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5472
|
-
case "InternalServerException":
|
|
5473
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5474
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5475
|
-
case "ResourceNotFoundException":
|
|
5476
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5477
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5478
|
-
case "ServiceQuotaExceededException":
|
|
5479
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
5480
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5481
|
-
case "ThrottlingException":
|
|
5482
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5483
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5484
|
-
case "ValidationException":
|
|
5485
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5486
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5487
|
-
default:
|
|
5488
|
-
const parsedBody = parsedOutput.body;
|
|
5489
|
-
return throwDefaultError({
|
|
5490
|
-
output,
|
|
5491
|
-
parsedBody,
|
|
5492
|
-
errorCode
|
|
5493
|
-
});
|
|
5494
|
-
}
|
|
5495
|
-
}, "de_TagResourceCommandError");
|
|
5496
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5497
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5498
|
-
return de_UntagResourceCommandError(output, context);
|
|
5499
|
-
}
|
|
5500
|
-
const contents = (0, import_smithy_client.map)({
|
|
5501
|
-
$metadata: deserializeMetadata(output)
|
|
5502
|
-
});
|
|
5503
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
5504
|
-
return contents;
|
|
5505
|
-
}, "de_UntagResourceCommand");
|
|
5506
|
-
var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5507
|
-
const parsedOutput = {
|
|
5508
|
-
...output,
|
|
5509
|
-
body: await parseErrorBody(output.body, context)
|
|
5510
|
-
};
|
|
5511
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5512
|
-
switch (errorCode) {
|
|
5513
|
-
case "AccessDeniedException":
|
|
5514
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5515
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5516
|
-
case "ConflictException":
|
|
5517
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5518
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5519
|
-
case "InternalServerException":
|
|
5520
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5521
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5522
|
-
case "ResourceNotFoundException":
|
|
5523
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5524
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5525
|
-
case "ThrottlingException":
|
|
5526
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5527
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5528
|
-
case "ValidationException":
|
|
5529
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5530
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5531
|
-
default:
|
|
5532
|
-
const parsedBody = parsedOutput.body;
|
|
5533
|
-
return throwDefaultError({
|
|
5534
|
-
output,
|
|
5535
|
-
parsedBody,
|
|
5536
|
-
errorCode
|
|
5537
|
-
});
|
|
2998
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2999
|
+
RouteAnalysis: (_) => de_RouteAnalysis(_, context)
|
|
3000
|
+
});
|
|
3001
|
+
Object.assign(contents, doc);
|
|
3002
|
+
return contents;
|
|
3003
|
+
}, "de_StartRouteAnalysisCommand");
|
|
3004
|
+
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3005
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3006
|
+
return de_CommandError(output, context);
|
|
3007
|
+
}
|
|
3008
|
+
const contents = (0, import_smithy_client.map)({
|
|
3009
|
+
$metadata: deserializeMetadata(output)
|
|
3010
|
+
});
|
|
3011
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3012
|
+
return contents;
|
|
3013
|
+
}, "de_TagResourceCommand");
|
|
3014
|
+
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
3015
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3016
|
+
return de_CommandError(output, context);
|
|
5538
3017
|
}
|
|
5539
|
-
|
|
3018
|
+
const contents = (0, import_smithy_client.map)({
|
|
3019
|
+
$metadata: deserializeMetadata(output)
|
|
3020
|
+
});
|
|
3021
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
3022
|
+
return contents;
|
|
3023
|
+
}, "de_UntagResourceCommand");
|
|
5540
3024
|
var de_UpdateConnectionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5541
3025
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5542
|
-
return
|
|
3026
|
+
return de_CommandError(output, context);
|
|
5543
3027
|
}
|
|
5544
3028
|
const contents = (0, import_smithy_client.map)({
|
|
5545
3029
|
$metadata: deserializeMetadata(output)
|
|
@@ -5551,43 +3035,9 @@ var de_UpdateConnectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
5551
3035
|
Object.assign(contents, doc);
|
|
5552
3036
|
return contents;
|
|
5553
3037
|
}, "de_UpdateConnectionCommand");
|
|
5554
|
-
var de_UpdateConnectionCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5555
|
-
const parsedOutput = {
|
|
5556
|
-
...output,
|
|
5557
|
-
body: await parseErrorBody(output.body, context)
|
|
5558
|
-
};
|
|
5559
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5560
|
-
switch (errorCode) {
|
|
5561
|
-
case "AccessDeniedException":
|
|
5562
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5563
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5564
|
-
case "ConflictException":
|
|
5565
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5566
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5567
|
-
case "InternalServerException":
|
|
5568
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5569
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5570
|
-
case "ResourceNotFoundException":
|
|
5571
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5572
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5573
|
-
case "ThrottlingException":
|
|
5574
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5575
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5576
|
-
case "ValidationException":
|
|
5577
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5578
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5579
|
-
default:
|
|
5580
|
-
const parsedBody = parsedOutput.body;
|
|
5581
|
-
return throwDefaultError({
|
|
5582
|
-
output,
|
|
5583
|
-
parsedBody,
|
|
5584
|
-
errorCode
|
|
5585
|
-
});
|
|
5586
|
-
}
|
|
5587
|
-
}, "de_UpdateConnectionCommandError");
|
|
5588
3038
|
var de_UpdateCoreNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5589
3039
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5590
|
-
return
|
|
3040
|
+
return de_CommandError(output, context);
|
|
5591
3041
|
}
|
|
5592
3042
|
const contents = (0, import_smithy_client.map)({
|
|
5593
3043
|
$metadata: deserializeMetadata(output)
|
|
@@ -5599,43 +3049,9 @@ var de_UpdateCoreNetworkCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
5599
3049
|
Object.assign(contents, doc);
|
|
5600
3050
|
return contents;
|
|
5601
3051
|
}, "de_UpdateCoreNetworkCommand");
|
|
5602
|
-
var de_UpdateCoreNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5603
|
-
const parsedOutput = {
|
|
5604
|
-
...output,
|
|
5605
|
-
body: await parseErrorBody(output.body, context)
|
|
5606
|
-
};
|
|
5607
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5608
|
-
switch (errorCode) {
|
|
5609
|
-
case "AccessDeniedException":
|
|
5610
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5611
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5612
|
-
case "ConflictException":
|
|
5613
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5614
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5615
|
-
case "InternalServerException":
|
|
5616
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5617
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5618
|
-
case "ResourceNotFoundException":
|
|
5619
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5620
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5621
|
-
case "ThrottlingException":
|
|
5622
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5623
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5624
|
-
case "ValidationException":
|
|
5625
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5626
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5627
|
-
default:
|
|
5628
|
-
const parsedBody = parsedOutput.body;
|
|
5629
|
-
return throwDefaultError({
|
|
5630
|
-
output,
|
|
5631
|
-
parsedBody,
|
|
5632
|
-
errorCode
|
|
5633
|
-
});
|
|
5634
|
-
}
|
|
5635
|
-
}, "de_UpdateCoreNetworkCommandError");
|
|
5636
3052
|
var de_UpdateDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5637
3053
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5638
|
-
return
|
|
3054
|
+
return de_CommandError(output, context);
|
|
5639
3055
|
}
|
|
5640
3056
|
const contents = (0, import_smithy_client.map)({
|
|
5641
3057
|
$metadata: deserializeMetadata(output)
|
|
@@ -5647,43 +3063,9 @@ var de_UpdateDeviceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5647
3063
|
Object.assign(contents, doc);
|
|
5648
3064
|
return contents;
|
|
5649
3065
|
}, "de_UpdateDeviceCommand");
|
|
5650
|
-
var de_UpdateDeviceCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5651
|
-
const parsedOutput = {
|
|
5652
|
-
...output,
|
|
5653
|
-
body: await parseErrorBody(output.body, context)
|
|
5654
|
-
};
|
|
5655
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5656
|
-
switch (errorCode) {
|
|
5657
|
-
case "AccessDeniedException":
|
|
5658
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5659
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5660
|
-
case "ConflictException":
|
|
5661
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5662
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5663
|
-
case "InternalServerException":
|
|
5664
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5665
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5666
|
-
case "ResourceNotFoundException":
|
|
5667
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5668
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5669
|
-
case "ThrottlingException":
|
|
5670
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5671
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5672
|
-
case "ValidationException":
|
|
5673
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5674
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5675
|
-
default:
|
|
5676
|
-
const parsedBody = parsedOutput.body;
|
|
5677
|
-
return throwDefaultError({
|
|
5678
|
-
output,
|
|
5679
|
-
parsedBody,
|
|
5680
|
-
errorCode
|
|
5681
|
-
});
|
|
5682
|
-
}
|
|
5683
|
-
}, "de_UpdateDeviceCommandError");
|
|
5684
3066
|
var de_UpdateGlobalNetworkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5685
3067
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5686
|
-
return
|
|
3068
|
+
return de_CommandError(output, context);
|
|
5687
3069
|
}
|
|
5688
3070
|
const contents = (0, import_smithy_client.map)({
|
|
5689
3071
|
$metadata: deserializeMetadata(output)
|
|
@@ -5695,43 +3077,9 @@ var de_UpdateGlobalNetworkCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
5695
3077
|
Object.assign(contents, doc);
|
|
5696
3078
|
return contents;
|
|
5697
3079
|
}, "de_UpdateGlobalNetworkCommand");
|
|
5698
|
-
var de_UpdateGlobalNetworkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5699
|
-
const parsedOutput = {
|
|
5700
|
-
...output,
|
|
5701
|
-
body: await parseErrorBody(output.body, context)
|
|
5702
|
-
};
|
|
5703
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5704
|
-
switch (errorCode) {
|
|
5705
|
-
case "AccessDeniedException":
|
|
5706
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5707
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5708
|
-
case "ConflictException":
|
|
5709
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5710
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5711
|
-
case "InternalServerException":
|
|
5712
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5713
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5714
|
-
case "ResourceNotFoundException":
|
|
5715
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5716
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5717
|
-
case "ThrottlingException":
|
|
5718
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5719
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5720
|
-
case "ValidationException":
|
|
5721
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5722
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5723
|
-
default:
|
|
5724
|
-
const parsedBody = parsedOutput.body;
|
|
5725
|
-
return throwDefaultError({
|
|
5726
|
-
output,
|
|
5727
|
-
parsedBody,
|
|
5728
|
-
errorCode
|
|
5729
|
-
});
|
|
5730
|
-
}
|
|
5731
|
-
}, "de_UpdateGlobalNetworkCommandError");
|
|
5732
3080
|
var de_UpdateLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5733
3081
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5734
|
-
return
|
|
3082
|
+
return de_CommandError(output, context);
|
|
5735
3083
|
}
|
|
5736
3084
|
const contents = (0, import_smithy_client.map)({
|
|
5737
3085
|
$metadata: deserializeMetadata(output)
|
|
@@ -5743,46 +3091,9 @@ var de_UpdateLinkCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5743
3091
|
Object.assign(contents, doc);
|
|
5744
3092
|
return contents;
|
|
5745
3093
|
}, "de_UpdateLinkCommand");
|
|
5746
|
-
var de_UpdateLinkCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5747
|
-
const parsedOutput = {
|
|
5748
|
-
...output,
|
|
5749
|
-
body: await parseErrorBody(output.body, context)
|
|
5750
|
-
};
|
|
5751
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5752
|
-
switch (errorCode) {
|
|
5753
|
-
case "AccessDeniedException":
|
|
5754
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5755
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5756
|
-
case "ConflictException":
|
|
5757
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5758
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5759
|
-
case "InternalServerException":
|
|
5760
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5761
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5762
|
-
case "ResourceNotFoundException":
|
|
5763
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5764
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5765
|
-
case "ServiceQuotaExceededException":
|
|
5766
|
-
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
5767
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
5768
|
-
case "ThrottlingException":
|
|
5769
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5770
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5771
|
-
case "ValidationException":
|
|
5772
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5773
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5774
|
-
default:
|
|
5775
|
-
const parsedBody = parsedOutput.body;
|
|
5776
|
-
return throwDefaultError({
|
|
5777
|
-
output,
|
|
5778
|
-
parsedBody,
|
|
5779
|
-
errorCode
|
|
5780
|
-
});
|
|
5781
|
-
}
|
|
5782
|
-
}, "de_UpdateLinkCommandError");
|
|
5783
3094
|
var de_UpdateNetworkResourceMetadataCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5784
3095
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5785
|
-
return
|
|
3096
|
+
return de_CommandError(output, context);
|
|
5786
3097
|
}
|
|
5787
3098
|
const contents = (0, import_smithy_client.map)({
|
|
5788
3099
|
$metadata: deserializeMetadata(output)
|
|
@@ -5795,43 +3106,9 @@ var de_UpdateNetworkResourceMetadataCommand = /* @__PURE__ */ __name(async (outp
|
|
|
5795
3106
|
Object.assign(contents, doc);
|
|
5796
3107
|
return contents;
|
|
5797
3108
|
}, "de_UpdateNetworkResourceMetadataCommand");
|
|
5798
|
-
var de_UpdateNetworkResourceMetadataCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5799
|
-
const parsedOutput = {
|
|
5800
|
-
...output,
|
|
5801
|
-
body: await parseErrorBody(output.body, context)
|
|
5802
|
-
};
|
|
5803
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5804
|
-
switch (errorCode) {
|
|
5805
|
-
case "AccessDeniedException":
|
|
5806
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5807
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5808
|
-
case "ConflictException":
|
|
5809
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5810
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5811
|
-
case "InternalServerException":
|
|
5812
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5813
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5814
|
-
case "ResourceNotFoundException":
|
|
5815
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5816
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5817
|
-
case "ThrottlingException":
|
|
5818
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5819
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5820
|
-
case "ValidationException":
|
|
5821
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5822
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5823
|
-
default:
|
|
5824
|
-
const parsedBody = parsedOutput.body;
|
|
5825
|
-
return throwDefaultError({
|
|
5826
|
-
output,
|
|
5827
|
-
parsedBody,
|
|
5828
|
-
errorCode
|
|
5829
|
-
});
|
|
5830
|
-
}
|
|
5831
|
-
}, "de_UpdateNetworkResourceMetadataCommandError");
|
|
5832
3109
|
var de_UpdateSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5833
3110
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5834
|
-
return
|
|
3111
|
+
return de_CommandError(output, context);
|
|
5835
3112
|
}
|
|
5836
3113
|
const contents = (0, import_smithy_client.map)({
|
|
5837
3114
|
$metadata: deserializeMetadata(output)
|
|
@@ -5843,43 +3120,9 @@ var de_UpdateSiteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
5843
3120
|
Object.assign(contents, doc);
|
|
5844
3121
|
return contents;
|
|
5845
3122
|
}, "de_UpdateSiteCommand");
|
|
5846
|
-
var de_UpdateSiteCommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5847
|
-
const parsedOutput = {
|
|
5848
|
-
...output,
|
|
5849
|
-
body: await parseErrorBody(output.body, context)
|
|
5850
|
-
};
|
|
5851
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
5852
|
-
switch (errorCode) {
|
|
5853
|
-
case "AccessDeniedException":
|
|
5854
|
-
case "com.amazonaws.networkmanager#AccessDeniedException":
|
|
5855
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
5856
|
-
case "ConflictException":
|
|
5857
|
-
case "com.amazonaws.networkmanager#ConflictException":
|
|
5858
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
5859
|
-
case "InternalServerException":
|
|
5860
|
-
case "com.amazonaws.networkmanager#InternalServerException":
|
|
5861
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
5862
|
-
case "ResourceNotFoundException":
|
|
5863
|
-
case "com.amazonaws.networkmanager#ResourceNotFoundException":
|
|
5864
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
5865
|
-
case "ThrottlingException":
|
|
5866
|
-
case "com.amazonaws.networkmanager#ThrottlingException":
|
|
5867
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
5868
|
-
case "ValidationException":
|
|
5869
|
-
case "com.amazonaws.networkmanager#ValidationException":
|
|
5870
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
5871
|
-
default:
|
|
5872
|
-
const parsedBody = parsedOutput.body;
|
|
5873
|
-
return throwDefaultError({
|
|
5874
|
-
output,
|
|
5875
|
-
parsedBody,
|
|
5876
|
-
errorCode
|
|
5877
|
-
});
|
|
5878
|
-
}
|
|
5879
|
-
}, "de_UpdateSiteCommandError");
|
|
5880
3123
|
var de_UpdateVpcAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5881
3124
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
5882
|
-
return
|
|
3125
|
+
return de_CommandError(output, context);
|
|
5883
3126
|
}
|
|
5884
3127
|
const contents = (0, import_smithy_client.map)({
|
|
5885
3128
|
$metadata: deserializeMetadata(output)
|
|
@@ -5891,7 +3134,7 @@ var de_UpdateVpcAttachmentCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
5891
3134
|
Object.assign(contents, doc);
|
|
5892
3135
|
return contents;
|
|
5893
3136
|
}, "de_UpdateVpcAttachmentCommand");
|
|
5894
|
-
var
|
|
3137
|
+
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
5895
3138
|
const parsedOutput = {
|
|
5896
3139
|
...output,
|
|
5897
3140
|
body: await parseErrorBody(output.body, context)
|
|
@@ -5916,6 +3159,12 @@ var de_UpdateVpcAttachmentCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
5916
3159
|
case "ValidationException":
|
|
5917
3160
|
case "com.amazonaws.networkmanager#ValidationException":
|
|
5918
3161
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3162
|
+
case "ServiceQuotaExceededException":
|
|
3163
|
+
case "com.amazonaws.networkmanager#ServiceQuotaExceededException":
|
|
3164
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3165
|
+
case "CoreNetworkPolicyException":
|
|
3166
|
+
case "com.amazonaws.networkmanager#CoreNetworkPolicyException":
|
|
3167
|
+
throw await de_CoreNetworkPolicyExceptionRes(parsedOutput, context);
|
|
5919
3168
|
default:
|
|
5920
3169
|
const parsedBody = parsedOutput.body;
|
|
5921
3170
|
return throwDefaultError({
|
|
@@ -5924,7 +3173,7 @@ var de_UpdateVpcAttachmentCommandError = /* @__PURE__ */ __name(async (output, c
|
|
|
5924
3173
|
errorCode
|
|
5925
3174
|
});
|
|
5926
3175
|
}
|
|
5927
|
-
}, "
|
|
3176
|
+
}, "de_CommandError");
|
|
5928
3177
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(NetworkManagerServiceException);
|
|
5929
3178
|
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
5930
3179
|
const contents = (0, import_smithy_client.map)({});
|