@aws-sdk/client-codestar-notifications 3.987.0 → 3.988.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.
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CodestarNotificationsServiceException = exports.__ServiceException = void 0;
4
+ const smithy_client_1 = require("@smithy/smithy-client");
5
+ Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } });
6
+ class CodestarNotificationsServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, CodestarNotificationsServiceException.prototype);
10
+ }
11
+ }
12
+ exports.CodestarNotificationsServiceException = CodestarNotificationsServiceException;
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InvalidNextTokenException = exports.ResourceNotFoundException = exports.ValidationException = exports.ResourceAlreadyExistsException = exports.LimitExceededException = exports.ConfigurationException = exports.ConcurrentModificationException = exports.AccessDeniedException = void 0;
4
+ const CodestarNotificationsServiceException_1 = require("./CodestarNotificationsServiceException");
5
+ class AccessDeniedException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "AccessDeniedException",
12
+ $fault: "client",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.AccessDeniedException = AccessDeniedException;
20
+ class ConcurrentModificationException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
21
+ name = "ConcurrentModificationException";
22
+ $fault = "client";
23
+ Message;
24
+ constructor(opts) {
25
+ super({
26
+ name: "ConcurrentModificationException",
27
+ $fault: "client",
28
+ ...opts,
29
+ });
30
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
31
+ this.Message = opts.Message;
32
+ }
33
+ }
34
+ exports.ConcurrentModificationException = ConcurrentModificationException;
35
+ class ConfigurationException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
36
+ name = "ConfigurationException";
37
+ $fault = "client";
38
+ Message;
39
+ constructor(opts) {
40
+ super({
41
+ name: "ConfigurationException",
42
+ $fault: "client",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, ConfigurationException.prototype);
46
+ this.Message = opts.Message;
47
+ }
48
+ }
49
+ exports.ConfigurationException = ConfigurationException;
50
+ class LimitExceededException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
51
+ name = "LimitExceededException";
52
+ $fault = "client";
53
+ Message;
54
+ constructor(opts) {
55
+ super({
56
+ name: "LimitExceededException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
61
+ this.Message = opts.Message;
62
+ }
63
+ }
64
+ exports.LimitExceededException = LimitExceededException;
65
+ class ResourceAlreadyExistsException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
66
+ name = "ResourceAlreadyExistsException";
67
+ $fault = "client";
68
+ Message;
69
+ constructor(opts) {
70
+ super({
71
+ name: "ResourceAlreadyExistsException",
72
+ $fault: "client",
73
+ ...opts,
74
+ });
75
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
76
+ this.Message = opts.Message;
77
+ }
78
+ }
79
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
80
+ class ValidationException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
81
+ name = "ValidationException";
82
+ $fault = "client";
83
+ Message;
84
+ constructor(opts) {
85
+ super({
86
+ name: "ValidationException",
87
+ $fault: "client",
88
+ ...opts,
89
+ });
90
+ Object.setPrototypeOf(this, ValidationException.prototype);
91
+ this.Message = opts.Message;
92
+ }
93
+ }
94
+ exports.ValidationException = ValidationException;
95
+ class ResourceNotFoundException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
96
+ name = "ResourceNotFoundException";
97
+ $fault = "client";
98
+ Message;
99
+ constructor(opts) {
100
+ super({
101
+ name: "ResourceNotFoundException",
102
+ $fault: "client",
103
+ ...opts,
104
+ });
105
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
106
+ this.Message = opts.Message;
107
+ }
108
+ }
109
+ exports.ResourceNotFoundException = ResourceNotFoundException;
110
+ class InvalidNextTokenException extends CodestarNotificationsServiceException_1.CodestarNotificationsServiceException {
111
+ name = "InvalidNextTokenException";
112
+ $fault = "client";
113
+ Message;
114
+ constructor(opts) {
115
+ super({
116
+ name: "InvalidNextTokenException",
117
+ $fault: "client",
118
+ ...opts,
119
+ });
120
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
121
+ this.Message = opts.Message;
122
+ }
123
+ }
124
+ exports.InvalidNextTokenException = InvalidNextTokenException;
@@ -9,6 +9,7 @@ const util_base64_1 = require("@smithy/util-base64");
9
9
  const util_utf8_1 = require("@smithy/util-utf8");
10
10
  const httpAuthSchemeProvider_1 = require("./auth/httpAuthSchemeProvider");
11
11
  const endpointResolver_1 = require("./endpoint/endpointResolver");
12
+ const schemas_0_1 = require("./schemas/schemas_0");
12
13
  const getRuntimeConfig = (config) => {
13
14
  return {
14
15
  apiVersion: "2019-10-15",
@@ -29,6 +30,7 @@ const getRuntimeConfig = (config) => {
29
30
  protocol: config?.protocol ?? protocols_1.AwsRestJsonProtocol,
30
31
  protocolSettings: config?.protocolSettings ?? {
31
32
  defaultNamespace: "com.amazonaws.codestarnotifications",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2019-10-15",
33
35
  serviceTarget: "CodeStarNotifications_20191015",
34
36
  },
@@ -0,0 +1,393 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListTagsForResource$ = exports.ListNotificationRules$ = exports.ListEventTypes$ = exports.DescribeNotificationRule$ = exports.DeleteTarget$ = exports.DeleteNotificationRule$ = exports.CreateNotificationRule$ = exports.UpdateNotificationRuleResult$ = exports.UpdateNotificationRuleRequest$ = exports.UntagResourceResult$ = exports.UntagResourceRequest$ = exports.UnsubscribeResult$ = exports.UnsubscribeRequest$ = exports.TargetSummary$ = exports.Target$ = exports.TagResourceResult$ = exports.TagResourceRequest$ = exports.SubscribeResult$ = exports.SubscribeRequest$ = exports.NotificationRuleSummary$ = exports.ListTargetsResult$ = exports.ListTargetsRequest$ = exports.ListTargetsFilter$ = exports.ListTagsForResourceResult$ = exports.ListTagsForResourceRequest$ = exports.ListNotificationRulesResult$ = exports.ListNotificationRulesRequest$ = exports.ListNotificationRulesFilter$ = exports.ListEventTypesResult$ = exports.ListEventTypesRequest$ = exports.ListEventTypesFilter$ = exports.EventTypeSummary$ = exports.DescribeNotificationRuleResult$ = exports.DescribeNotificationRuleRequest$ = exports.DeleteTargetResult$ = exports.DeleteTargetRequest$ = exports.DeleteNotificationRuleResult$ = exports.DeleteNotificationRuleRequest$ = exports.CreateNotificationRuleResult$ = exports.CreateNotificationRuleRequest$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ResourceNotFoundException$ = exports.ResourceAlreadyExistsException$ = exports.LimitExceededException$ = exports.InvalidNextTokenException$ = exports.ConfigurationException$ = exports.ConcurrentModificationException$ = exports.AccessDeniedException$ = exports.CodestarNotificationsServiceException$ = void 0;
4
+ exports.UpdateNotificationRule$ = exports.UntagResource$ = exports.Unsubscribe$ = exports.TagResource$ = exports.Subscribe$ = exports.ListTargets$ = void 0;
5
+ const _A = "Arn";
6
+ const _ADE = "AccessDeniedException";
7
+ const _CB = "CreatedBy";
8
+ const _CE = "ConfigurationException";
9
+ const _CME = "ConcurrentModificationException";
10
+ const _CNR = "CreateNotificationRule";
11
+ const _CNRR = "CreateNotificationRuleRequest";
12
+ const _CNRRr = "CreateNotificationRuleResult";
13
+ const _CRT = "ClientRequestToken";
14
+ const _CT = "CreatedTimestamp";
15
+ const _DNR = "DeleteNotificationRule";
16
+ const _DNRR = "DeleteNotificationRuleRequest";
17
+ const _DNRRe = "DeleteNotificationRuleResult";
18
+ const _DNRRes = "DescribeNotificationRuleRequest";
19
+ const _DNRResc = "DescribeNotificationRuleResult";
20
+ const _DNRe = "DescribeNotificationRule";
21
+ const _DT = "DetailType";
22
+ const _DTR = "DeleteTargetRequest";
23
+ const _DTRe = "DeleteTargetResult";
24
+ const _DTe = "DeleteTarget";
25
+ const _ET = "EventTypes";
26
+ const _ETB = "EventTypeBatch";
27
+ const _ETI = "EventTypeIds";
28
+ const _ETIv = "EventTypeId";
29
+ const _ETN = "EventTypeName";
30
+ const _ETS = "EventTypeSummary";
31
+ const _F = "Filters";
32
+ const _FUA = "ForceUnsubscribeAll";
33
+ const _I = "Id";
34
+ const _INTE = "InvalidNextTokenException";
35
+ const _LEE = "LimitExceededException";
36
+ const _LET = "ListEventTypes";
37
+ const _LETF = "ListEventTypesFilter";
38
+ const _LETFi = "ListEventTypesFilters";
39
+ const _LETR = "ListEventTypesRequest";
40
+ const _LETRi = "ListEventTypesResult";
41
+ const _LMT = "LastModifiedTimestamp";
42
+ const _LNR = "ListNotificationRules";
43
+ const _LNRF = "ListNotificationRulesFilter";
44
+ const _LNRFi = "ListNotificationRulesFilters";
45
+ const _LNRR = "ListNotificationRulesRequest";
46
+ const _LNRRi = "ListNotificationRulesResult";
47
+ const _LT = "ListTargets";
48
+ const _LTF = "ListTargetsFilter";
49
+ const _LTFR = "ListTagsForResource";
50
+ const _LTFRR = "ListTagsForResourceRequest";
51
+ const _LTFRRi = "ListTagsForResourceResult";
52
+ const _LTFi = "ListTargetsFilters";
53
+ const _LTR = "ListTargetsRequest";
54
+ const _LTRi = "ListTargetsResult";
55
+ const _M = "Message";
56
+ const _MR = "MaxResults";
57
+ const _N = "Name";
58
+ const _NR = "NotificationRules";
59
+ const _NRB = "NotificationRuleBatch";
60
+ const _NRN = "NotificationRuleName";
61
+ const _NRS = "NotificationRuleSummary";
62
+ const _NT = "NextToken";
63
+ const _R = "Resource";
64
+ const _RAEE = "ResourceAlreadyExistsException";
65
+ const _RNFE = "ResourceNotFoundException";
66
+ const _RT = "ResourceType";
67
+ const _S = "Status";
68
+ const _SN = "ServiceName";
69
+ const _SR = "SubscribeRequest";
70
+ const _SRu = "SubscribeResult";
71
+ const _Su = "Subscribe";
72
+ const _T = "Targets";
73
+ const _TA = "TargetAddress";
74
+ const _TB = "TargetsBatch";
75
+ const _TK = "TagKeys";
76
+ const _TR = "TagResource";
77
+ const _TRR = "TagResourceRequest";
78
+ const _TRRa = "TagResourceResult";
79
+ const _TS = "TargetSummary";
80
+ const _TSa = "TargetStatus";
81
+ const _TT = "TargetType";
82
+ const _Ta = "Tags";
83
+ const _Tar = "Target";
84
+ const _U = "Unsubscribe";
85
+ const _UNR = "UpdateNotificationRule";
86
+ const _UNRR = "UpdateNotificationRuleRequest";
87
+ const _UNRRp = "UpdateNotificationRuleResult";
88
+ const _UR = "UnsubscribeRequest";
89
+ const _URR = "UntagResourceRequest";
90
+ const _URRn = "UntagResourceResult";
91
+ const _URn = "UnsubscribeResult";
92
+ const _URnt = "UntagResource";
93
+ const _V = "Value";
94
+ const _VE = "ValidationException";
95
+ const _c = "client";
96
+ const _e = "error";
97
+ const _h = "http";
98
+ const _hE = "httpError";
99
+ const _hQ = "httpQuery";
100
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.codestarnotifications";
101
+ const _tK = "tagKeys";
102
+ const n0 = "com.amazonaws.codestarnotifications";
103
+ const schema_1 = require("@smithy/core/schema");
104
+ const CodestarNotificationsServiceException_1 = require("../models/CodestarNotificationsServiceException");
105
+ const errors_1 = require("../models/errors");
106
+ const _s_registry = schema_1.TypeRegistry.for(_s);
107
+ exports.CodestarNotificationsServiceException$ = [-3, _s, "CodestarNotificationsServiceException", 0, [], []];
108
+ _s_registry.registerError(exports.CodestarNotificationsServiceException$, CodestarNotificationsServiceException_1.CodestarNotificationsServiceException);
109
+ const n0_registry = schema_1.TypeRegistry.for(n0);
110
+ exports.AccessDeniedException$ = [-3, n0, _ADE,
111
+ { [_e]: _c, [_hE]: 403 },
112
+ [_M],
113
+ [0]
114
+ ];
115
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
116
+ exports.ConcurrentModificationException$ = [-3, n0, _CME,
117
+ { [_e]: _c, [_hE]: 400 },
118
+ [_M],
119
+ [0]
120
+ ];
121
+ n0_registry.registerError(exports.ConcurrentModificationException$, errors_1.ConcurrentModificationException);
122
+ exports.ConfigurationException$ = [-3, n0, _CE,
123
+ { [_e]: _c, [_hE]: 400 },
124
+ [_M],
125
+ [0]
126
+ ];
127
+ n0_registry.registerError(exports.ConfigurationException$, errors_1.ConfigurationException);
128
+ exports.InvalidNextTokenException$ = [-3, n0, _INTE,
129
+ { [_e]: _c, [_hE]: 400 },
130
+ [_M],
131
+ [0]
132
+ ];
133
+ n0_registry.registerError(exports.InvalidNextTokenException$, errors_1.InvalidNextTokenException);
134
+ exports.LimitExceededException$ = [-3, n0, _LEE,
135
+ { [_e]: _c, [_hE]: 400 },
136
+ [_M],
137
+ [0]
138
+ ];
139
+ n0_registry.registerError(exports.LimitExceededException$, errors_1.LimitExceededException);
140
+ exports.ResourceAlreadyExistsException$ = [-3, n0, _RAEE,
141
+ { [_e]: _c, [_hE]: 409 },
142
+ [_M],
143
+ [0]
144
+ ];
145
+ n0_registry.registerError(exports.ResourceAlreadyExistsException$, errors_1.ResourceAlreadyExistsException);
146
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
147
+ { [_e]: _c, [_hE]: 404 },
148
+ [_M],
149
+ [0]
150
+ ];
151
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
152
+ exports.ValidationException$ = [-3, n0, _VE,
153
+ { [_e]: _c, [_hE]: 400 },
154
+ [_M],
155
+ [0]
156
+ ];
157
+ n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
158
+ exports.errorTypeRegistries = [
159
+ _s_registry,
160
+ n0_registry,
161
+ ];
162
+ var NotificationRuleName = [0, n0, _NRN, 8, 0];
163
+ var TargetAddress = [0, n0, _TA, 8, 0];
164
+ exports.CreateNotificationRuleRequest$ = [3, n0, _CNRR,
165
+ 0,
166
+ [_N, _ETI, _R, _T, _DT, _CRT, _Ta, _S],
167
+ [[() => NotificationRuleName, 0], 64 | 0, 0, [() => Targets, 0], 0, [0, 4], 128 | 0, 0], 5
168
+ ];
169
+ exports.CreateNotificationRuleResult$ = [3, n0, _CNRRr,
170
+ 0,
171
+ [_A],
172
+ [0]
173
+ ];
174
+ exports.DeleteNotificationRuleRequest$ = [3, n0, _DNRR,
175
+ 0,
176
+ [_A],
177
+ [0], 1
178
+ ];
179
+ exports.DeleteNotificationRuleResult$ = [3, n0, _DNRRe,
180
+ 0,
181
+ [_A],
182
+ [0]
183
+ ];
184
+ exports.DeleteTargetRequest$ = [3, n0, _DTR,
185
+ 0,
186
+ [_TA, _FUA],
187
+ [[() => TargetAddress, 0], 2], 1
188
+ ];
189
+ exports.DeleteTargetResult$ = [3, n0, _DTRe,
190
+ 0,
191
+ [],
192
+ []
193
+ ];
194
+ exports.DescribeNotificationRuleRequest$ = [3, n0, _DNRRes,
195
+ 0,
196
+ [_A],
197
+ [0], 1
198
+ ];
199
+ exports.DescribeNotificationRuleResult$ = [3, n0, _DNRResc,
200
+ 0,
201
+ [_A, _N, _ET, _R, _T, _DT, _CB, _S, _CT, _LMT, _Ta],
202
+ [0, [() => NotificationRuleName, 0], () => EventTypeBatch, 0, [() => TargetsBatch, 0], 0, 0, 0, 4, 4, 128 | 0], 1
203
+ ];
204
+ exports.EventTypeSummary$ = [3, n0, _ETS,
205
+ 0,
206
+ [_ETIv, _SN, _ETN, _RT],
207
+ [0, 0, 0, 0]
208
+ ];
209
+ exports.ListEventTypesFilter$ = [3, n0, _LETF,
210
+ 0,
211
+ [_N, _V],
212
+ [0, 0], 2
213
+ ];
214
+ exports.ListEventTypesRequest$ = [3, n0, _LETR,
215
+ 0,
216
+ [_F, _NT, _MR],
217
+ [() => ListEventTypesFilters, 0, 1]
218
+ ];
219
+ exports.ListEventTypesResult$ = [3, n0, _LETRi,
220
+ 0,
221
+ [_ET, _NT],
222
+ [() => EventTypeBatch, 0]
223
+ ];
224
+ exports.ListNotificationRulesFilter$ = [3, n0, _LNRF,
225
+ 0,
226
+ [_N, _V],
227
+ [0, 0], 2
228
+ ];
229
+ exports.ListNotificationRulesRequest$ = [3, n0, _LNRR,
230
+ 0,
231
+ [_F, _NT, _MR],
232
+ [() => ListNotificationRulesFilters, 0, 1]
233
+ ];
234
+ exports.ListNotificationRulesResult$ = [3, n0, _LNRRi,
235
+ 0,
236
+ [_NT, _NR],
237
+ [0, () => NotificationRuleBatch]
238
+ ];
239
+ exports.ListTagsForResourceRequest$ = [3, n0, _LTFRR,
240
+ 0,
241
+ [_A],
242
+ [0], 1
243
+ ];
244
+ exports.ListTagsForResourceResult$ = [3, n0, _LTFRRi,
245
+ 0,
246
+ [_Ta],
247
+ [128 | 0]
248
+ ];
249
+ exports.ListTargetsFilter$ = [3, n0, _LTF,
250
+ 0,
251
+ [_N, _V],
252
+ [0, 0], 2
253
+ ];
254
+ exports.ListTargetsRequest$ = [3, n0, _LTR,
255
+ 0,
256
+ [_F, _NT, _MR],
257
+ [() => ListTargetsFilters, 0, 1]
258
+ ];
259
+ exports.ListTargetsResult$ = [3, n0, _LTRi,
260
+ 0,
261
+ [_T, _NT],
262
+ [[() => TargetsBatch, 0], 0]
263
+ ];
264
+ exports.NotificationRuleSummary$ = [3, n0, _NRS,
265
+ 0,
266
+ [_I, _A],
267
+ [0, 0]
268
+ ];
269
+ exports.SubscribeRequest$ = [3, n0, _SR,
270
+ 0,
271
+ [_A, _Tar, _CRT],
272
+ [0, [() => exports.Target$, 0], 0], 2
273
+ ];
274
+ exports.SubscribeResult$ = [3, n0, _SRu,
275
+ 0,
276
+ [_A],
277
+ [0]
278
+ ];
279
+ exports.TagResourceRequest$ = [3, n0, _TRR,
280
+ 0,
281
+ [_A, _Ta],
282
+ [0, 128 | 0], 2
283
+ ];
284
+ exports.TagResourceResult$ = [3, n0, _TRRa,
285
+ 0,
286
+ [_Ta],
287
+ [128 | 0]
288
+ ];
289
+ exports.Target$ = [3, n0, _Tar,
290
+ 0,
291
+ [_TT, _TA],
292
+ [0, [() => TargetAddress, 0]]
293
+ ];
294
+ exports.TargetSummary$ = [3, n0, _TS,
295
+ 0,
296
+ [_TA, _TT, _TSa],
297
+ [[() => TargetAddress, 0], 0, 0]
298
+ ];
299
+ exports.UnsubscribeRequest$ = [3, n0, _UR,
300
+ 0,
301
+ [_A, _TA],
302
+ [0, [() => TargetAddress, 0]], 2
303
+ ];
304
+ exports.UnsubscribeResult$ = [3, n0, _URn,
305
+ 0,
306
+ [_A],
307
+ [0], 1
308
+ ];
309
+ exports.UntagResourceRequest$ = [3, n0, _URR,
310
+ 0,
311
+ [_A, _TK],
312
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
313
+ ];
314
+ exports.UntagResourceResult$ = [3, n0, _URRn,
315
+ 0,
316
+ [],
317
+ []
318
+ ];
319
+ exports.UpdateNotificationRuleRequest$ = [3, n0, _UNRR,
320
+ 0,
321
+ [_A, _N, _S, _ETI, _T, _DT],
322
+ [0, [() => NotificationRuleName, 0], 0, 64 | 0, [() => Targets, 0], 0], 1
323
+ ];
324
+ exports.UpdateNotificationRuleResult$ = [3, n0, _UNRRp,
325
+ 0,
326
+ [],
327
+ []
328
+ ];
329
+ var EventTypeBatch = [1, n0, _ETB,
330
+ 0, () => exports.EventTypeSummary$
331
+ ];
332
+ var EventTypeIds = 64 | 0;
333
+ var ListEventTypesFilters = [1, n0, _LETFi,
334
+ 0, () => exports.ListEventTypesFilter$
335
+ ];
336
+ var ListNotificationRulesFilters = [1, n0, _LNRFi,
337
+ 0, () => exports.ListNotificationRulesFilter$
338
+ ];
339
+ var ListTargetsFilters = [1, n0, _LTFi,
340
+ 0, () => exports.ListTargetsFilter$
341
+ ];
342
+ var NotificationRuleBatch = [1, n0, _NRB,
343
+ 0, () => exports.NotificationRuleSummary$
344
+ ];
345
+ var TagKeys = 64 | 0;
346
+ var Targets = [1, n0, _T,
347
+ 0, [() => exports.Target$,
348
+ 0]
349
+ ];
350
+ var TargetsBatch = [1, n0, _TB,
351
+ 0, [() => exports.TargetSummary$,
352
+ 0]
353
+ ];
354
+ var Tags = 128 | 0;
355
+ exports.CreateNotificationRule$ = [9, n0, _CNR,
356
+ { [_h]: ["POST", "/createNotificationRule", 200] }, () => exports.CreateNotificationRuleRequest$, () => exports.CreateNotificationRuleResult$
357
+ ];
358
+ exports.DeleteNotificationRule$ = [9, n0, _DNR,
359
+ { [_h]: ["POST", "/deleteNotificationRule", 200] }, () => exports.DeleteNotificationRuleRequest$, () => exports.DeleteNotificationRuleResult$
360
+ ];
361
+ exports.DeleteTarget$ = [9, n0, _DTe,
362
+ { [_h]: ["POST", "/deleteTarget", 200] }, () => exports.DeleteTargetRequest$, () => exports.DeleteTargetResult$
363
+ ];
364
+ exports.DescribeNotificationRule$ = [9, n0, _DNRe,
365
+ { [_h]: ["POST", "/describeNotificationRule", 200] }, () => exports.DescribeNotificationRuleRequest$, () => exports.DescribeNotificationRuleResult$
366
+ ];
367
+ exports.ListEventTypes$ = [9, n0, _LET,
368
+ { [_h]: ["POST", "/listEventTypes", 200] }, () => exports.ListEventTypesRequest$, () => exports.ListEventTypesResult$
369
+ ];
370
+ exports.ListNotificationRules$ = [9, n0, _LNR,
371
+ { [_h]: ["POST", "/listNotificationRules", 200] }, () => exports.ListNotificationRulesRequest$, () => exports.ListNotificationRulesResult$
372
+ ];
373
+ exports.ListTagsForResource$ = [9, n0, _LTFR,
374
+ { [_h]: ["POST", "/listTagsForResource", 200] }, () => exports.ListTagsForResourceRequest$, () => exports.ListTagsForResourceResult$
375
+ ];
376
+ exports.ListTargets$ = [9, n0, _LT,
377
+ { [_h]: ["POST", "/listTargets", 200] }, () => exports.ListTargetsRequest$, () => exports.ListTargetsResult$
378
+ ];
379
+ exports.Subscribe$ = [9, n0, _Su,
380
+ { [_h]: ["POST", "/subscribe", 200] }, () => exports.SubscribeRequest$, () => exports.SubscribeResult$
381
+ ];
382
+ exports.TagResource$ = [9, n0, _TR,
383
+ { [_h]: ["POST", "/tagResource", 200] }, () => exports.TagResourceRequest$, () => exports.TagResourceResult$
384
+ ];
385
+ exports.Unsubscribe$ = [9, n0, _U,
386
+ { [_h]: ["POST", "/unsubscribe", 200] }, () => exports.UnsubscribeRequest$, () => exports.UnsubscribeResult$
387
+ ];
388
+ exports.UntagResource$ = [9, n0, _URnt,
389
+ { [_h]: ["POST", "/untagResource/{Arn}", 200] }, () => exports.UntagResourceRequest$, () => exports.UntagResourceResult$
390
+ ];
391
+ exports.UpdateNotificationRule$ = [9, n0, _UNR,
392
+ { [_h]: ["POST", "/updateNotificationRule", 200] }, () => exports.UpdateNotificationRuleRequest$, () => exports.UpdateNotificationRuleResult$
393
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultCodestarNotificationsHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2019-10-15",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.codestarnotifications",
30
+ errorTypeRegistries,
29
31
  version: "2019-10-15",
30
32
  serviceTarget: "CodeStarNotifications_20191015",
31
33
  },
@@ -99,26 +99,64 @@ const n0 = "com.amazonaws.codestarnotifications";
99
99
  import { TypeRegistry } from "@smithy/core/schema";
100
100
  import { CodestarNotificationsServiceException } from "../models/CodestarNotificationsServiceException";
101
101
  import { AccessDeniedException, ConcurrentModificationException, ConfigurationException, InvalidNextTokenException, LimitExceededException, ResourceAlreadyExistsException, ResourceNotFoundException, ValidationException, } from "../models/errors";
102
- var NotificationRuleName = [0, n0, _NRN, 8, 0];
103
- var TargetAddress = [0, n0, _TA, 8, 0];
102
+ const _s_registry = TypeRegistry.for(_s);
103
+ export var CodestarNotificationsServiceException$ = [-3, _s, "CodestarNotificationsServiceException", 0, [], []];
104
+ _s_registry.registerError(CodestarNotificationsServiceException$, CodestarNotificationsServiceException);
105
+ const n0_registry = TypeRegistry.for(n0);
104
106
  export var AccessDeniedException$ = [-3, n0, _ADE,
105
107
  { [_e]: _c, [_hE]: 403 },
106
108
  [_M],
107
109
  [0]
108
110
  ];
109
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
111
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
110
112
  export var ConcurrentModificationException$ = [-3, n0, _CME,
111
113
  { [_e]: _c, [_hE]: 400 },
112
114
  [_M],
113
115
  [0]
114
116
  ];
115
- TypeRegistry.for(n0).registerError(ConcurrentModificationException$, ConcurrentModificationException);
117
+ n0_registry.registerError(ConcurrentModificationException$, ConcurrentModificationException);
116
118
  export var ConfigurationException$ = [-3, n0, _CE,
117
119
  { [_e]: _c, [_hE]: 400 },
118
120
  [_M],
119
121
  [0]
120
122
  ];
121
- TypeRegistry.for(n0).registerError(ConfigurationException$, ConfigurationException);
123
+ n0_registry.registerError(ConfigurationException$, ConfigurationException);
124
+ export var InvalidNextTokenException$ = [-3, n0, _INTE,
125
+ { [_e]: _c, [_hE]: 400 },
126
+ [_M],
127
+ [0]
128
+ ];
129
+ n0_registry.registerError(InvalidNextTokenException$, InvalidNextTokenException);
130
+ export var LimitExceededException$ = [-3, n0, _LEE,
131
+ { [_e]: _c, [_hE]: 400 },
132
+ [_M],
133
+ [0]
134
+ ];
135
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
136
+ export var ResourceAlreadyExistsException$ = [-3, n0, _RAEE,
137
+ { [_e]: _c, [_hE]: 409 },
138
+ [_M],
139
+ [0]
140
+ ];
141
+ n0_registry.registerError(ResourceAlreadyExistsException$, ResourceAlreadyExistsException);
142
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
143
+ { [_e]: _c, [_hE]: 404 },
144
+ [_M],
145
+ [0]
146
+ ];
147
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
148
+ export var ValidationException$ = [-3, n0, _VE,
149
+ { [_e]: _c, [_hE]: 400 },
150
+ [_M],
151
+ [0]
152
+ ];
153
+ n0_registry.registerError(ValidationException$, ValidationException);
154
+ export const errorTypeRegistries = [
155
+ _s_registry,
156
+ n0_registry,
157
+ ];
158
+ var NotificationRuleName = [0, n0, _NRN, 8, 0];
159
+ var TargetAddress = [0, n0, _TA, 8, 0];
122
160
  export var CreateNotificationRuleRequest$ = [3, n0, _CNRR,
123
161
  0,
124
162
  [_N, _ETI, _R, _T, _DT, _CRT, _Ta, _S],
@@ -164,18 +202,6 @@ export var EventTypeSummary$ = [3, n0, _ETS,
164
202
  [_ETIv, _SN, _ETN, _RT],
165
203
  [0, 0, 0, 0]
166
204
  ];
167
- export var InvalidNextTokenException$ = [-3, n0, _INTE,
168
- { [_e]: _c, [_hE]: 400 },
169
- [_M],
170
- [0]
171
- ];
172
- TypeRegistry.for(n0).registerError(InvalidNextTokenException$, InvalidNextTokenException);
173
- export var LimitExceededException$ = [-3, n0, _LEE,
174
- { [_e]: _c, [_hE]: 400 },
175
- [_M],
176
- [0]
177
- ];
178
- TypeRegistry.for(n0).registerError(LimitExceededException$, LimitExceededException);
179
205
  export var ListEventTypesFilter$ = [3, n0, _LETF,
180
206
  0,
181
207
  [_N, _V],
@@ -236,18 +262,6 @@ export var NotificationRuleSummary$ = [3, n0, _NRS,
236
262
  [_I, _A],
237
263
  [0, 0]
238
264
  ];
239
- export var ResourceAlreadyExistsException$ = [-3, n0, _RAEE,
240
- { [_e]: _c, [_hE]: 409 },
241
- [_M],
242
- [0]
243
- ];
244
- TypeRegistry.for(n0).registerError(ResourceAlreadyExistsException$, ResourceAlreadyExistsException);
245
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
246
- { [_e]: _c, [_hE]: 404 },
247
- [_M],
248
- [0]
249
- ];
250
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
251
265
  export var SubscribeRequest$ = [3, n0, _SR,
252
266
  0,
253
267
  [_A, _Tar, _CRT],
@@ -308,14 +322,6 @@ export var UpdateNotificationRuleResult$ = [3, n0, _UNRRp,
308
322
  [],
309
323
  []
310
324
  ];
311
- export var ValidationException$ = [-3, n0, _VE,
312
- { [_e]: _c, [_hE]: 400 },
313
- [_M],
314
- [0]
315
- ];
316
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
317
- export var CodestarNotificationsServiceException$ = [-3, _s, "CodestarNotificationsServiceException", 0, [], []];
318
- TypeRegistry.for(_s).registerError(CodestarNotificationsServiceException$, CodestarNotificationsServiceException);
319
325
  var EventTypeBatch = [1, n0, _ETB,
320
326
  0, () => EventTypeSummary$
321
327
  ];