@aws-sdk/client-codestar-connections 3.927.0 → 3.929.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +888 -1106
- package/dist-cjs/runtimeConfig.shared.js +7 -0
- package/dist-es/CodeStarConnectionsClient.js +2 -0
- package/dist-es/commands/CreateConnectionCommand.js +3 -9
- package/dist-es/commands/CreateHostCommand.js +3 -9
- package/dist-es/commands/CreateRepositoryLinkCommand.js +3 -9
- package/dist-es/commands/CreateSyncConfigurationCommand.js +3 -9
- package/dist-es/commands/DeleteConnectionCommand.js +3 -9
- package/dist-es/commands/DeleteHostCommand.js +3 -9
- package/dist-es/commands/DeleteRepositoryLinkCommand.js +3 -9
- package/dist-es/commands/DeleteSyncConfigurationCommand.js +3 -9
- package/dist-es/commands/GetConnectionCommand.js +3 -9
- package/dist-es/commands/GetHostCommand.js +3 -9
- package/dist-es/commands/GetRepositoryLinkCommand.js +3 -9
- package/dist-es/commands/GetRepositorySyncStatusCommand.js +3 -9
- package/dist-es/commands/GetResourceSyncStatusCommand.js +3 -9
- package/dist-es/commands/GetSyncBlockerSummaryCommand.js +3 -9
- package/dist-es/commands/GetSyncConfigurationCommand.js +3 -9
- package/dist-es/commands/ListConnectionsCommand.js +3 -9
- package/dist-es/commands/ListHostsCommand.js +3 -9
- package/dist-es/commands/ListRepositoryLinksCommand.js +3 -9
- package/dist-es/commands/ListRepositorySyncDefinitionsCommand.js +3 -9
- package/dist-es/commands/ListSyncConfigurationsCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateHostCommand.js +3 -9
- package/dist-es/commands/UpdateRepositoryLinkCommand.js +3 -9
- package/dist-es/commands/UpdateSyncBlockerCommand.js +3 -9
- package/dist-es/commands/UpdateSyncConfigurationCommand.js +3 -9
- package/dist-es/runtimeConfig.shared.js +7 -0
- package/dist-es/schemas/schemas_0.js +785 -0
- package/dist-types/CodeStarConnectionsClient.d.ts +10 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +129 -0
- package/dist-types/ts3.4/CodeStarConnectionsClient.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +134 -0
- package/package.json +5 -5
- package/dist-es/protocols/Aws_json1_0.js +0 -870
- package/dist-types/protocols/Aws_json1_0.d.ts +0 -245
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +0 -329
|
@@ -1,870 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { CodeStarConnectionsServiceException as __BaseException } from "../models/CodeStarConnectionsServiceException";
|
|
5
|
-
import { AccessDeniedException, ConcurrentModificationException, ConditionalCheckFailedException, ConflictException, InternalServerException, InvalidInputException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ResourceUnavailableException, RetryLatestCommitFailedException, SyncBlockerDoesNotExistException, SyncConfigurationStillExistsException, ThrottlingException, UnsupportedOperationException, UnsupportedProviderTypeException, UpdateOutOfSyncException, } from "../models/models_0";
|
|
6
|
-
export const se_CreateConnectionCommand = async (input, context) => {
|
|
7
|
-
const headers = sharedHeaders("CreateConnection");
|
|
8
|
-
let body;
|
|
9
|
-
body = JSON.stringify(_json(input));
|
|
10
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
11
|
-
};
|
|
12
|
-
export const se_CreateHostCommand = async (input, context) => {
|
|
13
|
-
const headers = sharedHeaders("CreateHost");
|
|
14
|
-
let body;
|
|
15
|
-
body = JSON.stringify(_json(input));
|
|
16
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
17
|
-
};
|
|
18
|
-
export const se_CreateRepositoryLinkCommand = async (input, context) => {
|
|
19
|
-
const headers = sharedHeaders("CreateRepositoryLink");
|
|
20
|
-
let body;
|
|
21
|
-
body = JSON.stringify(_json(input));
|
|
22
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
23
|
-
};
|
|
24
|
-
export const se_CreateSyncConfigurationCommand = async (input, context) => {
|
|
25
|
-
const headers = sharedHeaders("CreateSyncConfiguration");
|
|
26
|
-
let body;
|
|
27
|
-
body = JSON.stringify(_json(input));
|
|
28
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
29
|
-
};
|
|
30
|
-
export const se_DeleteConnectionCommand = async (input, context) => {
|
|
31
|
-
const headers = sharedHeaders("DeleteConnection");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify(_json(input));
|
|
34
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
35
|
-
};
|
|
36
|
-
export const se_DeleteHostCommand = async (input, context) => {
|
|
37
|
-
const headers = sharedHeaders("DeleteHost");
|
|
38
|
-
let body;
|
|
39
|
-
body = JSON.stringify(_json(input));
|
|
40
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
41
|
-
};
|
|
42
|
-
export const se_DeleteRepositoryLinkCommand = async (input, context) => {
|
|
43
|
-
const headers = sharedHeaders("DeleteRepositoryLink");
|
|
44
|
-
let body;
|
|
45
|
-
body = JSON.stringify(_json(input));
|
|
46
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
47
|
-
};
|
|
48
|
-
export const se_DeleteSyncConfigurationCommand = async (input, context) => {
|
|
49
|
-
const headers = sharedHeaders("DeleteSyncConfiguration");
|
|
50
|
-
let body;
|
|
51
|
-
body = JSON.stringify(_json(input));
|
|
52
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
53
|
-
};
|
|
54
|
-
export const se_GetConnectionCommand = async (input, context) => {
|
|
55
|
-
const headers = sharedHeaders("GetConnection");
|
|
56
|
-
let body;
|
|
57
|
-
body = JSON.stringify(_json(input));
|
|
58
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
59
|
-
};
|
|
60
|
-
export const se_GetHostCommand = async (input, context) => {
|
|
61
|
-
const headers = sharedHeaders("GetHost");
|
|
62
|
-
let body;
|
|
63
|
-
body = JSON.stringify(_json(input));
|
|
64
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
65
|
-
};
|
|
66
|
-
export const se_GetRepositoryLinkCommand = async (input, context) => {
|
|
67
|
-
const headers = sharedHeaders("GetRepositoryLink");
|
|
68
|
-
let body;
|
|
69
|
-
body = JSON.stringify(_json(input));
|
|
70
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
71
|
-
};
|
|
72
|
-
export const se_GetRepositorySyncStatusCommand = async (input, context) => {
|
|
73
|
-
const headers = sharedHeaders("GetRepositorySyncStatus");
|
|
74
|
-
let body;
|
|
75
|
-
body = JSON.stringify(_json(input));
|
|
76
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
77
|
-
};
|
|
78
|
-
export const se_GetResourceSyncStatusCommand = async (input, context) => {
|
|
79
|
-
const headers = sharedHeaders("GetResourceSyncStatus");
|
|
80
|
-
let body;
|
|
81
|
-
body = JSON.stringify(_json(input));
|
|
82
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
83
|
-
};
|
|
84
|
-
export const se_GetSyncBlockerSummaryCommand = async (input, context) => {
|
|
85
|
-
const headers = sharedHeaders("GetSyncBlockerSummary");
|
|
86
|
-
let body;
|
|
87
|
-
body = JSON.stringify(_json(input));
|
|
88
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
89
|
-
};
|
|
90
|
-
export const se_GetSyncConfigurationCommand = async (input, context) => {
|
|
91
|
-
const headers = sharedHeaders("GetSyncConfiguration");
|
|
92
|
-
let body;
|
|
93
|
-
body = JSON.stringify(_json(input));
|
|
94
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
95
|
-
};
|
|
96
|
-
export const se_ListConnectionsCommand = async (input, context) => {
|
|
97
|
-
const headers = sharedHeaders("ListConnections");
|
|
98
|
-
let body;
|
|
99
|
-
body = JSON.stringify(_json(input));
|
|
100
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
101
|
-
};
|
|
102
|
-
export const se_ListHostsCommand = async (input, context) => {
|
|
103
|
-
const headers = sharedHeaders("ListHosts");
|
|
104
|
-
let body;
|
|
105
|
-
body = JSON.stringify(_json(input));
|
|
106
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
107
|
-
};
|
|
108
|
-
export const se_ListRepositoryLinksCommand = async (input, context) => {
|
|
109
|
-
const headers = sharedHeaders("ListRepositoryLinks");
|
|
110
|
-
let body;
|
|
111
|
-
body = JSON.stringify(_json(input));
|
|
112
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
113
|
-
};
|
|
114
|
-
export const se_ListRepositorySyncDefinitionsCommand = async (input, context) => {
|
|
115
|
-
const headers = sharedHeaders("ListRepositorySyncDefinitions");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(_json(input));
|
|
118
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
119
|
-
};
|
|
120
|
-
export const se_ListSyncConfigurationsCommand = async (input, context) => {
|
|
121
|
-
const headers = sharedHeaders("ListSyncConfigurations");
|
|
122
|
-
let body;
|
|
123
|
-
body = JSON.stringify(_json(input));
|
|
124
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
125
|
-
};
|
|
126
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
127
|
-
const headers = sharedHeaders("ListTagsForResource");
|
|
128
|
-
let body;
|
|
129
|
-
body = JSON.stringify(_json(input));
|
|
130
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
131
|
-
};
|
|
132
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
133
|
-
const headers = sharedHeaders("TagResource");
|
|
134
|
-
let body;
|
|
135
|
-
body = JSON.stringify(_json(input));
|
|
136
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
137
|
-
};
|
|
138
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
139
|
-
const headers = sharedHeaders("UntagResource");
|
|
140
|
-
let body;
|
|
141
|
-
body = JSON.stringify(_json(input));
|
|
142
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
143
|
-
};
|
|
144
|
-
export const se_UpdateHostCommand = async (input, context) => {
|
|
145
|
-
const headers = sharedHeaders("UpdateHost");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(_json(input));
|
|
148
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
149
|
-
};
|
|
150
|
-
export const se_UpdateRepositoryLinkCommand = async (input, context) => {
|
|
151
|
-
const headers = sharedHeaders("UpdateRepositoryLink");
|
|
152
|
-
let body;
|
|
153
|
-
body = JSON.stringify(_json(input));
|
|
154
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
155
|
-
};
|
|
156
|
-
export const se_UpdateSyncBlockerCommand = async (input, context) => {
|
|
157
|
-
const headers = sharedHeaders("UpdateSyncBlocker");
|
|
158
|
-
let body;
|
|
159
|
-
body = JSON.stringify(_json(input));
|
|
160
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
161
|
-
};
|
|
162
|
-
export const se_UpdateSyncConfigurationCommand = async (input, context) => {
|
|
163
|
-
const headers = sharedHeaders("UpdateSyncConfiguration");
|
|
164
|
-
let body;
|
|
165
|
-
body = JSON.stringify(_json(input));
|
|
166
|
-
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
167
|
-
};
|
|
168
|
-
export const de_CreateConnectionCommand = async (output, context) => {
|
|
169
|
-
if (output.statusCode >= 300) {
|
|
170
|
-
return de_CommandError(output, context);
|
|
171
|
-
}
|
|
172
|
-
const data = await parseBody(output.body, context);
|
|
173
|
-
let contents = {};
|
|
174
|
-
contents = _json(data);
|
|
175
|
-
const response = {
|
|
176
|
-
$metadata: deserializeMetadata(output),
|
|
177
|
-
...contents,
|
|
178
|
-
};
|
|
179
|
-
return response;
|
|
180
|
-
};
|
|
181
|
-
export const de_CreateHostCommand = async (output, context) => {
|
|
182
|
-
if (output.statusCode >= 300) {
|
|
183
|
-
return de_CommandError(output, context);
|
|
184
|
-
}
|
|
185
|
-
const data = await parseBody(output.body, context);
|
|
186
|
-
let contents = {};
|
|
187
|
-
contents = _json(data);
|
|
188
|
-
const response = {
|
|
189
|
-
$metadata: deserializeMetadata(output),
|
|
190
|
-
...contents,
|
|
191
|
-
};
|
|
192
|
-
return response;
|
|
193
|
-
};
|
|
194
|
-
export const de_CreateRepositoryLinkCommand = async (output, context) => {
|
|
195
|
-
if (output.statusCode >= 300) {
|
|
196
|
-
return de_CommandError(output, context);
|
|
197
|
-
}
|
|
198
|
-
const data = await parseBody(output.body, context);
|
|
199
|
-
let contents = {};
|
|
200
|
-
contents = _json(data);
|
|
201
|
-
const response = {
|
|
202
|
-
$metadata: deserializeMetadata(output),
|
|
203
|
-
...contents,
|
|
204
|
-
};
|
|
205
|
-
return response;
|
|
206
|
-
};
|
|
207
|
-
export const de_CreateSyncConfigurationCommand = async (output, context) => {
|
|
208
|
-
if (output.statusCode >= 300) {
|
|
209
|
-
return de_CommandError(output, context);
|
|
210
|
-
}
|
|
211
|
-
const data = await parseBody(output.body, context);
|
|
212
|
-
let contents = {};
|
|
213
|
-
contents = _json(data);
|
|
214
|
-
const response = {
|
|
215
|
-
$metadata: deserializeMetadata(output),
|
|
216
|
-
...contents,
|
|
217
|
-
};
|
|
218
|
-
return response;
|
|
219
|
-
};
|
|
220
|
-
export const de_DeleteConnectionCommand = async (output, context) => {
|
|
221
|
-
if (output.statusCode >= 300) {
|
|
222
|
-
return de_CommandError(output, context);
|
|
223
|
-
}
|
|
224
|
-
const data = await parseBody(output.body, context);
|
|
225
|
-
let contents = {};
|
|
226
|
-
contents = _json(data);
|
|
227
|
-
const response = {
|
|
228
|
-
$metadata: deserializeMetadata(output),
|
|
229
|
-
...contents,
|
|
230
|
-
};
|
|
231
|
-
return response;
|
|
232
|
-
};
|
|
233
|
-
export const de_DeleteHostCommand = async (output, context) => {
|
|
234
|
-
if (output.statusCode >= 300) {
|
|
235
|
-
return de_CommandError(output, context);
|
|
236
|
-
}
|
|
237
|
-
const data = await parseBody(output.body, context);
|
|
238
|
-
let contents = {};
|
|
239
|
-
contents = _json(data);
|
|
240
|
-
const response = {
|
|
241
|
-
$metadata: deserializeMetadata(output),
|
|
242
|
-
...contents,
|
|
243
|
-
};
|
|
244
|
-
return response;
|
|
245
|
-
};
|
|
246
|
-
export const de_DeleteRepositoryLinkCommand = async (output, context) => {
|
|
247
|
-
if (output.statusCode >= 300) {
|
|
248
|
-
return de_CommandError(output, context);
|
|
249
|
-
}
|
|
250
|
-
const data = await parseBody(output.body, context);
|
|
251
|
-
let contents = {};
|
|
252
|
-
contents = _json(data);
|
|
253
|
-
const response = {
|
|
254
|
-
$metadata: deserializeMetadata(output),
|
|
255
|
-
...contents,
|
|
256
|
-
};
|
|
257
|
-
return response;
|
|
258
|
-
};
|
|
259
|
-
export const de_DeleteSyncConfigurationCommand = async (output, context) => {
|
|
260
|
-
if (output.statusCode >= 300) {
|
|
261
|
-
return de_CommandError(output, context);
|
|
262
|
-
}
|
|
263
|
-
const data = await parseBody(output.body, context);
|
|
264
|
-
let contents = {};
|
|
265
|
-
contents = _json(data);
|
|
266
|
-
const response = {
|
|
267
|
-
$metadata: deserializeMetadata(output),
|
|
268
|
-
...contents,
|
|
269
|
-
};
|
|
270
|
-
return response;
|
|
271
|
-
};
|
|
272
|
-
export const de_GetConnectionCommand = async (output, context) => {
|
|
273
|
-
if (output.statusCode >= 300) {
|
|
274
|
-
return de_CommandError(output, context);
|
|
275
|
-
}
|
|
276
|
-
const data = await parseBody(output.body, context);
|
|
277
|
-
let contents = {};
|
|
278
|
-
contents = _json(data);
|
|
279
|
-
const response = {
|
|
280
|
-
$metadata: deserializeMetadata(output),
|
|
281
|
-
...contents,
|
|
282
|
-
};
|
|
283
|
-
return response;
|
|
284
|
-
};
|
|
285
|
-
export const de_GetHostCommand = async (output, context) => {
|
|
286
|
-
if (output.statusCode >= 300) {
|
|
287
|
-
return de_CommandError(output, context);
|
|
288
|
-
}
|
|
289
|
-
const data = await parseBody(output.body, context);
|
|
290
|
-
let contents = {};
|
|
291
|
-
contents = _json(data);
|
|
292
|
-
const response = {
|
|
293
|
-
$metadata: deserializeMetadata(output),
|
|
294
|
-
...contents,
|
|
295
|
-
};
|
|
296
|
-
return response;
|
|
297
|
-
};
|
|
298
|
-
export const de_GetRepositoryLinkCommand = async (output, context) => {
|
|
299
|
-
if (output.statusCode >= 300) {
|
|
300
|
-
return de_CommandError(output, context);
|
|
301
|
-
}
|
|
302
|
-
const data = await parseBody(output.body, context);
|
|
303
|
-
let contents = {};
|
|
304
|
-
contents = _json(data);
|
|
305
|
-
const response = {
|
|
306
|
-
$metadata: deserializeMetadata(output),
|
|
307
|
-
...contents,
|
|
308
|
-
};
|
|
309
|
-
return response;
|
|
310
|
-
};
|
|
311
|
-
export const de_GetRepositorySyncStatusCommand = async (output, context) => {
|
|
312
|
-
if (output.statusCode >= 300) {
|
|
313
|
-
return de_CommandError(output, context);
|
|
314
|
-
}
|
|
315
|
-
const data = await parseBody(output.body, context);
|
|
316
|
-
let contents = {};
|
|
317
|
-
contents = de_GetRepositorySyncStatusOutput(data, context);
|
|
318
|
-
const response = {
|
|
319
|
-
$metadata: deserializeMetadata(output),
|
|
320
|
-
...contents,
|
|
321
|
-
};
|
|
322
|
-
return response;
|
|
323
|
-
};
|
|
324
|
-
export const de_GetResourceSyncStatusCommand = async (output, context) => {
|
|
325
|
-
if (output.statusCode >= 300) {
|
|
326
|
-
return de_CommandError(output, context);
|
|
327
|
-
}
|
|
328
|
-
const data = await parseBody(output.body, context);
|
|
329
|
-
let contents = {};
|
|
330
|
-
contents = de_GetResourceSyncStatusOutput(data, context);
|
|
331
|
-
const response = {
|
|
332
|
-
$metadata: deserializeMetadata(output),
|
|
333
|
-
...contents,
|
|
334
|
-
};
|
|
335
|
-
return response;
|
|
336
|
-
};
|
|
337
|
-
export const de_GetSyncBlockerSummaryCommand = async (output, context) => {
|
|
338
|
-
if (output.statusCode >= 300) {
|
|
339
|
-
return de_CommandError(output, context);
|
|
340
|
-
}
|
|
341
|
-
const data = await parseBody(output.body, context);
|
|
342
|
-
let contents = {};
|
|
343
|
-
contents = de_GetSyncBlockerSummaryOutput(data, context);
|
|
344
|
-
const response = {
|
|
345
|
-
$metadata: deserializeMetadata(output),
|
|
346
|
-
...contents,
|
|
347
|
-
};
|
|
348
|
-
return response;
|
|
349
|
-
};
|
|
350
|
-
export const de_GetSyncConfigurationCommand = async (output, context) => {
|
|
351
|
-
if (output.statusCode >= 300) {
|
|
352
|
-
return de_CommandError(output, context);
|
|
353
|
-
}
|
|
354
|
-
const data = await parseBody(output.body, context);
|
|
355
|
-
let contents = {};
|
|
356
|
-
contents = _json(data);
|
|
357
|
-
const response = {
|
|
358
|
-
$metadata: deserializeMetadata(output),
|
|
359
|
-
...contents,
|
|
360
|
-
};
|
|
361
|
-
return response;
|
|
362
|
-
};
|
|
363
|
-
export const de_ListConnectionsCommand = async (output, context) => {
|
|
364
|
-
if (output.statusCode >= 300) {
|
|
365
|
-
return de_CommandError(output, context);
|
|
366
|
-
}
|
|
367
|
-
const data = await parseBody(output.body, context);
|
|
368
|
-
let contents = {};
|
|
369
|
-
contents = _json(data);
|
|
370
|
-
const response = {
|
|
371
|
-
$metadata: deserializeMetadata(output),
|
|
372
|
-
...contents,
|
|
373
|
-
};
|
|
374
|
-
return response;
|
|
375
|
-
};
|
|
376
|
-
export const de_ListHostsCommand = async (output, context) => {
|
|
377
|
-
if (output.statusCode >= 300) {
|
|
378
|
-
return de_CommandError(output, context);
|
|
379
|
-
}
|
|
380
|
-
const data = await parseBody(output.body, context);
|
|
381
|
-
let contents = {};
|
|
382
|
-
contents = _json(data);
|
|
383
|
-
const response = {
|
|
384
|
-
$metadata: deserializeMetadata(output),
|
|
385
|
-
...contents,
|
|
386
|
-
};
|
|
387
|
-
return response;
|
|
388
|
-
};
|
|
389
|
-
export const de_ListRepositoryLinksCommand = async (output, context) => {
|
|
390
|
-
if (output.statusCode >= 300) {
|
|
391
|
-
return de_CommandError(output, context);
|
|
392
|
-
}
|
|
393
|
-
const data = await parseBody(output.body, context);
|
|
394
|
-
let contents = {};
|
|
395
|
-
contents = _json(data);
|
|
396
|
-
const response = {
|
|
397
|
-
$metadata: deserializeMetadata(output),
|
|
398
|
-
...contents,
|
|
399
|
-
};
|
|
400
|
-
return response;
|
|
401
|
-
};
|
|
402
|
-
export const de_ListRepositorySyncDefinitionsCommand = async (output, context) => {
|
|
403
|
-
if (output.statusCode >= 300) {
|
|
404
|
-
return de_CommandError(output, context);
|
|
405
|
-
}
|
|
406
|
-
const data = await parseBody(output.body, context);
|
|
407
|
-
let contents = {};
|
|
408
|
-
contents = _json(data);
|
|
409
|
-
const response = {
|
|
410
|
-
$metadata: deserializeMetadata(output),
|
|
411
|
-
...contents,
|
|
412
|
-
};
|
|
413
|
-
return response;
|
|
414
|
-
};
|
|
415
|
-
export const de_ListSyncConfigurationsCommand = async (output, context) => {
|
|
416
|
-
if (output.statusCode >= 300) {
|
|
417
|
-
return de_CommandError(output, context);
|
|
418
|
-
}
|
|
419
|
-
const data = await parseBody(output.body, context);
|
|
420
|
-
let contents = {};
|
|
421
|
-
contents = _json(data);
|
|
422
|
-
const response = {
|
|
423
|
-
$metadata: deserializeMetadata(output),
|
|
424
|
-
...contents,
|
|
425
|
-
};
|
|
426
|
-
return response;
|
|
427
|
-
};
|
|
428
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
429
|
-
if (output.statusCode >= 300) {
|
|
430
|
-
return de_CommandError(output, context);
|
|
431
|
-
}
|
|
432
|
-
const data = await parseBody(output.body, context);
|
|
433
|
-
let contents = {};
|
|
434
|
-
contents = _json(data);
|
|
435
|
-
const response = {
|
|
436
|
-
$metadata: deserializeMetadata(output),
|
|
437
|
-
...contents,
|
|
438
|
-
};
|
|
439
|
-
return response;
|
|
440
|
-
};
|
|
441
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
442
|
-
if (output.statusCode >= 300) {
|
|
443
|
-
return de_CommandError(output, context);
|
|
444
|
-
}
|
|
445
|
-
const data = await parseBody(output.body, context);
|
|
446
|
-
let contents = {};
|
|
447
|
-
contents = _json(data);
|
|
448
|
-
const response = {
|
|
449
|
-
$metadata: deserializeMetadata(output),
|
|
450
|
-
...contents,
|
|
451
|
-
};
|
|
452
|
-
return response;
|
|
453
|
-
};
|
|
454
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
455
|
-
if (output.statusCode >= 300) {
|
|
456
|
-
return de_CommandError(output, context);
|
|
457
|
-
}
|
|
458
|
-
const data = await parseBody(output.body, context);
|
|
459
|
-
let contents = {};
|
|
460
|
-
contents = _json(data);
|
|
461
|
-
const response = {
|
|
462
|
-
$metadata: deserializeMetadata(output),
|
|
463
|
-
...contents,
|
|
464
|
-
};
|
|
465
|
-
return response;
|
|
466
|
-
};
|
|
467
|
-
export const de_UpdateHostCommand = async (output, context) => {
|
|
468
|
-
if (output.statusCode >= 300) {
|
|
469
|
-
return de_CommandError(output, context);
|
|
470
|
-
}
|
|
471
|
-
const data = await parseBody(output.body, context);
|
|
472
|
-
let contents = {};
|
|
473
|
-
contents = _json(data);
|
|
474
|
-
const response = {
|
|
475
|
-
$metadata: deserializeMetadata(output),
|
|
476
|
-
...contents,
|
|
477
|
-
};
|
|
478
|
-
return response;
|
|
479
|
-
};
|
|
480
|
-
export const de_UpdateRepositoryLinkCommand = async (output, context) => {
|
|
481
|
-
if (output.statusCode >= 300) {
|
|
482
|
-
return de_CommandError(output, context);
|
|
483
|
-
}
|
|
484
|
-
const data = await parseBody(output.body, context);
|
|
485
|
-
let contents = {};
|
|
486
|
-
contents = _json(data);
|
|
487
|
-
const response = {
|
|
488
|
-
$metadata: deserializeMetadata(output),
|
|
489
|
-
...contents,
|
|
490
|
-
};
|
|
491
|
-
return response;
|
|
492
|
-
};
|
|
493
|
-
export const de_UpdateSyncBlockerCommand = async (output, context) => {
|
|
494
|
-
if (output.statusCode >= 300) {
|
|
495
|
-
return de_CommandError(output, context);
|
|
496
|
-
}
|
|
497
|
-
const data = await parseBody(output.body, context);
|
|
498
|
-
let contents = {};
|
|
499
|
-
contents = de_UpdateSyncBlockerOutput(data, context);
|
|
500
|
-
const response = {
|
|
501
|
-
$metadata: deserializeMetadata(output),
|
|
502
|
-
...contents,
|
|
503
|
-
};
|
|
504
|
-
return response;
|
|
505
|
-
};
|
|
506
|
-
export const de_UpdateSyncConfigurationCommand = async (output, context) => {
|
|
507
|
-
if (output.statusCode >= 300) {
|
|
508
|
-
return de_CommandError(output, context);
|
|
509
|
-
}
|
|
510
|
-
const data = await parseBody(output.body, context);
|
|
511
|
-
let contents = {};
|
|
512
|
-
contents = _json(data);
|
|
513
|
-
const response = {
|
|
514
|
-
$metadata: deserializeMetadata(output),
|
|
515
|
-
...contents,
|
|
516
|
-
};
|
|
517
|
-
return response;
|
|
518
|
-
};
|
|
519
|
-
const de_CommandError = async (output, context) => {
|
|
520
|
-
const parsedOutput = {
|
|
521
|
-
...output,
|
|
522
|
-
body: await parseErrorBody(output.body, context),
|
|
523
|
-
};
|
|
524
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
525
|
-
switch (errorCode) {
|
|
526
|
-
case "LimitExceededException":
|
|
527
|
-
case "com.amazonaws.codestarconnections#LimitExceededException":
|
|
528
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
529
|
-
case "ResourceNotFoundException":
|
|
530
|
-
case "com.amazonaws.codestarconnections#ResourceNotFoundException":
|
|
531
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
532
|
-
case "ResourceUnavailableException":
|
|
533
|
-
case "com.amazonaws.codestarconnections#ResourceUnavailableException":
|
|
534
|
-
throw await de_ResourceUnavailableExceptionRes(parsedOutput, context);
|
|
535
|
-
case "AccessDeniedException":
|
|
536
|
-
case "com.amazonaws.codestarconnections#AccessDeniedException":
|
|
537
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
538
|
-
case "ConcurrentModificationException":
|
|
539
|
-
case "com.amazonaws.codestarconnections#ConcurrentModificationException":
|
|
540
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
541
|
-
case "InternalServerException":
|
|
542
|
-
case "com.amazonaws.codestarconnections#InternalServerException":
|
|
543
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
544
|
-
case "InvalidInputException":
|
|
545
|
-
case "com.amazonaws.codestarconnections#InvalidInputException":
|
|
546
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
547
|
-
case "ResourceAlreadyExistsException":
|
|
548
|
-
case "com.amazonaws.codestarconnections#ResourceAlreadyExistsException":
|
|
549
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
550
|
-
case "ThrottlingException":
|
|
551
|
-
case "com.amazonaws.codestarconnections#ThrottlingException":
|
|
552
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
553
|
-
case "SyncConfigurationStillExistsException":
|
|
554
|
-
case "com.amazonaws.codestarconnections#SyncConfigurationStillExistsException":
|
|
555
|
-
throw await de_SyncConfigurationStillExistsExceptionRes(parsedOutput, context);
|
|
556
|
-
case "UnsupportedProviderTypeException":
|
|
557
|
-
case "com.amazonaws.codestarconnections#UnsupportedProviderTypeException":
|
|
558
|
-
throw await de_UnsupportedProviderTypeExceptionRes(parsedOutput, context);
|
|
559
|
-
case "ConflictException":
|
|
560
|
-
case "com.amazonaws.codestarconnections#ConflictException":
|
|
561
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
562
|
-
case "UnsupportedOperationException":
|
|
563
|
-
case "com.amazonaws.codestarconnections#UnsupportedOperationException":
|
|
564
|
-
throw await de_UnsupportedOperationExceptionRes(parsedOutput, context);
|
|
565
|
-
case "ConditionalCheckFailedException":
|
|
566
|
-
case "com.amazonaws.codestarconnections#ConditionalCheckFailedException":
|
|
567
|
-
throw await de_ConditionalCheckFailedExceptionRes(parsedOutput, context);
|
|
568
|
-
case "UpdateOutOfSyncException":
|
|
569
|
-
case "com.amazonaws.codestarconnections#UpdateOutOfSyncException":
|
|
570
|
-
throw await de_UpdateOutOfSyncExceptionRes(parsedOutput, context);
|
|
571
|
-
case "RetryLatestCommitFailedException":
|
|
572
|
-
case "com.amazonaws.codestarconnections#RetryLatestCommitFailedException":
|
|
573
|
-
throw await de_RetryLatestCommitFailedExceptionRes(parsedOutput, context);
|
|
574
|
-
case "SyncBlockerDoesNotExistException":
|
|
575
|
-
case "com.amazonaws.codestarconnections#SyncBlockerDoesNotExistException":
|
|
576
|
-
throw await de_SyncBlockerDoesNotExistExceptionRes(parsedOutput, context);
|
|
577
|
-
default:
|
|
578
|
-
const parsedBody = parsedOutput.body;
|
|
579
|
-
return throwDefaultError({
|
|
580
|
-
output,
|
|
581
|
-
parsedBody,
|
|
582
|
-
errorCode,
|
|
583
|
-
});
|
|
584
|
-
}
|
|
585
|
-
};
|
|
586
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
587
|
-
const body = parsedOutput.body;
|
|
588
|
-
const deserialized = _json(body);
|
|
589
|
-
const exception = new AccessDeniedException({
|
|
590
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
591
|
-
...deserialized,
|
|
592
|
-
});
|
|
593
|
-
return __decorateServiceException(exception, body);
|
|
594
|
-
};
|
|
595
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
596
|
-
const body = parsedOutput.body;
|
|
597
|
-
const deserialized = _json(body);
|
|
598
|
-
const exception = new ConcurrentModificationException({
|
|
599
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
600
|
-
...deserialized,
|
|
601
|
-
});
|
|
602
|
-
return __decorateServiceException(exception, body);
|
|
603
|
-
};
|
|
604
|
-
const de_ConditionalCheckFailedExceptionRes = async (parsedOutput, context) => {
|
|
605
|
-
const body = parsedOutput.body;
|
|
606
|
-
const deserialized = _json(body);
|
|
607
|
-
const exception = new ConditionalCheckFailedException({
|
|
608
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
609
|
-
...deserialized,
|
|
610
|
-
});
|
|
611
|
-
return __decorateServiceException(exception, body);
|
|
612
|
-
};
|
|
613
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
614
|
-
const body = parsedOutput.body;
|
|
615
|
-
const deserialized = _json(body);
|
|
616
|
-
const exception = new ConflictException({
|
|
617
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
618
|
-
...deserialized,
|
|
619
|
-
});
|
|
620
|
-
return __decorateServiceException(exception, body);
|
|
621
|
-
};
|
|
622
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
623
|
-
const body = parsedOutput.body;
|
|
624
|
-
const deserialized = _json(body);
|
|
625
|
-
const exception = new InternalServerException({
|
|
626
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
627
|
-
...deserialized,
|
|
628
|
-
});
|
|
629
|
-
return __decorateServiceException(exception, body);
|
|
630
|
-
};
|
|
631
|
-
const de_InvalidInputExceptionRes = async (parsedOutput, context) => {
|
|
632
|
-
const body = parsedOutput.body;
|
|
633
|
-
const deserialized = _json(body);
|
|
634
|
-
const exception = new InvalidInputException({
|
|
635
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
636
|
-
...deserialized,
|
|
637
|
-
});
|
|
638
|
-
return __decorateServiceException(exception, body);
|
|
639
|
-
};
|
|
640
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
641
|
-
const body = parsedOutput.body;
|
|
642
|
-
const deserialized = _json(body);
|
|
643
|
-
const exception = new LimitExceededException({
|
|
644
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
645
|
-
...deserialized,
|
|
646
|
-
});
|
|
647
|
-
return __decorateServiceException(exception, body);
|
|
648
|
-
};
|
|
649
|
-
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
650
|
-
const body = parsedOutput.body;
|
|
651
|
-
const deserialized = _json(body);
|
|
652
|
-
const exception = new ResourceAlreadyExistsException({
|
|
653
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
654
|
-
...deserialized,
|
|
655
|
-
});
|
|
656
|
-
return __decorateServiceException(exception, body);
|
|
657
|
-
};
|
|
658
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
659
|
-
const body = parsedOutput.body;
|
|
660
|
-
const deserialized = _json(body);
|
|
661
|
-
const exception = new ResourceNotFoundException({
|
|
662
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
663
|
-
...deserialized,
|
|
664
|
-
});
|
|
665
|
-
return __decorateServiceException(exception, body);
|
|
666
|
-
};
|
|
667
|
-
const de_ResourceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
668
|
-
const body = parsedOutput.body;
|
|
669
|
-
const deserialized = _json(body);
|
|
670
|
-
const exception = new ResourceUnavailableException({
|
|
671
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
672
|
-
...deserialized,
|
|
673
|
-
});
|
|
674
|
-
return __decorateServiceException(exception, body);
|
|
675
|
-
};
|
|
676
|
-
const de_RetryLatestCommitFailedExceptionRes = async (parsedOutput, context) => {
|
|
677
|
-
const body = parsedOutput.body;
|
|
678
|
-
const deserialized = _json(body);
|
|
679
|
-
const exception = new RetryLatestCommitFailedException({
|
|
680
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
681
|
-
...deserialized,
|
|
682
|
-
});
|
|
683
|
-
return __decorateServiceException(exception, body);
|
|
684
|
-
};
|
|
685
|
-
const de_SyncBlockerDoesNotExistExceptionRes = async (parsedOutput, context) => {
|
|
686
|
-
const body = parsedOutput.body;
|
|
687
|
-
const deserialized = _json(body);
|
|
688
|
-
const exception = new SyncBlockerDoesNotExistException({
|
|
689
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
690
|
-
...deserialized,
|
|
691
|
-
});
|
|
692
|
-
return __decorateServiceException(exception, body);
|
|
693
|
-
};
|
|
694
|
-
const de_SyncConfigurationStillExistsExceptionRes = async (parsedOutput, context) => {
|
|
695
|
-
const body = parsedOutput.body;
|
|
696
|
-
const deserialized = _json(body);
|
|
697
|
-
const exception = new SyncConfigurationStillExistsException({
|
|
698
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
699
|
-
...deserialized,
|
|
700
|
-
});
|
|
701
|
-
return __decorateServiceException(exception, body);
|
|
702
|
-
};
|
|
703
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
704
|
-
const body = parsedOutput.body;
|
|
705
|
-
const deserialized = _json(body);
|
|
706
|
-
const exception = new ThrottlingException({
|
|
707
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
708
|
-
...deserialized,
|
|
709
|
-
});
|
|
710
|
-
return __decorateServiceException(exception, body);
|
|
711
|
-
};
|
|
712
|
-
const de_UnsupportedOperationExceptionRes = async (parsedOutput, context) => {
|
|
713
|
-
const body = parsedOutput.body;
|
|
714
|
-
const deserialized = _json(body);
|
|
715
|
-
const exception = new UnsupportedOperationException({
|
|
716
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
717
|
-
...deserialized,
|
|
718
|
-
});
|
|
719
|
-
return __decorateServiceException(exception, body);
|
|
720
|
-
};
|
|
721
|
-
const de_UnsupportedProviderTypeExceptionRes = async (parsedOutput, context) => {
|
|
722
|
-
const body = parsedOutput.body;
|
|
723
|
-
const deserialized = _json(body);
|
|
724
|
-
const exception = new UnsupportedProviderTypeException({
|
|
725
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
726
|
-
...deserialized,
|
|
727
|
-
});
|
|
728
|
-
return __decorateServiceException(exception, body);
|
|
729
|
-
};
|
|
730
|
-
const de_UpdateOutOfSyncExceptionRes = async (parsedOutput, context) => {
|
|
731
|
-
const body = parsedOutput.body;
|
|
732
|
-
const deserialized = _json(body);
|
|
733
|
-
const exception = new UpdateOutOfSyncException({
|
|
734
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
735
|
-
...deserialized,
|
|
736
|
-
});
|
|
737
|
-
return __decorateServiceException(exception, body);
|
|
738
|
-
};
|
|
739
|
-
const de_GetRepositorySyncStatusOutput = (output, context) => {
|
|
740
|
-
return take(output, {
|
|
741
|
-
LatestSync: (_) => de_RepositorySyncAttempt(_, context),
|
|
742
|
-
});
|
|
743
|
-
};
|
|
744
|
-
const de_GetResourceSyncStatusOutput = (output, context) => {
|
|
745
|
-
return take(output, {
|
|
746
|
-
DesiredState: _json,
|
|
747
|
-
LatestSuccessfulSync: (_) => de_ResourceSyncAttempt(_, context),
|
|
748
|
-
LatestSync: (_) => de_ResourceSyncAttempt(_, context),
|
|
749
|
-
});
|
|
750
|
-
};
|
|
751
|
-
const de_GetSyncBlockerSummaryOutput = (output, context) => {
|
|
752
|
-
return take(output, {
|
|
753
|
-
SyncBlockerSummary: (_) => de_SyncBlockerSummary(_, context),
|
|
754
|
-
});
|
|
755
|
-
};
|
|
756
|
-
const de_LatestSyncBlockerList = (output, context) => {
|
|
757
|
-
const retVal = (output || [])
|
|
758
|
-
.filter((e) => e != null)
|
|
759
|
-
.map((entry) => {
|
|
760
|
-
return de_SyncBlocker(entry, context);
|
|
761
|
-
});
|
|
762
|
-
return retVal;
|
|
763
|
-
};
|
|
764
|
-
const de_RepositorySyncAttempt = (output, context) => {
|
|
765
|
-
return take(output, {
|
|
766
|
-
Events: (_) => de_RepositorySyncEventList(_, context),
|
|
767
|
-
StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
768
|
-
Status: __expectString,
|
|
769
|
-
});
|
|
770
|
-
};
|
|
771
|
-
const de_RepositorySyncEvent = (output, context) => {
|
|
772
|
-
return take(output, {
|
|
773
|
-
Event: __expectString,
|
|
774
|
-
ExternalId: __expectString,
|
|
775
|
-
Time: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
776
|
-
Type: __expectString,
|
|
777
|
-
});
|
|
778
|
-
};
|
|
779
|
-
const de_RepositorySyncEventList = (output, context) => {
|
|
780
|
-
const retVal = (output || [])
|
|
781
|
-
.filter((e) => e != null)
|
|
782
|
-
.map((entry) => {
|
|
783
|
-
return de_RepositorySyncEvent(entry, context);
|
|
784
|
-
});
|
|
785
|
-
return retVal;
|
|
786
|
-
};
|
|
787
|
-
const de_ResourceSyncAttempt = (output, context) => {
|
|
788
|
-
return take(output, {
|
|
789
|
-
Events: (_) => de_ResourceSyncEventList(_, context),
|
|
790
|
-
InitialRevision: _json,
|
|
791
|
-
StartedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
792
|
-
Status: __expectString,
|
|
793
|
-
Target: __expectString,
|
|
794
|
-
TargetRevision: _json,
|
|
795
|
-
});
|
|
796
|
-
};
|
|
797
|
-
const de_ResourceSyncEvent = (output, context) => {
|
|
798
|
-
return take(output, {
|
|
799
|
-
Event: __expectString,
|
|
800
|
-
ExternalId: __expectString,
|
|
801
|
-
Time: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
802
|
-
Type: __expectString,
|
|
803
|
-
});
|
|
804
|
-
};
|
|
805
|
-
const de_ResourceSyncEventList = (output, context) => {
|
|
806
|
-
const retVal = (output || [])
|
|
807
|
-
.filter((e) => e != null)
|
|
808
|
-
.map((entry) => {
|
|
809
|
-
return de_ResourceSyncEvent(entry, context);
|
|
810
|
-
});
|
|
811
|
-
return retVal;
|
|
812
|
-
};
|
|
813
|
-
const de_SyncBlocker = (output, context) => {
|
|
814
|
-
return take(output, {
|
|
815
|
-
Contexts: _json,
|
|
816
|
-
CreatedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
817
|
-
CreatedReason: __expectString,
|
|
818
|
-
Id: __expectString,
|
|
819
|
-
ResolvedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
820
|
-
ResolvedReason: __expectString,
|
|
821
|
-
Status: __expectString,
|
|
822
|
-
Type: __expectString,
|
|
823
|
-
});
|
|
824
|
-
};
|
|
825
|
-
const de_SyncBlockerSummary = (output, context) => {
|
|
826
|
-
return take(output, {
|
|
827
|
-
LatestBlockers: (_) => de_LatestSyncBlockerList(_, context),
|
|
828
|
-
ParentResourceName: __expectString,
|
|
829
|
-
ResourceName: __expectString,
|
|
830
|
-
});
|
|
831
|
-
};
|
|
832
|
-
const de_UpdateSyncBlockerOutput = (output, context) => {
|
|
833
|
-
return take(output, {
|
|
834
|
-
ParentResourceName: __expectString,
|
|
835
|
-
ResourceName: __expectString,
|
|
836
|
-
SyncBlocker: (_) => de_SyncBlocker(_, context),
|
|
837
|
-
});
|
|
838
|
-
};
|
|
839
|
-
const deserializeMetadata = (output) => ({
|
|
840
|
-
httpStatusCode: output.statusCode,
|
|
841
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
842
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
843
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
844
|
-
});
|
|
845
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
846
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
847
|
-
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
848
|
-
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
849
|
-
const contents = {
|
|
850
|
-
protocol,
|
|
851
|
-
hostname,
|
|
852
|
-
port,
|
|
853
|
-
method: "POST",
|
|
854
|
-
path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path,
|
|
855
|
-
headers,
|
|
856
|
-
};
|
|
857
|
-
if (resolvedHostname !== undefined) {
|
|
858
|
-
contents.hostname = resolvedHostname;
|
|
859
|
-
}
|
|
860
|
-
if (body !== undefined) {
|
|
861
|
-
contents.body = body;
|
|
862
|
-
}
|
|
863
|
-
return new __HttpRequest(contents);
|
|
864
|
-
};
|
|
865
|
-
function sharedHeaders(operation) {
|
|
866
|
-
return {
|
|
867
|
-
"content-type": "application/x-amz-json-1.0",
|
|
868
|
-
"x-amz-target": `CodeStar_connections_20191201.${operation}`,
|
|
869
|
-
};
|
|
870
|
-
}
|