@aws-sdk/client-codestar-notifications 3.928.0 → 3.930.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +492 -694
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/CodestarNotificationsClient.js +2 -0
- package/dist-es/commands/CreateNotificationRuleCommand.js +3 -10
- package/dist-es/commands/DeleteNotificationRuleCommand.js +3 -9
- package/dist-es/commands/DeleteTargetCommand.js +3 -10
- package/dist-es/commands/DescribeNotificationRuleCommand.js +3 -10
- package/dist-es/commands/ListEventTypesCommand.js +3 -9
- package/dist-es/commands/ListNotificationRulesCommand.js +3 -9
- package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
- package/dist-es/commands/ListTargetsCommand.js +3 -10
- package/dist-es/commands/SubscribeCommand.js +3 -10
- package/dist-es/commands/TagResourceCommand.js +3 -9
- package/dist-es/commands/UnsubscribeCommand.js +3 -10
- package/dist-es/commands/UntagResourceCommand.js +3 -9
- package/dist-es/commands/UpdateNotificationRuleCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -40
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +446 -0
- package/dist-types/CodestarNotificationsClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +0 -36
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +69 -0
- package/dist-types/ts3.4/CodestarNotificationsClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -25
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +75 -0
- package/package.json +33 -34
- package/dist-es/protocols/Aws_restJson1.js +0 -534
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -119
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -161
|
@@ -1,534 +0,0 @@
|
|
|
1
|
-
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
2
|
-
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
|
-
import { v4 as generateIdempotencyToken } from "@smithy/uuid";
|
|
5
|
-
import { CodestarNotificationsServiceException as __BaseException } from "../models/CodestarNotificationsServiceException";
|
|
6
|
-
import { AccessDeniedException, ConcurrentModificationException, ConfigurationException, InvalidNextTokenException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
7
|
-
export const se_CreateNotificationRuleCommand = async (input, context) => {
|
|
8
|
-
const b = rb(input, context);
|
|
9
|
-
const headers = {
|
|
10
|
-
"content-type": "application/json",
|
|
11
|
-
};
|
|
12
|
-
b.bp("/createNotificationRule");
|
|
13
|
-
let body;
|
|
14
|
-
body = JSON.stringify(take(input, {
|
|
15
|
-
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
16
|
-
DetailType: [],
|
|
17
|
-
EventTypeIds: (_) => _json(_),
|
|
18
|
-
Name: [],
|
|
19
|
-
Resource: [],
|
|
20
|
-
Status: [],
|
|
21
|
-
Tags: (_) => _json(_),
|
|
22
|
-
Targets: (_) => _json(_),
|
|
23
|
-
}));
|
|
24
|
-
b.m("POST").h(headers).b(body);
|
|
25
|
-
return b.build();
|
|
26
|
-
};
|
|
27
|
-
export const se_DeleteNotificationRuleCommand = async (input, context) => {
|
|
28
|
-
const b = rb(input, context);
|
|
29
|
-
const headers = {
|
|
30
|
-
"content-type": "application/json",
|
|
31
|
-
};
|
|
32
|
-
b.bp("/deleteNotificationRule");
|
|
33
|
-
let body;
|
|
34
|
-
body = JSON.stringify(take(input, {
|
|
35
|
-
Arn: [],
|
|
36
|
-
}));
|
|
37
|
-
b.m("POST").h(headers).b(body);
|
|
38
|
-
return b.build();
|
|
39
|
-
};
|
|
40
|
-
export const se_DeleteTargetCommand = async (input, context) => {
|
|
41
|
-
const b = rb(input, context);
|
|
42
|
-
const headers = {
|
|
43
|
-
"content-type": "application/json",
|
|
44
|
-
};
|
|
45
|
-
b.bp("/deleteTarget");
|
|
46
|
-
let body;
|
|
47
|
-
body = JSON.stringify(take(input, {
|
|
48
|
-
ForceUnsubscribeAll: [],
|
|
49
|
-
TargetAddress: [],
|
|
50
|
-
}));
|
|
51
|
-
b.m("POST").h(headers).b(body);
|
|
52
|
-
return b.build();
|
|
53
|
-
};
|
|
54
|
-
export const se_DescribeNotificationRuleCommand = async (input, context) => {
|
|
55
|
-
const b = rb(input, context);
|
|
56
|
-
const headers = {
|
|
57
|
-
"content-type": "application/json",
|
|
58
|
-
};
|
|
59
|
-
b.bp("/describeNotificationRule");
|
|
60
|
-
let body;
|
|
61
|
-
body = JSON.stringify(take(input, {
|
|
62
|
-
Arn: [],
|
|
63
|
-
}));
|
|
64
|
-
b.m("POST").h(headers).b(body);
|
|
65
|
-
return b.build();
|
|
66
|
-
};
|
|
67
|
-
export const se_ListEventTypesCommand = async (input, context) => {
|
|
68
|
-
const b = rb(input, context);
|
|
69
|
-
const headers = {
|
|
70
|
-
"content-type": "application/json",
|
|
71
|
-
};
|
|
72
|
-
b.bp("/listEventTypes");
|
|
73
|
-
let body;
|
|
74
|
-
body = JSON.stringify(take(input, {
|
|
75
|
-
Filters: (_) => _json(_),
|
|
76
|
-
MaxResults: [],
|
|
77
|
-
NextToken: [],
|
|
78
|
-
}));
|
|
79
|
-
b.m("POST").h(headers).b(body);
|
|
80
|
-
return b.build();
|
|
81
|
-
};
|
|
82
|
-
export const se_ListNotificationRulesCommand = async (input, context) => {
|
|
83
|
-
const b = rb(input, context);
|
|
84
|
-
const headers = {
|
|
85
|
-
"content-type": "application/json",
|
|
86
|
-
};
|
|
87
|
-
b.bp("/listNotificationRules");
|
|
88
|
-
let body;
|
|
89
|
-
body = JSON.stringify(take(input, {
|
|
90
|
-
Filters: (_) => _json(_),
|
|
91
|
-
MaxResults: [],
|
|
92
|
-
NextToken: [],
|
|
93
|
-
}));
|
|
94
|
-
b.m("POST").h(headers).b(body);
|
|
95
|
-
return b.build();
|
|
96
|
-
};
|
|
97
|
-
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
98
|
-
const b = rb(input, context);
|
|
99
|
-
const headers = {
|
|
100
|
-
"content-type": "application/json",
|
|
101
|
-
};
|
|
102
|
-
b.bp("/listTagsForResource");
|
|
103
|
-
let body;
|
|
104
|
-
body = JSON.stringify(take(input, {
|
|
105
|
-
Arn: [],
|
|
106
|
-
}));
|
|
107
|
-
b.m("POST").h(headers).b(body);
|
|
108
|
-
return b.build();
|
|
109
|
-
};
|
|
110
|
-
export const se_ListTargetsCommand = async (input, context) => {
|
|
111
|
-
const b = rb(input, context);
|
|
112
|
-
const headers = {
|
|
113
|
-
"content-type": "application/json",
|
|
114
|
-
};
|
|
115
|
-
b.bp("/listTargets");
|
|
116
|
-
let body;
|
|
117
|
-
body = JSON.stringify(take(input, {
|
|
118
|
-
Filters: (_) => _json(_),
|
|
119
|
-
MaxResults: [],
|
|
120
|
-
NextToken: [],
|
|
121
|
-
}));
|
|
122
|
-
b.m("POST").h(headers).b(body);
|
|
123
|
-
return b.build();
|
|
124
|
-
};
|
|
125
|
-
export const se_SubscribeCommand = async (input, context) => {
|
|
126
|
-
const b = rb(input, context);
|
|
127
|
-
const headers = {
|
|
128
|
-
"content-type": "application/json",
|
|
129
|
-
};
|
|
130
|
-
b.bp("/subscribe");
|
|
131
|
-
let body;
|
|
132
|
-
body = JSON.stringify(take(input, {
|
|
133
|
-
Arn: [],
|
|
134
|
-
ClientRequestToken: [],
|
|
135
|
-
Target: (_) => _json(_),
|
|
136
|
-
}));
|
|
137
|
-
b.m("POST").h(headers).b(body);
|
|
138
|
-
return b.build();
|
|
139
|
-
};
|
|
140
|
-
export const se_TagResourceCommand = async (input, context) => {
|
|
141
|
-
const b = rb(input, context);
|
|
142
|
-
const headers = {
|
|
143
|
-
"content-type": "application/json",
|
|
144
|
-
};
|
|
145
|
-
b.bp("/tagResource");
|
|
146
|
-
let body;
|
|
147
|
-
body = JSON.stringify(take(input, {
|
|
148
|
-
Arn: [],
|
|
149
|
-
Tags: (_) => _json(_),
|
|
150
|
-
}));
|
|
151
|
-
b.m("POST").h(headers).b(body);
|
|
152
|
-
return b.build();
|
|
153
|
-
};
|
|
154
|
-
export const se_UnsubscribeCommand = async (input, context) => {
|
|
155
|
-
const b = rb(input, context);
|
|
156
|
-
const headers = {
|
|
157
|
-
"content-type": "application/json",
|
|
158
|
-
};
|
|
159
|
-
b.bp("/unsubscribe");
|
|
160
|
-
let body;
|
|
161
|
-
body = JSON.stringify(take(input, {
|
|
162
|
-
Arn: [],
|
|
163
|
-
TargetAddress: [],
|
|
164
|
-
}));
|
|
165
|
-
b.m("POST").h(headers).b(body);
|
|
166
|
-
return b.build();
|
|
167
|
-
};
|
|
168
|
-
export const se_UntagResourceCommand = async (input, context) => {
|
|
169
|
-
const b = rb(input, context);
|
|
170
|
-
const headers = {};
|
|
171
|
-
b.bp("/untagResource/{Arn}");
|
|
172
|
-
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
173
|
-
const query = map({
|
|
174
|
-
[_tK]: [__expectNonNull(input.TagKeys, `TagKeys`) != null, () => input[_TK] || []],
|
|
175
|
-
});
|
|
176
|
-
let body;
|
|
177
|
-
b.m("POST").h(headers).q(query).b(body);
|
|
178
|
-
return b.build();
|
|
179
|
-
};
|
|
180
|
-
export const se_UpdateNotificationRuleCommand = async (input, context) => {
|
|
181
|
-
const b = rb(input, context);
|
|
182
|
-
const headers = {
|
|
183
|
-
"content-type": "application/json",
|
|
184
|
-
};
|
|
185
|
-
b.bp("/updateNotificationRule");
|
|
186
|
-
let body;
|
|
187
|
-
body = JSON.stringify(take(input, {
|
|
188
|
-
Arn: [],
|
|
189
|
-
DetailType: [],
|
|
190
|
-
EventTypeIds: (_) => _json(_),
|
|
191
|
-
Name: [],
|
|
192
|
-
Status: [],
|
|
193
|
-
Targets: (_) => _json(_),
|
|
194
|
-
}));
|
|
195
|
-
b.m("POST").h(headers).b(body);
|
|
196
|
-
return b.build();
|
|
197
|
-
};
|
|
198
|
-
export const de_CreateNotificationRuleCommand = async (output, context) => {
|
|
199
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
200
|
-
return de_CommandError(output, context);
|
|
201
|
-
}
|
|
202
|
-
const contents = map({
|
|
203
|
-
$metadata: deserializeMetadata(output),
|
|
204
|
-
});
|
|
205
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
206
|
-
const doc = take(data, {
|
|
207
|
-
Arn: __expectString,
|
|
208
|
-
});
|
|
209
|
-
Object.assign(contents, doc);
|
|
210
|
-
return contents;
|
|
211
|
-
};
|
|
212
|
-
export const de_DeleteNotificationRuleCommand = async (output, context) => {
|
|
213
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
214
|
-
return de_CommandError(output, context);
|
|
215
|
-
}
|
|
216
|
-
const contents = map({
|
|
217
|
-
$metadata: deserializeMetadata(output),
|
|
218
|
-
});
|
|
219
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
220
|
-
const doc = take(data, {
|
|
221
|
-
Arn: __expectString,
|
|
222
|
-
});
|
|
223
|
-
Object.assign(contents, doc);
|
|
224
|
-
return contents;
|
|
225
|
-
};
|
|
226
|
-
export const de_DeleteTargetCommand = async (output, context) => {
|
|
227
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
228
|
-
return de_CommandError(output, context);
|
|
229
|
-
}
|
|
230
|
-
const contents = map({
|
|
231
|
-
$metadata: deserializeMetadata(output),
|
|
232
|
-
});
|
|
233
|
-
await collectBody(output.body, context);
|
|
234
|
-
return contents;
|
|
235
|
-
};
|
|
236
|
-
export const de_DescribeNotificationRuleCommand = async (output, context) => {
|
|
237
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
238
|
-
return de_CommandError(output, context);
|
|
239
|
-
}
|
|
240
|
-
const contents = map({
|
|
241
|
-
$metadata: deserializeMetadata(output),
|
|
242
|
-
});
|
|
243
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
244
|
-
const doc = take(data, {
|
|
245
|
-
Arn: __expectString,
|
|
246
|
-
CreatedBy: __expectString,
|
|
247
|
-
CreatedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
248
|
-
DetailType: __expectString,
|
|
249
|
-
EventTypes: _json,
|
|
250
|
-
LastModifiedTimestamp: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
|
|
251
|
-
Name: __expectString,
|
|
252
|
-
Resource: __expectString,
|
|
253
|
-
Status: __expectString,
|
|
254
|
-
Tags: _json,
|
|
255
|
-
Targets: _json,
|
|
256
|
-
});
|
|
257
|
-
Object.assign(contents, doc);
|
|
258
|
-
return contents;
|
|
259
|
-
};
|
|
260
|
-
export const de_ListEventTypesCommand = async (output, context) => {
|
|
261
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
262
|
-
return de_CommandError(output, context);
|
|
263
|
-
}
|
|
264
|
-
const contents = map({
|
|
265
|
-
$metadata: deserializeMetadata(output),
|
|
266
|
-
});
|
|
267
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
268
|
-
const doc = take(data, {
|
|
269
|
-
EventTypes: _json,
|
|
270
|
-
NextToken: __expectString,
|
|
271
|
-
});
|
|
272
|
-
Object.assign(contents, doc);
|
|
273
|
-
return contents;
|
|
274
|
-
};
|
|
275
|
-
export const de_ListNotificationRulesCommand = async (output, context) => {
|
|
276
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
277
|
-
return de_CommandError(output, context);
|
|
278
|
-
}
|
|
279
|
-
const contents = map({
|
|
280
|
-
$metadata: deserializeMetadata(output),
|
|
281
|
-
});
|
|
282
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
283
|
-
const doc = take(data, {
|
|
284
|
-
NextToken: __expectString,
|
|
285
|
-
NotificationRules: _json,
|
|
286
|
-
});
|
|
287
|
-
Object.assign(contents, doc);
|
|
288
|
-
return contents;
|
|
289
|
-
};
|
|
290
|
-
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
291
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
292
|
-
return de_CommandError(output, context);
|
|
293
|
-
}
|
|
294
|
-
const contents = map({
|
|
295
|
-
$metadata: deserializeMetadata(output),
|
|
296
|
-
});
|
|
297
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
298
|
-
const doc = take(data, {
|
|
299
|
-
Tags: _json,
|
|
300
|
-
});
|
|
301
|
-
Object.assign(contents, doc);
|
|
302
|
-
return contents;
|
|
303
|
-
};
|
|
304
|
-
export const de_ListTargetsCommand = async (output, context) => {
|
|
305
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
306
|
-
return de_CommandError(output, context);
|
|
307
|
-
}
|
|
308
|
-
const contents = map({
|
|
309
|
-
$metadata: deserializeMetadata(output),
|
|
310
|
-
});
|
|
311
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
312
|
-
const doc = take(data, {
|
|
313
|
-
NextToken: __expectString,
|
|
314
|
-
Targets: _json,
|
|
315
|
-
});
|
|
316
|
-
Object.assign(contents, doc);
|
|
317
|
-
return contents;
|
|
318
|
-
};
|
|
319
|
-
export const de_SubscribeCommand = async (output, context) => {
|
|
320
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
321
|
-
return de_CommandError(output, context);
|
|
322
|
-
}
|
|
323
|
-
const contents = map({
|
|
324
|
-
$metadata: deserializeMetadata(output),
|
|
325
|
-
});
|
|
326
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
327
|
-
const doc = take(data, {
|
|
328
|
-
Arn: __expectString,
|
|
329
|
-
});
|
|
330
|
-
Object.assign(contents, doc);
|
|
331
|
-
return contents;
|
|
332
|
-
};
|
|
333
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
334
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
335
|
-
return de_CommandError(output, context);
|
|
336
|
-
}
|
|
337
|
-
const contents = map({
|
|
338
|
-
$metadata: deserializeMetadata(output),
|
|
339
|
-
});
|
|
340
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
341
|
-
const doc = take(data, {
|
|
342
|
-
Tags: _json,
|
|
343
|
-
});
|
|
344
|
-
Object.assign(contents, doc);
|
|
345
|
-
return contents;
|
|
346
|
-
};
|
|
347
|
-
export const de_UnsubscribeCommand = async (output, context) => {
|
|
348
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
349
|
-
return de_CommandError(output, context);
|
|
350
|
-
}
|
|
351
|
-
const contents = map({
|
|
352
|
-
$metadata: deserializeMetadata(output),
|
|
353
|
-
});
|
|
354
|
-
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
355
|
-
const doc = take(data, {
|
|
356
|
-
Arn: __expectString,
|
|
357
|
-
});
|
|
358
|
-
Object.assign(contents, doc);
|
|
359
|
-
return contents;
|
|
360
|
-
};
|
|
361
|
-
export const de_UntagResourceCommand = async (output, context) => {
|
|
362
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
363
|
-
return de_CommandError(output, context);
|
|
364
|
-
}
|
|
365
|
-
const contents = map({
|
|
366
|
-
$metadata: deserializeMetadata(output),
|
|
367
|
-
});
|
|
368
|
-
await collectBody(output.body, context);
|
|
369
|
-
return contents;
|
|
370
|
-
};
|
|
371
|
-
export const de_UpdateNotificationRuleCommand = async (output, context) => {
|
|
372
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
373
|
-
return de_CommandError(output, context);
|
|
374
|
-
}
|
|
375
|
-
const contents = map({
|
|
376
|
-
$metadata: deserializeMetadata(output),
|
|
377
|
-
});
|
|
378
|
-
await collectBody(output.body, context);
|
|
379
|
-
return contents;
|
|
380
|
-
};
|
|
381
|
-
const de_CommandError = async (output, context) => {
|
|
382
|
-
const parsedOutput = {
|
|
383
|
-
...output,
|
|
384
|
-
body: await parseErrorBody(output.body, context),
|
|
385
|
-
};
|
|
386
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
387
|
-
switch (errorCode) {
|
|
388
|
-
case "AccessDeniedException":
|
|
389
|
-
case "com.amazonaws.codestarnotifications#AccessDeniedException":
|
|
390
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
391
|
-
case "ConcurrentModificationException":
|
|
392
|
-
case "com.amazonaws.codestarnotifications#ConcurrentModificationException":
|
|
393
|
-
throw await de_ConcurrentModificationExceptionRes(parsedOutput, context);
|
|
394
|
-
case "ConfigurationException":
|
|
395
|
-
case "com.amazonaws.codestarnotifications#ConfigurationException":
|
|
396
|
-
throw await de_ConfigurationExceptionRes(parsedOutput, context);
|
|
397
|
-
case "LimitExceededException":
|
|
398
|
-
case "com.amazonaws.codestarnotifications#LimitExceededException":
|
|
399
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
400
|
-
case "ResourceAlreadyExistsException":
|
|
401
|
-
case "com.amazonaws.codestarnotifications#ResourceAlreadyExistsException":
|
|
402
|
-
throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
|
|
403
|
-
case "ValidationException":
|
|
404
|
-
case "com.amazonaws.codestarnotifications#ValidationException":
|
|
405
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
406
|
-
case "ResourceNotFoundException":
|
|
407
|
-
case "com.amazonaws.codestarnotifications#ResourceNotFoundException":
|
|
408
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
409
|
-
case "InvalidNextTokenException":
|
|
410
|
-
case "com.amazonaws.codestarnotifications#InvalidNextTokenException":
|
|
411
|
-
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
412
|
-
default:
|
|
413
|
-
const parsedBody = parsedOutput.body;
|
|
414
|
-
return throwDefaultError({
|
|
415
|
-
output,
|
|
416
|
-
parsedBody,
|
|
417
|
-
errorCode,
|
|
418
|
-
});
|
|
419
|
-
}
|
|
420
|
-
};
|
|
421
|
-
const throwDefaultError = withBaseException(__BaseException);
|
|
422
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
423
|
-
const contents = map({});
|
|
424
|
-
const data = parsedOutput.body;
|
|
425
|
-
const doc = take(data, {
|
|
426
|
-
Message: __expectString,
|
|
427
|
-
});
|
|
428
|
-
Object.assign(contents, doc);
|
|
429
|
-
const exception = new AccessDeniedException({
|
|
430
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
431
|
-
...contents,
|
|
432
|
-
});
|
|
433
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
434
|
-
};
|
|
435
|
-
const de_ConcurrentModificationExceptionRes = async (parsedOutput, context) => {
|
|
436
|
-
const contents = map({});
|
|
437
|
-
const data = parsedOutput.body;
|
|
438
|
-
const doc = take(data, {
|
|
439
|
-
Message: __expectString,
|
|
440
|
-
});
|
|
441
|
-
Object.assign(contents, doc);
|
|
442
|
-
const exception = new ConcurrentModificationException({
|
|
443
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
444
|
-
...contents,
|
|
445
|
-
});
|
|
446
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
447
|
-
};
|
|
448
|
-
const de_ConfigurationExceptionRes = async (parsedOutput, context) => {
|
|
449
|
-
const contents = map({});
|
|
450
|
-
const data = parsedOutput.body;
|
|
451
|
-
const doc = take(data, {
|
|
452
|
-
Message: __expectString,
|
|
453
|
-
});
|
|
454
|
-
Object.assign(contents, doc);
|
|
455
|
-
const exception = new ConfigurationException({
|
|
456
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
457
|
-
...contents,
|
|
458
|
-
});
|
|
459
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
460
|
-
};
|
|
461
|
-
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
462
|
-
const contents = map({});
|
|
463
|
-
const data = parsedOutput.body;
|
|
464
|
-
const doc = take(data, {
|
|
465
|
-
Message: __expectString,
|
|
466
|
-
});
|
|
467
|
-
Object.assign(contents, doc);
|
|
468
|
-
const exception = new InvalidNextTokenException({
|
|
469
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
470
|
-
...contents,
|
|
471
|
-
});
|
|
472
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
473
|
-
};
|
|
474
|
-
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
475
|
-
const contents = map({});
|
|
476
|
-
const data = parsedOutput.body;
|
|
477
|
-
const doc = take(data, {
|
|
478
|
-
Message: __expectString,
|
|
479
|
-
});
|
|
480
|
-
Object.assign(contents, doc);
|
|
481
|
-
const exception = new LimitExceededException({
|
|
482
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
483
|
-
...contents,
|
|
484
|
-
});
|
|
485
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
486
|
-
};
|
|
487
|
-
const de_ResourceAlreadyExistsExceptionRes = async (parsedOutput, context) => {
|
|
488
|
-
const contents = map({});
|
|
489
|
-
const data = parsedOutput.body;
|
|
490
|
-
const doc = take(data, {
|
|
491
|
-
Message: __expectString,
|
|
492
|
-
});
|
|
493
|
-
Object.assign(contents, doc);
|
|
494
|
-
const exception = new ResourceAlreadyExistsException({
|
|
495
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
496
|
-
...contents,
|
|
497
|
-
});
|
|
498
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
499
|
-
};
|
|
500
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
501
|
-
const contents = map({});
|
|
502
|
-
const data = parsedOutput.body;
|
|
503
|
-
const doc = take(data, {
|
|
504
|
-
Message: __expectString,
|
|
505
|
-
});
|
|
506
|
-
Object.assign(contents, doc);
|
|
507
|
-
const exception = new ResourceNotFoundException({
|
|
508
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
509
|
-
...contents,
|
|
510
|
-
});
|
|
511
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
512
|
-
};
|
|
513
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
514
|
-
const contents = map({});
|
|
515
|
-
const data = parsedOutput.body;
|
|
516
|
-
const doc = take(data, {
|
|
517
|
-
Message: __expectString,
|
|
518
|
-
});
|
|
519
|
-
Object.assign(contents, doc);
|
|
520
|
-
const exception = new ValidationException({
|
|
521
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
522
|
-
...contents,
|
|
523
|
-
});
|
|
524
|
-
return __decorateServiceException(exception, parsedOutput.body);
|
|
525
|
-
};
|
|
526
|
-
const deserializeMetadata = (output) => ({
|
|
527
|
-
httpStatusCode: output.statusCode,
|
|
528
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
529
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
530
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
531
|
-
});
|
|
532
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
533
|
-
const _TK = "TagKeys";
|
|
534
|
-
const _tK = "tagKeys";
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
|
|
2
|
-
import { SerdeContext as __SerdeContext } from "@smithy/types";
|
|
3
|
-
import { CreateNotificationRuleCommandInput, CreateNotificationRuleCommandOutput } from "../commands/CreateNotificationRuleCommand";
|
|
4
|
-
import { DeleteNotificationRuleCommandInput, DeleteNotificationRuleCommandOutput } from "../commands/DeleteNotificationRuleCommand";
|
|
5
|
-
import { DeleteTargetCommandInput, DeleteTargetCommandOutput } from "../commands/DeleteTargetCommand";
|
|
6
|
-
import { DescribeNotificationRuleCommandInput, DescribeNotificationRuleCommandOutput } from "../commands/DescribeNotificationRuleCommand";
|
|
7
|
-
import { ListEventTypesCommandInput, ListEventTypesCommandOutput } from "../commands/ListEventTypesCommand";
|
|
8
|
-
import { ListNotificationRulesCommandInput, ListNotificationRulesCommandOutput } from "../commands/ListNotificationRulesCommand";
|
|
9
|
-
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
|
|
10
|
-
import { ListTargetsCommandInput, ListTargetsCommandOutput } from "../commands/ListTargetsCommand";
|
|
11
|
-
import { SubscribeCommandInput, SubscribeCommandOutput } from "../commands/SubscribeCommand";
|
|
12
|
-
import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
|
|
13
|
-
import { UnsubscribeCommandInput, UnsubscribeCommandOutput } from "../commands/UnsubscribeCommand";
|
|
14
|
-
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
|
|
15
|
-
import { UpdateNotificationRuleCommandInput, UpdateNotificationRuleCommandOutput } from "../commands/UpdateNotificationRuleCommand";
|
|
16
|
-
/**
|
|
17
|
-
* serializeAws_restJson1CreateNotificationRuleCommand
|
|
18
|
-
*/
|
|
19
|
-
export declare const se_CreateNotificationRuleCommand: (input: CreateNotificationRuleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
20
|
-
/**
|
|
21
|
-
* serializeAws_restJson1DeleteNotificationRuleCommand
|
|
22
|
-
*/
|
|
23
|
-
export declare const se_DeleteNotificationRuleCommand: (input: DeleteNotificationRuleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
24
|
-
/**
|
|
25
|
-
* serializeAws_restJson1DeleteTargetCommand
|
|
26
|
-
*/
|
|
27
|
-
export declare const se_DeleteTargetCommand: (input: DeleteTargetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
28
|
-
/**
|
|
29
|
-
* serializeAws_restJson1DescribeNotificationRuleCommand
|
|
30
|
-
*/
|
|
31
|
-
export declare const se_DescribeNotificationRuleCommand: (input: DescribeNotificationRuleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
32
|
-
/**
|
|
33
|
-
* serializeAws_restJson1ListEventTypesCommand
|
|
34
|
-
*/
|
|
35
|
-
export declare const se_ListEventTypesCommand: (input: ListEventTypesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
36
|
-
/**
|
|
37
|
-
* serializeAws_restJson1ListNotificationRulesCommand
|
|
38
|
-
*/
|
|
39
|
-
export declare const se_ListNotificationRulesCommand: (input: ListNotificationRulesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
40
|
-
/**
|
|
41
|
-
* serializeAws_restJson1ListTagsForResourceCommand
|
|
42
|
-
*/
|
|
43
|
-
export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
44
|
-
/**
|
|
45
|
-
* serializeAws_restJson1ListTargetsCommand
|
|
46
|
-
*/
|
|
47
|
-
export declare const se_ListTargetsCommand: (input: ListTargetsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
48
|
-
/**
|
|
49
|
-
* serializeAws_restJson1SubscribeCommand
|
|
50
|
-
*/
|
|
51
|
-
export declare const se_SubscribeCommand: (input: SubscribeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
52
|
-
/**
|
|
53
|
-
* serializeAws_restJson1TagResourceCommand
|
|
54
|
-
*/
|
|
55
|
-
export declare const se_TagResourceCommand: (input: TagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
56
|
-
/**
|
|
57
|
-
* serializeAws_restJson1UnsubscribeCommand
|
|
58
|
-
*/
|
|
59
|
-
export declare const se_UnsubscribeCommand: (input: UnsubscribeCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
60
|
-
/**
|
|
61
|
-
* serializeAws_restJson1UntagResourceCommand
|
|
62
|
-
*/
|
|
63
|
-
export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
64
|
-
/**
|
|
65
|
-
* serializeAws_restJson1UpdateNotificationRuleCommand
|
|
66
|
-
*/
|
|
67
|
-
export declare const se_UpdateNotificationRuleCommand: (input: UpdateNotificationRuleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
|
|
68
|
-
/**
|
|
69
|
-
* deserializeAws_restJson1CreateNotificationRuleCommand
|
|
70
|
-
*/
|
|
71
|
-
export declare const de_CreateNotificationRuleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CreateNotificationRuleCommandOutput>;
|
|
72
|
-
/**
|
|
73
|
-
* deserializeAws_restJson1DeleteNotificationRuleCommand
|
|
74
|
-
*/
|
|
75
|
-
export declare const de_DeleteNotificationRuleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteNotificationRuleCommandOutput>;
|
|
76
|
-
/**
|
|
77
|
-
* deserializeAws_restJson1DeleteTargetCommand
|
|
78
|
-
*/
|
|
79
|
-
export declare const de_DeleteTargetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DeleteTargetCommandOutput>;
|
|
80
|
-
/**
|
|
81
|
-
* deserializeAws_restJson1DescribeNotificationRuleCommand
|
|
82
|
-
*/
|
|
83
|
-
export declare const de_DescribeNotificationRuleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<DescribeNotificationRuleCommandOutput>;
|
|
84
|
-
/**
|
|
85
|
-
* deserializeAws_restJson1ListEventTypesCommand
|
|
86
|
-
*/
|
|
87
|
-
export declare const de_ListEventTypesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListEventTypesCommandOutput>;
|
|
88
|
-
/**
|
|
89
|
-
* deserializeAws_restJson1ListNotificationRulesCommand
|
|
90
|
-
*/
|
|
91
|
-
export declare const de_ListNotificationRulesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListNotificationRulesCommandOutput>;
|
|
92
|
-
/**
|
|
93
|
-
* deserializeAws_restJson1ListTagsForResourceCommand
|
|
94
|
-
*/
|
|
95
|
-
export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTagsForResourceCommandOutput>;
|
|
96
|
-
/**
|
|
97
|
-
* deserializeAws_restJson1ListTargetsCommand
|
|
98
|
-
*/
|
|
99
|
-
export declare const de_ListTargetsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<ListTargetsCommandOutput>;
|
|
100
|
-
/**
|
|
101
|
-
* deserializeAws_restJson1SubscribeCommand
|
|
102
|
-
*/
|
|
103
|
-
export declare const de_SubscribeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<SubscribeCommandOutput>;
|
|
104
|
-
/**
|
|
105
|
-
* deserializeAws_restJson1TagResourceCommand
|
|
106
|
-
*/
|
|
107
|
-
export declare const de_TagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<TagResourceCommandOutput>;
|
|
108
|
-
/**
|
|
109
|
-
* deserializeAws_restJson1UnsubscribeCommand
|
|
110
|
-
*/
|
|
111
|
-
export declare const de_UnsubscribeCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UnsubscribeCommandOutput>;
|
|
112
|
-
/**
|
|
113
|
-
* deserializeAws_restJson1UntagResourceCommand
|
|
114
|
-
*/
|
|
115
|
-
export declare const de_UntagResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UntagResourceCommandOutput>;
|
|
116
|
-
/**
|
|
117
|
-
* deserializeAws_restJson1UpdateNotificationRuleCommand
|
|
118
|
-
*/
|
|
119
|
-
export declare const de_UpdateNotificationRuleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<UpdateNotificationRuleCommandOutput>;
|