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