@aws-sdk/client-codestar-connections 3.451.0 → 3.454.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 +120 -0
- package/dist-cjs/CodeStarConnections.js +30 -0
- package/dist-cjs/commands/CreateRepositoryLinkCommand.js +51 -0
- package/dist-cjs/commands/CreateSyncConfigurationCommand.js +51 -0
- package/dist-cjs/commands/DeleteRepositoryLinkCommand.js +51 -0
- package/dist-cjs/commands/DeleteSyncConfigurationCommand.js +51 -0
- package/dist-cjs/commands/GetRepositoryLinkCommand.js +51 -0
- package/dist-cjs/commands/GetRepositorySyncStatusCommand.js +51 -0
- package/dist-cjs/commands/GetResourceSyncStatusCommand.js +51 -0
- package/dist-cjs/commands/GetSyncBlockerSummaryCommand.js +51 -0
- package/dist-cjs/commands/GetSyncConfigurationCommand.js +51 -0
- package/dist-cjs/commands/ListRepositoryLinksCommand.js +51 -0
- package/dist-cjs/commands/ListRepositorySyncDefinitionsCommand.js +51 -0
- package/dist-cjs/commands/ListSyncConfigurationsCommand.js +51 -0
- package/dist-cjs/commands/UpdateRepositoryLinkCommand.js +51 -0
- package/dist-cjs/commands/UpdateSyncBlockerCommand.js +51 -0
- package/dist-cjs/commands/UpdateSyncConfigurationCommand.js +51 -0
- package/dist-cjs/commands/index.js +15 -0
- package/dist-cjs/models/models_0.js +192 -1
- package/dist-cjs/pagination/ListRepositoryLinksPaginator.js +29 -0
- package/dist-cjs/pagination/ListSyncConfigurationsPaginator.js +29 -0
- package/dist-cjs/pagination/index.js +2 -0
- package/dist-cjs/protocols/Aws_json1_0.js +1102 -65
- package/dist-es/CodeStarConnections.js +30 -0
- package/dist-es/commands/CreateRepositoryLinkCommand.js +47 -0
- package/dist-es/commands/CreateSyncConfigurationCommand.js +47 -0
- package/dist-es/commands/DeleteRepositoryLinkCommand.js +47 -0
- package/dist-es/commands/DeleteSyncConfigurationCommand.js +47 -0
- package/dist-es/commands/GetRepositoryLinkCommand.js +47 -0
- package/dist-es/commands/GetRepositorySyncStatusCommand.js +47 -0
- package/dist-es/commands/GetResourceSyncStatusCommand.js +47 -0
- package/dist-es/commands/GetSyncBlockerSummaryCommand.js +47 -0
- package/dist-es/commands/GetSyncConfigurationCommand.js +47 -0
- package/dist-es/commands/ListRepositoryLinksCommand.js +47 -0
- package/dist-es/commands/ListRepositorySyncDefinitionsCommand.js +47 -0
- package/dist-es/commands/ListSyncConfigurationsCommand.js +47 -0
- package/dist-es/commands/UpdateRepositoryLinkCommand.js +47 -0
- package/dist-es/commands/UpdateSyncBlockerCommand.js +47 -0
- package/dist-es/commands/UpdateSyncConfigurationCommand.js +47 -0
- package/dist-es/commands/index.js +15 -0
- package/dist-es/models/models_0.js +179 -0
- package/dist-es/pagination/ListRepositoryLinksPaginator.js +25 -0
- package/dist-es/pagination/ListSyncConfigurationsPaginator.js +25 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_json1_0.js +1061 -55
- package/dist-types/CodeStarConnections.d.ts +105 -0
- package/dist-types/CodeStarConnectionsClient.d.ts +17 -2
- package/dist-types/commands/CreateRepositoryLinkCommand.d.ts +111 -0
- package/dist-types/commands/CreateSyncConfigurationCommand.d.ts +111 -0
- package/dist-types/commands/DeleteRepositoryLinkCommand.d.ts +95 -0
- package/dist-types/commands/DeleteSyncConfigurationCommand.d.ts +90 -0
- package/dist-types/commands/GetRepositoryLinkCommand.d.ts +100 -0
- package/dist-types/commands/GetRepositorySyncStatusCommand.d.ts +102 -0
- package/dist-types/commands/GetResourceSyncStatusCommand.d.ts +155 -0
- package/dist-types/commands/GetSyncBlockerSummaryCommand.d.ts +109 -0
- package/dist-types/commands/GetSyncConfigurationCommand.d.ts +99 -0
- package/dist-types/commands/ListRepositoryLinksCommand.d.ts +103 -0
- package/dist-types/commands/ListRepositorySyncDefinitionsCommand.d.ts +97 -0
- package/dist-types/commands/ListSyncConfigurationsCommand.d.ts +104 -0
- package/dist-types/commands/UpdateRepositoryLinkCommand.d.ts +106 -0
- package/dist-types/commands/UpdateSyncBlockerCommand.d.ts +113 -0
- package/dist-types/commands/UpdateSyncConfigurationCommand.d.ts +109 -0
- package/dist-types/commands/index.d.ts +15 -0
- package/dist-types/models/models_0.d.ts +1107 -6
- package/dist-types/pagination/ListRepositoryLinksPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSyncConfigurationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +135 -0
- package/dist-types/ts3.4/CodeStarConnections.d.ts +255 -0
- package/dist-types/ts3.4/CodeStarConnectionsClient.d.ts +92 -2
- package/dist-types/ts3.4/commands/CreateRepositoryLinkCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/CreateSyncConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteRepositoryLinkCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/DeleteSyncConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetRepositoryLinkCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/GetRepositorySyncStatusCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetResourceSyncStatusCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetSyncBlockerSummaryCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/GetSyncConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListRepositoryLinksCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListRepositorySyncDefinitionsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/ListSyncConfigurationsCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateRepositoryLinkCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/UpdateSyncBlockerCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateSyncConfigurationCommand.d.ts +42 -0
- package/dist-types/ts3.4/commands/index.d.ts +15 -0
- package/dist-types/ts3.4/models/models_0.d.ts +346 -0
- package/dist-types/ts3.4/pagination/ListRepositoryLinksPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSyncConfigurationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +180 -0
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, withBaseException, } from "@smithy/smithy-client";
|
|
2
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
3
|
import { CodeStarConnectionsServiceException as __BaseException } from "../models/CodeStarConnectionsServiceException";
|
|
4
|
-
import { ConflictException, LimitExceededException, ResourceNotFoundException, ResourceUnavailableException, UnsupportedOperationException, } from "../models/models_0";
|
|
4
|
+
import { AccessDeniedException, ConcurrentModificationException, ConditionalCheckFailedException, ConflictException, InternalServerException, InvalidInputException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ResourceUnavailableException, RetryLatestCommitFailedException, SyncBlockerDoesNotExistException, SyncConfigurationStillExistsException, ThrottlingException, UnsupportedOperationException, UnsupportedProviderTypeException, UpdateOutOfSyncException, } from "../models/models_0";
|
|
5
5
|
export const se_CreateConnectionCommand = async (input, context) => {
|
|
6
6
|
const headers = sharedHeaders("CreateConnection");
|
|
7
7
|
let body;
|
|
@@ -14,6 +14,18 @@ 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
|
+
};
|
|
17
29
|
export const se_DeleteConnectionCommand = async (input, context) => {
|
|
18
30
|
const headers = sharedHeaders("DeleteConnection");
|
|
19
31
|
let body;
|
|
@@ -26,6 +38,18 @@ export const se_DeleteHostCommand = async (input, context) => {
|
|
|
26
38
|
body = JSON.stringify(_json(input));
|
|
27
39
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
28
40
|
};
|
|
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
|
+
};
|
|
29
53
|
export const se_GetConnectionCommand = async (input, context) => {
|
|
30
54
|
const headers = sharedHeaders("GetConnection");
|
|
31
55
|
let body;
|
|
@@ -38,6 +62,36 @@ export const se_GetHostCommand = async (input, context) => {
|
|
|
38
62
|
body = JSON.stringify(_json(input));
|
|
39
63
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
40
64
|
};
|
|
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
|
+
};
|
|
41
95
|
export const se_ListConnectionsCommand = async (input, context) => {
|
|
42
96
|
const headers = sharedHeaders("ListConnections");
|
|
43
97
|
let body;
|
|
@@ -50,6 +104,24 @@ export const se_ListHostsCommand = async (input, context) => {
|
|
|
50
104
|
body = JSON.stringify(_json(input));
|
|
51
105
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
52
106
|
};
|
|
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
|
+
};
|
|
53
125
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
54
126
|
const headers = sharedHeaders("ListTagsForResource");
|
|
55
127
|
let body;
|
|
@@ -74,6 +146,24 @@ export const se_UpdateHostCommand = async (input, context) => {
|
|
|
74
146
|
body = JSON.stringify(_json(input));
|
|
75
147
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
76
148
|
};
|
|
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
|
+
};
|
|
77
167
|
export const de_CreateConnectionCommand = async (output, context) => {
|
|
78
168
|
if (output.statusCode >= 300) {
|
|
79
169
|
return de_CreateConnectionCommandError(output, context);
|
|
@@ -144,6 +234,106 @@ const de_CreateHostCommandError = async (output, context) => {
|
|
|
144
234
|
});
|
|
145
235
|
}
|
|
146
236
|
};
|
|
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
|
+
};
|
|
147
337
|
export const de_DeleteConnectionCommand = async (output, context) => {
|
|
148
338
|
if (output.statusCode >= 300) {
|
|
149
339
|
return de_DeleteConnectionCommandError(output, context);
|
|
@@ -211,6 +401,106 @@ const de_DeleteHostCommandError = async (output, context) => {
|
|
|
211
401
|
});
|
|
212
402
|
}
|
|
213
403
|
};
|
|
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
|
+
};
|
|
214
504
|
export const de_GetConnectionCommand = async (output, context) => {
|
|
215
505
|
if (output.statusCode >= 300) {
|
|
216
506
|
return de_GetConnectionCommandError(output, context);
|
|
@@ -281,9 +571,9 @@ const de_GetHostCommandError = async (output, context) => {
|
|
|
281
571
|
});
|
|
282
572
|
}
|
|
283
573
|
};
|
|
284
|
-
export const
|
|
574
|
+
export const de_GetRepositoryLinkCommand = async (output, context) => {
|
|
285
575
|
if (output.statusCode >= 300) {
|
|
286
|
-
return
|
|
576
|
+
return de_GetRepositoryLinkCommandError(output, context);
|
|
287
577
|
}
|
|
288
578
|
const data = await parseBody(output.body, context);
|
|
289
579
|
let contents = {};
|
|
@@ -294,16 +584,31 @@ export const de_ListConnectionsCommand = async (output, context) => {
|
|
|
294
584
|
};
|
|
295
585
|
return response;
|
|
296
586
|
};
|
|
297
|
-
const
|
|
587
|
+
const de_GetRepositoryLinkCommandError = async (output, context) => {
|
|
298
588
|
const parsedOutput = {
|
|
299
589
|
...output,
|
|
300
590
|
body: await parseErrorBody(output.body, context),
|
|
301
591
|
};
|
|
302
592
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
303
593
|
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);
|
|
304
606
|
case "ResourceNotFoundException":
|
|
305
607
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
306
608
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
609
|
+
case "ThrottlingException":
|
|
610
|
+
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
611
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
307
612
|
default:
|
|
308
613
|
const parsedBody = parsedOutput.body;
|
|
309
614
|
return throwDefaultError({
|
|
@@ -313,55 +618,85 @@ const de_ListConnectionsCommandError = async (output, context) => {
|
|
|
313
618
|
});
|
|
314
619
|
}
|
|
315
620
|
};
|
|
316
|
-
export const
|
|
621
|
+
export const de_GetRepositorySyncStatusCommand = async (output, context) => {
|
|
317
622
|
if (output.statusCode >= 300) {
|
|
318
|
-
return
|
|
623
|
+
return de_GetRepositorySyncStatusCommandError(output, context);
|
|
319
624
|
}
|
|
320
625
|
const data = await parseBody(output.body, context);
|
|
321
626
|
let contents = {};
|
|
322
|
-
contents =
|
|
627
|
+
contents = de_GetRepositorySyncStatusOutput(data, context);
|
|
323
628
|
const response = {
|
|
324
629
|
$metadata: deserializeMetadata(output),
|
|
325
630
|
...contents,
|
|
326
631
|
};
|
|
327
632
|
return response;
|
|
328
633
|
};
|
|
329
|
-
const
|
|
634
|
+
const de_GetRepositorySyncStatusCommandError = async (output, context) => {
|
|
330
635
|
const parsedOutput = {
|
|
331
636
|
...output,
|
|
332
637
|
body: await parseErrorBody(output.body, context),
|
|
333
638
|
};
|
|
334
639
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
640
|
+
switch (errorCode) {
|
|
641
|
+
case "AccessDeniedException":
|
|
642
|
+
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
643
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
644
|
+
case "InternalServerException":
|
|
645
|
+
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
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
|
+
}
|
|
341
664
|
};
|
|
342
|
-
export const
|
|
665
|
+
export const de_GetResourceSyncStatusCommand = async (output, context) => {
|
|
343
666
|
if (output.statusCode >= 300) {
|
|
344
|
-
return
|
|
667
|
+
return de_GetResourceSyncStatusCommandError(output, context);
|
|
345
668
|
}
|
|
346
669
|
const data = await parseBody(output.body, context);
|
|
347
670
|
let contents = {};
|
|
348
|
-
contents =
|
|
671
|
+
contents = de_GetResourceSyncStatusOutput(data, context);
|
|
349
672
|
const response = {
|
|
350
673
|
$metadata: deserializeMetadata(output),
|
|
351
674
|
...contents,
|
|
352
675
|
};
|
|
353
676
|
return response;
|
|
354
677
|
};
|
|
355
|
-
const
|
|
678
|
+
const de_GetResourceSyncStatusCommandError = async (output, context) => {
|
|
356
679
|
const parsedOutput = {
|
|
357
680
|
...output,
|
|
358
681
|
body: await parseErrorBody(output.body, context),
|
|
359
682
|
};
|
|
360
683
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
361
684
|
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);
|
|
362
694
|
case "ResourceNotFoundException":
|
|
363
695
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
364
696
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
697
|
+
case "ThrottlingException":
|
|
698
|
+
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
699
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
365
700
|
default:
|
|
366
701
|
const parsedBody = parsedOutput.body;
|
|
367
702
|
return throwDefaultError({
|
|
@@ -371,32 +706,41 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
|
371
706
|
});
|
|
372
707
|
}
|
|
373
708
|
};
|
|
374
|
-
export const
|
|
709
|
+
export const de_GetSyncBlockerSummaryCommand = async (output, context) => {
|
|
375
710
|
if (output.statusCode >= 300) {
|
|
376
|
-
return
|
|
711
|
+
return de_GetSyncBlockerSummaryCommandError(output, context);
|
|
377
712
|
}
|
|
378
713
|
const data = await parseBody(output.body, context);
|
|
379
714
|
let contents = {};
|
|
380
|
-
contents =
|
|
715
|
+
contents = de_GetSyncBlockerSummaryOutput(data, context);
|
|
381
716
|
const response = {
|
|
382
717
|
$metadata: deserializeMetadata(output),
|
|
383
718
|
...contents,
|
|
384
719
|
};
|
|
385
720
|
return response;
|
|
386
721
|
};
|
|
387
|
-
const
|
|
722
|
+
const de_GetSyncBlockerSummaryCommandError = async (output, context) => {
|
|
388
723
|
const parsedOutput = {
|
|
389
724
|
...output,
|
|
390
725
|
body: await parseErrorBody(output.body, context),
|
|
391
726
|
};
|
|
392
727
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
393
728
|
switch (errorCode) {
|
|
394
|
-
case "
|
|
395
|
-
case "com.amazonaws.codestarconnections#
|
|
396
|
-
throw await
|
|
729
|
+
case "AccessDeniedException":
|
|
730
|
+
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
731
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
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);
|
|
397
738
|
case "ResourceNotFoundException":
|
|
398
739
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
399
740
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
741
|
+
case "ThrottlingException":
|
|
742
|
+
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
743
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
400
744
|
default:
|
|
401
745
|
const parsedBody = parsedOutput.body;
|
|
402
746
|
return throwDefaultError({
|
|
@@ -406,9 +750,9 @@ const de_TagResourceCommandError = async (output, context) => {
|
|
|
406
750
|
});
|
|
407
751
|
}
|
|
408
752
|
};
|
|
409
|
-
export const
|
|
753
|
+
export const de_GetSyncConfigurationCommand = async (output, context) => {
|
|
410
754
|
if (output.statusCode >= 300) {
|
|
411
|
-
return
|
|
755
|
+
return de_GetSyncConfigurationCommandError(output, context);
|
|
412
756
|
}
|
|
413
757
|
const data = await parseBody(output.body, context);
|
|
414
758
|
let contents = {};
|
|
@@ -419,16 +763,28 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
419
763
|
};
|
|
420
764
|
return response;
|
|
421
765
|
};
|
|
422
|
-
const
|
|
766
|
+
const de_GetSyncConfigurationCommandError = async (output, context) => {
|
|
423
767
|
const parsedOutput = {
|
|
424
768
|
...output,
|
|
425
769
|
body: await parseErrorBody(output.body, context),
|
|
426
770
|
};
|
|
427
771
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
428
772
|
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);
|
|
429
782
|
case "ResourceNotFoundException":
|
|
430
783
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
431
784
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
785
|
+
case "ThrottlingException":
|
|
786
|
+
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
787
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
432
788
|
default:
|
|
433
789
|
const parsedBody = parsedOutput.body;
|
|
434
790
|
return throwDefaultError({
|
|
@@ -438,9 +794,9 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
438
794
|
});
|
|
439
795
|
}
|
|
440
796
|
};
|
|
441
|
-
export const
|
|
797
|
+
export const de_ListConnectionsCommand = async (output, context) => {
|
|
442
798
|
if (output.statusCode >= 300) {
|
|
443
|
-
return
|
|
799
|
+
return de_ListConnectionsCommandError(output, context);
|
|
444
800
|
}
|
|
445
801
|
const data = await parseBody(output.body, context);
|
|
446
802
|
let contents = {};
|
|
@@ -451,25 +807,16 @@ export const de_UpdateHostCommand = async (output, context) => {
|
|
|
451
807
|
};
|
|
452
808
|
return response;
|
|
453
809
|
};
|
|
454
|
-
const
|
|
810
|
+
const de_ListConnectionsCommandError = async (output, context) => {
|
|
455
811
|
const parsedOutput = {
|
|
456
812
|
...output,
|
|
457
813
|
body: await parseErrorBody(output.body, context),
|
|
458
814
|
};
|
|
459
815
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
460
816
|
switch (errorCode) {
|
|
461
|
-
case "ConflictException":
|
|
462
|
-
case "com.amazonaws.codestarconnections#ConflictException":
|
|
463
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
464
817
|
case "ResourceNotFoundException":
|
|
465
818
|
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
466
819
|
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);
|
|
473
820
|
default:
|
|
474
821
|
const parsedBody = parsedOutput.body;
|
|
475
822
|
return throwDefaultError({
|
|
@@ -479,21 +826,526 @@ const de_UpdateHostCommandError = async (output, context) => {
|
|
|
479
826
|
});
|
|
480
827
|
}
|
|
481
828
|
};
|
|
482
|
-
const
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
829
|
+
export const de_ListHostsCommand = async (output, context) => {
|
|
830
|
+
if (output.statusCode >= 300) {
|
|
831
|
+
return de_ListHostsCommandError(output, context);
|
|
832
|
+
}
|
|
833
|
+
const data = await parseBody(output.body, context);
|
|
834
|
+
let contents = {};
|
|
835
|
+
contents = _json(data);
|
|
836
|
+
const response = {
|
|
837
|
+
$metadata: deserializeMetadata(output),
|
|
838
|
+
...contents,
|
|
839
|
+
};
|
|
840
|
+
return response;
|
|
490
841
|
};
|
|
491
|
-
const
|
|
492
|
-
const
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
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);
|
|
1333
|
+
};
|
|
1334
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
1335
|
+
const body = parsedOutput.body;
|
|
1336
|
+
const deserialized = _json(body);
|
|
1337
|
+
const exception = new LimitExceededException({
|
|
1338
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1339
|
+
...deserialized,
|
|
1340
|
+
});
|
|
1341
|
+
return __decorateServiceException(exception, body);
|
|
1342
|
+
};
|
|
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,
|
|
497
1349
|
});
|
|
498
1350
|
return __decorateServiceException(exception, body);
|
|
499
1351
|
};
|
|
@@ -515,6 +1367,42 @@ const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
|
515
1367
|
});
|
|
516
1368
|
return __decorateServiceException(exception, body);
|
|
517
1369
|
};
|
|
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
|
+
};
|
|
518
1406
|
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
519
1407
|
const body = parsedOutput.body;
|
|
520
1408
|
const deserialized = _json(body);
|
|
@@ -524,6 +1412,124 @@ const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
|
524
1412
|
});
|
|
525
1413
|
return __decorateServiceException(exception, body);
|
|
526
1414
|
};
|
|
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
|
+
};
|
|
527
1533
|
const deserializeMetadata = (output) => ({
|
|
528
1534
|
httpStatusCode: output.statusCode,
|
|
529
1535
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|