@aws-sdk/client-codestar-notifications 3.121.0 → 3.127.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/CHANGELOG.md +8 -0
- package/dist-cjs/protocols/Aws_restJson1.js +48 -55
- package/dist-es/protocols/Aws_restJson1.js +22 -29
- package/package.json +26 -26
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-codestar-notifications
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
15
|
|
|
8
16
|
|
|
@@ -16,15 +16,15 @@ const serializeAws_restJson1CreateNotificationRuleCommand = async (input, contex
|
|
|
16
16
|
let body;
|
|
17
17
|
body = JSON.stringify({
|
|
18
18
|
ClientRequestToken: (_a = input.ClientRequestToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
19
|
-
...(input.DetailType
|
|
20
|
-
...(input.EventTypeIds
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
...(input.
|
|
24
|
-
...(input.
|
|
25
|
-
...(input.
|
|
26
|
-
...(input.
|
|
27
|
-
|
|
19
|
+
...(input.DetailType != null && { DetailType: input.DetailType }),
|
|
20
|
+
...(input.EventTypeIds != null && {
|
|
21
|
+
EventTypeIds: serializeAws_restJson1EventTypeIds(input.EventTypeIds, context),
|
|
22
|
+
}),
|
|
23
|
+
...(input.Name != null && { Name: input.Name }),
|
|
24
|
+
...(input.Resource != null && { Resource: input.Resource }),
|
|
25
|
+
...(input.Status != null && { Status: input.Status }),
|
|
26
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
27
|
+
...(input.Targets != null && { Targets: serializeAws_restJson1Targets(input.Targets, context) }),
|
|
28
28
|
});
|
|
29
29
|
return new protocol_http_1.HttpRequest({
|
|
30
30
|
protocol,
|
|
@@ -45,7 +45,7 @@ const serializeAws_restJson1DeleteNotificationRuleCommand = async (input, contex
|
|
|
45
45
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteNotificationRule";
|
|
46
46
|
let body;
|
|
47
47
|
body = JSON.stringify({
|
|
48
|
-
...(input.Arn
|
|
48
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
49
49
|
});
|
|
50
50
|
return new protocol_http_1.HttpRequest({
|
|
51
51
|
protocol,
|
|
@@ -66,9 +66,8 @@ const serializeAws_restJson1DeleteTargetCommand = async (input, context) => {
|
|
|
66
66
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/deleteTarget";
|
|
67
67
|
let body;
|
|
68
68
|
body = JSON.stringify({
|
|
69
|
-
...(input.ForceUnsubscribeAll
|
|
70
|
-
|
|
71
|
-
...(input.TargetAddress !== undefined && input.TargetAddress !== null && { TargetAddress: input.TargetAddress }),
|
|
69
|
+
...(input.ForceUnsubscribeAll != null && { ForceUnsubscribeAll: input.ForceUnsubscribeAll }),
|
|
70
|
+
...(input.TargetAddress != null && { TargetAddress: input.TargetAddress }),
|
|
72
71
|
});
|
|
73
72
|
return new protocol_http_1.HttpRequest({
|
|
74
73
|
protocol,
|
|
@@ -89,7 +88,7 @@ const serializeAws_restJson1DescribeNotificationRuleCommand = async (input, cont
|
|
|
89
88
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/describeNotificationRule";
|
|
90
89
|
let body;
|
|
91
90
|
body = JSON.stringify({
|
|
92
|
-
...(input.Arn
|
|
91
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
93
92
|
});
|
|
94
93
|
return new protocol_http_1.HttpRequest({
|
|
95
94
|
protocol,
|
|
@@ -110,10 +109,9 @@ const serializeAws_restJson1ListEventTypesCommand = async (input, context) => {
|
|
|
110
109
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listEventTypes";
|
|
111
110
|
let body;
|
|
112
111
|
body = JSON.stringify({
|
|
113
|
-
...(input.Filters
|
|
114
|
-
|
|
115
|
-
...(input.
|
|
116
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
112
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1ListEventTypesFilters(input.Filters, context) }),
|
|
113
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
114
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
117
115
|
});
|
|
118
116
|
return new protocol_http_1.HttpRequest({
|
|
119
117
|
protocol,
|
|
@@ -134,12 +132,11 @@ const serializeAws_restJson1ListNotificationRulesCommand = async (input, context
|
|
|
134
132
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listNotificationRules";
|
|
135
133
|
let body;
|
|
136
134
|
body = JSON.stringify({
|
|
137
|
-
...(input.Filters
|
|
138
|
-
input.Filters !== null && {
|
|
135
|
+
...(input.Filters != null && {
|
|
139
136
|
Filters: serializeAws_restJson1ListNotificationRulesFilters(input.Filters, context),
|
|
140
137
|
}),
|
|
141
|
-
...(input.MaxResults
|
|
142
|
-
...(input.NextToken
|
|
138
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
139
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
143
140
|
});
|
|
144
141
|
return new protocol_http_1.HttpRequest({
|
|
145
142
|
protocol,
|
|
@@ -160,7 +157,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
160
157
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listTagsForResource";
|
|
161
158
|
let body;
|
|
162
159
|
body = JSON.stringify({
|
|
163
|
-
...(input.Arn
|
|
160
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
164
161
|
});
|
|
165
162
|
return new protocol_http_1.HttpRequest({
|
|
166
163
|
protocol,
|
|
@@ -181,10 +178,9 @@ const serializeAws_restJson1ListTargetsCommand = async (input, context) => {
|
|
|
181
178
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/listTargets";
|
|
182
179
|
let body;
|
|
183
180
|
body = JSON.stringify({
|
|
184
|
-
...(input.Filters
|
|
185
|
-
|
|
186
|
-
...(input.
|
|
187
|
-
...(input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken }),
|
|
181
|
+
...(input.Filters != null && { Filters: serializeAws_restJson1ListTargetsFilters(input.Filters, context) }),
|
|
182
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
183
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
188
184
|
});
|
|
189
185
|
return new protocol_http_1.HttpRequest({
|
|
190
186
|
protocol,
|
|
@@ -205,11 +201,9 @@ const serializeAws_restJson1SubscribeCommand = async (input, context) => {
|
|
|
205
201
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/subscribe";
|
|
206
202
|
let body;
|
|
207
203
|
body = JSON.stringify({
|
|
208
|
-
...(input.Arn
|
|
209
|
-
...(input.ClientRequestToken
|
|
210
|
-
|
|
211
|
-
...(input.Target !== undefined &&
|
|
212
|
-
input.Target !== null && { Target: serializeAws_restJson1Target(input.Target, context) }),
|
|
204
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
205
|
+
...(input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken }),
|
|
206
|
+
...(input.Target != null && { Target: serializeAws_restJson1Target(input.Target, context) }),
|
|
213
207
|
});
|
|
214
208
|
return new protocol_http_1.HttpRequest({
|
|
215
209
|
protocol,
|
|
@@ -230,8 +224,8 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
230
224
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/tagResource";
|
|
231
225
|
let body;
|
|
232
226
|
body = JSON.stringify({
|
|
233
|
-
...(input.Arn
|
|
234
|
-
...(input.Tags
|
|
227
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
228
|
+
...(input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) }),
|
|
235
229
|
});
|
|
236
230
|
return new protocol_http_1.HttpRequest({
|
|
237
231
|
protocol,
|
|
@@ -252,8 +246,8 @@ const serializeAws_restJson1UnsubscribeCommand = async (input, context) => {
|
|
|
252
246
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/unsubscribe";
|
|
253
247
|
let body;
|
|
254
248
|
body = JSON.stringify({
|
|
255
|
-
...(input.Arn
|
|
256
|
-
...(input.TargetAddress
|
|
249
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
250
|
+
...(input.TargetAddress != null && { TargetAddress: input.TargetAddress }),
|
|
257
251
|
});
|
|
258
252
|
return new protocol_http_1.HttpRequest({
|
|
259
253
|
protocol,
|
|
@@ -274,9 +268,8 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
274
268
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/untagResource";
|
|
275
269
|
let body;
|
|
276
270
|
body = JSON.stringify({
|
|
277
|
-
...(input.Arn
|
|
278
|
-
...(input.TagKeys
|
|
279
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeys(input.TagKeys, context) }),
|
|
271
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
272
|
+
...(input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeys(input.TagKeys, context) }),
|
|
280
273
|
});
|
|
281
274
|
return new protocol_http_1.HttpRequest({
|
|
282
275
|
protocol,
|
|
@@ -297,14 +290,14 @@ const serializeAws_restJson1UpdateNotificationRuleCommand = async (input, contex
|
|
|
297
290
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/updateNotificationRule";
|
|
298
291
|
let body;
|
|
299
292
|
body = JSON.stringify({
|
|
300
|
-
...(input.Arn
|
|
301
|
-
...(input.DetailType
|
|
302
|
-
...(input.EventTypeIds
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
...(input.
|
|
306
|
-
...(input.
|
|
307
|
-
|
|
293
|
+
...(input.Arn != null && { Arn: input.Arn }),
|
|
294
|
+
...(input.DetailType != null && { DetailType: input.DetailType }),
|
|
295
|
+
...(input.EventTypeIds != null && {
|
|
296
|
+
EventTypeIds: serializeAws_restJson1EventTypeIds(input.EventTypeIds, context),
|
|
297
|
+
}),
|
|
298
|
+
...(input.Name != null && { Name: input.Name }),
|
|
299
|
+
...(input.Status != null && { Status: input.Status }),
|
|
300
|
+
...(input.Targets != null && { Targets: serializeAws_restJson1Targets(input.Targets, context) }),
|
|
308
301
|
});
|
|
309
302
|
return new protocol_http_1.HttpRequest({
|
|
310
303
|
protocol,
|
|
@@ -1013,8 +1006,8 @@ const serializeAws_restJson1EventTypeIds = (input, context) => {
|
|
|
1013
1006
|
};
|
|
1014
1007
|
const serializeAws_restJson1ListEventTypesFilter = (input, context) => {
|
|
1015
1008
|
return {
|
|
1016
|
-
...(input.Name
|
|
1017
|
-
...(input.Value
|
|
1009
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1010
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1018
1011
|
};
|
|
1019
1012
|
};
|
|
1020
1013
|
const serializeAws_restJson1ListEventTypesFilters = (input, context) => {
|
|
@@ -1029,8 +1022,8 @@ const serializeAws_restJson1ListEventTypesFilters = (input, context) => {
|
|
|
1029
1022
|
};
|
|
1030
1023
|
const serializeAws_restJson1ListNotificationRulesFilter = (input, context) => {
|
|
1031
1024
|
return {
|
|
1032
|
-
...(input.Name
|
|
1033
|
-
...(input.Value
|
|
1025
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1026
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1034
1027
|
};
|
|
1035
1028
|
};
|
|
1036
1029
|
const serializeAws_restJson1ListNotificationRulesFilters = (input, context) => {
|
|
@@ -1045,8 +1038,8 @@ const serializeAws_restJson1ListNotificationRulesFilters = (input, context) => {
|
|
|
1045
1038
|
};
|
|
1046
1039
|
const serializeAws_restJson1ListTargetsFilter = (input, context) => {
|
|
1047
1040
|
return {
|
|
1048
|
-
...(input.Name
|
|
1049
|
-
...(input.Value
|
|
1041
|
+
...(input.Name != null && { Name: input.Name }),
|
|
1042
|
+
...(input.Value != null && { Value: input.Value }),
|
|
1050
1043
|
};
|
|
1051
1044
|
};
|
|
1052
1045
|
const serializeAws_restJson1ListTargetsFilters = (input, context) => {
|
|
@@ -1082,8 +1075,8 @@ const serializeAws_restJson1Tags = (input, context) => {
|
|
|
1082
1075
|
};
|
|
1083
1076
|
const serializeAws_restJson1Target = (input, context) => {
|
|
1084
1077
|
return {
|
|
1085
|
-
...(input.TargetAddress
|
|
1086
|
-
...(input.TargetType
|
|
1078
|
+
...(input.TargetAddress != null && { TargetAddress: input.TargetAddress }),
|
|
1079
|
+
...(input.TargetType != null && { TargetType: input.TargetType }),
|
|
1087
1080
|
};
|
|
1088
1081
|
};
|
|
1089
1082
|
const serializeAws_restJson1Targets = (input, context) => {
|
|
@@ -16,9 +16,9 @@ export var serializeAws_restJson1CreateNotificationRuleCommand = function (input
|
|
|
16
16
|
"content-type": "application/json",
|
|
17
17
|
};
|
|
18
18
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/createNotificationRule";
|
|
19
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.DetailType
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign(__assign({ ClientRequestToken: (_c = input.ClientRequestToken) !== null && _c !== void 0 ? _c : generateIdempotencyToken() }, (input.DetailType != null && { DetailType: input.DetailType })), (input.EventTypeIds != null && {
|
|
20
|
+
EventTypeIds: serializeAws_restJson1EventTypeIds(input.EventTypeIds, context),
|
|
21
|
+
})), (input.Name != null && { Name: input.Name })), (input.Resource != null && { Resource: input.Resource })), (input.Status != null && { Status: input.Status })), (input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })), (input.Targets != null && { Targets: serializeAws_restJson1Targets(input.Targets, context) })));
|
|
22
22
|
return [2, new __HttpRequest({
|
|
23
23
|
protocol: protocol,
|
|
24
24
|
hostname: hostname,
|
|
@@ -42,7 +42,7 @@ export var serializeAws_restJson1DeleteNotificationRuleCommand = function (input
|
|
|
42
42
|
"content-type": "application/json",
|
|
43
43
|
};
|
|
44
44
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteNotificationRule";
|
|
45
|
-
body = JSON.stringify(__assign({}, (input.Arn
|
|
45
|
+
body = JSON.stringify(__assign({}, (input.Arn != null && { Arn: input.Arn })));
|
|
46
46
|
return [2, new __HttpRequest({
|
|
47
47
|
protocol: protocol,
|
|
48
48
|
hostname: hostname,
|
|
@@ -66,8 +66,7 @@ export var serializeAws_restJson1DeleteTargetCommand = function (input, context)
|
|
|
66
66
|
"content-type": "application/json",
|
|
67
67
|
};
|
|
68
68
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/deleteTarget";
|
|
69
|
-
body = JSON.stringify(__assign(__assign({}, (input.ForceUnsubscribeAll
|
|
70
|
-
input.ForceUnsubscribeAll !== null && { ForceUnsubscribeAll: input.ForceUnsubscribeAll })), (input.TargetAddress !== undefined && input.TargetAddress !== null && { TargetAddress: input.TargetAddress })));
|
|
69
|
+
body = JSON.stringify(__assign(__assign({}, (input.ForceUnsubscribeAll != null && { ForceUnsubscribeAll: input.ForceUnsubscribeAll })), (input.TargetAddress != null && { TargetAddress: input.TargetAddress })));
|
|
71
70
|
return [2, new __HttpRequest({
|
|
72
71
|
protocol: protocol,
|
|
73
72
|
hostname: hostname,
|
|
@@ -91,7 +90,7 @@ export var serializeAws_restJson1DescribeNotificationRuleCommand = function (inp
|
|
|
91
90
|
"content-type": "application/json",
|
|
92
91
|
};
|
|
93
92
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/describeNotificationRule";
|
|
94
|
-
body = JSON.stringify(__assign({}, (input.Arn
|
|
93
|
+
body = JSON.stringify(__assign({}, (input.Arn != null && { Arn: input.Arn })));
|
|
95
94
|
return [2, new __HttpRequest({
|
|
96
95
|
protocol: protocol,
|
|
97
96
|
hostname: hostname,
|
|
@@ -115,8 +114,7 @@ export var serializeAws_restJson1ListEventTypesCommand = function (input, contex
|
|
|
115
114
|
"content-type": "application/json",
|
|
116
115
|
};
|
|
117
116
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listEventTypes";
|
|
118
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters
|
|
119
|
-
input.Filters !== null && { Filters: serializeAws_restJson1ListEventTypesFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
117
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1ListEventTypesFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
120
118
|
return [2, new __HttpRequest({
|
|
121
119
|
protocol: protocol,
|
|
122
120
|
hostname: hostname,
|
|
@@ -140,10 +138,9 @@ export var serializeAws_restJson1ListNotificationRulesCommand = function (input,
|
|
|
140
138
|
"content-type": "application/json",
|
|
141
139
|
};
|
|
142
140
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listNotificationRules";
|
|
143
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters
|
|
144
|
-
input.Filters !== null && {
|
|
141
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters != null && {
|
|
145
142
|
Filters: serializeAws_restJson1ListNotificationRulesFilters(input.Filters, context),
|
|
146
|
-
})), (input.MaxResults
|
|
143
|
+
})), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
147
144
|
return [2, new __HttpRequest({
|
|
148
145
|
protocol: protocol,
|
|
149
146
|
hostname: hostname,
|
|
@@ -167,7 +164,7 @@ export var serializeAws_restJson1ListTagsForResourceCommand = function (input, c
|
|
|
167
164
|
"content-type": "application/json",
|
|
168
165
|
};
|
|
169
166
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listTagsForResource";
|
|
170
|
-
body = JSON.stringify(__assign({}, (input.Arn
|
|
167
|
+
body = JSON.stringify(__assign({}, (input.Arn != null && { Arn: input.Arn })));
|
|
171
168
|
return [2, new __HttpRequest({
|
|
172
169
|
protocol: protocol,
|
|
173
170
|
hostname: hostname,
|
|
@@ -191,8 +188,7 @@ export var serializeAws_restJson1ListTargetsCommand = function (input, context)
|
|
|
191
188
|
"content-type": "application/json",
|
|
192
189
|
};
|
|
193
190
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/listTargets";
|
|
194
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters
|
|
195
|
-
input.Filters !== null && { Filters: serializeAws_restJson1ListTargetsFilters(input.Filters, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults })), (input.NextToken !== undefined && input.NextToken !== null && { NextToken: input.NextToken })));
|
|
191
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Filters != null && { Filters: serializeAws_restJson1ListTargetsFilters(input.Filters, context) })), (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })));
|
|
196
192
|
return [2, new __HttpRequest({
|
|
197
193
|
protocol: protocol,
|
|
198
194
|
hostname: hostname,
|
|
@@ -216,9 +212,7 @@ export var serializeAws_restJson1SubscribeCommand = function (input, context) {
|
|
|
216
212
|
"content-type": "application/json",
|
|
217
213
|
};
|
|
218
214
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/subscribe";
|
|
219
|
-
body = JSON.stringify(__assign(__assign(__assign({}, (input.Arn
|
|
220
|
-
input.ClientRequestToken !== null && { ClientRequestToken: input.ClientRequestToken })), (input.Target !== undefined &&
|
|
221
|
-
input.Target !== null && { Target: serializeAws_restJson1Target(input.Target, context) })));
|
|
215
|
+
body = JSON.stringify(__assign(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.ClientRequestToken != null && { ClientRequestToken: input.ClientRequestToken })), (input.Target != null && { Target: serializeAws_restJson1Target(input.Target, context) })));
|
|
222
216
|
return [2, new __HttpRequest({
|
|
223
217
|
protocol: protocol,
|
|
224
218
|
hostname: hostname,
|
|
@@ -242,7 +236,7 @@ export var serializeAws_restJson1TagResourceCommand = function (input, context)
|
|
|
242
236
|
"content-type": "application/json",
|
|
243
237
|
};
|
|
244
238
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/tagResource";
|
|
245
|
-
body = JSON.stringify(__assign(__assign({}, (input.Arn
|
|
239
|
+
body = JSON.stringify(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.Tags != null && { Tags: serializeAws_restJson1Tags(input.Tags, context) })));
|
|
246
240
|
return [2, new __HttpRequest({
|
|
247
241
|
protocol: protocol,
|
|
248
242
|
hostname: hostname,
|
|
@@ -266,7 +260,7 @@ export var serializeAws_restJson1UnsubscribeCommand = function (input, context)
|
|
|
266
260
|
"content-type": "application/json",
|
|
267
261
|
};
|
|
268
262
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/unsubscribe";
|
|
269
|
-
body = JSON.stringify(__assign(__assign({}, (input.Arn
|
|
263
|
+
body = JSON.stringify(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.TargetAddress != null && { TargetAddress: input.TargetAddress })));
|
|
270
264
|
return [2, new __HttpRequest({
|
|
271
265
|
protocol: protocol,
|
|
272
266
|
hostname: hostname,
|
|
@@ -290,8 +284,7 @@ export var serializeAws_restJson1UntagResourceCommand = function (input, context
|
|
|
290
284
|
"content-type": "application/json",
|
|
291
285
|
};
|
|
292
286
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/untagResource";
|
|
293
|
-
body = JSON.stringify(__assign(__assign({}, (input.Arn
|
|
294
|
-
input.TagKeys !== null && { TagKeys: serializeAws_restJson1TagKeys(input.TagKeys, context) })));
|
|
287
|
+
body = JSON.stringify(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.TagKeys != null && { TagKeys: serializeAws_restJson1TagKeys(input.TagKeys, context) })));
|
|
295
288
|
return [2, new __HttpRequest({
|
|
296
289
|
protocol: protocol,
|
|
297
290
|
hostname: hostname,
|
|
@@ -315,9 +308,9 @@ export var serializeAws_restJson1UpdateNotificationRuleCommand = function (input
|
|
|
315
308
|
"content-type": "application/json",
|
|
316
309
|
};
|
|
317
310
|
resolvedPath = "".concat((basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || "") + "/updateNotificationRule";
|
|
318
|
-
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Arn
|
|
319
|
-
|
|
320
|
-
|
|
311
|
+
body = JSON.stringify(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.Arn != null && { Arn: input.Arn })), (input.DetailType != null && { DetailType: input.DetailType })), (input.EventTypeIds != null && {
|
|
312
|
+
EventTypeIds: serializeAws_restJson1EventTypeIds(input.EventTypeIds, context),
|
|
313
|
+
})), (input.Name != null && { Name: input.Name })), (input.Status != null && { Status: input.Status })), (input.Targets != null && { Targets: serializeAws_restJson1Targets(input.Targets, context) })));
|
|
321
314
|
return [2, new __HttpRequest({
|
|
322
315
|
protocol: protocol,
|
|
323
316
|
hostname: hostname,
|
|
@@ -1284,7 +1277,7 @@ var serializeAws_restJson1EventTypeIds = function (input, context) {
|
|
|
1284
1277
|
});
|
|
1285
1278
|
};
|
|
1286
1279
|
var serializeAws_restJson1ListEventTypesFilter = function (input, context) {
|
|
1287
|
-
return __assign(__assign({}, (input.Name
|
|
1280
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: input.Value }));
|
|
1288
1281
|
};
|
|
1289
1282
|
var serializeAws_restJson1ListEventTypesFilters = function (input, context) {
|
|
1290
1283
|
return input
|
|
@@ -1297,7 +1290,7 @@ var serializeAws_restJson1ListEventTypesFilters = function (input, context) {
|
|
|
1297
1290
|
});
|
|
1298
1291
|
};
|
|
1299
1292
|
var serializeAws_restJson1ListNotificationRulesFilter = function (input, context) {
|
|
1300
|
-
return __assign(__assign({}, (input.Name
|
|
1293
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: input.Value }));
|
|
1301
1294
|
};
|
|
1302
1295
|
var serializeAws_restJson1ListNotificationRulesFilters = function (input, context) {
|
|
1303
1296
|
return input
|
|
@@ -1310,7 +1303,7 @@ var serializeAws_restJson1ListNotificationRulesFilters = function (input, contex
|
|
|
1310
1303
|
});
|
|
1311
1304
|
};
|
|
1312
1305
|
var serializeAws_restJson1ListTargetsFilter = function (input, context) {
|
|
1313
|
-
return __assign(__assign({}, (input.Name
|
|
1306
|
+
return __assign(__assign({}, (input.Name != null && { Name: input.Name })), (input.Value != null && { Value: input.Value }));
|
|
1314
1307
|
};
|
|
1315
1308
|
var serializeAws_restJson1ListTargetsFilters = function (input, context) {
|
|
1316
1309
|
return input
|
|
@@ -1343,7 +1336,7 @@ var serializeAws_restJson1Tags = function (input, context) {
|
|
|
1343
1336
|
}, {});
|
|
1344
1337
|
};
|
|
1345
1338
|
var serializeAws_restJson1Target = function (input, context) {
|
|
1346
|
-
return __assign(__assign({}, (input.TargetAddress
|
|
1339
|
+
return __assign(__assign({}, (input.TargetAddress != null && { TargetAddress: input.TargetAddress })), (input.TargetType != null && { TargetType: input.TargetType }));
|
|
1347
1340
|
};
|
|
1348
1341
|
var serializeAws_restJson1Targets = function (input, context) {
|
|
1349
1342
|
return input
|
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.127.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",
|
|
@@ -18,35 +18,35 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.127.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.127.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.127.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.127.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.127.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
52
|
"tslib": "^2.3.1",
|