@aws-sdk/client-codestar-connections 3.454.0 → 3.455.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/README.md +0 -120
- package/dist-cjs/CodeStarConnections.js +0 -30
- package/dist-cjs/commands/index.js +0 -15
- package/dist-cjs/models/models_0.js +1 -192
- package/dist-cjs/pagination/index.js +0 -2
- package/dist-cjs/protocols/Aws_json1_0.js +46 -1083
- package/dist-es/CodeStarConnections.js +0 -30
- package/dist-es/commands/index.js +0 -15
- package/dist-es/models/models_0.js +0 -179
- package/dist-es/pagination/index.js +0 -2
- package/dist-es/protocols/Aws_json1_0.js +49 -1055
- package/dist-types/CodeStarConnections.d.ts +0 -105
- package/dist-types/CodeStarConnectionsClient.d.ts +2 -17
- package/dist-types/commands/index.d.ts +0 -15
- package/dist-types/models/models_0.d.ts +6 -1107
- package/dist-types/pagination/index.d.ts +0 -2
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -135
- package/dist-types/ts3.4/CodeStarConnections.d.ts +0 -255
- package/dist-types/ts3.4/CodeStarConnectionsClient.d.ts +2 -92
- package/dist-types/ts3.4/commands/index.d.ts +0 -15
- package/dist-types/ts3.4/models/models_0.d.ts +0 -346
- package/dist-types/ts3.4/pagination/index.d.ts +0 -2
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -180
- package/package.json +1 -1
- package/dist-cjs/commands/CreateRepositoryLinkCommand.js +0 -51
- package/dist-cjs/commands/CreateSyncConfigurationCommand.js +0 -51
- package/dist-cjs/commands/DeleteRepositoryLinkCommand.js +0 -51
- package/dist-cjs/commands/DeleteSyncConfigurationCommand.js +0 -51
- package/dist-cjs/commands/GetRepositoryLinkCommand.js +0 -51
- package/dist-cjs/commands/GetRepositorySyncStatusCommand.js +0 -51
- package/dist-cjs/commands/GetResourceSyncStatusCommand.js +0 -51
- package/dist-cjs/commands/GetSyncBlockerSummaryCommand.js +0 -51
- package/dist-cjs/commands/GetSyncConfigurationCommand.js +0 -51
- package/dist-cjs/commands/ListRepositoryLinksCommand.js +0 -51
- package/dist-cjs/commands/ListRepositorySyncDefinitionsCommand.js +0 -51
- package/dist-cjs/commands/ListSyncConfigurationsCommand.js +0 -51
- package/dist-cjs/commands/UpdateRepositoryLinkCommand.js +0 -51
- package/dist-cjs/commands/UpdateSyncBlockerCommand.js +0 -51
- package/dist-cjs/commands/UpdateSyncConfigurationCommand.js +0 -51
- package/dist-cjs/pagination/ListRepositoryLinksPaginator.js +0 -29
- package/dist-cjs/pagination/ListSyncConfigurationsPaginator.js +0 -29
- package/dist-es/commands/CreateRepositoryLinkCommand.js +0 -47
- package/dist-es/commands/CreateSyncConfigurationCommand.js +0 -47
- package/dist-es/commands/DeleteRepositoryLinkCommand.js +0 -47
- package/dist-es/commands/DeleteSyncConfigurationCommand.js +0 -47
- package/dist-es/commands/GetRepositoryLinkCommand.js +0 -47
- package/dist-es/commands/GetRepositorySyncStatusCommand.js +0 -47
- package/dist-es/commands/GetResourceSyncStatusCommand.js +0 -47
- package/dist-es/commands/GetSyncBlockerSummaryCommand.js +0 -47
- package/dist-es/commands/GetSyncConfigurationCommand.js +0 -47
- package/dist-es/commands/ListRepositoryLinksCommand.js +0 -47
- package/dist-es/commands/ListRepositorySyncDefinitionsCommand.js +0 -47
- package/dist-es/commands/ListSyncConfigurationsCommand.js +0 -47
- package/dist-es/commands/UpdateRepositoryLinkCommand.js +0 -47
- package/dist-es/commands/UpdateSyncBlockerCommand.js +0 -47
- package/dist-es/commands/UpdateSyncConfigurationCommand.js +0 -47
- package/dist-es/pagination/ListRepositoryLinksPaginator.js +0 -25
- package/dist-es/pagination/ListSyncConfigurationsPaginator.js +0 -25
- package/dist-types/commands/CreateRepositoryLinkCommand.d.ts +0 -111
- package/dist-types/commands/CreateSyncConfigurationCommand.d.ts +0 -111
- package/dist-types/commands/DeleteRepositoryLinkCommand.d.ts +0 -95
- package/dist-types/commands/DeleteSyncConfigurationCommand.d.ts +0 -90
- package/dist-types/commands/GetRepositoryLinkCommand.d.ts +0 -100
- package/dist-types/commands/GetRepositorySyncStatusCommand.d.ts +0 -102
- package/dist-types/commands/GetResourceSyncStatusCommand.d.ts +0 -155
- package/dist-types/commands/GetSyncBlockerSummaryCommand.d.ts +0 -109
- package/dist-types/commands/GetSyncConfigurationCommand.d.ts +0 -99
- package/dist-types/commands/ListRepositoryLinksCommand.d.ts +0 -103
- package/dist-types/commands/ListRepositorySyncDefinitionsCommand.d.ts +0 -97
- package/dist-types/commands/ListSyncConfigurationsCommand.d.ts +0 -104
- package/dist-types/commands/UpdateRepositoryLinkCommand.d.ts +0 -106
- package/dist-types/commands/UpdateSyncBlockerCommand.d.ts +0 -113
- package/dist-types/commands/UpdateSyncConfigurationCommand.d.ts +0 -109
- package/dist-types/pagination/ListRepositoryLinksPaginator.d.ts +0 -7
- package/dist-types/pagination/ListSyncConfigurationsPaginator.d.ts +0 -7
- package/dist-types/ts3.4/commands/CreateRepositoryLinkCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/CreateSyncConfigurationCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/DeleteRepositoryLinkCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/DeleteSyncConfigurationCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/GetRepositoryLinkCommand.d.ts +0 -38
- package/dist-types/ts3.4/commands/GetRepositorySyncStatusCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/GetResourceSyncStatusCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/GetSyncBlockerSummaryCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/GetSyncConfigurationCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/ListRepositoryLinksCommand.d.ts +0 -39
- package/dist-types/ts3.4/commands/ListRepositorySyncDefinitionsCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/ListSyncConfigurationsCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/UpdateRepositoryLinkCommand.d.ts +0 -42
- package/dist-types/ts3.4/commands/UpdateSyncBlockerCommand.d.ts +0 -38
- package/dist-types/ts3.4/commands/UpdateSyncConfigurationCommand.d.ts +0 -42
- package/dist-types/ts3.4/pagination/ListRepositoryLinksPaginator.d.ts +0 -11
- package/dist-types/ts3.4/pagination/ListSyncConfigurationsPaginator.d.ts +0 -11
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException,
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { CodeStarConnectionsServiceException as __BaseException } from "../models/CodeStarConnectionsServiceException";
|
|
4
|
-
import {
|
|
4
|
+
import { ConflictException, LimitExceededException, ResourceNotFoundException, ResourceUnavailableException, UnsupportedOperationException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateConnectionCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("CreateConnection");
|
|
7
7
|
let body;
|
|
@@ -14,18 +14,6 @@ export const se_CreateHostCommand = async (input, context) => {
|
|
|
14
14
|
body = JSON.stringify(_json(input));
|
|
15
15
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
16
16
|
};
|
|
17
|
-
export const se_CreateRepositoryLinkCommand = async (input, context) => {
|
|
18
|
-
const headers = sharedHeaders("CreateRepositoryLink");
|
|
19
|
-
let body;
|
|
20
|
-
body = JSON.stringify(_json(input));
|
|
21
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
22
|
-
};
|
|
23
|
-
export const se_CreateSyncConfigurationCommand = async (input, context) => {
|
|
24
|
-
const headers = sharedHeaders("CreateSyncConfiguration");
|
|
25
|
-
let body;
|
|
26
|
-
body = JSON.stringify(_json(input));
|
|
27
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
|
-
};
|
|
29
17
|
export const se_DeleteConnectionCommand = async (input, context) => {
|
|
30
18
|
const headers = sharedHeaders("DeleteConnection");
|
|
31
19
|
let body;
|
|
@@ -38,18 +26,6 @@ export const se_DeleteHostCommand = async (input, context) => {
|
|
|
38
26
|
body = JSON.stringify(_json(input));
|
|
39
27
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
28
|
};
|
|
41
|
-
export const se_DeleteRepositoryLinkCommand = async (input, context) => {
|
|
42
|
-
const headers = sharedHeaders("DeleteRepositoryLink");
|
|
43
|
-
let body;
|
|
44
|
-
body = JSON.stringify(_json(input));
|
|
45
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
46
|
-
};
|
|
47
|
-
export const se_DeleteSyncConfigurationCommand = async (input, context) => {
|
|
48
|
-
const headers = sharedHeaders("DeleteSyncConfiguration");
|
|
49
|
-
let body;
|
|
50
|
-
body = JSON.stringify(_json(input));
|
|
51
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
|
-
};
|
|
53
29
|
export const se_GetConnectionCommand = async (input, context) => {
|
|
54
30
|
const headers = sharedHeaders("GetConnection");
|
|
55
31
|
let body;
|
|
@@ -62,36 +38,6 @@ export const se_GetHostCommand = async (input, context) => {
|
|
|
62
38
|
body = JSON.stringify(_json(input));
|
|
63
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
64
40
|
};
|
|
65
|
-
export const se_GetRepositoryLinkCommand = async (input, context) => {
|
|
66
|
-
const headers = sharedHeaders("GetRepositoryLink");
|
|
67
|
-
let body;
|
|
68
|
-
body = JSON.stringify(_json(input));
|
|
69
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
70
|
-
};
|
|
71
|
-
export const se_GetRepositorySyncStatusCommand = async (input, context) => {
|
|
72
|
-
const headers = sharedHeaders("GetRepositorySyncStatus");
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify(_json(input));
|
|
75
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
|
-
};
|
|
77
|
-
export const se_GetResourceSyncStatusCommand = async (input, context) => {
|
|
78
|
-
const headers = sharedHeaders("GetResourceSyncStatus");
|
|
79
|
-
let body;
|
|
80
|
-
body = JSON.stringify(_json(input));
|
|
81
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
82
|
-
};
|
|
83
|
-
export const se_GetSyncBlockerSummaryCommand = async (input, context) => {
|
|
84
|
-
const headers = sharedHeaders("GetSyncBlockerSummary");
|
|
85
|
-
let body;
|
|
86
|
-
body = JSON.stringify(_json(input));
|
|
87
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
88
|
-
};
|
|
89
|
-
export const se_GetSyncConfigurationCommand = async (input, context) => {
|
|
90
|
-
const headers = sharedHeaders("GetSyncConfiguration");
|
|
91
|
-
let body;
|
|
92
|
-
body = JSON.stringify(_json(input));
|
|
93
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
94
|
-
};
|
|
95
41
|
export const se_ListConnectionsCommand = async (input, context) => {
|
|
96
42
|
const headers = sharedHeaders("ListConnections");
|
|
97
43
|
let body;
|
|
@@ -104,24 +50,6 @@ export const se_ListHostsCommand = async (input, context) => {
|
|
|
104
50
|
body = JSON.stringify(_json(input));
|
|
105
51
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
106
52
|
};
|
|
107
|
-
export const se_ListRepositoryLinksCommand = async (input, context) => {
|
|
108
|
-
const headers = sharedHeaders("ListRepositoryLinks");
|
|
109
|
-
let body;
|
|
110
|
-
body = JSON.stringify(_json(input));
|
|
111
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
112
|
-
};
|
|
113
|
-
export const se_ListRepositorySyncDefinitionsCommand = async (input, context) => {
|
|
114
|
-
const headers = sharedHeaders("ListRepositorySyncDefinitions");
|
|
115
|
-
let body;
|
|
116
|
-
body = JSON.stringify(_json(input));
|
|
117
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
118
|
-
};
|
|
119
|
-
export const se_ListSyncConfigurationsCommand = async (input, context) => {
|
|
120
|
-
const headers = sharedHeaders("ListSyncConfigurations");
|
|
121
|
-
let body;
|
|
122
|
-
body = JSON.stringify(_json(input));
|
|
123
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
124
|
-
};
|
|
125
53
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
126
54
|
const headers = sharedHeaders("ListTagsForResource");
|
|
127
55
|
let body;
|
|
@@ -146,24 +74,6 @@ export const se_UpdateHostCommand = async (input, context) => {
|
|
|
146
74
|
body = JSON.stringify(_json(input));
|
|
147
75
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
148
76
|
};
|
|
149
|
-
export const se_UpdateRepositoryLinkCommand = async (input, context) => {
|
|
150
|
-
const headers = sharedHeaders("UpdateRepositoryLink");
|
|
151
|
-
let body;
|
|
152
|
-
body = JSON.stringify(_json(input));
|
|
153
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
154
|
-
};
|
|
155
|
-
export const se_UpdateSyncBlockerCommand = async (input, context) => {
|
|
156
|
-
const headers = sharedHeaders("UpdateSyncBlocker");
|
|
157
|
-
let body;
|
|
158
|
-
body = JSON.stringify(_json(input));
|
|
159
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
160
|
-
};
|
|
161
|
-
export const se_UpdateSyncConfigurationCommand = async (input, context) => {
|
|
162
|
-
const headers = sharedHeaders("UpdateSyncConfiguration");
|
|
163
|
-
let body;
|
|
164
|
-
body = JSON.stringify(_json(input));
|
|
165
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
|
-
};
|
|
167
77
|
export const de_CreateConnectionCommand = async (output, context) => {
|
|
168
78
|
if (output.statusCode >= 300) {
|
|
169
79
|
return de_CreateConnectionCommandError(output, context);
|
|
@@ -234,106 +144,6 @@ const de_CreateHostCommandError = async (output, context) => {
|
|
|
234
144
|
});
|
|
235
145
|
}
|
|
236
146
|
};
|
|
237
|
-
export const de_CreateRepositoryLinkCommand = async (output, context) => {
|
|
238
|
-
if (output.statusCode >= 300) {
|
|
239
|
-
return de_CreateRepositoryLinkCommandError(output, context);
|
|
240
|
-
}
|
|
241
|
-
const data = await parseBody(output.body, context);
|
|
242
|
-
let contents = {};
|
|
243
|
-
contents = _json(data);
|
|
244
|
-
const response = {
|
|
245
|
-
$metadata: deserializeMetadata(output),
|
|
246
|
-
...contents,
|
|
247
|
-
};
|
|
248
|
-
return response;
|
|
249
|
-
};
|
|
250
|
-
const de_CreateRepositoryLinkCommandError = async (output, context) => {
|
|
251
|
-
const parsedOutput = {
|
|
252
|
-
...output,
|
|
253
|
-
body: await parseErrorBody(output.body, context),
|
|
254
|
-
};
|
|
255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
256
|
-
switch (errorCode) {
|
|
257
|
-
case "AccessDeniedException":
|
|
258
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
259
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
260
|
-
case "ConcurrentModificationException":
|
|
261
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
262
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
263
|
-
case "InternalServerException":
|
|
264
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
265
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
266
|
-
case "InvalidInputException":
|
|
267
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
268
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
269
|
-
case "LimitExceededException":
|
|
270
|
-
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
271
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
272
|
-
case "ResourceAlreadyExistsException":
|
|
273
|
-
case "com.amazonaws.codestarconnections#ResourceAlreadyExistsException":
|
|
274
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
275
|
-
case "ThrottlingException":
|
|
276
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
277
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
278
|
-
default:
|
|
279
|
-
const parsedBody = parsedOutput.body;
|
|
280
|
-
return throwDefaultError({
|
|
281
|
-
output,
|
|
282
|
-
parsedBody,
|
|
283
|
-
errorCode,
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
};
|
|
287
|
-
export const de_CreateSyncConfigurationCommand = async (output, context) => {
|
|
288
|
-
if (output.statusCode >= 300) {
|
|
289
|
-
return de_CreateSyncConfigurationCommandError(output, context);
|
|
290
|
-
}
|
|
291
|
-
const data = await parseBody(output.body, context);
|
|
292
|
-
let contents = {};
|
|
293
|
-
contents = _json(data);
|
|
294
|
-
const response = {
|
|
295
|
-
$metadata: deserializeMetadata(output),
|
|
296
|
-
...contents,
|
|
297
|
-
};
|
|
298
|
-
return response;
|
|
299
|
-
};
|
|
300
|
-
const de_CreateSyncConfigurationCommandError = async (output, context) => {
|
|
301
|
-
const parsedOutput = {
|
|
302
|
-
...output,
|
|
303
|
-
body: await parseErrorBody(output.body, context),
|
|
304
|
-
};
|
|
305
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
306
|
-
switch (errorCode) {
|
|
307
|
-
case "AccessDeniedException":
|
|
308
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
309
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
310
|
-
case "ConcurrentModificationException":
|
|
311
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
312
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
313
|
-
case "InternalServerException":
|
|
314
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
315
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
316
|
-
case "InvalidInputException":
|
|
317
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
318
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
319
|
-
case "LimitExceededException":
|
|
320
|
-
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
321
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
322
|
-
case "ResourceAlreadyExistsException":
|
|
323
|
-
case "com.amazonaws.codestarconnections#ResourceAlreadyExistsException":
|
|
324
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
325
|
-
case "ThrottlingException":
|
|
326
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
327
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
328
|
-
default:
|
|
329
|
-
const parsedBody = parsedOutput.body;
|
|
330
|
-
return throwDefaultError({
|
|
331
|
-
output,
|
|
332
|
-
parsedBody,
|
|
333
|
-
errorCode,
|
|
334
|
-
});
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
147
|
export const de_DeleteConnectionCommand = async (output, context) => {
|
|
338
148
|
if (output.statusCode >= 300) {
|
|
339
149
|
return de_DeleteConnectionCommandError(output, context);
|
|
@@ -401,106 +211,6 @@ const de_DeleteHostCommandError = async (output, context) => {
|
|
|
401
211
|
});
|
|
402
212
|
}
|
|
403
213
|
};
|
|
404
|
-
export const de_DeleteRepositoryLinkCommand = async (output, context) => {
|
|
405
|
-
if (output.statusCode >= 300) {
|
|
406
|
-
return de_DeleteRepositoryLinkCommandError(output, context);
|
|
407
|
-
}
|
|
408
|
-
const data = await parseBody(output.body, context);
|
|
409
|
-
let contents = {};
|
|
410
|
-
contents = _json(data);
|
|
411
|
-
const response = {
|
|
412
|
-
$metadata: deserializeMetadata(output),
|
|
413
|
-
...contents,
|
|
414
|
-
};
|
|
415
|
-
return response;
|
|
416
|
-
};
|
|
417
|
-
const de_DeleteRepositoryLinkCommandError = async (output, context) => {
|
|
418
|
-
const parsedOutput = {
|
|
419
|
-
...output,
|
|
420
|
-
body: await parseErrorBody(output.body, context),
|
|
421
|
-
};
|
|
422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
423
|
-
switch (errorCode) {
|
|
424
|
-
case "AccessDeniedException":
|
|
425
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
426
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
427
|
-
case "ConcurrentModificationException":
|
|
428
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
429
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
430
|
-
case "InternalServerException":
|
|
431
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
432
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
433
|
-
case "InvalidInputException":
|
|
434
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
435
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
436
|
-
case "ResourceNotFoundException":
|
|
437
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
438
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
439
|
-
case "SyncConfigurationStillExistsException":
|
|
440
|
-
case "com.amazonaws.codestarconnections#SyncConfigurationStillExistsException":
|
|
441
|
-
throw await de_SyncConfigurationStillExistsExceptionRes(parsedOutput, context);
|
|
442
|
-
case "ThrottlingException":
|
|
443
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
444
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
445
|
-
case "UnsupportedProviderTypeException":
|
|
446
|
-
case "com.amazonaws.codestarconnections#UnsupportedProviderTypeException":
|
|
447
|
-
throw await de_UnsupportedProviderTypeExceptionRes(parsedOutput, context);
|
|
448
|
-
default:
|
|
449
|
-
const parsedBody = parsedOutput.body;
|
|
450
|
-
return throwDefaultError({
|
|
451
|
-
output,
|
|
452
|
-
parsedBody,
|
|
453
|
-
errorCode,
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
};
|
|
457
|
-
export const de_DeleteSyncConfigurationCommand = async (output, context) => {
|
|
458
|
-
if (output.statusCode >= 300) {
|
|
459
|
-
return de_DeleteSyncConfigurationCommandError(output, context);
|
|
460
|
-
}
|
|
461
|
-
const data = await parseBody(output.body, context);
|
|
462
|
-
let contents = {};
|
|
463
|
-
contents = _json(data);
|
|
464
|
-
const response = {
|
|
465
|
-
$metadata: deserializeMetadata(output),
|
|
466
|
-
...contents,
|
|
467
|
-
};
|
|
468
|
-
return response;
|
|
469
|
-
};
|
|
470
|
-
const de_DeleteSyncConfigurationCommandError = async (output, context) => {
|
|
471
|
-
const parsedOutput = {
|
|
472
|
-
...output,
|
|
473
|
-
body: await parseErrorBody(output.body, context),
|
|
474
|
-
};
|
|
475
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
476
|
-
switch (errorCode) {
|
|
477
|
-
case "AccessDeniedException":
|
|
478
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
479
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
480
|
-
case "ConcurrentModificationException":
|
|
481
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
482
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
483
|
-
case "InternalServerException":
|
|
484
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
485
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
486
|
-
case "InvalidInputException":
|
|
487
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
488
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
489
|
-
case "LimitExceededException":
|
|
490
|
-
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
491
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
492
|
-
case "ThrottlingException":
|
|
493
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
494
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
495
|
-
default:
|
|
496
|
-
const parsedBody = parsedOutput.body;
|
|
497
|
-
return throwDefaultError({
|
|
498
|
-
output,
|
|
499
|
-
parsedBody,
|
|
500
|
-
errorCode,
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
};
|
|
504
214
|
export const de_GetConnectionCommand = async (output, context) => {
|
|
505
215
|
if (output.statusCode >= 300) {
|
|
506
216
|
return de_GetConnectionCommandError(output, context);
|
|
@@ -571,9 +281,9 @@ const de_GetHostCommandError = async (output, context) => {
|
|
|
571
281
|
});
|
|
572
282
|
}
|
|
573
283
|
};
|
|
574
|
-
export const
|
|
284
|
+
export const de_ListConnectionsCommand = async (output, context) => {
|
|
575
285
|
if (output.statusCode >= 300) {
|
|
576
|
-
return
|
|
286
|
+
return de_ListConnectionsCommandError(output, context);
|
|
577
287
|
}
|
|
578
288
|
const data = await parseBody(output.body, context);
|
|
579
289
|
let contents = {};
|
|
@@ -584,31 +294,16 @@ export const de_GetRepositoryLinkCommand = async (output, context) => {
|
|
|
584
294
|
};
|
|
585
295
|
return response;
|
|
586
296
|
};
|
|
587
|
-
const
|
|
297
|
+
const de_ListConnectionsCommandError = async (output, context) => {
|
|
588
298
|
const parsedOutput = {
|
|
589
299
|
...output,
|
|
590
300
|
body: await parseErrorBody(output.body, context),
|
|
591
301
|
};
|
|
592
302
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
593
303
|
switch (errorCode) {
|
|
594
|
-
case "AccessDeniedException":
|
|
595
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
596
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
597
|
-
case "ConcurrentModificationException":
|
|
598
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
599
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
600
|
-
case "InternalServerException":
|
|
601
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
602
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
603
|
-
case "InvalidInputException":
|
|
604
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
605
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
606
304
|
case "ResourceNotFoundException":
|
|
607
305
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
608
306
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
609
|
-
case "ThrottlingException":
|
|
610
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
611
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
612
307
|
default:
|
|
613
308
|
const parsedBody = parsedOutput.body;
|
|
614
309
|
return throwDefaultError({
|
|
@@ -618,85 +313,55 @@ const de_GetRepositoryLinkCommandError = async (output, context) => {
|
|
|
618
313
|
});
|
|
619
314
|
}
|
|
620
315
|
};
|
|
621
|
-
export const
|
|
316
|
+
export const de_ListHostsCommand = async (output, context) => {
|
|
622
317
|
if (output.statusCode >= 300) {
|
|
623
|
-
return
|
|
318
|
+
return de_ListHostsCommandError(output, context);
|
|
624
319
|
}
|
|
625
320
|
const data = await parseBody(output.body, context);
|
|
626
321
|
let contents = {};
|
|
627
|
-
contents =
|
|
322
|
+
contents = _json(data);
|
|
628
323
|
const response = {
|
|
629
324
|
$metadata: deserializeMetadata(output),
|
|
630
325
|
...contents,
|
|
631
326
|
};
|
|
632
327
|
return response;
|
|
633
328
|
};
|
|
634
|
-
const
|
|
329
|
+
const de_ListHostsCommandError = async (output, context) => {
|
|
635
330
|
const parsedOutput = {
|
|
636
331
|
...output,
|
|
637
332
|
body: await parseErrorBody(output.body, context),
|
|
638
333
|
};
|
|
639
334
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
647
|
-
case "InvalidInputException":
|
|
648
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
649
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
650
|
-
case "ResourceNotFoundException":
|
|
651
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
652
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
653
|
-
case "ThrottlingException":
|
|
654
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
655
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
656
|
-
default:
|
|
657
|
-
const parsedBody = parsedOutput.body;
|
|
658
|
-
return throwDefaultError({
|
|
659
|
-
output,
|
|
660
|
-
parsedBody,
|
|
661
|
-
errorCode,
|
|
662
|
-
});
|
|
663
|
-
}
|
|
335
|
+
const parsedBody = parsedOutput.body;
|
|
336
|
+
return throwDefaultError({
|
|
337
|
+
output,
|
|
338
|
+
parsedBody,
|
|
339
|
+
errorCode,
|
|
340
|
+
});
|
|
664
341
|
};
|
|
665
|
-
export const
|
|
342
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
666
343
|
if (output.statusCode >= 300) {
|
|
667
|
-
return
|
|
344
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
668
345
|
}
|
|
669
346
|
const data = await parseBody(output.body, context);
|
|
670
347
|
let contents = {};
|
|
671
|
-
contents =
|
|
348
|
+
contents = _json(data);
|
|
672
349
|
const response = {
|
|
673
350
|
$metadata: deserializeMetadata(output),
|
|
674
351
|
...contents,
|
|
675
352
|
};
|
|
676
353
|
return response;
|
|
677
354
|
};
|
|
678
|
-
const
|
|
355
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
679
356
|
const parsedOutput = {
|
|
680
357
|
...output,
|
|
681
358
|
body: await parseErrorBody(output.body, context),
|
|
682
359
|
};
|
|
683
360
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
684
361
|
switch (errorCode) {
|
|
685
|
-
case "AccessDeniedException":
|
|
686
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
687
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
688
|
-
case "InternalServerException":
|
|
689
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
690
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
691
|
-
case "InvalidInputException":
|
|
692
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
693
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
694
362
|
case "ResourceNotFoundException":
|
|
695
363
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
696
364
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
697
|
-
case "ThrottlingException":
|
|
698
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
699
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
700
365
|
default:
|
|
701
366
|
const parsedBody = parsedOutput.body;
|
|
702
367
|
return throwDefaultError({
|
|
@@ -706,41 +371,32 @@ const de_GetResourceSyncStatusCommandError = async (output, context) => {
|
|
|
706
371
|
});
|
|
707
372
|
}
|
|
708
373
|
};
|
|
709
|
-
export const
|
|
374
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
710
375
|
if (output.statusCode >= 300) {
|
|
711
|
-
return
|
|
376
|
+
return de_TagResourceCommandError(output, context);
|
|
712
377
|
}
|
|
713
378
|
const data = await parseBody(output.body, context);
|
|
714
379
|
let contents = {};
|
|
715
|
-
contents =
|
|
380
|
+
contents = _json(data);
|
|
716
381
|
const response = {
|
|
717
382
|
$metadata: deserializeMetadata(output),
|
|
718
383
|
...contents,
|
|
719
384
|
};
|
|
720
385
|
return response;
|
|
721
386
|
};
|
|
722
|
-
const
|
|
387
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
723
388
|
const parsedOutput = {
|
|
724
389
|
...output,
|
|
725
390
|
body: await parseErrorBody(output.body, context),
|
|
726
391
|
};
|
|
727
392
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
728
393
|
switch (errorCode) {
|
|
729
|
-
case "
|
|
730
|
-
case "com.amazonaws.codestarconnections#
|
|
731
|
-
throw await
|
|
732
|
-
case "InternalServerException":
|
|
733
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
734
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
735
|
-
case "InvalidInputException":
|
|
736
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
737
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
394
|
+
case "LimitExceededException":
|
|
395
|
+
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
396
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
738
397
|
case "ResourceNotFoundException":
|
|
739
398
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
740
399
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ThrottlingException":
|
|
742
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
743
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
744
400
|
default:
|
|
745
401
|
const parsedBody = parsedOutput.body;
|
|
746
402
|
return throwDefaultError({
|
|
@@ -750,9 +406,9 @@ const de_GetSyncBlockerSummaryCommandError = async (output, context) => {
|
|
|
750
406
|
});
|
|
751
407
|
}
|
|
752
408
|
};
|
|
753
|
-
export const
|
|
409
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
754
410
|
if (output.statusCode >= 300) {
|
|
755
|
-
return
|
|
411
|
+
return de_UntagResourceCommandError(output, context);
|
|
756
412
|
}
|
|
757
413
|
const data = await parseBody(output.body, context);
|
|
758
414
|
let contents = {};
|
|
@@ -763,28 +419,16 @@ export const de_GetSyncConfigurationCommand = async (output, context) => {
|
|
|
763
419
|
};
|
|
764
420
|
return response;
|
|
765
421
|
};
|
|
766
|
-
const
|
|
422
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
767
423
|
const parsedOutput = {
|
|
768
424
|
...output,
|
|
769
425
|
body: await parseErrorBody(output.body, context),
|
|
770
426
|
};
|
|
771
427
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
772
428
|
switch (errorCode) {
|
|
773
|
-
case "AccessDeniedException":
|
|
774
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
775
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
776
|
-
case "InternalServerException":
|
|
777
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
778
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
779
|
-
case "InvalidInputException":
|
|
780
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
781
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
782
429
|
case "ResourceNotFoundException":
|
|
783
430
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
784
431
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
785
|
-
case "ThrottlingException":
|
|
786
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
787
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
788
432
|
default:
|
|
789
433
|
const parsedBody = parsedOutput.body;
|
|
790
434
|
return throwDefaultError({
|
|
@@ -794,9 +438,9 @@ const de_GetSyncConfigurationCommandError = async (output, context) => {
|
|
|
794
438
|
});
|
|
795
439
|
}
|
|
796
440
|
};
|
|
797
|
-
export const
|
|
441
|
+
export const de_UpdateHostCommand = async (output, context) => {
|
|
798
442
|
if (output.statusCode >= 300) {
|
|
799
|
-
return
|
|
443
|
+
return de_UpdateHostCommandError(output, context);
|
|
800
444
|
}
|
|
801
445
|
const data = await parseBody(output.body, context);
|
|
802
446
|
let contents = {};
|
|
@@ -807,16 +451,25 @@ export const de_ListConnectionsCommand = async (output, context) => {
|
|
|
807
451
|
};
|
|
808
452
|
return response;
|
|
809
453
|
};
|
|
810
|
-
const
|
|
454
|
+
const de_UpdateHostCommandError = async (output, context) => {
|
|
811
455
|
const parsedOutput = {
|
|
812
456
|
...output,
|
|
813
457
|
body: await parseErrorBody(output.body, context),
|
|
814
458
|
};
|
|
815
459
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
816
460
|
switch (errorCode) {
|
|
461
|
+
case "ConflictException":
|
|
462
|
+
case "com.amazonaws.codestarconnections#ConflictException":
|
|
463
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
817
464
|
case "ResourceNotFoundException":
|
|
818
465
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
819
466
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
467
|
+
case "ResourceUnavailableException":
|
|
468
|
+
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
469
|
+
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
470
|
+
case "UnsupportedOperationException":
|
|
471
|
+
case "com.amazonaws.codestarconnections#UnsupportedOperationException":
|
|
472
|
+
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
820
473
|
default:
|
|
821
474
|
const parsedBody = parsedOutput.body;
|
|
822
475
|
return throwDefaultError({
|
|
@@ -826,510 +479,14 @@ const de_ListConnectionsCommandError = async (output, context) => {
|
|
|
826
479
|
});
|
|
827
480
|
}
|
|
828
481
|
};
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
$metadata: deserializeMetadata(output),
|
|
838
|
-
...contents,
|
|
839
|
-
};
|
|
840
|
-
return response;
|
|
841
|
-
};
|
|
842
|
-
const de_ListHostsCommandError = async (output, context) => {
|
|
843
|
-
const parsedOutput = {
|
|
844
|
-
...output,
|
|
845
|
-
body: await parseErrorBody(output.body, context),
|
|
846
|
-
};
|
|
847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
-
const parsedBody = parsedOutput.body;
|
|
849
|
-
return throwDefaultError({
|
|
850
|
-
output,
|
|
851
|
-
parsedBody,
|
|
852
|
-
errorCode,
|
|
853
|
-
});
|
|
854
|
-
};
|
|
855
|
-
export const de_ListRepositoryLinksCommand = async (output, context) => {
|
|
856
|
-
if (output.statusCode >= 300) {
|
|
857
|
-
return de_ListRepositoryLinksCommandError(output, context);
|
|
858
|
-
}
|
|
859
|
-
const data = await parseBody(output.body, context);
|
|
860
|
-
let contents = {};
|
|
861
|
-
contents = _json(data);
|
|
862
|
-
const response = {
|
|
863
|
-
$metadata: deserializeMetadata(output),
|
|
864
|
-
...contents,
|
|
865
|
-
};
|
|
866
|
-
return response;
|
|
867
|
-
};
|
|
868
|
-
const de_ListRepositoryLinksCommandError = async (output, context) => {
|
|
869
|
-
const parsedOutput = {
|
|
870
|
-
...output,
|
|
871
|
-
body: await parseErrorBody(output.body, context),
|
|
872
|
-
};
|
|
873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
874
|
-
switch (errorCode) {
|
|
875
|
-
case "AccessDeniedException":
|
|
876
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
877
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
878
|
-
case "ConcurrentModificationException":
|
|
879
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
880
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
881
|
-
case "InternalServerException":
|
|
882
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
883
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
884
|
-
case "InvalidInputException":
|
|
885
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
886
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
887
|
-
case "ResourceNotFoundException":
|
|
888
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
889
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
890
|
-
case "ThrottlingException":
|
|
891
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
892
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
893
|
-
default:
|
|
894
|
-
const parsedBody = parsedOutput.body;
|
|
895
|
-
return throwDefaultError({
|
|
896
|
-
output,
|
|
897
|
-
parsedBody,
|
|
898
|
-
errorCode,
|
|
899
|
-
});
|
|
900
|
-
}
|
|
901
|
-
};
|
|
902
|
-
export const de_ListRepositorySyncDefinitionsCommand = async (output, context) => {
|
|
903
|
-
if (output.statusCode >= 300) {
|
|
904
|
-
return de_ListRepositorySyncDefinitionsCommandError(output, context);
|
|
905
|
-
}
|
|
906
|
-
const data = await parseBody(output.body, context);
|
|
907
|
-
let contents = {};
|
|
908
|
-
contents = _json(data);
|
|
909
|
-
const response = {
|
|
910
|
-
$metadata: deserializeMetadata(output),
|
|
911
|
-
...contents,
|
|
912
|
-
};
|
|
913
|
-
return response;
|
|
914
|
-
};
|
|
915
|
-
const de_ListRepositorySyncDefinitionsCommandError = async (output, context) => {
|
|
916
|
-
const parsedOutput = {
|
|
917
|
-
...output,
|
|
918
|
-
body: await parseErrorBody(output.body, context),
|
|
919
|
-
};
|
|
920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
921
|
-
switch (errorCode) {
|
|
922
|
-
case "AccessDeniedException":
|
|
923
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
924
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
925
|
-
case "InternalServerException":
|
|
926
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
927
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
928
|
-
case "InvalidInputException":
|
|
929
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
930
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
931
|
-
case "ResourceNotFoundException":
|
|
932
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
933
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ThrottlingException":
|
|
935
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
936
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
937
|
-
default:
|
|
938
|
-
const parsedBody = parsedOutput.body;
|
|
939
|
-
return throwDefaultError({
|
|
940
|
-
output,
|
|
941
|
-
parsedBody,
|
|
942
|
-
errorCode,
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
};
|
|
946
|
-
export const de_ListSyncConfigurationsCommand = async (output, context) => {
|
|
947
|
-
if (output.statusCode >= 300) {
|
|
948
|
-
return de_ListSyncConfigurationsCommandError(output, context);
|
|
949
|
-
}
|
|
950
|
-
const data = await parseBody(output.body, context);
|
|
951
|
-
let contents = {};
|
|
952
|
-
contents = _json(data);
|
|
953
|
-
const response = {
|
|
954
|
-
$metadata: deserializeMetadata(output),
|
|
955
|
-
...contents,
|
|
956
|
-
};
|
|
957
|
-
return response;
|
|
958
|
-
};
|
|
959
|
-
const de_ListSyncConfigurationsCommandError = async (output, context) => {
|
|
960
|
-
const parsedOutput = {
|
|
961
|
-
...output,
|
|
962
|
-
body: await parseErrorBody(output.body, context),
|
|
963
|
-
};
|
|
964
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
965
|
-
switch (errorCode) {
|
|
966
|
-
case "AccessDeniedException":
|
|
967
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
968
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
969
|
-
case "InternalServerException":
|
|
970
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
971
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
972
|
-
case "InvalidInputException":
|
|
973
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
974
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
975
|
-
case "ResourceNotFoundException":
|
|
976
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
977
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
978
|
-
case "ThrottlingException":
|
|
979
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
980
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
981
|
-
default:
|
|
982
|
-
const parsedBody = parsedOutput.body;
|
|
983
|
-
return throwDefaultError({
|
|
984
|
-
output,
|
|
985
|
-
parsedBody,
|
|
986
|
-
errorCode,
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
|
-
};
|
|
990
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
991
|
-
if (output.statusCode >= 300) {
|
|
992
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
993
|
-
}
|
|
994
|
-
const data = await parseBody(output.body, context);
|
|
995
|
-
let contents = {};
|
|
996
|
-
contents = _json(data);
|
|
997
|
-
const response = {
|
|
998
|
-
$metadata: deserializeMetadata(output),
|
|
999
|
-
...contents,
|
|
1000
|
-
};
|
|
1001
|
-
return response;
|
|
1002
|
-
};
|
|
1003
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
1004
|
-
const parsedOutput = {
|
|
1005
|
-
...output,
|
|
1006
|
-
body: await parseErrorBody(output.body, context),
|
|
1007
|
-
};
|
|
1008
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1009
|
-
switch (errorCode) {
|
|
1010
|
-
case "ResourceNotFoundException":
|
|
1011
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
1012
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1013
|
-
default:
|
|
1014
|
-
const parsedBody = parsedOutput.body;
|
|
1015
|
-
return throwDefaultError({
|
|
1016
|
-
output,
|
|
1017
|
-
parsedBody,
|
|
1018
|
-
errorCode,
|
|
1019
|
-
});
|
|
1020
|
-
}
|
|
1021
|
-
};
|
|
1022
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
1023
|
-
if (output.statusCode >= 300) {
|
|
1024
|
-
return de_TagResourceCommandError(output, context);
|
|
1025
|
-
}
|
|
1026
|
-
const data = await parseBody(output.body, context);
|
|
1027
|
-
let contents = {};
|
|
1028
|
-
contents = _json(data);
|
|
1029
|
-
const response = {
|
|
1030
|
-
$metadata: deserializeMetadata(output),
|
|
1031
|
-
...contents,
|
|
1032
|
-
};
|
|
1033
|
-
return response;
|
|
1034
|
-
};
|
|
1035
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1036
|
-
const parsedOutput = {
|
|
1037
|
-
...output,
|
|
1038
|
-
body: await parseErrorBody(output.body, context),
|
|
1039
|
-
};
|
|
1040
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1041
|
-
switch (errorCode) {
|
|
1042
|
-
case "LimitExceededException":
|
|
1043
|
-
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
1044
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1045
|
-
case "ResourceNotFoundException":
|
|
1046
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
1047
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1048
|
-
default:
|
|
1049
|
-
const parsedBody = parsedOutput.body;
|
|
1050
|
-
return throwDefaultError({
|
|
1051
|
-
output,
|
|
1052
|
-
parsedBody,
|
|
1053
|
-
errorCode,
|
|
1054
|
-
});
|
|
1055
|
-
}
|
|
1056
|
-
};
|
|
1057
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
1058
|
-
if (output.statusCode >= 300) {
|
|
1059
|
-
return de_UntagResourceCommandError(output, context);
|
|
1060
|
-
}
|
|
1061
|
-
const data = await parseBody(output.body, context);
|
|
1062
|
-
let contents = {};
|
|
1063
|
-
contents = _json(data);
|
|
1064
|
-
const response = {
|
|
1065
|
-
$metadata: deserializeMetadata(output),
|
|
1066
|
-
...contents,
|
|
1067
|
-
};
|
|
1068
|
-
return response;
|
|
1069
|
-
};
|
|
1070
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1071
|
-
const parsedOutput = {
|
|
1072
|
-
...output,
|
|
1073
|
-
body: await parseErrorBody(output.body, context),
|
|
1074
|
-
};
|
|
1075
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1076
|
-
switch (errorCode) {
|
|
1077
|
-
case "ResourceNotFoundException":
|
|
1078
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
1079
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1080
|
-
default:
|
|
1081
|
-
const parsedBody = parsedOutput.body;
|
|
1082
|
-
return throwDefaultError({
|
|
1083
|
-
output,
|
|
1084
|
-
parsedBody,
|
|
1085
|
-
errorCode,
|
|
1086
|
-
});
|
|
1087
|
-
}
|
|
1088
|
-
};
|
|
1089
|
-
export const de_UpdateHostCommand = async (output, context) => {
|
|
1090
|
-
if (output.statusCode >= 300) {
|
|
1091
|
-
return de_UpdateHostCommandError(output, context);
|
|
1092
|
-
}
|
|
1093
|
-
const data = await parseBody(output.body, context);
|
|
1094
|
-
let contents = {};
|
|
1095
|
-
contents = _json(data);
|
|
1096
|
-
const response = {
|
|
1097
|
-
$metadata: deserializeMetadata(output),
|
|
1098
|
-
...contents,
|
|
1099
|
-
};
|
|
1100
|
-
return response;
|
|
1101
|
-
};
|
|
1102
|
-
const de_UpdateHostCommandError = async (output, context) => {
|
|
1103
|
-
const parsedOutput = {
|
|
1104
|
-
...output,
|
|
1105
|
-
body: await parseErrorBody(output.body, context),
|
|
1106
|
-
};
|
|
1107
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1108
|
-
switch (errorCode) {
|
|
1109
|
-
case "ConflictException":
|
|
1110
|
-
case "com.amazonaws.codestarconnections#ConflictException":
|
|
1111
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1112
|
-
case "ResourceNotFoundException":
|
|
1113
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
1114
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1115
|
-
case "ResourceUnavailableException":
|
|
1116
|
-
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
1117
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
1118
|
-
case "UnsupportedOperationException":
|
|
1119
|
-
case "com.amazonaws.codestarconnections#UnsupportedOperationException":
|
|
1120
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
1121
|
-
default:
|
|
1122
|
-
const parsedBody = parsedOutput.body;
|
|
1123
|
-
return throwDefaultError({
|
|
1124
|
-
output,
|
|
1125
|
-
parsedBody,
|
|
1126
|
-
errorCode,
|
|
1127
|
-
});
|
|
1128
|
-
}
|
|
1129
|
-
};
|
|
1130
|
-
export const de_UpdateRepositoryLinkCommand = async (output, context) => {
|
|
1131
|
-
if (output.statusCode >= 300) {
|
|
1132
|
-
return de_UpdateRepositoryLinkCommandError(output, context);
|
|
1133
|
-
}
|
|
1134
|
-
const data = await parseBody(output.body, context);
|
|
1135
|
-
let contents = {};
|
|
1136
|
-
contents = _json(data);
|
|
1137
|
-
const response = {
|
|
1138
|
-
$metadata: deserializeMetadata(output),
|
|
1139
|
-
...contents,
|
|
1140
|
-
};
|
|
1141
|
-
return response;
|
|
1142
|
-
};
|
|
1143
|
-
const de_UpdateRepositoryLinkCommandError = async (output, context) => {
|
|
1144
|
-
const parsedOutput = {
|
|
1145
|
-
...output,
|
|
1146
|
-
body: await parseErrorBody(output.body, context),
|
|
1147
|
-
};
|
|
1148
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1149
|
-
switch (errorCode) {
|
|
1150
|
-
case "AccessDeniedException":
|
|
1151
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
1152
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1153
|
-
case "ConditionalCheckFailedException":
|
|
1154
|
-
case "com.amazonaws.codestarconnections#ConditionalCheckFailedException":
|
|
1155
|
-
throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
|
|
1156
|
-
case "InternalServerException":
|
|
1157
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
1158
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1159
|
-
case "InvalidInputException":
|
|
1160
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
1161
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1162
|
-
case "ResourceNotFoundException":
|
|
1163
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
1164
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1165
|
-
case "ThrottlingException":
|
|
1166
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
1167
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1168
|
-
case "UpdateOutOfSyncException":
|
|
1169
|
-
case "com.amazonaws.codestarconnections#UpdateOutOfSyncException":
|
|
1170
|
-
throw await de_UpdateOutOfSyncExceptionRes(parsedOutput, context);
|
|
1171
|
-
default:
|
|
1172
|
-
const parsedBody = parsedOutput.body;
|
|
1173
|
-
return throwDefaultError({
|
|
1174
|
-
output,
|
|
1175
|
-
parsedBody,
|
|
1176
|
-
errorCode,
|
|
1177
|
-
});
|
|
1178
|
-
}
|
|
1179
|
-
};
|
|
1180
|
-
export const de_UpdateSyncBlockerCommand = async (output, context) => {
|
|
1181
|
-
if (output.statusCode >= 300) {
|
|
1182
|
-
return de_UpdateSyncBlockerCommandError(output, context);
|
|
1183
|
-
}
|
|
1184
|
-
const data = await parseBody(output.body, context);
|
|
1185
|
-
let contents = {};
|
|
1186
|
-
contents = de_UpdateSyncBlockerOutput(data, context);
|
|
1187
|
-
const response = {
|
|
1188
|
-
$metadata: deserializeMetadata(output),
|
|
1189
|
-
...contents,
|
|
1190
|
-
};
|
|
1191
|
-
return response;
|
|
1192
|
-
};
|
|
1193
|
-
const de_UpdateSyncBlockerCommandError = async (output, context) => {
|
|
1194
|
-
const parsedOutput = {
|
|
1195
|
-
...output,
|
|
1196
|
-
body: await parseErrorBody(output.body, context),
|
|
1197
|
-
};
|
|
1198
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1199
|
-
switch (errorCode) {
|
|
1200
|
-
case "AccessDeniedException":
|
|
1201
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
1202
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1203
|
-
case "InternalServerException":
|
|
1204
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
1205
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1206
|
-
case "InvalidInputException":
|
|
1207
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
1208
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1209
|
-
case "ResourceNotFoundException":
|
|
1210
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
1211
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1212
|
-
case "RetryLatestCommitFailedException":
|
|
1213
|
-
case "com.amazonaws.codestarconnections#RetryLatestCommitFailedException":
|
|
1214
|
-
throw await de_RetryLatestCommitFailedExceptionRes(parsedOutput, context);
|
|
1215
|
-
case "SyncBlockerDoesNotExistException":
|
|
1216
|
-
case "com.amazonaws.codestarconnections#SyncBlockerDoesNotExistException":
|
|
1217
|
-
throw await de_SyncBlockerDoesNotExistExceptionRes(parsedOutput, context);
|
|
1218
|
-
case "ThrottlingException":
|
|
1219
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
1220
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1221
|
-
default:
|
|
1222
|
-
const parsedBody = parsedOutput.body;
|
|
1223
|
-
return throwDefaultError({
|
|
1224
|
-
output,
|
|
1225
|
-
parsedBody,
|
|
1226
|
-
errorCode,
|
|
1227
|
-
});
|
|
1228
|
-
}
|
|
1229
|
-
};
|
|
1230
|
-
export const de_UpdateSyncConfigurationCommand = async (output, context) => {
|
|
1231
|
-
if (output.statusCode >= 300) {
|
|
1232
|
-
return de_UpdateSyncConfigurationCommandError(output, context);
|
|
1233
|
-
}
|
|
1234
|
-
const data = await parseBody(output.body, context);
|
|
1235
|
-
let contents = {};
|
|
1236
|
-
contents = _json(data);
|
|
1237
|
-
const response = {
|
|
1238
|
-
$metadata: deserializeMetadata(output),
|
|
1239
|
-
...contents,
|
|
1240
|
-
};
|
|
1241
|
-
return response;
|
|
1242
|
-
};
|
|
1243
|
-
const de_UpdateSyncConfigurationCommandError = async (output, context) => {
|
|
1244
|
-
const parsedOutput = {
|
|
1245
|
-
...output,
|
|
1246
|
-
body: await parseErrorBody(output.body, context),
|
|
1247
|
-
};
|
|
1248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
|
-
switch (errorCode) {
|
|
1250
|
-
case "AccessDeniedException":
|
|
1251
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
1252
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1253
|
-
case "ConcurrentModificationException":
|
|
1254
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
1255
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
1256
|
-
case "InternalServerException":
|
|
1257
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
1258
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1259
|
-
case "InvalidInputException":
|
|
1260
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
1261
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1262
|
-
case "ResourceNotFoundException":
|
|
1263
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
1264
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1265
|
-
case "ThrottlingException":
|
|
1266
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
1267
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1268
|
-
case "UpdateOutOfSyncException":
|
|
1269
|
-
case "com.amazonaws.codestarconnections#UpdateOutOfSyncException":
|
|
1270
|
-
throw await de_UpdateOutOfSyncExceptionRes(parsedOutput, context);
|
|
1271
|
-
default:
|
|
1272
|
-
const parsedBody = parsedOutput.body;
|
|
1273
|
-
return throwDefaultError({
|
|
1274
|
-
output,
|
|
1275
|
-
parsedBody,
|
|
1276
|
-
errorCode,
|
|
1277
|
-
});
|
|
1278
|
-
}
|
|
1279
|
-
};
|
|
1280
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1281
|
-
const body = parsedOutput.body;
|
|
1282
|
-
const deserialized = _json(body);
|
|
1283
|
-
const exception = new AccessDeniedException({
|
|
1284
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1285
|
-
...deserialized,
|
|
1286
|
-
});
|
|
1287
|
-
return __decorateServiceException(exception, body);
|
|
1288
|
-
};
|
|
1289
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
1290
|
-
const body = parsedOutput.body;
|
|
1291
|
-
const deserialized = _json(body);
|
|
1292
|
-
const exception = new ConcurrentModificationException({
|
|
1293
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1294
|
-
...deserialized,
|
|
1295
|
-
});
|
|
1296
|
-
return __decorateServiceException(exception, body);
|
|
1297
|
-
};
|
|
1298
|
-
const de_ConditionalCheckFailedExceptionRes = async (parsedOutput, context) => {
|
|
1299
|
-
const body = parsedOutput.body;
|
|
1300
|
-
const deserialized = _json(body);
|
|
1301
|
-
const exception = new ConditionalCheckFailedException({
|
|
1302
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1303
|
-
...deserialized,
|
|
1304
|
-
});
|
|
1305
|
-
return __decorateServiceException(exception, body);
|
|
1306
|
-
};
|
|
1307
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1308
|
-
const body = parsedOutput.body;
|
|
1309
|
-
const deserialized = _json(body);
|
|
1310
|
-
const exception = new ConflictException({
|
|
1311
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1312
|
-
...deserialized,
|
|
1313
|
-
});
|
|
1314
|
-
return __decorateServiceException(exception, body);
|
|
1315
|
-
};
|
|
1316
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1317
|
-
const body = parsedOutput.body;
|
|
1318
|
-
const deserialized = _json(body);
|
|
1319
|
-
const exception = new InternalServerException({
|
|
1320
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1321
|
-
...deserialized,
|
|
1322
|
-
});
|
|
1323
|
-
return __decorateServiceException(exception, body);
|
|
1324
|
-
};
|
|
1325
|
-
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
1326
|
-
const body = parsedOutput.body;
|
|
1327
|
-
const deserialized = _json(body);
|
|
1328
|
-
const exception = new InvalidInputException({
|
|
1329
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1330
|
-
...deserialized,
|
|
1331
|
-
});
|
|
1332
|
-
return __decorateServiceException(exception, body);
|
|
482
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
483
|
+
const body = parsedOutput.body;
|
|
484
|
+
const deserialized = _json(body);
|
|
485
|
+
const exception = new ConflictException({
|
|
486
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
487
|
+
...deserialized,
|
|
488
|
+
});
|
|
489
|
+
return __decorateServiceException(exception, body);
|
|
1333
490
|
};
|
|
1334
491
|
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1335
492
|
const body = parsedOutput.body;
|
|
@@ -1340,15 +497,6 @@ const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
|
1340
497
|
});
|
|
1341
498
|
return __decorateServiceException(exception, body);
|
|
1342
499
|
};
|
|
1343
|
-
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
1344
|
-
const body = parsedOutput.body;
|
|
1345
|
-
const deserialized = _json(body);
|
|
1346
|
-
const exception = new ResourceAlreadyExistsException({
|
|
1347
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1348
|
-
...deserialized,
|
|
1349
|
-
});
|
|
1350
|
-
return __decorateServiceException(exception, body);
|
|
1351
|
-
};
|
|
1352
500
|
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1353
501
|
const body = parsedOutput.body;
|
|
1354
502
|
const deserialized = _json(body);
|
|
@@ -1367,42 +515,6 @@ const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
1367
515
|
});
|
|
1368
516
|
return __decorateServiceException(exception, body);
|
|
1369
517
|
};
|
|
1370
|
-
const de_RetryLatestCommitFailedExceptionRes = async (parsedOutput, context) => {
|
|
1371
|
-
const body = parsedOutput.body;
|
|
1372
|
-
const deserialized = _json(body);
|
|
1373
|
-
const exception = new RetryLatestCommitFailedException({
|
|
1374
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1375
|
-
...deserialized,
|
|
1376
|
-
});
|
|
1377
|
-
return __decorateServiceException(exception, body);
|
|
1378
|
-
};
|
|
1379
|
-
const de_SyncBlockerDoesNotExistExceptionRes = async (parsedOutput, context) => {
|
|
1380
|
-
const body = parsedOutput.body;
|
|
1381
|
-
const deserialized = _json(body);
|
|
1382
|
-
const exception = new SyncBlockerDoesNotExistException({
|
|
1383
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1384
|
-
...deserialized,
|
|
1385
|
-
});
|
|
1386
|
-
return __decorateServiceException(exception, body);
|
|
1387
|
-
};
|
|
1388
|
-
const de_SyncConfigurationStillExistsExceptionRes = async (parsedOutput, context) => {
|
|
1389
|
-
const body = parsedOutput.body;
|
|
1390
|
-
const deserialized = _json(body);
|
|
1391
|
-
const exception = new SyncConfigurationStillExistsException({
|
|
1392
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1393
|
-
...deserialized,
|
|
1394
|
-
});
|
|
1395
|
-
return __decorateServiceException(exception, body);
|
|
1396
|
-
};
|
|
1397
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1398
|
-
const body = parsedOutput.body;
|
|
1399
|
-
const deserialized = _json(body);
|
|
1400
|
-
const exception = new ThrottlingException({
|
|
1401
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1402
|
-
...deserialized,
|
|
1403
|
-
});
|
|
1404
|
-
return __decorateServiceException(exception, body);
|
|
1405
|
-
};
|
|
1406
518
|
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
1407
519
|
const body = parsedOutput.body;
|
|
1408
520
|
const deserialized = _json(body);
|
|
@@ -1412,124 +524,6 @@ const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
1412
524
|
});
|
|
1413
525
|
return __decorateServiceException(exception, body);
|
|
1414
526
|
};
|
|
1415
|
-
const de_UnsupportedProviderTypeExceptionRes = async (parsedOutput, context) => {
|
|
1416
|
-
const body = parsedOutput.body;
|
|
1417
|
-
const deserialized = _json(body);
|
|
1418
|
-
const exception = new UnsupportedProviderTypeException({
|
|
1419
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1420
|
-
...deserialized,
|
|
1421
|
-
});
|
|
1422
|
-
return __decorateServiceException(exception, body);
|
|
1423
|
-
};
|
|
1424
|
-
const de_UpdateOutOfSyncExceptionRes = async (parsedOutput, context) => {
|
|
1425
|
-
const body = parsedOutput.body;
|
|
1426
|
-
const deserialized = _json(body);
|
|
1427
|
-
const exception = new UpdateOutOfSyncException({
|
|
1428
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1429
|
-
...deserialized,
|
|
1430
|
-
});
|
|
1431
|
-
return __decorateServiceException(exception, body);
|
|
1432
|
-
};
|
|
1433
|
-
const de_GetRepositorySyncStatusOutput = (output, context) => {
|
|
1434
|
-
return take(output, {
|
|
1435
|
-
LatestSync: (_) => de_RepositorySyncAttempt(_, context),
|
|
1436
|
-
});
|
|
1437
|
-
};
|
|
1438
|
-
const de_GetResourceSyncStatusOutput = (output, context) => {
|
|
1439
|
-
return take(output, {
|
|
1440
|
-
DesiredState: _json,
|
|
1441
|
-
LatestSuccessfulSync: (_) => de_ResourceSyncAttempt(_, context),
|
|
1442
|
-
LatestSync: (_) => de_ResourceSyncAttempt(_, context),
|
|
1443
|
-
});
|
|
1444
|
-
};
|
|
1445
|
-
const de_GetSyncBlockerSummaryOutput = (output, context) => {
|
|
1446
|
-
return take(output, {
|
|
1447
|
-
SyncBlockerSummary: (_) => de_SyncBlockerSummary(_, context),
|
|
1448
|
-
});
|
|
1449
|
-
};
|
|
1450
|
-
const de_LatestSyncBlockerList = (output, context) => {
|
|
1451
|
-
const retVal = (output || [])
|
|
1452
|
-
.filter((e) => e != null)
|
|
1453
|
-
.map((entry) => {
|
|
1454
|
-
return de_SyncBlocker(entry, context);
|
|
1455
|
-
});
|
|
1456
|
-
return retVal;
|
|
1457
|
-
};
|
|
1458
|
-
const de_RepositorySyncAttempt = (output, context) => {
|
|
1459
|
-
return take(output, {
|
|
1460
|
-
Events: (_) => de_RepositorySyncEventList(_, context),
|
|
1461
|
-
StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1462
|
-
Status: __expectString,
|
|
1463
|
-
});
|
|
1464
|
-
};
|
|
1465
|
-
const de_RepositorySyncEvent = (output, context) => {
|
|
1466
|
-
return take(output, {
|
|
1467
|
-
Event: __expectString,
|
|
1468
|
-
ExternalId: __expectString,
|
|
1469
|
-
Time: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1470
|
-
Type: __expectString,
|
|
1471
|
-
});
|
|
1472
|
-
};
|
|
1473
|
-
const de_RepositorySyncEventList = (output, context) => {
|
|
1474
|
-
const retVal = (output || [])
|
|
1475
|
-
.filter((e) => e != null)
|
|
1476
|
-
.map((entry) => {
|
|
1477
|
-
return de_RepositorySyncEvent(entry, context);
|
|
1478
|
-
});
|
|
1479
|
-
return retVal;
|
|
1480
|
-
};
|
|
1481
|
-
const de_ResourceSyncAttempt = (output, context) => {
|
|
1482
|
-
return take(output, {
|
|
1483
|
-
Events: (_) => de_ResourceSyncEventList(_, context),
|
|
1484
|
-
InitialRevision: _json,
|
|
1485
|
-
StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1486
|
-
Status: __expectString,
|
|
1487
|
-
Target: __expectString,
|
|
1488
|
-
TargetRevision: _json,
|
|
1489
|
-
});
|
|
1490
|
-
};
|
|
1491
|
-
const de_ResourceSyncEvent = (output, context) => {
|
|
1492
|
-
return take(output, {
|
|
1493
|
-
Event: __expectString,
|
|
1494
|
-
ExternalId: __expectString,
|
|
1495
|
-
Time: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1496
|
-
Type: __expectString,
|
|
1497
|
-
});
|
|
1498
|
-
};
|
|
1499
|
-
const de_ResourceSyncEventList = (output, context) => {
|
|
1500
|
-
const retVal = (output || [])
|
|
1501
|
-
.filter((e) => e != null)
|
|
1502
|
-
.map((entry) => {
|
|
1503
|
-
return de_ResourceSyncEvent(entry, context);
|
|
1504
|
-
});
|
|
1505
|
-
return retVal;
|
|
1506
|
-
};
|
|
1507
|
-
const de_SyncBlocker = (output, context) => {
|
|
1508
|
-
return take(output, {
|
|
1509
|
-
Contexts: _json,
|
|
1510
|
-
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1511
|
-
CreatedReason: __expectString,
|
|
1512
|
-
Id: __expectString,
|
|
1513
|
-
ResolvedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
1514
|
-
ResolvedReason: __expectString,
|
|
1515
|
-
Status: __expectString,
|
|
1516
|
-
Type: __expectString,
|
|
1517
|
-
});
|
|
1518
|
-
};
|
|
1519
|
-
const de_SyncBlockerSummary = (output, context) => {
|
|
1520
|
-
return take(output, {
|
|
1521
|
-
LatestBlockers: (_) => de_LatestSyncBlockerList(_, context),
|
|
1522
|
-
ParentResourceName: __expectString,
|
|
1523
|
-
ResourceName: __expectString,
|
|
1524
|
-
});
|
|
1525
|
-
};
|
|
1526
|
-
const de_UpdateSyncBlockerOutput = (output, context) => {
|
|
1527
|
-
return take(output, {
|
|
1528
|
-
ParentResourceName: __expectString,
|
|
1529
|
-
ResourceName: __expectString,
|
|
1530
|
-
SyncBlocker: (_) => de_SyncBlocker(_, context),
|
|
1531
|
-
});
|
|
1532
|
-
};
|
|
1533
527
|
const deserializeMetadata = (output) => ({
|
|
1534
528
|
httpStatusCode: output.statusCode,
|
|
1535
529
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|