@aws-sdk/client-codestar-notifications 3.476.0 → 3.477.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.
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
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
|
-
const
|
|
4
|
+
const core_1 = require("@smithy/core");
|
|
5
5
|
const smithy_client_1 = require("@smithy/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
9
|
const se_CreateNotificationRuleCommand = async (input, context) => {
|
|
10
|
-
const
|
|
10
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
11
11
|
const headers = {
|
|
12
12
|
"content-type": "application/json",
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
b.bp("/createNotificationRule");
|
|
15
15
|
let body;
|
|
16
16
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
17
17
|
ClientRequestToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
@@ -23,268 +23,183 @@ const se_CreateNotificationRuleCommand = async (input, context) => {
|
|
|
23
23
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
24
24
|
Targets: (_) => (0, smithy_client_1._json)(_),
|
|
25
25
|
}));
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
hostname,
|
|
29
|
-
port,
|
|
30
|
-
method: "POST",
|
|
31
|
-
headers,
|
|
32
|
-
path: resolvedPath,
|
|
33
|
-
body,
|
|
34
|
-
});
|
|
26
|
+
b.m("POST").h(headers).b(body);
|
|
27
|
+
return b.build();
|
|
35
28
|
};
|
|
36
29
|
exports.se_CreateNotificationRuleCommand = se_CreateNotificationRuleCommand;
|
|
37
30
|
const se_DeleteNotificationRuleCommand = async (input, context) => {
|
|
38
|
-
const
|
|
31
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
39
32
|
const headers = {
|
|
40
33
|
"content-type": "application/json",
|
|
41
34
|
};
|
|
42
|
-
|
|
35
|
+
b.bp("/deleteNotificationRule");
|
|
43
36
|
let body;
|
|
44
37
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
45
38
|
Arn: [],
|
|
46
39
|
}));
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
hostname,
|
|
50
|
-
port,
|
|
51
|
-
method: "POST",
|
|
52
|
-
headers,
|
|
53
|
-
path: resolvedPath,
|
|
54
|
-
body,
|
|
55
|
-
});
|
|
40
|
+
b.m("POST").h(headers).b(body);
|
|
41
|
+
return b.build();
|
|
56
42
|
};
|
|
57
43
|
exports.se_DeleteNotificationRuleCommand = se_DeleteNotificationRuleCommand;
|
|
58
44
|
const se_DeleteTargetCommand = async (input, context) => {
|
|
59
|
-
const
|
|
45
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
60
46
|
const headers = {
|
|
61
47
|
"content-type": "application/json",
|
|
62
48
|
};
|
|
63
|
-
|
|
49
|
+
b.bp("/deleteTarget");
|
|
64
50
|
let body;
|
|
65
51
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
66
52
|
ForceUnsubscribeAll: [],
|
|
67
53
|
TargetAddress: [],
|
|
68
54
|
}));
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
hostname,
|
|
72
|
-
port,
|
|
73
|
-
method: "POST",
|
|
74
|
-
headers,
|
|
75
|
-
path: resolvedPath,
|
|
76
|
-
body,
|
|
77
|
-
});
|
|
55
|
+
b.m("POST").h(headers).b(body);
|
|
56
|
+
return b.build();
|
|
78
57
|
};
|
|
79
58
|
exports.se_DeleteTargetCommand = se_DeleteTargetCommand;
|
|
80
59
|
const se_DescribeNotificationRuleCommand = async (input, context) => {
|
|
81
|
-
const
|
|
60
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
82
61
|
const headers = {
|
|
83
62
|
"content-type": "application/json",
|
|
84
63
|
};
|
|
85
|
-
|
|
64
|
+
b.bp("/describeNotificationRule");
|
|
86
65
|
let body;
|
|
87
66
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
88
67
|
Arn: [],
|
|
89
68
|
}));
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
hostname,
|
|
93
|
-
port,
|
|
94
|
-
method: "POST",
|
|
95
|
-
headers,
|
|
96
|
-
path: resolvedPath,
|
|
97
|
-
body,
|
|
98
|
-
});
|
|
69
|
+
b.m("POST").h(headers).b(body);
|
|
70
|
+
return b.build();
|
|
99
71
|
};
|
|
100
72
|
exports.se_DescribeNotificationRuleCommand = se_DescribeNotificationRuleCommand;
|
|
101
73
|
const se_ListEventTypesCommand = async (input, context) => {
|
|
102
|
-
const
|
|
74
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
103
75
|
const headers = {
|
|
104
76
|
"content-type": "application/json",
|
|
105
77
|
};
|
|
106
|
-
|
|
78
|
+
b.bp("/listEventTypes");
|
|
107
79
|
let body;
|
|
108
80
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
109
81
|
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
110
82
|
MaxResults: [],
|
|
111
83
|
NextToken: [],
|
|
112
84
|
}));
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
hostname,
|
|
116
|
-
port,
|
|
117
|
-
method: "POST",
|
|
118
|
-
headers,
|
|
119
|
-
path: resolvedPath,
|
|
120
|
-
body,
|
|
121
|
-
});
|
|
85
|
+
b.m("POST").h(headers).b(body);
|
|
86
|
+
return b.build();
|
|
122
87
|
};
|
|
123
88
|
exports.se_ListEventTypesCommand = se_ListEventTypesCommand;
|
|
124
89
|
const se_ListNotificationRulesCommand = async (input, context) => {
|
|
125
|
-
const
|
|
90
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
126
91
|
const headers = {
|
|
127
92
|
"content-type": "application/json",
|
|
128
93
|
};
|
|
129
|
-
|
|
94
|
+
b.bp("/listNotificationRules");
|
|
130
95
|
let body;
|
|
131
96
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
132
97
|
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
133
98
|
MaxResults: [],
|
|
134
99
|
NextToken: [],
|
|
135
100
|
}));
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
hostname,
|
|
139
|
-
port,
|
|
140
|
-
method: "POST",
|
|
141
|
-
headers,
|
|
142
|
-
path: resolvedPath,
|
|
143
|
-
body,
|
|
144
|
-
});
|
|
101
|
+
b.m("POST").h(headers).b(body);
|
|
102
|
+
return b.build();
|
|
145
103
|
};
|
|
146
104
|
exports.se_ListNotificationRulesCommand = se_ListNotificationRulesCommand;
|
|
147
105
|
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
148
|
-
const
|
|
106
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
149
107
|
const headers = {
|
|
150
108
|
"content-type": "application/json",
|
|
151
109
|
};
|
|
152
|
-
|
|
110
|
+
b.bp("/listTagsForResource");
|
|
153
111
|
let body;
|
|
154
112
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
155
113
|
Arn: [],
|
|
156
114
|
}));
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
hostname,
|
|
160
|
-
port,
|
|
161
|
-
method: "POST",
|
|
162
|
-
headers,
|
|
163
|
-
path: resolvedPath,
|
|
164
|
-
body,
|
|
165
|
-
});
|
|
115
|
+
b.m("POST").h(headers).b(body);
|
|
116
|
+
return b.build();
|
|
166
117
|
};
|
|
167
118
|
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
168
119
|
const se_ListTargetsCommand = async (input, context) => {
|
|
169
|
-
const
|
|
120
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
170
121
|
const headers = {
|
|
171
122
|
"content-type": "application/json",
|
|
172
123
|
};
|
|
173
|
-
|
|
124
|
+
b.bp("/listTargets");
|
|
174
125
|
let body;
|
|
175
126
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
176
127
|
Filters: (_) => (0, smithy_client_1._json)(_),
|
|
177
128
|
MaxResults: [],
|
|
178
129
|
NextToken: [],
|
|
179
130
|
}));
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
hostname,
|
|
183
|
-
port,
|
|
184
|
-
method: "POST",
|
|
185
|
-
headers,
|
|
186
|
-
path: resolvedPath,
|
|
187
|
-
body,
|
|
188
|
-
});
|
|
131
|
+
b.m("POST").h(headers).b(body);
|
|
132
|
+
return b.build();
|
|
189
133
|
};
|
|
190
134
|
exports.se_ListTargetsCommand = se_ListTargetsCommand;
|
|
191
135
|
const se_SubscribeCommand = async (input, context) => {
|
|
192
|
-
const
|
|
136
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
193
137
|
const headers = {
|
|
194
138
|
"content-type": "application/json",
|
|
195
139
|
};
|
|
196
|
-
|
|
140
|
+
b.bp("/subscribe");
|
|
197
141
|
let body;
|
|
198
142
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
199
143
|
Arn: [],
|
|
200
144
|
ClientRequestToken: [],
|
|
201
145
|
Target: (_) => (0, smithy_client_1._json)(_),
|
|
202
146
|
}));
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
hostname,
|
|
206
|
-
port,
|
|
207
|
-
method: "POST",
|
|
208
|
-
headers,
|
|
209
|
-
path: resolvedPath,
|
|
210
|
-
body,
|
|
211
|
-
});
|
|
147
|
+
b.m("POST").h(headers).b(body);
|
|
148
|
+
return b.build();
|
|
212
149
|
};
|
|
213
150
|
exports.se_SubscribeCommand = se_SubscribeCommand;
|
|
214
151
|
const se_TagResourceCommand = async (input, context) => {
|
|
215
|
-
const
|
|
152
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
216
153
|
const headers = {
|
|
217
154
|
"content-type": "application/json",
|
|
218
155
|
};
|
|
219
|
-
|
|
156
|
+
b.bp("/tagResource");
|
|
220
157
|
let body;
|
|
221
158
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
222
159
|
Arn: [],
|
|
223
160
|
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
224
161
|
}));
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
hostname,
|
|
228
|
-
port,
|
|
229
|
-
method: "POST",
|
|
230
|
-
headers,
|
|
231
|
-
path: resolvedPath,
|
|
232
|
-
body,
|
|
233
|
-
});
|
|
162
|
+
b.m("POST").h(headers).b(body);
|
|
163
|
+
return b.build();
|
|
234
164
|
};
|
|
235
165
|
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
236
166
|
const se_UnsubscribeCommand = async (input, context) => {
|
|
237
|
-
const
|
|
167
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
238
168
|
const headers = {
|
|
239
169
|
"content-type": "application/json",
|
|
240
170
|
};
|
|
241
|
-
|
|
171
|
+
b.bp("/unsubscribe");
|
|
242
172
|
let body;
|
|
243
173
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
244
174
|
Arn: [],
|
|
245
175
|
TargetAddress: [],
|
|
246
176
|
}));
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
hostname,
|
|
250
|
-
port,
|
|
251
|
-
method: "POST",
|
|
252
|
-
headers,
|
|
253
|
-
path: resolvedPath,
|
|
254
|
-
body,
|
|
255
|
-
});
|
|
177
|
+
b.m("POST").h(headers).b(body);
|
|
178
|
+
return b.build();
|
|
256
179
|
};
|
|
257
180
|
exports.se_UnsubscribeCommand = se_UnsubscribeCommand;
|
|
258
181
|
const se_UntagResourceCommand = async (input, context) => {
|
|
259
|
-
const
|
|
182
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
260
183
|
const headers = {};
|
|
261
|
-
|
|
262
|
-
|
|
184
|
+
b.bp("/untagResource/{Arn}");
|
|
185
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
263
186
|
const query = (0, smithy_client_1.map)({
|
|
264
|
-
|
|
187
|
+
[_tK]: [
|
|
265
188
|
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
266
|
-
() => (input
|
|
189
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
267
190
|
],
|
|
268
191
|
});
|
|
269
192
|
let body;
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
hostname,
|
|
273
|
-
port,
|
|
274
|
-
method: "POST",
|
|
275
|
-
headers,
|
|
276
|
-
path: resolvedPath,
|
|
277
|
-
query,
|
|
278
|
-
body,
|
|
279
|
-
});
|
|
193
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
194
|
+
return b.build();
|
|
280
195
|
};
|
|
281
196
|
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
282
197
|
const se_UpdateNotificationRuleCommand = async (input, context) => {
|
|
283
|
-
const
|
|
198
|
+
const b = (0, core_1.requestBuilder)(input, context);
|
|
284
199
|
const headers = {
|
|
285
200
|
"content-type": "application/json",
|
|
286
201
|
};
|
|
287
|
-
|
|
202
|
+
b.bp("/updateNotificationRule");
|
|
288
203
|
let body;
|
|
289
204
|
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
290
205
|
Arn: [],
|
|
@@ -294,15 +209,8 @@ const se_UpdateNotificationRuleCommand = async (input, context) => {
|
|
|
294
209
|
Status: [],
|
|
295
210
|
Targets: (_) => (0, smithy_client_1._json)(_),
|
|
296
211
|
}));
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
hostname,
|
|
300
|
-
port,
|
|
301
|
-
method: "POST",
|
|
302
|
-
headers,
|
|
303
|
-
path: resolvedPath,
|
|
304
|
-
body,
|
|
305
|
-
});
|
|
212
|
+
b.m("POST").h(headers).b(body);
|
|
213
|
+
return b.build();
|
|
306
214
|
};
|
|
307
215
|
exports.se_UpdateNotificationRuleCommand = se_UpdateNotificationRuleCommand;
|
|
308
216
|
const de_CreateNotificationRuleCommand = async (output, context) => {
|
|
@@ -931,6 +839,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
931
839
|
value !== "" &&
|
|
932
840
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
933
841
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
842
|
+
const _TK = "TagKeys";
|
|
843
|
+
const _tK = "tagKeys";
|
|
934
844
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
935
845
|
if (encoded.length) {
|
|
936
846
|
return JSON.parse(encoded);
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp,
|
|
1
|
+
import { requestBuilder as rb } from "@smithy/core";
|
|
2
|
+
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";
|
|
3
3
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
4
4
|
import { CodestarNotificationsServiceException as __BaseException } from "../models/CodestarNotificationsServiceException";
|
|
5
5
|
import { AccessDeniedException, ConcurrentModificationException, ConfigurationException, InvalidNextTokenException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_CreateNotificationRuleCommand = async (input, context) => {
|
|
7
|
-
const
|
|
7
|
+
const b = rb(input, context);
|
|
8
8
|
const headers = {
|
|
9
9
|
"content-type": "application/json",
|
|
10
10
|
};
|
|
11
|
-
|
|
11
|
+
b.bp("/createNotificationRule");
|
|
12
12
|
let body;
|
|
13
13
|
body = JSON.stringify(take(input, {
|
|
14
14
|
ClientRequestToken: [true, (_) => _ ?? generateIdempotencyToken()],
|
|
@@ -20,256 +20,171 @@ export const se_CreateNotificationRuleCommand = async (input, context) => {
|
|
|
20
20
|
Tags: (_) => _json(_),
|
|
21
21
|
Targets: (_) => _json(_),
|
|
22
22
|
}));
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
hostname,
|
|
26
|
-
port,
|
|
27
|
-
method: "POST",
|
|
28
|
-
headers,
|
|
29
|
-
path: resolvedPath,
|
|
30
|
-
body,
|
|
31
|
-
});
|
|
23
|
+
b.m("POST").h(headers).b(body);
|
|
24
|
+
return b.build();
|
|
32
25
|
};
|
|
33
26
|
export const se_DeleteNotificationRuleCommand = async (input, context) => {
|
|
34
|
-
const
|
|
27
|
+
const b = rb(input, context);
|
|
35
28
|
const headers = {
|
|
36
29
|
"content-type": "application/json",
|
|
37
30
|
};
|
|
38
|
-
|
|
31
|
+
b.bp("/deleteNotificationRule");
|
|
39
32
|
let body;
|
|
40
33
|
body = JSON.stringify(take(input, {
|
|
41
34
|
Arn: [],
|
|
42
35
|
}));
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
hostname,
|
|
46
|
-
port,
|
|
47
|
-
method: "POST",
|
|
48
|
-
headers,
|
|
49
|
-
path: resolvedPath,
|
|
50
|
-
body,
|
|
51
|
-
});
|
|
36
|
+
b.m("POST").h(headers).b(body);
|
|
37
|
+
return b.build();
|
|
52
38
|
};
|
|
53
39
|
export const se_DeleteTargetCommand = async (input, context) => {
|
|
54
|
-
const
|
|
40
|
+
const b = rb(input, context);
|
|
55
41
|
const headers = {
|
|
56
42
|
"content-type": "application/json",
|
|
57
43
|
};
|
|
58
|
-
|
|
44
|
+
b.bp("/deleteTarget");
|
|
59
45
|
let body;
|
|
60
46
|
body = JSON.stringify(take(input, {
|
|
61
47
|
ForceUnsubscribeAll: [],
|
|
62
48
|
TargetAddress: [],
|
|
63
49
|
}));
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
hostname,
|
|
67
|
-
port,
|
|
68
|
-
method: "POST",
|
|
69
|
-
headers,
|
|
70
|
-
path: resolvedPath,
|
|
71
|
-
body,
|
|
72
|
-
});
|
|
50
|
+
b.m("POST").h(headers).b(body);
|
|
51
|
+
return b.build();
|
|
73
52
|
};
|
|
74
53
|
export const se_DescribeNotificationRuleCommand = async (input, context) => {
|
|
75
|
-
const
|
|
54
|
+
const b = rb(input, context);
|
|
76
55
|
const headers = {
|
|
77
56
|
"content-type": "application/json",
|
|
78
57
|
};
|
|
79
|
-
|
|
58
|
+
b.bp("/describeNotificationRule");
|
|
80
59
|
let body;
|
|
81
60
|
body = JSON.stringify(take(input, {
|
|
82
61
|
Arn: [],
|
|
83
62
|
}));
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
hostname,
|
|
87
|
-
port,
|
|
88
|
-
method: "POST",
|
|
89
|
-
headers,
|
|
90
|
-
path: resolvedPath,
|
|
91
|
-
body,
|
|
92
|
-
});
|
|
63
|
+
b.m("POST").h(headers).b(body);
|
|
64
|
+
return b.build();
|
|
93
65
|
};
|
|
94
66
|
export const se_ListEventTypesCommand = async (input, context) => {
|
|
95
|
-
const
|
|
67
|
+
const b = rb(input, context);
|
|
96
68
|
const headers = {
|
|
97
69
|
"content-type": "application/json",
|
|
98
70
|
};
|
|
99
|
-
|
|
71
|
+
b.bp("/listEventTypes");
|
|
100
72
|
let body;
|
|
101
73
|
body = JSON.stringify(take(input, {
|
|
102
74
|
Filters: (_) => _json(_),
|
|
103
75
|
MaxResults: [],
|
|
104
76
|
NextToken: [],
|
|
105
77
|
}));
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
hostname,
|
|
109
|
-
port,
|
|
110
|
-
method: "POST",
|
|
111
|
-
headers,
|
|
112
|
-
path: resolvedPath,
|
|
113
|
-
body,
|
|
114
|
-
});
|
|
78
|
+
b.m("POST").h(headers).b(body);
|
|
79
|
+
return b.build();
|
|
115
80
|
};
|
|
116
81
|
export const se_ListNotificationRulesCommand = async (input, context) => {
|
|
117
|
-
const
|
|
82
|
+
const b = rb(input, context);
|
|
118
83
|
const headers = {
|
|
119
84
|
"content-type": "application/json",
|
|
120
85
|
};
|
|
121
|
-
|
|
86
|
+
b.bp("/listNotificationRules");
|
|
122
87
|
let body;
|
|
123
88
|
body = JSON.stringify(take(input, {
|
|
124
89
|
Filters: (_) => _json(_),
|
|
125
90
|
MaxResults: [],
|
|
126
91
|
NextToken: [],
|
|
127
92
|
}));
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
hostname,
|
|
131
|
-
port,
|
|
132
|
-
method: "POST",
|
|
133
|
-
headers,
|
|
134
|
-
path: resolvedPath,
|
|
135
|
-
body,
|
|
136
|
-
});
|
|
93
|
+
b.m("POST").h(headers).b(body);
|
|
94
|
+
return b.build();
|
|
137
95
|
};
|
|
138
96
|
export const se_ListTagsForResourceCommand = async (input, context) => {
|
|
139
|
-
const
|
|
97
|
+
const b = rb(input, context);
|
|
140
98
|
const headers = {
|
|
141
99
|
"content-type": "application/json",
|
|
142
100
|
};
|
|
143
|
-
|
|
101
|
+
b.bp("/listTagsForResource");
|
|
144
102
|
let body;
|
|
145
103
|
body = JSON.stringify(take(input, {
|
|
146
104
|
Arn: [],
|
|
147
105
|
}));
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
hostname,
|
|
151
|
-
port,
|
|
152
|
-
method: "POST",
|
|
153
|
-
headers,
|
|
154
|
-
path: resolvedPath,
|
|
155
|
-
body,
|
|
156
|
-
});
|
|
106
|
+
b.m("POST").h(headers).b(body);
|
|
107
|
+
return b.build();
|
|
157
108
|
};
|
|
158
109
|
export const se_ListTargetsCommand = async (input, context) => {
|
|
159
|
-
const
|
|
110
|
+
const b = rb(input, context);
|
|
160
111
|
const headers = {
|
|
161
112
|
"content-type": "application/json",
|
|
162
113
|
};
|
|
163
|
-
|
|
114
|
+
b.bp("/listTargets");
|
|
164
115
|
let body;
|
|
165
116
|
body = JSON.stringify(take(input, {
|
|
166
117
|
Filters: (_) => _json(_),
|
|
167
118
|
MaxResults: [],
|
|
168
119
|
NextToken: [],
|
|
169
120
|
}));
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
hostname,
|
|
173
|
-
port,
|
|
174
|
-
method: "POST",
|
|
175
|
-
headers,
|
|
176
|
-
path: resolvedPath,
|
|
177
|
-
body,
|
|
178
|
-
});
|
|
121
|
+
b.m("POST").h(headers).b(body);
|
|
122
|
+
return b.build();
|
|
179
123
|
};
|
|
180
124
|
export const se_SubscribeCommand = async (input, context) => {
|
|
181
|
-
const
|
|
125
|
+
const b = rb(input, context);
|
|
182
126
|
const headers = {
|
|
183
127
|
"content-type": "application/json",
|
|
184
128
|
};
|
|
185
|
-
|
|
129
|
+
b.bp("/subscribe");
|
|
186
130
|
let body;
|
|
187
131
|
body = JSON.stringify(take(input, {
|
|
188
132
|
Arn: [],
|
|
189
133
|
ClientRequestToken: [],
|
|
190
134
|
Target: (_) => _json(_),
|
|
191
135
|
}));
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
hostname,
|
|
195
|
-
port,
|
|
196
|
-
method: "POST",
|
|
197
|
-
headers,
|
|
198
|
-
path: resolvedPath,
|
|
199
|
-
body,
|
|
200
|
-
});
|
|
136
|
+
b.m("POST").h(headers).b(body);
|
|
137
|
+
return b.build();
|
|
201
138
|
};
|
|
202
139
|
export const se_TagResourceCommand = async (input, context) => {
|
|
203
|
-
const
|
|
140
|
+
const b = rb(input, context);
|
|
204
141
|
const headers = {
|
|
205
142
|
"content-type": "application/json",
|
|
206
143
|
};
|
|
207
|
-
|
|
144
|
+
b.bp("/tagResource");
|
|
208
145
|
let body;
|
|
209
146
|
body = JSON.stringify(take(input, {
|
|
210
147
|
Arn: [],
|
|
211
148
|
Tags: (_) => _json(_),
|
|
212
149
|
}));
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
hostname,
|
|
216
|
-
port,
|
|
217
|
-
method: "POST",
|
|
218
|
-
headers,
|
|
219
|
-
path: resolvedPath,
|
|
220
|
-
body,
|
|
221
|
-
});
|
|
150
|
+
b.m("POST").h(headers).b(body);
|
|
151
|
+
return b.build();
|
|
222
152
|
};
|
|
223
153
|
export const se_UnsubscribeCommand = async (input, context) => {
|
|
224
|
-
const
|
|
154
|
+
const b = rb(input, context);
|
|
225
155
|
const headers = {
|
|
226
156
|
"content-type": "application/json",
|
|
227
157
|
};
|
|
228
|
-
|
|
158
|
+
b.bp("/unsubscribe");
|
|
229
159
|
let body;
|
|
230
160
|
body = JSON.stringify(take(input, {
|
|
231
161
|
Arn: [],
|
|
232
162
|
TargetAddress: [],
|
|
233
163
|
}));
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
hostname,
|
|
237
|
-
port,
|
|
238
|
-
method: "POST",
|
|
239
|
-
headers,
|
|
240
|
-
path: resolvedPath,
|
|
241
|
-
body,
|
|
242
|
-
});
|
|
164
|
+
b.m("POST").h(headers).b(body);
|
|
165
|
+
return b.build();
|
|
243
166
|
};
|
|
244
167
|
export const se_UntagResourceCommand = async (input, context) => {
|
|
245
|
-
const
|
|
168
|
+
const b = rb(input, context);
|
|
246
169
|
const headers = {};
|
|
247
|
-
|
|
248
|
-
|
|
170
|
+
b.bp("/untagResource/{Arn}");
|
|
171
|
+
b.p("Arn", () => input.Arn, "{Arn}", false);
|
|
249
172
|
const query = map({
|
|
250
|
-
|
|
173
|
+
[_tK]: [
|
|
251
174
|
__expectNonNull(input.TagKeys, `TagKeys`) != null,
|
|
252
|
-
() => (input
|
|
175
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
253
176
|
],
|
|
254
177
|
});
|
|
255
178
|
let body;
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
hostname,
|
|
259
|
-
port,
|
|
260
|
-
method: "POST",
|
|
261
|
-
headers,
|
|
262
|
-
path: resolvedPath,
|
|
263
|
-
query,
|
|
264
|
-
body,
|
|
265
|
-
});
|
|
179
|
+
b.m("POST").h(headers).q(query).b(body);
|
|
180
|
+
return b.build();
|
|
266
181
|
};
|
|
267
182
|
export const se_UpdateNotificationRuleCommand = async (input, context) => {
|
|
268
|
-
const
|
|
183
|
+
const b = rb(input, context);
|
|
269
184
|
const headers = {
|
|
270
185
|
"content-type": "application/json",
|
|
271
186
|
};
|
|
272
|
-
|
|
187
|
+
b.bp("/updateNotificationRule");
|
|
273
188
|
let body;
|
|
274
189
|
body = JSON.stringify(take(input, {
|
|
275
190
|
Arn: [],
|
|
@@ -279,15 +194,8 @@ export const se_UpdateNotificationRuleCommand = async (input, context) => {
|
|
|
279
194
|
Status: [],
|
|
280
195
|
Targets: (_) => _json(_),
|
|
281
196
|
}));
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
hostname,
|
|
285
|
-
port,
|
|
286
|
-
method: "POST",
|
|
287
|
-
headers,
|
|
288
|
-
path: resolvedPath,
|
|
289
|
-
body,
|
|
290
|
-
});
|
|
197
|
+
b.m("POST").h(headers).b(body);
|
|
198
|
+
return b.build();
|
|
291
199
|
};
|
|
292
200
|
export const de_CreateNotificationRuleCommand = async (output, context) => {
|
|
293
201
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
@@ -902,6 +810,8 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
|
902
810
|
value !== "" &&
|
|
903
811
|
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
904
812
|
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
813
|
+
const _TK = "TagKeys";
|
|
814
|
+
const _tK = "tagKeys";
|
|
905
815
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
906
816
|
if (encoded.length) {
|
|
907
817
|
return JSON.parse(encoded);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-codestar-notifications",
|
|
3
3
|
"description": "AWS SDK for JavaScript Codestar Notifications Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.477.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.477.0",
|
|
24
|
+
"@aws-sdk/core": "3.477.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.477.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.468.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.468.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.468.0",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"@aws-sdk/util-user-agent-browser": "3.468.0",
|
|
35
35
|
"@aws-sdk/util-user-agent-node": "3.470.0",
|
|
36
36
|
"@smithy/config-resolver": "^2.0.21",
|
|
37
|
+
"@smithy/core": "^1.2.0",
|
|
37
38
|
"@smithy/fetch-http-handler": "^2.3.1",
|
|
38
39
|
"@smithy/hash-node": "^2.0.17",
|
|
39
40
|
"@smithy/invalid-dependency": "^2.0.15",
|