@aws-sdk/client-codestar-notifications 3.303.0 → 3.309.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/commands/CreateNotificationRuleCommand.js +2 -2
- package/dist-cjs/commands/DeleteNotificationRuleCommand.js +2 -2
- package/dist-cjs/commands/DeleteTargetCommand.js +2 -2
- package/dist-cjs/commands/DescribeNotificationRuleCommand.js +2 -2
- package/dist-cjs/commands/ListEventTypesCommand.js +2 -2
- package/dist-cjs/commands/ListNotificationRulesCommand.js +2 -2
- package/dist-cjs/commands/ListTagsForResourceCommand.js +2 -2
- package/dist-cjs/commands/ListTargetsCommand.js +2 -2
- package/dist-cjs/commands/SubscribeCommand.js +2 -2
- package/dist-cjs/commands/TagResourceCommand.js +2 -2
- package/dist-cjs/commands/UnsubscribeCommand.js +2 -2
- package/dist-cjs/commands/UntagResourceCommand.js +2 -2
- package/dist-cjs/commands/UpdateNotificationRuleCommand.js +2 -2
- package/dist-cjs/protocols/Aws_restJson1.js +164 -170
- package/dist-es/commands/CreateNotificationRuleCommand.js +3 -3
- package/dist-es/commands/DeleteNotificationRuleCommand.js +3 -3
- package/dist-es/commands/DeleteTargetCommand.js +3 -3
- package/dist-es/commands/DescribeNotificationRuleCommand.js +3 -3
- package/dist-es/commands/ListEventTypesCommand.js +3 -3
- package/dist-es/commands/ListNotificationRulesCommand.js +3 -3
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-es/commands/ListTargetsCommand.js +3 -3
- package/dist-es/commands/SubscribeCommand.js +3 -3
- package/dist-es/commands/TagResourceCommand.js +3 -3
- package/dist-es/commands/UnsubscribeCommand.js +3 -3
- package/dist-es/commands/UntagResourceCommand.js +3 -3
- package/dist-es/commands/UpdateNotificationRuleCommand.js +3 -3
- package/dist-es/protocols/Aws_restJson1.js +137 -143
- package/dist-types/protocols/Aws_restJson1.d.ts +104 -26
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +26 -26
- package/package.json +29 -29
|
@@ -3,7 +3,7 @@ import { decorateServiceException as __decorateServiceException, expectNonNull a
|
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { CodestarNotificationsServiceException as __BaseException } from "../models/CodestarNotificationsServiceException";
|
|
5
5
|
import { AccessDeniedException, ConcurrentModificationException, ConfigurationException, InvalidNextTokenException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
6
|
-
export const
|
|
6
|
+
export const se_CreateNotificationRuleCommand = async (input, context) => {
|
|
7
7
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
@@ -13,14 +13,12 @@ export const serializeAws_restJson1CreateNotificationRuleCommand = async (input,
|
|
|
13
13
|
body = JSON.stringify({
|
|
14
14
|
ClientRequestToken: input.ClientRequestToken ?? generateIdempotencyToken(),
|
|
15
15
|
...(input.DetailType != null && { DetailType: input.DetailType }),
|
|
16
|
-
...(input.EventTypeIds != null && {
|
|
17
|
-
EventTypeIds: serializeAws_restJson1EventTypeIds(input.EventTypeIds, context),
|
|
18
|
-
}),
|
|
16
|
+
...(input.EventTypeIds != null && { EventTypeIds: se_EventTypeIds(input.EventTypeIds, context) }),
|
|
19
17
|
...(input.Name != null && { Name: input.Name }),
|
|
20
18
|
...(input.Resource != null && { Resource: input.Resource }),
|
|
21
19
|
...(input.Status != null && { Status: input.Status }),
|
|
22
|
-
...(input.Tags != null && { Tags:
|
|
23
|
-
...(input.Targets != null && { Targets:
|
|
20
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
21
|
+
...(input.Targets != null && { Targets: se_Targets(input.Targets, context) }),
|
|
24
22
|
});
|
|
25
23
|
return new __HttpRequest({
|
|
26
24
|
protocol,
|
|
@@ -32,7 +30,7 @@ export const serializeAws_restJson1CreateNotificationRuleCommand = async (input,
|
|
|
32
30
|
body,
|
|
33
31
|
});
|
|
34
32
|
};
|
|
35
|
-
export const
|
|
33
|
+
export const se_DeleteNotificationRuleCommand = async (input, context) => {
|
|
36
34
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
37
35
|
const headers = {
|
|
38
36
|
"content-type": "application/json",
|
|
@@ -52,7 +50,7 @@ export const serializeAws_restJson1DeleteNotificationRuleCommand = async (input,
|
|
|
52
50
|
body,
|
|
53
51
|
});
|
|
54
52
|
};
|
|
55
|
-
export const
|
|
53
|
+
export const se_DeleteTargetCommand = async (input, context) => {
|
|
56
54
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
57
55
|
const headers = {
|
|
58
56
|
"content-type": "application/json",
|
|
@@ -73,7 +71,7 @@ export const serializeAws_restJson1DeleteTargetCommand = async (input, context)
|
|
|
73
71
|
body,
|
|
74
72
|
});
|
|
75
73
|
};
|
|
76
|
-
export const
|
|
74
|
+
export const se_DescribeNotificationRuleCommand = async (input, context) => {
|
|
77
75
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
78
76
|
const headers = {
|
|
79
77
|
"content-type": "application/json",
|
|
@@ -93,7 +91,7 @@ export const serializeAws_restJson1DescribeNotificationRuleCommand = async (inpu
|
|
|
93
91
|
body,
|
|
94
92
|
});
|
|
95
93
|
};
|
|
96
|
-
export const
|
|
94
|
+
export const se_ListEventTypesCommand = async (input, context) => {
|
|
97
95
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
98
96
|
const headers = {
|
|
99
97
|
"content-type": "application/json",
|
|
@@ -101,7 +99,7 @@ export const serializeAws_restJson1ListEventTypesCommand = async (input, context
|
|
|
101
99
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listEventTypes";
|
|
102
100
|
let body;
|
|
103
101
|
body = JSON.stringify({
|
|
104
|
-
...(input.Filters != null && { Filters:
|
|
102
|
+
...(input.Filters != null && { Filters: se_ListEventTypesFilters(input.Filters, context) }),
|
|
105
103
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
106
104
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
107
105
|
});
|
|
@@ -115,7 +113,7 @@ export const serializeAws_restJson1ListEventTypesCommand = async (input, context
|
|
|
115
113
|
body,
|
|
116
114
|
});
|
|
117
115
|
};
|
|
118
|
-
export const
|
|
116
|
+
export const se_ListNotificationRulesCommand = async (input, context) => {
|
|
119
117
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
120
118
|
const headers = {
|
|
121
119
|
"content-type": "application/json",
|
|
@@ -123,9 +121,7 @@ export const serializeAws_restJson1ListNotificationRulesCommand = async (input,
|
|
|
123
121
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listNotificationRules";
|
|
124
122
|
let body;
|
|
125
123
|
body = JSON.stringify({
|
|
126
|
-
...(input.Filters != null && {
|
|
127
|
-
Filters: serializeAws_restJson1ListNotificationRulesFilters(input.Filters, context),
|
|
128
|
-
}),
|
|
124
|
+
...(input.Filters != null && { Filters: se_ListNotificationRulesFilters(input.Filters, context) }),
|
|
129
125
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
130
126
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
131
127
|
});
|
|
@@ -139,7 +135,7 @@ export const serializeAws_restJson1ListNotificationRulesCommand = async (input,
|
|
|
139
135
|
body,
|
|
140
136
|
});
|
|
141
137
|
};
|
|
142
|
-
export const
|
|
138
|
+
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
143
139
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
144
140
|
const headers = {
|
|
145
141
|
"content-type": "application/json",
|
|
@@ -159,7 +155,7 @@ export const serializeAws_restJson1ListTagsForResourceCommand = async (input, co
|
|
|
159
155
|
body,
|
|
160
156
|
});
|
|
161
157
|
};
|
|
162
|
-
export const
|
|
158
|
+
export const se_ListTargetsCommand = async (input, context) => {
|
|
163
159
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
164
160
|
const headers = {
|
|
165
161
|
"content-type": "application/json",
|
|
@@ -167,7 +163,7 @@ export const serializeAws_restJson1ListTargetsCommand = async (input, context) =
|
|
|
167
163
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/listTargets";
|
|
168
164
|
let body;
|
|
169
165
|
body = JSON.stringify({
|
|
170
|
-
...(input.Filters != null && { Filters:
|
|
166
|
+
...(input.Filters != null && { Filters: se_ListTargetsFilters(input.Filters, context) }),
|
|
171
167
|
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
172
168
|
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
173
169
|
});
|
|
@@ -181,7 +177,7 @@ export const serializeAws_restJson1ListTargetsCommand = async (input, context) =
|
|
|
181
177
|
body,
|
|
182
178
|
});
|
|
183
179
|
};
|
|
184
|
-
export const
|
|
180
|
+
export const se_SubscribeCommand = async (input, context) => {
|
|
185
181
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
186
182
|
const headers = {
|
|
187
183
|
"content-type": "application/json",
|
|
@@ -191,7 +187,7 @@ export const serializeAws_restJson1SubscribeCommand = async (input, context) =>
|
|
|
191
187
|
body = JSON.stringify({
|
|
192
188
|
...(input.Arn != null && { Arn: input.Arn }),
|
|
193
189
|
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
194
|
-
...(input.Target != null && { Target:
|
|
190
|
+
...(input.Target != null && { Target: se_Target(input.Target, context) }),
|
|
195
191
|
});
|
|
196
192
|
return new __HttpRequest({
|
|
197
193
|
protocol,
|
|
@@ -203,7 +199,7 @@ export const serializeAws_restJson1SubscribeCommand = async (input, context) =>
|
|
|
203
199
|
body,
|
|
204
200
|
});
|
|
205
201
|
};
|
|
206
|
-
export const
|
|
202
|
+
export const se_TagResourceCommand = async (input, context) => {
|
|
207
203
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
208
204
|
const headers = {
|
|
209
205
|
"content-type": "application/json",
|
|
@@ -212,7 +208,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
212
208
|
let body;
|
|
213
209
|
body = JSON.stringify({
|
|
214
210
|
...(input.Arn != null && { Arn: input.Arn }),
|
|
215
|
-
...(input.Tags != null && { Tags:
|
|
211
|
+
...(input.Tags != null && { Tags: se_Tags(input.Tags, context) }),
|
|
216
212
|
});
|
|
217
213
|
return new __HttpRequest({
|
|
218
214
|
protocol,
|
|
@@ -224,7 +220,7 @@ export const serializeAws_restJson1TagResourceCommand = async (input, context) =
|
|
|
224
220
|
body,
|
|
225
221
|
});
|
|
226
222
|
};
|
|
227
|
-
export const
|
|
223
|
+
export const se_UnsubscribeCommand = async (input, context) => {
|
|
228
224
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
229
225
|
const headers = {
|
|
230
226
|
"content-type": "application/json",
|
|
@@ -245,7 +241,7 @@ export const serializeAws_restJson1UnsubscribeCommand = async (input, context) =
|
|
|
245
241
|
body,
|
|
246
242
|
});
|
|
247
243
|
};
|
|
248
|
-
export const
|
|
244
|
+
export const se_UntagResourceCommand = async (input, context) => {
|
|
249
245
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
250
246
|
const headers = {};
|
|
251
247
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/untagResource/{Arn}";
|
|
@@ -268,7 +264,7 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
|
|
|
268
264
|
body,
|
|
269
265
|
});
|
|
270
266
|
};
|
|
271
|
-
export const
|
|
267
|
+
export const se_UpdateNotificationRuleCommand = async (input, context) => {
|
|
272
268
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
273
269
|
const headers = {
|
|
274
270
|
"content-type": "application/json",
|
|
@@ -278,12 +274,10 @@ export const serializeAws_restJson1UpdateNotificationRuleCommand = async (input,
|
|
|
278
274
|
body = JSON.stringify({
|
|
279
275
|
...(input.Arn != null && { Arn: input.Arn }),
|
|
280
276
|
...(input.DetailType != null && { DetailType: input.DetailType }),
|
|
281
|
-
...(input.EventTypeIds != null && {
|
|
282
|
-
EventTypeIds: serializeAws_restJson1EventTypeIds(input.EventTypeIds, context),
|
|
283
|
-
}),
|
|
277
|
+
...(input.EventTypeIds != null && { EventTypeIds: se_EventTypeIds(input.EventTypeIds, context) }),
|
|
284
278
|
...(input.Name != null && { Name: input.Name }),
|
|
285
279
|
...(input.Status != null && { Status: input.Status }),
|
|
286
|
-
...(input.Targets != null && { Targets:
|
|
280
|
+
...(input.Targets != null && { Targets: se_Targets(input.Targets, context) }),
|
|
287
281
|
});
|
|
288
282
|
return new __HttpRequest({
|
|
289
283
|
protocol,
|
|
@@ -295,9 +289,9 @@ export const serializeAws_restJson1UpdateNotificationRuleCommand = async (input,
|
|
|
295
289
|
body,
|
|
296
290
|
});
|
|
297
291
|
};
|
|
298
|
-
export const
|
|
292
|
+
export const de_CreateNotificationRuleCommand = async (output, context) => {
|
|
299
293
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
300
|
-
return
|
|
294
|
+
return de_CreateNotificationRuleCommandError(output, context);
|
|
301
295
|
}
|
|
302
296
|
const contents = map({
|
|
303
297
|
$metadata: deserializeMetadata(output),
|
|
@@ -308,7 +302,7 @@ export const deserializeAws_restJson1CreateNotificationRuleCommand = async (outp
|
|
|
308
302
|
}
|
|
309
303
|
return contents;
|
|
310
304
|
};
|
|
311
|
-
const
|
|
305
|
+
const de_CreateNotificationRuleCommandError = async (output, context) => {
|
|
312
306
|
const parsedOutput = {
|
|
313
307
|
...output,
|
|
314
308
|
body: await parseErrorBody(output.body, context),
|
|
@@ -317,22 +311,22 @@ const deserializeAws_restJson1CreateNotificationRuleCommandError = async (output
|
|
|
317
311
|
switch (errorCode) {
|
|
318
312
|
case "AccessDeniedException":
|
|
319
313
|
case "com.amazonaws.codestarnotifications#AccessDeniedException":
|
|
320
|
-
throw await
|
|
314
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
321
315
|
case "ConcurrentModificationException":
|
|
322
316
|
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
323
|
-
throw await
|
|
317
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
324
318
|
case "ConfigurationException":
|
|
325
319
|
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
326
|
-
throw await
|
|
320
|
+
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
327
321
|
case "LimitExceededException":
|
|
328
322
|
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
329
|
-
throw await
|
|
323
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
330
324
|
case "ResourceAlreadyExistsException":
|
|
331
325
|
case "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException":
|
|
332
|
-
throw await
|
|
326
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
333
327
|
case "ValidationException":
|
|
334
328
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
335
|
-
throw await
|
|
329
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
336
330
|
default:
|
|
337
331
|
const parsedBody = parsedOutput.body;
|
|
338
332
|
throwDefaultError({
|
|
@@ -343,9 +337,9 @@ const deserializeAws_restJson1CreateNotificationRuleCommandError = async (output
|
|
|
343
337
|
});
|
|
344
338
|
}
|
|
345
339
|
};
|
|
346
|
-
export const
|
|
340
|
+
export const de_DeleteNotificationRuleCommand = async (output, context) => {
|
|
347
341
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
348
|
-
return
|
|
342
|
+
return de_DeleteNotificationRuleCommandError(output, context);
|
|
349
343
|
}
|
|
350
344
|
const contents = map({
|
|
351
345
|
$metadata: deserializeMetadata(output),
|
|
@@ -356,7 +350,7 @@ export const deserializeAws_restJson1DeleteNotificationRuleCommand = async (outp
|
|
|
356
350
|
}
|
|
357
351
|
return contents;
|
|
358
352
|
};
|
|
359
|
-
const
|
|
353
|
+
const de_DeleteNotificationRuleCommandError = async (output, context) => {
|
|
360
354
|
const parsedOutput = {
|
|
361
355
|
...output,
|
|
362
356
|
body: await parseErrorBody(output.body, context),
|
|
@@ -365,13 +359,13 @@ const deserializeAws_restJson1DeleteNotificationRuleCommandError = async (output
|
|
|
365
359
|
switch (errorCode) {
|
|
366
360
|
case "ConcurrentModificationException":
|
|
367
361
|
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
368
|
-
throw await
|
|
362
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
369
363
|
case "LimitExceededException":
|
|
370
364
|
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
371
|
-
throw await
|
|
365
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
372
366
|
case "ValidationException":
|
|
373
367
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
374
|
-
throw await
|
|
368
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
375
369
|
default:
|
|
376
370
|
const parsedBody = parsedOutput.body;
|
|
377
371
|
throwDefaultError({
|
|
@@ -382,9 +376,9 @@ const deserializeAws_restJson1DeleteNotificationRuleCommandError = async (output
|
|
|
382
376
|
});
|
|
383
377
|
}
|
|
384
378
|
};
|
|
385
|
-
export const
|
|
379
|
+
export const de_DeleteTargetCommand = async (output, context) => {
|
|
386
380
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
387
|
-
return
|
|
381
|
+
return de_DeleteTargetCommandError(output, context);
|
|
388
382
|
}
|
|
389
383
|
const contents = map({
|
|
390
384
|
$metadata: deserializeMetadata(output),
|
|
@@ -392,7 +386,7 @@ export const deserializeAws_restJson1DeleteTargetCommand = async (output, contex
|
|
|
392
386
|
await collectBody(output.body, context);
|
|
393
387
|
return contents;
|
|
394
388
|
};
|
|
395
|
-
const
|
|
389
|
+
const de_DeleteTargetCommandError = async (output, context) => {
|
|
396
390
|
const parsedOutput = {
|
|
397
391
|
...output,
|
|
398
392
|
body: await parseErrorBody(output.body, context),
|
|
@@ -401,7 +395,7 @@ const deserializeAws_restJson1DeleteTargetCommandError = async (output, context)
|
|
|
401
395
|
switch (errorCode) {
|
|
402
396
|
case "ValidationException":
|
|
403
397
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
404
|
-
throw await
|
|
398
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
405
399
|
default:
|
|
406
400
|
const parsedBody = parsedOutput.body;
|
|
407
401
|
throwDefaultError({
|
|
@@ -412,9 +406,9 @@ const deserializeAws_restJson1DeleteTargetCommandError = async (output, context)
|
|
|
412
406
|
});
|
|
413
407
|
}
|
|
414
408
|
};
|
|
415
|
-
export const
|
|
409
|
+
export const de_DescribeNotificationRuleCommand = async (output, context) => {
|
|
416
410
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
417
|
-
return
|
|
411
|
+
return de_DescribeNotificationRuleCommandError(output, context);
|
|
418
412
|
}
|
|
419
413
|
const contents = map({
|
|
420
414
|
$metadata: deserializeMetadata(output),
|
|
@@ -433,7 +427,7 @@ export const deserializeAws_restJson1DescribeNotificationRuleCommand = async (ou
|
|
|
433
427
|
contents.DetailType = __expectString(data.DetailType);
|
|
434
428
|
}
|
|
435
429
|
if (data.EventTypes != null) {
|
|
436
|
-
contents.EventTypes =
|
|
430
|
+
contents.EventTypes = de_EventTypeBatch(data.EventTypes, context);
|
|
437
431
|
}
|
|
438
432
|
if (data.LastModifiedTimestamp != null) {
|
|
439
433
|
contents.LastModifiedTimestamp = __expectNonNull(__parseEpochTimestamp(__expectNumber(data.LastModifiedTimestamp)));
|
|
@@ -448,14 +442,14 @@ export const deserializeAws_restJson1DescribeNotificationRuleCommand = async (ou
|
|
|
448
442
|
contents.Status = __expectString(data.Status);
|
|
449
443
|
}
|
|
450
444
|
if (data.Tags != null) {
|
|
451
|
-
contents.Tags =
|
|
445
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
452
446
|
}
|
|
453
447
|
if (data.Targets != null) {
|
|
454
|
-
contents.Targets =
|
|
448
|
+
contents.Targets = de_TargetsBatch(data.Targets, context);
|
|
455
449
|
}
|
|
456
450
|
return contents;
|
|
457
451
|
};
|
|
458
|
-
const
|
|
452
|
+
const de_DescribeNotificationRuleCommandError = async (output, context) => {
|
|
459
453
|
const parsedOutput = {
|
|
460
454
|
...output,
|
|
461
455
|
body: await parseErrorBody(output.body, context),
|
|
@@ -464,10 +458,10 @@ const deserializeAws_restJson1DescribeNotificationRuleCommandError = async (outp
|
|
|
464
458
|
switch (errorCode) {
|
|
465
459
|
case "ResourceNotFoundException":
|
|
466
460
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
467
|
-
throw await
|
|
461
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
468
462
|
case "ValidationException":
|
|
469
463
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
470
|
-
throw await
|
|
464
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
471
465
|
default:
|
|
472
466
|
const parsedBody = parsedOutput.body;
|
|
473
467
|
throwDefaultError({
|
|
@@ -478,23 +472,23 @@ const deserializeAws_restJson1DescribeNotificationRuleCommandError = async (outp
|
|
|
478
472
|
});
|
|
479
473
|
}
|
|
480
474
|
};
|
|
481
|
-
export const
|
|
475
|
+
export const de_ListEventTypesCommand = async (output, context) => {
|
|
482
476
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
483
|
-
return
|
|
477
|
+
return de_ListEventTypesCommandError(output, context);
|
|
484
478
|
}
|
|
485
479
|
const contents = map({
|
|
486
480
|
$metadata: deserializeMetadata(output),
|
|
487
481
|
});
|
|
488
482
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
489
483
|
if (data.EventTypes != null) {
|
|
490
|
-
contents.EventTypes =
|
|
484
|
+
contents.EventTypes = de_EventTypeBatch(data.EventTypes, context);
|
|
491
485
|
}
|
|
492
486
|
if (data.NextToken != null) {
|
|
493
487
|
contents.NextToken = __expectString(data.NextToken);
|
|
494
488
|
}
|
|
495
489
|
return contents;
|
|
496
490
|
};
|
|
497
|
-
const
|
|
491
|
+
const de_ListEventTypesCommandError = async (output, context) => {
|
|
498
492
|
const parsedOutput = {
|
|
499
493
|
...output,
|
|
500
494
|
body: await parseErrorBody(output.body, context),
|
|
@@ -503,10 +497,10 @@ const deserializeAws_restJson1ListEventTypesCommandError = async (output, contex
|
|
|
503
497
|
switch (errorCode) {
|
|
504
498
|
case "InvalidNextTokenException":
|
|
505
499
|
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
506
|
-
throw await
|
|
500
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
507
501
|
case "ValidationException":
|
|
508
502
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
509
|
-
throw await
|
|
503
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
510
504
|
default:
|
|
511
505
|
const parsedBody = parsedOutput.body;
|
|
512
506
|
throwDefaultError({
|
|
@@ -517,9 +511,9 @@ const deserializeAws_restJson1ListEventTypesCommandError = async (output, contex
|
|
|
517
511
|
});
|
|
518
512
|
}
|
|
519
513
|
};
|
|
520
|
-
export const
|
|
514
|
+
export const de_ListNotificationRulesCommand = async (output, context) => {
|
|
521
515
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
522
|
-
return
|
|
516
|
+
return de_ListNotificationRulesCommandError(output, context);
|
|
523
517
|
}
|
|
524
518
|
const contents = map({
|
|
525
519
|
$metadata: deserializeMetadata(output),
|
|
@@ -529,11 +523,11 @@ export const deserializeAws_restJson1ListNotificationRulesCommand = async (outpu
|
|
|
529
523
|
contents.NextToken = __expectString(data.NextToken);
|
|
530
524
|
}
|
|
531
525
|
if (data.NotificationRules != null) {
|
|
532
|
-
contents.NotificationRules =
|
|
526
|
+
contents.NotificationRules = de_NotificationRuleBatch(data.NotificationRules, context);
|
|
533
527
|
}
|
|
534
528
|
return contents;
|
|
535
529
|
};
|
|
536
|
-
const
|
|
530
|
+
const de_ListNotificationRulesCommandError = async (output, context) => {
|
|
537
531
|
const parsedOutput = {
|
|
538
532
|
...output,
|
|
539
533
|
body: await parseErrorBody(output.body, context),
|
|
@@ -542,10 +536,10 @@ const deserializeAws_restJson1ListNotificationRulesCommandError = async (output,
|
|
|
542
536
|
switch (errorCode) {
|
|
543
537
|
case "InvalidNextTokenException":
|
|
544
538
|
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
545
|
-
throw await
|
|
539
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
546
540
|
case "ValidationException":
|
|
547
541
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
548
|
-
throw await
|
|
542
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
549
543
|
default:
|
|
550
544
|
const parsedBody = parsedOutput.body;
|
|
551
545
|
throwDefaultError({
|
|
@@ -556,20 +550,20 @@ const deserializeAws_restJson1ListNotificationRulesCommandError = async (output,
|
|
|
556
550
|
});
|
|
557
551
|
}
|
|
558
552
|
};
|
|
559
|
-
export const
|
|
553
|
+
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
560
554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
561
|
-
return
|
|
555
|
+
return de_ListTagsForResourceCommandError(output, context);
|
|
562
556
|
}
|
|
563
557
|
const contents = map({
|
|
564
558
|
$metadata: deserializeMetadata(output),
|
|
565
559
|
});
|
|
566
560
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
567
561
|
if (data.Tags != null) {
|
|
568
|
-
contents.Tags =
|
|
562
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
569
563
|
}
|
|
570
564
|
return contents;
|
|
571
565
|
};
|
|
572
|
-
const
|
|
566
|
+
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
573
567
|
const parsedOutput = {
|
|
574
568
|
...output,
|
|
575
569
|
body: await parseErrorBody(output.body, context),
|
|
@@ -578,10 +572,10 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
578
572
|
switch (errorCode) {
|
|
579
573
|
case "ResourceNotFoundException":
|
|
580
574
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
581
|
-
throw await
|
|
575
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
582
576
|
case "ValidationException":
|
|
583
577
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
584
|
-
throw await
|
|
578
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
585
579
|
default:
|
|
586
580
|
const parsedBody = parsedOutput.body;
|
|
587
581
|
throwDefaultError({
|
|
@@ -592,9 +586,9 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
592
586
|
});
|
|
593
587
|
}
|
|
594
588
|
};
|
|
595
|
-
export const
|
|
589
|
+
export const de_ListTargetsCommand = async (output, context) => {
|
|
596
590
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
597
|
-
return
|
|
591
|
+
return de_ListTargetsCommandError(output, context);
|
|
598
592
|
}
|
|
599
593
|
const contents = map({
|
|
600
594
|
$metadata: deserializeMetadata(output),
|
|
@@ -604,11 +598,11 @@ export const deserializeAws_restJson1ListTargetsCommand = async (output, context
|
|
|
604
598
|
contents.NextToken = __expectString(data.NextToken);
|
|
605
599
|
}
|
|
606
600
|
if (data.Targets != null) {
|
|
607
|
-
contents.Targets =
|
|
601
|
+
contents.Targets = de_TargetsBatch(data.Targets, context);
|
|
608
602
|
}
|
|
609
603
|
return contents;
|
|
610
604
|
};
|
|
611
|
-
const
|
|
605
|
+
const de_ListTargetsCommandError = async (output, context) => {
|
|
612
606
|
const parsedOutput = {
|
|
613
607
|
...output,
|
|
614
608
|
body: await parseErrorBody(output.body, context),
|
|
@@ -617,10 +611,10 @@ const deserializeAws_restJson1ListTargetsCommandError = async (output, context)
|
|
|
617
611
|
switch (errorCode) {
|
|
618
612
|
case "InvalidNextTokenException":
|
|
619
613
|
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
620
|
-
throw await
|
|
614
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
621
615
|
case "ValidationException":
|
|
622
616
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
623
|
-
throw await
|
|
617
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
624
618
|
default:
|
|
625
619
|
const parsedBody = parsedOutput.body;
|
|
626
620
|
throwDefaultError({
|
|
@@ -631,9 +625,9 @@ const deserializeAws_restJson1ListTargetsCommandError = async (output, context)
|
|
|
631
625
|
});
|
|
632
626
|
}
|
|
633
627
|
};
|
|
634
|
-
export const
|
|
628
|
+
export const de_SubscribeCommand = async (output, context) => {
|
|
635
629
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
636
|
-
return
|
|
630
|
+
return de_SubscribeCommandError(output, context);
|
|
637
631
|
}
|
|
638
632
|
const contents = map({
|
|
639
633
|
$metadata: deserializeMetadata(output),
|
|
@@ -644,7 +638,7 @@ export const deserializeAws_restJson1SubscribeCommand = async (output, context)
|
|
|
644
638
|
}
|
|
645
639
|
return contents;
|
|
646
640
|
};
|
|
647
|
-
const
|
|
641
|
+
const de_SubscribeCommandError = async (output, context) => {
|
|
648
642
|
const parsedOutput = {
|
|
649
643
|
...output,
|
|
650
644
|
body: await parseErrorBody(output.body, context),
|
|
@@ -653,13 +647,13 @@ const deserializeAws_restJson1SubscribeCommandError = async (output, context) =>
|
|
|
653
647
|
switch (errorCode) {
|
|
654
648
|
case "ConfigurationException":
|
|
655
649
|
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
656
|
-
throw await
|
|
650
|
+
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
657
651
|
case "ResourceNotFoundException":
|
|
658
652
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
659
|
-
throw await
|
|
653
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
660
654
|
case "ValidationException":
|
|
661
655
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
662
|
-
throw await
|
|
656
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
663
657
|
default:
|
|
664
658
|
const parsedBody = parsedOutput.body;
|
|
665
659
|
throwDefaultError({
|
|
@@ -670,20 +664,20 @@ const deserializeAws_restJson1SubscribeCommandError = async (output, context) =>
|
|
|
670
664
|
});
|
|
671
665
|
}
|
|
672
666
|
};
|
|
673
|
-
export const
|
|
667
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
674
668
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
675
|
-
return
|
|
669
|
+
return de_TagResourceCommandError(output, context);
|
|
676
670
|
}
|
|
677
671
|
const contents = map({
|
|
678
672
|
$metadata: deserializeMetadata(output),
|
|
679
673
|
});
|
|
680
674
|
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
681
675
|
if (data.Tags != null) {
|
|
682
|
-
contents.Tags =
|
|
676
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
683
677
|
}
|
|
684
678
|
return contents;
|
|
685
679
|
};
|
|
686
|
-
const
|
|
680
|
+
const de_TagResourceCommandError = async (output, context) => {
|
|
687
681
|
const parsedOutput = {
|
|
688
682
|
...output,
|
|
689
683
|
body: await parseErrorBody(output.body, context),
|
|
@@ -692,16 +686,16 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
692
686
|
switch (errorCode) {
|
|
693
687
|
case "ConcurrentModificationException":
|
|
694
688
|
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
695
|
-
throw await
|
|
689
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
696
690
|
case "LimitExceededException":
|
|
697
691
|
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
698
|
-
throw await
|
|
692
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
699
693
|
case "ResourceNotFoundException":
|
|
700
694
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
701
|
-
throw await
|
|
695
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
702
696
|
case "ValidationException":
|
|
703
697
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
704
|
-
throw await
|
|
698
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
705
699
|
default:
|
|
706
700
|
const parsedBody = parsedOutput.body;
|
|
707
701
|
throwDefaultError({
|
|
@@ -712,9 +706,9 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
712
706
|
});
|
|
713
707
|
}
|
|
714
708
|
};
|
|
715
|
-
export const
|
|
709
|
+
export const de_UnsubscribeCommand = async (output, context) => {
|
|
716
710
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
717
|
-
return
|
|
711
|
+
return de_UnsubscribeCommandError(output, context);
|
|
718
712
|
}
|
|
719
713
|
const contents = map({
|
|
720
714
|
$metadata: deserializeMetadata(output),
|
|
@@ -725,7 +719,7 @@ export const deserializeAws_restJson1UnsubscribeCommand = async (output, context
|
|
|
725
719
|
}
|
|
726
720
|
return contents;
|
|
727
721
|
};
|
|
728
|
-
const
|
|
722
|
+
const de_UnsubscribeCommandError = async (output, context) => {
|
|
729
723
|
const parsedOutput = {
|
|
730
724
|
...output,
|
|
731
725
|
body: await parseErrorBody(output.body, context),
|
|
@@ -734,7 +728,7 @@ const deserializeAws_restJson1UnsubscribeCommandError = async (output, context)
|
|
|
734
728
|
switch (errorCode) {
|
|
735
729
|
case "ValidationException":
|
|
736
730
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
737
|
-
throw await
|
|
731
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
738
732
|
default:
|
|
739
733
|
const parsedBody = parsedOutput.body;
|
|
740
734
|
throwDefaultError({
|
|
@@ -745,9 +739,9 @@ const deserializeAws_restJson1UnsubscribeCommandError = async (output, context)
|
|
|
745
739
|
});
|
|
746
740
|
}
|
|
747
741
|
};
|
|
748
|
-
export const
|
|
742
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
749
743
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
750
|
-
return
|
|
744
|
+
return de_UntagResourceCommandError(output, context);
|
|
751
745
|
}
|
|
752
746
|
const contents = map({
|
|
753
747
|
$metadata: deserializeMetadata(output),
|
|
@@ -755,7 +749,7 @@ export const deserializeAws_restJson1UntagResourceCommand = async (output, conte
|
|
|
755
749
|
await collectBody(output.body, context);
|
|
756
750
|
return contents;
|
|
757
751
|
};
|
|
758
|
-
const
|
|
752
|
+
const de_UntagResourceCommandError = async (output, context) => {
|
|
759
753
|
const parsedOutput = {
|
|
760
754
|
...output,
|
|
761
755
|
body: await parseErrorBody(output.body, context),
|
|
@@ -764,16 +758,16 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
764
758
|
switch (errorCode) {
|
|
765
759
|
case "ConcurrentModificationException":
|
|
766
760
|
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
767
|
-
throw await
|
|
761
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
768
762
|
case "LimitExceededException":
|
|
769
763
|
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
770
|
-
throw await
|
|
764
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
771
765
|
case "ResourceNotFoundException":
|
|
772
766
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
773
|
-
throw await
|
|
767
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
774
768
|
case "ValidationException":
|
|
775
769
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
776
|
-
throw await
|
|
770
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
777
771
|
default:
|
|
778
772
|
const parsedBody = parsedOutput.body;
|
|
779
773
|
throwDefaultError({
|
|
@@ -784,9 +778,9 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
784
778
|
});
|
|
785
779
|
}
|
|
786
780
|
};
|
|
787
|
-
export const
|
|
781
|
+
export const de_UpdateNotificationRuleCommand = async (output, context) => {
|
|
788
782
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
789
|
-
return
|
|
783
|
+
return de_UpdateNotificationRuleCommandError(output, context);
|
|
790
784
|
}
|
|
791
785
|
const contents = map({
|
|
792
786
|
$metadata: deserializeMetadata(output),
|
|
@@ -794,7 +788,7 @@ export const deserializeAws_restJson1UpdateNotificationRuleCommand = async (outp
|
|
|
794
788
|
await collectBody(output.body, context);
|
|
795
789
|
return contents;
|
|
796
790
|
};
|
|
797
|
-
const
|
|
791
|
+
const de_UpdateNotificationRuleCommandError = async (output, context) => {
|
|
798
792
|
const parsedOutput = {
|
|
799
793
|
...output,
|
|
800
794
|
body: await parseErrorBody(output.body, context),
|
|
@@ -803,13 +797,13 @@ const deserializeAws_restJson1UpdateNotificationRuleCommandError = async (output
|
|
|
803
797
|
switch (errorCode) {
|
|
804
798
|
case "ConfigurationException":
|
|
805
799
|
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
806
|
-
throw await
|
|
800
|
+
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
807
801
|
case "ResourceNotFoundException":
|
|
808
802
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
809
|
-
throw await
|
|
803
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
810
804
|
case "ValidationException":
|
|
811
805
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
812
|
-
throw await
|
|
806
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
813
807
|
default:
|
|
814
808
|
const parsedBody = parsedOutput.body;
|
|
815
809
|
throwDefaultError({
|
|
@@ -821,7 +815,7 @@ const deserializeAws_restJson1UpdateNotificationRuleCommandError = async (output
|
|
|
821
815
|
}
|
|
822
816
|
};
|
|
823
817
|
const map = __map;
|
|
824
|
-
const
|
|
818
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
825
819
|
const contents = map({});
|
|
826
820
|
const data = parsedOutput.body;
|
|
827
821
|
if (data.Message != null) {
|
|
@@ -833,7 +827,7 @@ const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutpu
|
|
|
833
827
|
});
|
|
834
828
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
835
829
|
};
|
|
836
|
-
const
|
|
830
|
+
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
837
831
|
const contents = map({});
|
|
838
832
|
const data = parsedOutput.body;
|
|
839
833
|
if (data.Message != null) {
|
|
@@ -845,7 +839,7 @@ const deserializeAws_restJson1ConcurrentModificationExceptionResponse = async (p
|
|
|
845
839
|
});
|
|
846
840
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
847
841
|
};
|
|
848
|
-
const
|
|
842
|
+
const de_ConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
849
843
|
const contents = map({});
|
|
850
844
|
const data = parsedOutput.body;
|
|
851
845
|
if (data.Message != null) {
|
|
@@ -857,7 +851,7 @@ const deserializeAws_restJson1ConfigurationExceptionResponse = async (parsedOutp
|
|
|
857
851
|
});
|
|
858
852
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
859
853
|
};
|
|
860
|
-
const
|
|
854
|
+
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
861
855
|
const contents = map({});
|
|
862
856
|
const data = parsedOutput.body;
|
|
863
857
|
if (data.Message != null) {
|
|
@@ -869,7 +863,7 @@ const deserializeAws_restJson1InvalidNextTokenExceptionResponse = async (parsedO
|
|
|
869
863
|
});
|
|
870
864
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
871
865
|
};
|
|
872
|
-
const
|
|
866
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
873
867
|
const contents = map({});
|
|
874
868
|
const data = parsedOutput.body;
|
|
875
869
|
if (data.Message != null) {
|
|
@@ -881,7 +875,7 @@ const deserializeAws_restJson1LimitExceededExceptionResponse = async (parsedOutp
|
|
|
881
875
|
});
|
|
882
876
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
883
877
|
};
|
|
884
|
-
const
|
|
878
|
+
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
885
879
|
const contents = map({});
|
|
886
880
|
const data = parsedOutput.body;
|
|
887
881
|
if (data.Message != null) {
|
|
@@ -893,7 +887,7 @@ const deserializeAws_restJson1ResourceAlreadyExistsExceptionResponse = async (pa
|
|
|
893
887
|
});
|
|
894
888
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
895
889
|
};
|
|
896
|
-
const
|
|
890
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
897
891
|
const contents = map({});
|
|
898
892
|
const data = parsedOutput.body;
|
|
899
893
|
if (data.Message != null) {
|
|
@@ -905,7 +899,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
905
899
|
});
|
|
906
900
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
907
901
|
};
|
|
908
|
-
const
|
|
902
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
909
903
|
const contents = map({});
|
|
910
904
|
const data = parsedOutput.body;
|
|
911
905
|
if (data.Message != null) {
|
|
@@ -917,53 +911,53 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
917
911
|
});
|
|
918
912
|
return __decorateServiceException(exception, parsedOutput.body);
|
|
919
913
|
};
|
|
920
|
-
const
|
|
914
|
+
const se_EventTypeIds = (input, context) => {
|
|
921
915
|
return input
|
|
922
916
|
.filter((e) => e != null)
|
|
923
917
|
.map((entry) => {
|
|
924
918
|
return entry;
|
|
925
919
|
});
|
|
926
920
|
};
|
|
927
|
-
const
|
|
921
|
+
const se_ListEventTypesFilter = (input, context) => {
|
|
928
922
|
return {
|
|
929
923
|
...(input.Name != null && { Name: input.Name }),
|
|
930
924
|
...(input.Value != null && { Value: input.Value }),
|
|
931
925
|
};
|
|
932
926
|
};
|
|
933
|
-
const
|
|
927
|
+
const se_ListEventTypesFilters = (input, context) => {
|
|
934
928
|
return input
|
|
935
929
|
.filter((e) => e != null)
|
|
936
930
|
.map((entry) => {
|
|
937
|
-
return
|
|
931
|
+
return se_ListEventTypesFilter(entry, context);
|
|
938
932
|
});
|
|
939
933
|
};
|
|
940
|
-
const
|
|
934
|
+
const se_ListNotificationRulesFilter = (input, context) => {
|
|
941
935
|
return {
|
|
942
936
|
...(input.Name != null && { Name: input.Name }),
|
|
943
937
|
...(input.Value != null && { Value: input.Value }),
|
|
944
938
|
};
|
|
945
939
|
};
|
|
946
|
-
const
|
|
940
|
+
const se_ListNotificationRulesFilters = (input, context) => {
|
|
947
941
|
return input
|
|
948
942
|
.filter((e) => e != null)
|
|
949
943
|
.map((entry) => {
|
|
950
|
-
return
|
|
944
|
+
return se_ListNotificationRulesFilter(entry, context);
|
|
951
945
|
});
|
|
952
946
|
};
|
|
953
|
-
const
|
|
947
|
+
const se_ListTargetsFilter = (input, context) => {
|
|
954
948
|
return {
|
|
955
949
|
...(input.Name != null && { Name: input.Name }),
|
|
956
950
|
...(input.Value != null && { Value: input.Value }),
|
|
957
951
|
};
|
|
958
952
|
};
|
|
959
|
-
const
|
|
953
|
+
const se_ListTargetsFilters = (input, context) => {
|
|
960
954
|
return input
|
|
961
955
|
.filter((e) => e != null)
|
|
962
956
|
.map((entry) => {
|
|
963
|
-
return
|
|
957
|
+
return se_ListTargetsFilter(entry, context);
|
|
964
958
|
});
|
|
965
959
|
};
|
|
966
|
-
const
|
|
960
|
+
const se_Tags = (input, context) => {
|
|
967
961
|
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
968
962
|
if (value === null) {
|
|
969
963
|
return acc;
|
|
@@ -972,31 +966,31 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
972
966
|
return acc;
|
|
973
967
|
}, {});
|
|
974
968
|
};
|
|
975
|
-
const
|
|
969
|
+
const se_Target = (input, context) => {
|
|
976
970
|
return {
|
|
977
971
|
...(input.TargetAddress != null && { TargetAddress: input.TargetAddress }),
|
|
978
972
|
...(input.TargetType != null && { TargetType: input.TargetType }),
|
|
979
973
|
};
|
|
980
974
|
};
|
|
981
|
-
const
|
|
975
|
+
const se_Targets = (input, context) => {
|
|
982
976
|
return input
|
|
983
977
|
.filter((e) => e != null)
|
|
984
978
|
.map((entry) => {
|
|
985
|
-
return
|
|
979
|
+
return se_Target(entry, context);
|
|
986
980
|
});
|
|
987
981
|
};
|
|
988
|
-
const
|
|
982
|
+
const de_EventTypeBatch = (output, context) => {
|
|
989
983
|
const retVal = (output || [])
|
|
990
984
|
.filter((e) => e != null)
|
|
991
985
|
.map((entry) => {
|
|
992
986
|
if (entry === null) {
|
|
993
987
|
return null;
|
|
994
988
|
}
|
|
995
|
-
return
|
|
989
|
+
return de_EventTypeSummary(entry, context);
|
|
996
990
|
});
|
|
997
991
|
return retVal;
|
|
998
992
|
};
|
|
999
|
-
const
|
|
993
|
+
const de_EventTypeSummary = (output, context) => {
|
|
1000
994
|
return {
|
|
1001
995
|
EventTypeId: __expectString(output.EventTypeId),
|
|
1002
996
|
EventTypeName: __expectString(output.EventTypeName),
|
|
@@ -1004,24 +998,24 @@ const deserializeAws_restJson1EventTypeSummary = (output, context) => {
|
|
|
1004
998
|
ServiceName: __expectString(output.ServiceName),
|
|
1005
999
|
};
|
|
1006
1000
|
};
|
|
1007
|
-
const
|
|
1001
|
+
const de_NotificationRuleBatch = (output, context) => {
|
|
1008
1002
|
const retVal = (output || [])
|
|
1009
1003
|
.filter((e) => e != null)
|
|
1010
1004
|
.map((entry) => {
|
|
1011
1005
|
if (entry === null) {
|
|
1012
1006
|
return null;
|
|
1013
1007
|
}
|
|
1014
|
-
return
|
|
1008
|
+
return de_NotificationRuleSummary(entry, context);
|
|
1015
1009
|
});
|
|
1016
1010
|
return retVal;
|
|
1017
1011
|
};
|
|
1018
|
-
const
|
|
1012
|
+
const de_NotificationRuleSummary = (output, context) => {
|
|
1019
1013
|
return {
|
|
1020
1014
|
Arn: __expectString(output.Arn),
|
|
1021
1015
|
Id: __expectString(output.Id),
|
|
1022
1016
|
};
|
|
1023
1017
|
};
|
|
1024
|
-
const
|
|
1018
|
+
const de_Tags = (output, context) => {
|
|
1025
1019
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
1026
1020
|
if (value === null) {
|
|
1027
1021
|
return acc;
|
|
@@ -1030,18 +1024,18 @@ const deserializeAws_restJson1Tags = (output, context) => {
|
|
|
1030
1024
|
return acc;
|
|
1031
1025
|
}, {});
|
|
1032
1026
|
};
|
|
1033
|
-
const
|
|
1027
|
+
const de_TargetsBatch = (output, context) => {
|
|
1034
1028
|
const retVal = (output || [])
|
|
1035
1029
|
.filter((e) => e != null)
|
|
1036
1030
|
.map((entry) => {
|
|
1037
1031
|
if (entry === null) {
|
|
1038
1032
|
return null;
|
|
1039
1033
|
}
|
|
1040
|
-
return
|
|
1034
|
+
return de_TargetSummary(entry, context);
|
|
1041
1035
|
});
|
|
1042
1036
|
return retVal;
|
|
1043
1037
|
};
|
|
1044
|
-
const
|
|
1038
|
+
const de_TargetSummary = (output, context) => {
|
|
1045
1039
|
return {
|
|
1046
1040
|
TargetAddress: __expectString(output.TargetAddress),
|
|
1047
1041
|
TargetStatus: __expectString(output.TargetStatus),
|