@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
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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
|
|
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:
|
|
26
|
-
...(input.Targets != null && { Targets:
|
|
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.
|
|
39
|
-
const
|
|
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.
|
|
60
|
-
const
|
|
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.
|
|
82
|
-
const
|
|
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.
|
|
103
|
-
const
|
|
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:
|
|
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.
|
|
126
|
-
const
|
|
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.
|
|
151
|
-
const
|
|
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.
|
|
172
|
-
const
|
|
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:
|
|
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.
|
|
195
|
-
const
|
|
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:
|
|
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.
|
|
218
|
-
const
|
|
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:
|
|
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.
|
|
240
|
-
const
|
|
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.
|
|
262
|
-
const
|
|
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.
|
|
286
|
-
const
|
|
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:
|
|
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.
|
|
314
|
-
const
|
|
307
|
+
exports.se_UpdateNotificationRuleCommand = se_UpdateNotificationRuleCommand;
|
|
308
|
+
const de_CreateNotificationRuleCommand = async (output, context) => {
|
|
315
309
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
316
|
-
return
|
|
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.
|
|
328
|
-
const
|
|
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
|
|
331
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
338
332
|
case "ConcurrentModificationException":
|
|
339
333
|
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
340
|
-
throw await
|
|
334
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
341
335
|
case "ConfigurationException":
|
|
342
336
|
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
343
|
-
throw await
|
|
337
|
+
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
344
338
|
case "LimitExceededException":
|
|
345
339
|
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
346
|
-
throw await
|
|
340
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
347
341
|
case "ResourceAlreadyExistsException":
|
|
348
342
|
case "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException":
|
|
349
|
-
throw await
|
|
343
|
+
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
350
344
|
case "ValidationException":
|
|
351
345
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
352
|
-
throw await
|
|
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
|
|
357
|
+
const de_DeleteNotificationRuleCommand = async (output, context) => {
|
|
364
358
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
365
|
-
return
|
|
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.
|
|
377
|
-
const
|
|
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
|
|
380
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
387
381
|
case "LimitExceededException":
|
|
388
382
|
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
389
|
-
throw await
|
|
383
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
390
384
|
case "ValidationException":
|
|
391
385
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
392
|
-
throw await
|
|
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
|
|
397
|
+
const de_DeleteTargetCommand = async (output, context) => {
|
|
404
398
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
405
|
-
return
|
|
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.
|
|
414
|
-
const
|
|
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
|
|
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
|
|
428
|
+
const de_DescribeNotificationRuleCommand = async (output, context) => {
|
|
435
429
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
436
|
-
return
|
|
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 =
|
|
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 =
|
|
464
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
471
465
|
}
|
|
472
466
|
if (data.Targets != null) {
|
|
473
|
-
contents.Targets =
|
|
467
|
+
contents.Targets = de_TargetsBatch(data.Targets, context);
|
|
474
468
|
}
|
|
475
469
|
return contents;
|
|
476
470
|
};
|
|
477
|
-
exports.
|
|
478
|
-
const
|
|
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
|
|
481
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
488
482
|
case "ValidationException":
|
|
489
483
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
490
|
-
throw await
|
|
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
|
|
495
|
+
const de_ListEventTypesCommand = async (output, context) => {
|
|
502
496
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
503
|
-
return
|
|
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 =
|
|
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.
|
|
518
|
-
const
|
|
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
|
|
521
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
528
522
|
case "ValidationException":
|
|
529
523
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
530
|
-
throw await
|
|
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
|
|
535
|
+
const de_ListNotificationRulesCommand = async (output, context) => {
|
|
542
536
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
543
|
-
return
|
|
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 =
|
|
547
|
+
contents.NotificationRules = de_NotificationRuleBatch(data.NotificationRules, context);
|
|
554
548
|
}
|
|
555
549
|
return contents;
|
|
556
550
|
};
|
|
557
|
-
exports.
|
|
558
|
-
const
|
|
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
|
|
561
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
568
562
|
case "ValidationException":
|
|
569
563
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
570
|
-
throw await
|
|
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
|
|
575
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
582
576
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
583
|
-
return
|
|
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 =
|
|
584
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
591
585
|
}
|
|
592
586
|
return contents;
|
|
593
587
|
};
|
|
594
|
-
exports.
|
|
595
|
-
const
|
|
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
|
|
598
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
605
599
|
case "ValidationException":
|
|
606
600
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
607
|
-
throw await
|
|
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
|
|
612
|
+
const de_ListTargetsCommand = async (output, context) => {
|
|
619
613
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
620
|
-
return
|
|
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 =
|
|
624
|
+
contents.Targets = de_TargetsBatch(data.Targets, context);
|
|
631
625
|
}
|
|
632
626
|
return contents;
|
|
633
627
|
};
|
|
634
|
-
exports.
|
|
635
|
-
const
|
|
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
|
|
638
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
645
639
|
case "ValidationException":
|
|
646
640
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
647
|
-
throw await
|
|
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
|
|
652
|
+
const de_SubscribeCommand = async (output, context) => {
|
|
659
653
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
660
|
-
return
|
|
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.
|
|
672
|
-
const
|
|
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
|
|
675
|
+
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
682
676
|
case "ResourceNotFoundException":
|
|
683
677
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
684
|
-
throw await
|
|
678
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
685
679
|
case "ValidationException":
|
|
686
680
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
687
|
-
throw await
|
|
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
|
|
692
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
699
693
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
700
|
-
return
|
|
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 =
|
|
701
|
+
contents.Tags = de_Tags(data.Tags, context);
|
|
708
702
|
}
|
|
709
703
|
return contents;
|
|
710
704
|
};
|
|
711
|
-
exports.
|
|
712
|
-
const
|
|
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
|
|
715
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
722
716
|
case "LimitExceededException":
|
|
723
717
|
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
724
|
-
throw await
|
|
718
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
725
719
|
case "ResourceNotFoundException":
|
|
726
720
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
727
|
-
throw await
|
|
721
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
728
722
|
case "ValidationException":
|
|
729
723
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
730
|
-
throw await
|
|
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
|
|
735
|
+
const de_UnsubscribeCommand = async (output, context) => {
|
|
742
736
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
743
|
-
return
|
|
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.
|
|
755
|
-
const
|
|
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
|
|
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
|
|
769
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
776
770
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
777
|
-
return
|
|
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.
|
|
786
|
-
const
|
|
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
|
|
789
|
+
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
796
790
|
case "LimitExceededException":
|
|
797
791
|
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
798
|
-
throw await
|
|
792
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
799
793
|
case "ResourceNotFoundException":
|
|
800
794
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
801
|
-
throw await
|
|
795
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
802
796
|
case "ValidationException":
|
|
803
797
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
804
|
-
throw await
|
|
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
|
|
809
|
+
const de_UpdateNotificationRuleCommand = async (output, context) => {
|
|
816
810
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
817
|
-
return
|
|
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.
|
|
826
|
-
const
|
|
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
|
|
829
|
+
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
836
830
|
case "ResourceNotFoundException":
|
|
837
831
|
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
838
|
-
throw await
|
|
832
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
839
833
|
case "ValidationException":
|
|
840
834
|
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
841
|
-
throw await
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
956
|
+
const se_ListEventTypesFilters = (input, context) => {
|
|
963
957
|
return input
|
|
964
958
|
.filter((e) => e != null)
|
|
965
959
|
.map((entry) => {
|
|
966
|
-
return
|
|
960
|
+
return se_ListEventTypesFilter(entry, context);
|
|
967
961
|
});
|
|
968
962
|
};
|
|
969
|
-
const
|
|
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
|
|
969
|
+
const se_ListNotificationRulesFilters = (input, context) => {
|
|
976
970
|
return input
|
|
977
971
|
.filter((e) => e != null)
|
|
978
972
|
.map((entry) => {
|
|
979
|
-
return
|
|
973
|
+
return se_ListNotificationRulesFilter(entry, context);
|
|
980
974
|
});
|
|
981
975
|
};
|
|
982
|
-
const
|
|
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
|
|
982
|
+
const se_ListTargetsFilters = (input, context) => {
|
|
989
983
|
return input
|
|
990
984
|
.filter((e) => e != null)
|
|
991
985
|
.map((entry) => {
|
|
992
|
-
return
|
|
986
|
+
return se_ListTargetsFilter(entry, context);
|
|
993
987
|
});
|
|
994
988
|
};
|
|
995
|
-
const
|
|
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
|
|
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
|
|
1004
|
+
const se_Targets = (input, context) => {
|
|
1011
1005
|
return input
|
|
1012
1006
|
.filter((e) => e != null)
|
|
1013
1007
|
.map((entry) => {
|
|
1014
|
-
return
|
|
1008
|
+
return se_Target(entry, context);
|
|
1015
1009
|
});
|
|
1016
1010
|
};
|
|
1017
|
-
const
|
|
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
|
|
1018
|
+
return de_EventTypeSummary(entry, context);
|
|
1025
1019
|
});
|
|
1026
1020
|
return retVal;
|
|
1027
1021
|
};
|
|
1028
|
-
const
|
|
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
|
|
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
|
|
1037
|
+
return de_NotificationRuleSummary(entry, context);
|
|
1044
1038
|
});
|
|
1045
1039
|
return retVal;
|
|
1046
1040
|
};
|
|
1047
|
-
const
|
|
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
|
|
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
|
|
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
|
|
1063
|
+
return de_TargetSummary(entry, context);
|
|
1070
1064
|
});
|
|
1071
1065
|
return retVal;
|
|
1072
1066
|
};
|
|
1073
|
-
const
|
|
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),
|