@aws-sdk/client-codestar-notifications 3.1074.0 → 3.1076.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 CHANGED
@@ -1,21 +1,57 @@
1
- var __exportStar = (m, e) => { Object.assign(e, m); };
2
- const { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
1
+ const { awsEndpointFunctions, emitWarningIfUnsupportedVersion: emitWarningIfUnsupportedVersion$1, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, resolveUserAgentConfig, resolveHostHeaderConfig, getUserAgentPlugin, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin } = require("@aws-sdk/core/client");
3
2
  const { getHttpAuthSchemeEndpointRuleSetPlugin, DefaultIdentityProviderConfig, getHttpSigningPlugin, createPaginator } = require("@smithy/core");
4
- const { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
3
+ const { normalizeProvider, getSmithyContext, ServiceException, NoOpLogger, emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, Client, Command, createAggregatedClient } = require("@smithy/core/client");
5
4
  exports.$Command = Command;
6
5
  exports.__Client = Client;
7
- const { resolveRegionConfig } = require("@smithy/core/config");
8
- const { resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
9
- const { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
10
- const { resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
11
- const { getSchemaSerdePlugin } = require("@smithy/core/schema");
12
- const { resolveHttpAuthSchemeConfig, defaultCodestarNotificationsHttpAuthSchemeParametersProvider } = require("./auth/httpAuthSchemeProvider");
13
- const { getRuntimeConfig } = require("./runtimeConfig");
14
- const { CreateNotificationRule$, DeleteNotificationRule$, DeleteTarget$, DescribeNotificationRule$, ListEventTypes$, ListNotificationRules$, ListTagsForResource$, ListTargets$, Subscribe$, TagResource$, Unsubscribe$, UntagResource$, UpdateNotificationRule$ } = require("./schemas/schemas_0");
15
- __exportStar(require("./schemas/schemas_0"), exports);
16
- __exportStar(require("./models/errors"), exports);
17
- const { CodestarNotificationsServiceException } = require("./models/CodestarNotificationsServiceException");
18
- exports.CodestarNotificationsServiceException = CodestarNotificationsServiceException;
6
+ const { resolveDefaultsModeConfig, loadConfig, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig } = require("@smithy/core/config");
7
+ const { BinaryDecisionDiagram, EndpointCache, decideEndpoint, customEndpointFunctions, resolveEndpointConfig, getEndpointPlugin } = require("@smithy/core/endpoints");
8
+ const { parseUrl, getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, getContentLengthPlugin } = require("@smithy/core/protocols");
9
+ const { DEFAULT_RETRY_MODE, NODE_RETRY_MODE_CONFIG_OPTIONS, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, getRetryPlugin } = require("@smithy/core/retry");
10
+ const { TypeRegistry, getSchemaSerdePlugin } = require("@smithy/core/schema");
11
+ const { resolveAwsSdkSigV4Config, AwsSdkSigV4Signer, NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
12
+ const { defaultProvider } = require("@aws-sdk/credential-provider-node");
13
+ const { toUtf8, fromUtf8, toBase64, fromBase64, Hash, calculateBodyLength } = require("@smithy/core/serde");
14
+ const { streamCollector, NodeHttpHandler } = require("@smithy/node-http-handler");
15
+ const { AwsRestJsonProtocol } = require("@aws-sdk/core/protocols");
16
+
17
+ const defaultCodestarNotificationsHttpAuthSchemeParametersProvider = async (config, context, input) => {
18
+ return {
19
+ operation: getSmithyContext(context).operation,
20
+ region: await normalizeProvider(config.region)() || (() => {
21
+ throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
22
+ })(),
23
+ };
24
+ };
25
+ function createAwsAuthSigv4HttpAuthOption(authParameters) {
26
+ return {
27
+ schemeId: "aws.auth#sigv4",
28
+ signingProperties: {
29
+ name: "codestar-notifications",
30
+ region: authParameters.region,
31
+ },
32
+ propertiesExtractor: (config, context) => ({
33
+ signingProperties: {
34
+ config,
35
+ context,
36
+ },
37
+ }),
38
+ };
39
+ }
40
+ const defaultCodestarNotificationsHttpAuthSchemeProvider = (authParameters) => {
41
+ const options = [];
42
+ switch (authParameters.operation) {
43
+ default: {
44
+ options.push(createAwsAuthSigv4HttpAuthOption(authParameters));
45
+ }
46
+ }
47
+ return options;
48
+ };
49
+ const resolveHttpAuthSchemeConfig = (config) => {
50
+ const config_0 = resolveAwsSdkSigV4Config(config);
51
+ return Object.assign(config_0, {
52
+ authSchemePreference: normalizeProvider(config.authSchemePreference ?? []),
53
+ });
54
+ };
19
55
 
20
56
  const resolveClientEndpointParameters = (options) => {
21
57
  return Object.assign(options, {
@@ -31,6 +67,638 @@ const commonParams = {
31
67
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
32
68
  };
33
69
 
70
+ var version = "3.1075.0";
71
+ var packageInfo = {
72
+ version: version};
73
+
74
+ const k = "ref";
75
+ const a = -1, b = true, c = "isSet", d = "PartitionResult", e = "booleanEquals", f = "getAttr", g = { [k]: "Endpoint" }, h = { [k]: d }, i = {}, j = [{ [k]: "Region" }];
76
+ const _data = {
77
+ conditions: [
78
+ [c, [g]],
79
+ [c, j],
80
+ ["aws.partition", j, d],
81
+ [e, [{ [k]: "UseFIPS" }, b]],
82
+ [e, [{ [k]: "UseDualStack" }, b]],
83
+ [e, [{ fn: f, argv: [h, "supportsDualStack"] }, b]],
84
+ [e, [{ fn: f, argv: [h, "supportsFIPS"] }, b]]
85
+ ],
86
+ results: [
87
+ [a],
88
+ [a, "Invalid Configuration: FIPS and custom endpoint are not supported"],
89
+ [a, "Invalid Configuration: Dualstack and custom endpoint are not supported"],
90
+ [g, i],
91
+ ["https://codestar-notifications-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
92
+ [a, "FIPS and DualStack are enabled, but this partition does not support one or both"],
93
+ ["https://codestar-notifications-fips.{Region}.{PartitionResult#dnsSuffix}", i],
94
+ [a, "FIPS is enabled but this partition does not support FIPS"],
95
+ ["https://codestar-notifications.{Region}.{PartitionResult#dualStackDnsSuffix}", i],
96
+ [a, "DualStack is enabled but this partition does not support DualStack"],
97
+ ["https://codestar-notifications.{Region}.{PartitionResult#dnsSuffix}", i],
98
+ [a, "Invalid Configuration: Missing Region"]
99
+ ]
100
+ };
101
+ const root = 2;
102
+ const r = 100_000_000;
103
+ const nodes = new Int32Array([
104
+ -1, 1, -1,
105
+ 0, 12, 3,
106
+ 1, 4, r + 11,
107
+ 2, 5, r + 11,
108
+ 3, 8, 6,
109
+ 4, 7, r + 10,
110
+ 5, r + 8, r + 9,
111
+ 4, 10, 9,
112
+ 6, r + 6, r + 7,
113
+ 5, 11, r + 5,
114
+ 6, r + 4, r + 5,
115
+ 3, r + 1, 13,
116
+ 4, r + 2, r + 3,
117
+ ]);
118
+ const bdd = BinaryDecisionDiagram.from(nodes, root, _data.conditions, _data.results);
119
+
120
+ const cache = new EndpointCache({
121
+ size: 50,
122
+ params: ["Endpoint", "Region", "UseDualStack", "UseFIPS"],
123
+ });
124
+ const defaultEndpointResolver = (endpointParams, context = {}) => {
125
+ return cache.get(endpointParams, () => decideEndpoint(bdd, {
126
+ endpointParams: endpointParams,
127
+ logger: context.logger,
128
+ }));
129
+ };
130
+ customEndpointFunctions.aws = awsEndpointFunctions;
131
+
132
+ class CodestarNotificationsServiceException extends ServiceException {
133
+ constructor(options) {
134
+ super(options);
135
+ Object.setPrototypeOf(this, CodestarNotificationsServiceException.prototype);
136
+ }
137
+ }
138
+
139
+ class AccessDeniedException extends CodestarNotificationsServiceException {
140
+ name = "AccessDeniedException";
141
+ $fault = "client";
142
+ Message;
143
+ constructor(opts) {
144
+ super({
145
+ name: "AccessDeniedException",
146
+ $fault: "client",
147
+ ...opts,
148
+ });
149
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
150
+ this.Message = opts.Message;
151
+ }
152
+ }
153
+ class ConcurrentModificationException extends CodestarNotificationsServiceException {
154
+ name = "ConcurrentModificationException";
155
+ $fault = "client";
156
+ Message;
157
+ constructor(opts) {
158
+ super({
159
+ name: "ConcurrentModificationException",
160
+ $fault: "client",
161
+ ...opts,
162
+ });
163
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
164
+ this.Message = opts.Message;
165
+ }
166
+ }
167
+ class ConfigurationException extends CodestarNotificationsServiceException {
168
+ name = "ConfigurationException";
169
+ $fault = "client";
170
+ Message;
171
+ constructor(opts) {
172
+ super({
173
+ name: "ConfigurationException",
174
+ $fault: "client",
175
+ ...opts,
176
+ });
177
+ Object.setPrototypeOf(this, ConfigurationException.prototype);
178
+ this.Message = opts.Message;
179
+ }
180
+ }
181
+ class LimitExceededException extends CodestarNotificationsServiceException {
182
+ name = "LimitExceededException";
183
+ $fault = "client";
184
+ Message;
185
+ constructor(opts) {
186
+ super({
187
+ name: "LimitExceededException",
188
+ $fault: "client",
189
+ ...opts,
190
+ });
191
+ Object.setPrototypeOf(this, LimitExceededException.prototype);
192
+ this.Message = opts.Message;
193
+ }
194
+ }
195
+ class ResourceAlreadyExistsException extends CodestarNotificationsServiceException {
196
+ name = "ResourceAlreadyExistsException";
197
+ $fault = "client";
198
+ Message;
199
+ constructor(opts) {
200
+ super({
201
+ name: "ResourceAlreadyExistsException",
202
+ $fault: "client",
203
+ ...opts,
204
+ });
205
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
206
+ this.Message = opts.Message;
207
+ }
208
+ }
209
+ class ValidationException extends CodestarNotificationsServiceException {
210
+ name = "ValidationException";
211
+ $fault = "client";
212
+ Message;
213
+ constructor(opts) {
214
+ super({
215
+ name: "ValidationException",
216
+ $fault: "client",
217
+ ...opts,
218
+ });
219
+ Object.setPrototypeOf(this, ValidationException.prototype);
220
+ this.Message = opts.Message;
221
+ }
222
+ }
223
+ class ResourceNotFoundException extends CodestarNotificationsServiceException {
224
+ name = "ResourceNotFoundException";
225
+ $fault = "client";
226
+ Message;
227
+ constructor(opts) {
228
+ super({
229
+ name: "ResourceNotFoundException",
230
+ $fault: "client",
231
+ ...opts,
232
+ });
233
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
234
+ this.Message = opts.Message;
235
+ }
236
+ }
237
+ class InvalidNextTokenException extends CodestarNotificationsServiceException {
238
+ name = "InvalidNextTokenException";
239
+ $fault = "client";
240
+ Message;
241
+ constructor(opts) {
242
+ super({
243
+ name: "InvalidNextTokenException",
244
+ $fault: "client",
245
+ ...opts,
246
+ });
247
+ Object.setPrototypeOf(this, InvalidNextTokenException.prototype);
248
+ this.Message = opts.Message;
249
+ }
250
+ }
251
+
252
+ const _A = "Arn";
253
+ const _ADE = "AccessDeniedException";
254
+ const _CB = "CreatedBy";
255
+ const _CE = "ConfigurationException";
256
+ const _CME = "ConcurrentModificationException";
257
+ const _CNR = "CreateNotificationRule";
258
+ const _CNRR = "CreateNotificationRuleRequest";
259
+ const _CNRRr = "CreateNotificationRuleResult";
260
+ const _CRT = "ClientRequestToken";
261
+ const _CT = "CreatedTimestamp";
262
+ const _DNR = "DeleteNotificationRule";
263
+ const _DNRR = "DeleteNotificationRuleRequest";
264
+ const _DNRRe = "DeleteNotificationRuleResult";
265
+ const _DNRRes = "DescribeNotificationRuleRequest";
266
+ const _DNRResc = "DescribeNotificationRuleResult";
267
+ const _DNRe = "DescribeNotificationRule";
268
+ const _DT = "DetailType";
269
+ const _DTR = "DeleteTargetRequest";
270
+ const _DTRe = "DeleteTargetResult";
271
+ const _DTe = "DeleteTarget";
272
+ const _ET = "EventTypes";
273
+ const _ETB = "EventTypeBatch";
274
+ const _ETI = "EventTypeIds";
275
+ const _ETIv = "EventTypeId";
276
+ const _ETN = "EventTypeName";
277
+ const _ETS = "EventTypeSummary";
278
+ const _F = "Filters";
279
+ const _FUA = "ForceUnsubscribeAll";
280
+ const _I = "Id";
281
+ const _INTE = "InvalidNextTokenException";
282
+ const _LEE = "LimitExceededException";
283
+ const _LET = "ListEventTypes";
284
+ const _LETF = "ListEventTypesFilter";
285
+ const _LETFi = "ListEventTypesFilters";
286
+ const _LETR = "ListEventTypesRequest";
287
+ const _LETRi = "ListEventTypesResult";
288
+ const _LMT = "LastModifiedTimestamp";
289
+ const _LNR = "ListNotificationRules";
290
+ const _LNRF = "ListNotificationRulesFilter";
291
+ const _LNRFi = "ListNotificationRulesFilters";
292
+ const _LNRR = "ListNotificationRulesRequest";
293
+ const _LNRRi = "ListNotificationRulesResult";
294
+ const _LT = "ListTargets";
295
+ const _LTF = "ListTargetsFilter";
296
+ const _LTFR = "ListTagsForResource";
297
+ const _LTFRR = "ListTagsForResourceRequest";
298
+ const _LTFRRi = "ListTagsForResourceResult";
299
+ const _LTFi = "ListTargetsFilters";
300
+ const _LTR = "ListTargetsRequest";
301
+ const _LTRi = "ListTargetsResult";
302
+ const _M = "Message";
303
+ const _MR = "MaxResults";
304
+ const _N = "Name";
305
+ const _NR = "NotificationRules";
306
+ const _NRB = "NotificationRuleBatch";
307
+ const _NRN = "NotificationRuleName";
308
+ const _NRS = "NotificationRuleSummary";
309
+ const _NT = "NextToken";
310
+ const _R = "Resource";
311
+ const _RAEE = "ResourceAlreadyExistsException";
312
+ const _RNFE = "ResourceNotFoundException";
313
+ const _RT = "ResourceType";
314
+ const _S = "Status";
315
+ const _SN = "ServiceName";
316
+ const _SR = "SubscribeRequest";
317
+ const _SRu = "SubscribeResult";
318
+ const _Su = "Subscribe";
319
+ const _T = "Targets";
320
+ const _TA = "TargetAddress";
321
+ const _TB = "TargetsBatch";
322
+ const _TK = "TagKeys";
323
+ const _TR = "TagResource";
324
+ const _TRR = "TagResourceRequest";
325
+ const _TRRa = "TagResourceResult";
326
+ const _TS = "TargetSummary";
327
+ const _TSa = "TargetStatus";
328
+ const _TT = "TargetType";
329
+ const _Ta = "Tags";
330
+ const _Tar = "Target";
331
+ const _U = "Unsubscribe";
332
+ const _UNR = "UpdateNotificationRule";
333
+ const _UNRR = "UpdateNotificationRuleRequest";
334
+ const _UNRRp = "UpdateNotificationRuleResult";
335
+ const _UR = "UnsubscribeRequest";
336
+ const _URR = "UntagResourceRequest";
337
+ const _URRn = "UntagResourceResult";
338
+ const _URn = "UnsubscribeResult";
339
+ const _URnt = "UntagResource";
340
+ const _V = "Value";
341
+ const _VE = "ValidationException";
342
+ const _c = "client";
343
+ const _e = "error";
344
+ const _h = "http";
345
+ const _hE = "httpError";
346
+ const _hQ = "httpQuery";
347
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.codestarnotifications";
348
+ const _tK = "tagKeys";
349
+ const n0 = "com.amazonaws.codestarnotifications";
350
+ const _s_registry = TypeRegistry.for(_s);
351
+ var CodestarNotificationsServiceException$ = [-3, _s, "CodestarNotificationsServiceException", 0, [], []];
352
+ _s_registry.registerError(CodestarNotificationsServiceException$, CodestarNotificationsServiceException);
353
+ const n0_registry = TypeRegistry.for(n0);
354
+ var AccessDeniedException$ = [-3, n0, _ADE,
355
+ { [_e]: _c, [_hE]: 403 },
356
+ [_M],
357
+ [0]
358
+ ];
359
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
360
+ var ConcurrentModificationException$ = [-3, n0, _CME,
361
+ { [_e]: _c, [_hE]: 400 },
362
+ [_M],
363
+ [0]
364
+ ];
365
+ n0_registry.registerError(ConcurrentModificationException$, ConcurrentModificationException);
366
+ var ConfigurationException$ = [-3, n0, _CE,
367
+ { [_e]: _c, [_hE]: 400 },
368
+ [_M],
369
+ [0]
370
+ ];
371
+ n0_registry.registerError(ConfigurationException$, ConfigurationException);
372
+ var InvalidNextTokenException$ = [-3, n0, _INTE,
373
+ { [_e]: _c, [_hE]: 400 },
374
+ [_M],
375
+ [0]
376
+ ];
377
+ n0_registry.registerError(InvalidNextTokenException$, InvalidNextTokenException);
378
+ var LimitExceededException$ = [-3, n0, _LEE,
379
+ { [_e]: _c, [_hE]: 400 },
380
+ [_M],
381
+ [0]
382
+ ];
383
+ n0_registry.registerError(LimitExceededException$, LimitExceededException);
384
+ var ResourceAlreadyExistsException$ = [-3, n0, _RAEE,
385
+ { [_e]: _c, [_hE]: 409 },
386
+ [_M],
387
+ [0]
388
+ ];
389
+ n0_registry.registerError(ResourceAlreadyExistsException$, ResourceAlreadyExistsException);
390
+ var ResourceNotFoundException$ = [-3, n0, _RNFE,
391
+ { [_e]: _c, [_hE]: 404 },
392
+ [_M],
393
+ [0]
394
+ ];
395
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
396
+ var ValidationException$ = [-3, n0, _VE,
397
+ { [_e]: _c, [_hE]: 400 },
398
+ [_M],
399
+ [0]
400
+ ];
401
+ n0_registry.registerError(ValidationException$, ValidationException);
402
+ const errorTypeRegistries = [
403
+ _s_registry,
404
+ n0_registry,
405
+ ];
406
+ var NotificationRuleName = [0, n0, _NRN, 8, 0];
407
+ var TargetAddress = [0, n0, _TA, 8, 0];
408
+ var CreateNotificationRuleRequest$ = [3, n0, _CNRR,
409
+ 0,
410
+ [_N, _ETI, _R, _T, _DT, _CRT, _Ta, _S],
411
+ [[() => NotificationRuleName, 0], 64 | 0, 0, [() => Targets, 0], 0, [0, 4], 128 | 0, 0], 5
412
+ ];
413
+ var CreateNotificationRuleResult$ = [3, n0, _CNRRr,
414
+ 0,
415
+ [_A],
416
+ [0]
417
+ ];
418
+ var DeleteNotificationRuleRequest$ = [3, n0, _DNRR,
419
+ 0,
420
+ [_A],
421
+ [0], 1
422
+ ];
423
+ var DeleteNotificationRuleResult$ = [3, n0, _DNRRe,
424
+ 0,
425
+ [_A],
426
+ [0]
427
+ ];
428
+ var DeleteTargetRequest$ = [3, n0, _DTR,
429
+ 0,
430
+ [_TA, _FUA],
431
+ [[() => TargetAddress, 0], 2], 1
432
+ ];
433
+ var DeleteTargetResult$ = [3, n0, _DTRe,
434
+ 0,
435
+ [],
436
+ []
437
+ ];
438
+ var DescribeNotificationRuleRequest$ = [3, n0, _DNRRes,
439
+ 0,
440
+ [_A],
441
+ [0], 1
442
+ ];
443
+ var DescribeNotificationRuleResult$ = [3, n0, _DNRResc,
444
+ 0,
445
+ [_A, _N, _ET, _R, _T, _DT, _CB, _S, _CT, _LMT, _Ta],
446
+ [0, [() => NotificationRuleName, 0], () => EventTypeBatch, 0, [() => TargetsBatch, 0], 0, 0, 0, 4, 4, 128 | 0], 1
447
+ ];
448
+ var EventTypeSummary$ = [3, n0, _ETS,
449
+ 0,
450
+ [_ETIv, _SN, _ETN, _RT],
451
+ [0, 0, 0, 0]
452
+ ];
453
+ var ListEventTypesFilter$ = [3, n0, _LETF,
454
+ 0,
455
+ [_N, _V],
456
+ [0, 0], 2
457
+ ];
458
+ var ListEventTypesRequest$ = [3, n0, _LETR,
459
+ 0,
460
+ [_F, _NT, _MR],
461
+ [() => ListEventTypesFilters, 0, 1]
462
+ ];
463
+ var ListEventTypesResult$ = [3, n0, _LETRi,
464
+ 0,
465
+ [_ET, _NT],
466
+ [() => EventTypeBatch, 0]
467
+ ];
468
+ var ListNotificationRulesFilter$ = [3, n0, _LNRF,
469
+ 0,
470
+ [_N, _V],
471
+ [0, 0], 2
472
+ ];
473
+ var ListNotificationRulesRequest$ = [3, n0, _LNRR,
474
+ 0,
475
+ [_F, _NT, _MR],
476
+ [() => ListNotificationRulesFilters, 0, 1]
477
+ ];
478
+ var ListNotificationRulesResult$ = [3, n0, _LNRRi,
479
+ 0,
480
+ [_NT, _NR],
481
+ [0, () => NotificationRuleBatch]
482
+ ];
483
+ var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
484
+ 0,
485
+ [_A],
486
+ [0], 1
487
+ ];
488
+ var ListTagsForResourceResult$ = [3, n0, _LTFRRi,
489
+ 0,
490
+ [_Ta],
491
+ [128 | 0]
492
+ ];
493
+ var ListTargetsFilter$ = [3, n0, _LTF,
494
+ 0,
495
+ [_N, _V],
496
+ [0, 0], 2
497
+ ];
498
+ var ListTargetsRequest$ = [3, n0, _LTR,
499
+ 0,
500
+ [_F, _NT, _MR],
501
+ [() => ListTargetsFilters, 0, 1]
502
+ ];
503
+ var ListTargetsResult$ = [3, n0, _LTRi,
504
+ 0,
505
+ [_T, _NT],
506
+ [[() => TargetsBatch, 0], 0]
507
+ ];
508
+ var NotificationRuleSummary$ = [3, n0, _NRS,
509
+ 0,
510
+ [_I, _A],
511
+ [0, 0]
512
+ ];
513
+ var SubscribeRequest$ = [3, n0, _SR,
514
+ 0,
515
+ [_A, _Tar, _CRT],
516
+ [0, [() => Target$, 0], 0], 2
517
+ ];
518
+ var SubscribeResult$ = [3, n0, _SRu,
519
+ 0,
520
+ [_A],
521
+ [0]
522
+ ];
523
+ var TagResourceRequest$ = [3, n0, _TRR,
524
+ 0,
525
+ [_A, _Ta],
526
+ [0, 128 | 0], 2
527
+ ];
528
+ var TagResourceResult$ = [3, n0, _TRRa,
529
+ 0,
530
+ [_Ta],
531
+ [128 | 0]
532
+ ];
533
+ var Target$ = [3, n0, _Tar,
534
+ 0,
535
+ [_TT, _TA],
536
+ [0, [() => TargetAddress, 0]]
537
+ ];
538
+ var TargetSummary$ = [3, n0, _TS,
539
+ 0,
540
+ [_TA, _TT, _TSa],
541
+ [[() => TargetAddress, 0], 0, 0]
542
+ ];
543
+ var UnsubscribeRequest$ = [3, n0, _UR,
544
+ 0,
545
+ [_A, _TA],
546
+ [0, [() => TargetAddress, 0]], 2
547
+ ];
548
+ var UnsubscribeResult$ = [3, n0, _URn,
549
+ 0,
550
+ [_A],
551
+ [0], 1
552
+ ];
553
+ var UntagResourceRequest$ = [3, n0, _URR,
554
+ 0,
555
+ [_A, _TK],
556
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
557
+ ];
558
+ var UntagResourceResult$ = [3, n0, _URRn,
559
+ 0,
560
+ [],
561
+ []
562
+ ];
563
+ var UpdateNotificationRuleRequest$ = [3, n0, _UNRR,
564
+ 0,
565
+ [_A, _N, _S, _ETI, _T, _DT],
566
+ [0, [() => NotificationRuleName, 0], 0, 64 | 0, [() => Targets, 0], 0], 1
567
+ ];
568
+ var UpdateNotificationRuleResult$ = [3, n0, _UNRRp,
569
+ 0,
570
+ [],
571
+ []
572
+ ];
573
+ var EventTypeBatch = [1, n0, _ETB,
574
+ 0, () => EventTypeSummary$
575
+ ];
576
+ var ListEventTypesFilters = [1, n0, _LETFi,
577
+ 0, () => ListEventTypesFilter$
578
+ ];
579
+ var ListNotificationRulesFilters = [1, n0, _LNRFi,
580
+ 0, () => ListNotificationRulesFilter$
581
+ ];
582
+ var ListTargetsFilters = [1, n0, _LTFi,
583
+ 0, () => ListTargetsFilter$
584
+ ];
585
+ var NotificationRuleBatch = [1, n0, _NRB,
586
+ 0, () => NotificationRuleSummary$
587
+ ];
588
+ var Targets = [1, n0, _T,
589
+ 0, [() => Target$,
590
+ 0]
591
+ ];
592
+ var TargetsBatch = [1, n0, _TB,
593
+ 0, [() => TargetSummary$,
594
+ 0]
595
+ ];
596
+ var CreateNotificationRule$ = [9, n0, _CNR,
597
+ { [_h]: ["POST", "/createNotificationRule", 200] }, () => CreateNotificationRuleRequest$, () => CreateNotificationRuleResult$
598
+ ];
599
+ var DeleteNotificationRule$ = [9, n0, _DNR,
600
+ { [_h]: ["POST", "/deleteNotificationRule", 200] }, () => DeleteNotificationRuleRequest$, () => DeleteNotificationRuleResult$
601
+ ];
602
+ var DeleteTarget$ = [9, n0, _DTe,
603
+ { [_h]: ["POST", "/deleteTarget", 200] }, () => DeleteTargetRequest$, () => DeleteTargetResult$
604
+ ];
605
+ var DescribeNotificationRule$ = [9, n0, _DNRe,
606
+ { [_h]: ["POST", "/describeNotificationRule", 200] }, () => DescribeNotificationRuleRequest$, () => DescribeNotificationRuleResult$
607
+ ];
608
+ var ListEventTypes$ = [9, n0, _LET,
609
+ { [_h]: ["POST", "/listEventTypes", 200] }, () => ListEventTypesRequest$, () => ListEventTypesResult$
610
+ ];
611
+ var ListNotificationRules$ = [9, n0, _LNR,
612
+ { [_h]: ["POST", "/listNotificationRules", 200] }, () => ListNotificationRulesRequest$, () => ListNotificationRulesResult$
613
+ ];
614
+ var ListTagsForResource$ = [9, n0, _LTFR,
615
+ { [_h]: ["POST", "/listTagsForResource", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResult$
616
+ ];
617
+ var ListTargets$ = [9, n0, _LT,
618
+ { [_h]: ["POST", "/listTargets", 200] }, () => ListTargetsRequest$, () => ListTargetsResult$
619
+ ];
620
+ var Subscribe$ = [9, n0, _Su,
621
+ { [_h]: ["POST", "/subscribe", 200] }, () => SubscribeRequest$, () => SubscribeResult$
622
+ ];
623
+ var TagResource$ = [9, n0, _TR,
624
+ { [_h]: ["POST", "/tagResource", 200] }, () => TagResourceRequest$, () => TagResourceResult$
625
+ ];
626
+ var Unsubscribe$ = [9, n0, _U,
627
+ { [_h]: ["POST", "/unsubscribe", 200] }, () => UnsubscribeRequest$, () => UnsubscribeResult$
628
+ ];
629
+ var UntagResource$ = [9, n0, _URnt,
630
+ { [_h]: ["POST", "/untagResource/{Arn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResult$
631
+ ];
632
+ var UpdateNotificationRule$ = [9, n0, _UNR,
633
+ { [_h]: ["POST", "/updateNotificationRule", 200] }, () => UpdateNotificationRuleRequest$, () => UpdateNotificationRuleResult$
634
+ ];
635
+
636
+ const getRuntimeConfig$1 = (config) => {
637
+ return {
638
+ apiVersion: "2019-10-15",
639
+ base64Decoder: config?.base64Decoder ?? fromBase64,
640
+ base64Encoder: config?.base64Encoder ?? toBase64,
641
+ disableHostPrefix: config?.disableHostPrefix ?? false,
642
+ endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
643
+ extensions: config?.extensions ?? [],
644
+ httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultCodestarNotificationsHttpAuthSchemeProvider,
645
+ httpAuthSchemes: config?.httpAuthSchemes ?? [
646
+ {
647
+ schemeId: "aws.auth#sigv4",
648
+ identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
649
+ signer: new AwsSdkSigV4Signer(),
650
+ },
651
+ ],
652
+ logger: config?.logger ?? new NoOpLogger(),
653
+ protocol: config?.protocol ?? AwsRestJsonProtocol,
654
+ protocolSettings: config?.protocolSettings ?? {
655
+ defaultNamespace: "com.amazonaws.codestarnotifications",
656
+ errorTypeRegistries,
657
+ version: "2019-10-15",
658
+ serviceTarget: "CodeStarNotifications_20191015",
659
+ },
660
+ serviceId: config?.serviceId ?? "codestar notifications",
661
+ urlParser: config?.urlParser ?? parseUrl,
662
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
663
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
664
+ };
665
+ };
666
+
667
+ const getRuntimeConfig = (config) => {
668
+ emitWarningIfUnsupportedVersion(process.version);
669
+ const defaultsMode = resolveDefaultsModeConfig(config);
670
+ const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
671
+ const clientSharedValues = getRuntimeConfig$1(config);
672
+ emitWarningIfUnsupportedVersion$1(process.version);
673
+ const loaderConfig = {
674
+ profile: config?.profile,
675
+ logger: clientSharedValues.logger,
676
+ };
677
+ return {
678
+ ...clientSharedValues,
679
+ ...config,
680
+ runtime: "node",
681
+ defaultsMode,
682
+ authSchemePreference: config?.authSchemePreference ?? loadConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
683
+ bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
684
+ credentialDefaultProvider: config?.credentialDefaultProvider ?? defaultProvider,
685
+ defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
686
+ maxAttempts: config?.maxAttempts ?? loadConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
687
+ region: config?.region ?? loadConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
688
+ requestHandler: NodeHttpHandler.create(config?.requestHandler ?? defaultConfigProvider),
689
+ retryMode: config?.retryMode ??
690
+ loadConfig({
691
+ ...NODE_RETRY_MODE_CONFIG_OPTIONS,
692
+ default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
693
+ }, config),
694
+ sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
695
+ streamCollector: config?.streamCollector ?? streamCollector,
696
+ useDualstackEndpoint: config?.useDualstackEndpoint ?? loadConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
697
+ useFipsEndpoint: config?.useFipsEndpoint ?? loadConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
698
+ userAgentAppId: config?.userAgentAppId ?? loadConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
699
+ };
700
+ };
701
+
34
702
  const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
35
703
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
36
704
  let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
@@ -328,27 +996,92 @@ const ListTargetsFilterName = {
328
996
  TARGET_TYPE: "TARGET_TYPE",
329
997
  };
330
998
 
999
+ exports.AccessDeniedException = AccessDeniedException;
1000
+ exports.AccessDeniedException$ = AccessDeniedException$;
331
1001
  exports.CodestarNotifications = CodestarNotifications;
332
1002
  exports.CodestarNotificationsClient = CodestarNotificationsClient;
1003
+ exports.CodestarNotificationsServiceException = CodestarNotificationsServiceException;
1004
+ exports.CodestarNotificationsServiceException$ = CodestarNotificationsServiceException$;
1005
+ exports.ConcurrentModificationException = ConcurrentModificationException;
1006
+ exports.ConcurrentModificationException$ = ConcurrentModificationException$;
1007
+ exports.ConfigurationException = ConfigurationException;
1008
+ exports.ConfigurationException$ = ConfigurationException$;
1009
+ exports.CreateNotificationRule$ = CreateNotificationRule$;
333
1010
  exports.CreateNotificationRuleCommand = CreateNotificationRuleCommand;
1011
+ exports.CreateNotificationRuleRequest$ = CreateNotificationRuleRequest$;
1012
+ exports.CreateNotificationRuleResult$ = CreateNotificationRuleResult$;
1013
+ exports.DeleteNotificationRule$ = DeleteNotificationRule$;
334
1014
  exports.DeleteNotificationRuleCommand = DeleteNotificationRuleCommand;
1015
+ exports.DeleteNotificationRuleRequest$ = DeleteNotificationRuleRequest$;
1016
+ exports.DeleteNotificationRuleResult$ = DeleteNotificationRuleResult$;
1017
+ exports.DeleteTarget$ = DeleteTarget$;
335
1018
  exports.DeleteTargetCommand = DeleteTargetCommand;
1019
+ exports.DeleteTargetRequest$ = DeleteTargetRequest$;
1020
+ exports.DeleteTargetResult$ = DeleteTargetResult$;
1021
+ exports.DescribeNotificationRule$ = DescribeNotificationRule$;
336
1022
  exports.DescribeNotificationRuleCommand = DescribeNotificationRuleCommand;
1023
+ exports.DescribeNotificationRuleRequest$ = DescribeNotificationRuleRequest$;
1024
+ exports.DescribeNotificationRuleResult$ = DescribeNotificationRuleResult$;
337
1025
  exports.DetailType = DetailType;
1026
+ exports.EventTypeSummary$ = EventTypeSummary$;
1027
+ exports.InvalidNextTokenException = InvalidNextTokenException;
1028
+ exports.InvalidNextTokenException$ = InvalidNextTokenException$;
1029
+ exports.LimitExceededException = LimitExceededException;
1030
+ exports.LimitExceededException$ = LimitExceededException$;
1031
+ exports.ListEventTypes$ = ListEventTypes$;
338
1032
  exports.ListEventTypesCommand = ListEventTypesCommand;
1033
+ exports.ListEventTypesFilter$ = ListEventTypesFilter$;
339
1034
  exports.ListEventTypesFilterName = ListEventTypesFilterName;
1035
+ exports.ListEventTypesRequest$ = ListEventTypesRequest$;
1036
+ exports.ListEventTypesResult$ = ListEventTypesResult$;
1037
+ exports.ListNotificationRules$ = ListNotificationRules$;
340
1038
  exports.ListNotificationRulesCommand = ListNotificationRulesCommand;
1039
+ exports.ListNotificationRulesFilter$ = ListNotificationRulesFilter$;
341
1040
  exports.ListNotificationRulesFilterName = ListNotificationRulesFilterName;
1041
+ exports.ListNotificationRulesRequest$ = ListNotificationRulesRequest$;
1042
+ exports.ListNotificationRulesResult$ = ListNotificationRulesResult$;
1043
+ exports.ListTagsForResource$ = ListTagsForResource$;
342
1044
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
1045
+ exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
1046
+ exports.ListTagsForResourceResult$ = ListTagsForResourceResult$;
1047
+ exports.ListTargets$ = ListTargets$;
343
1048
  exports.ListTargetsCommand = ListTargetsCommand;
1049
+ exports.ListTargetsFilter$ = ListTargetsFilter$;
344
1050
  exports.ListTargetsFilterName = ListTargetsFilterName;
1051
+ exports.ListTargetsRequest$ = ListTargetsRequest$;
1052
+ exports.ListTargetsResult$ = ListTargetsResult$;
345
1053
  exports.NotificationRuleStatus = NotificationRuleStatus;
1054
+ exports.NotificationRuleSummary$ = NotificationRuleSummary$;
1055
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
1056
+ exports.ResourceAlreadyExistsException$ = ResourceAlreadyExistsException$;
1057
+ exports.ResourceNotFoundException = ResourceNotFoundException;
1058
+ exports.ResourceNotFoundException$ = ResourceNotFoundException$;
1059
+ exports.Subscribe$ = Subscribe$;
346
1060
  exports.SubscribeCommand = SubscribeCommand;
1061
+ exports.SubscribeRequest$ = SubscribeRequest$;
1062
+ exports.SubscribeResult$ = SubscribeResult$;
1063
+ exports.TagResource$ = TagResource$;
347
1064
  exports.TagResourceCommand = TagResourceCommand;
1065
+ exports.TagResourceRequest$ = TagResourceRequest$;
1066
+ exports.TagResourceResult$ = TagResourceResult$;
1067
+ exports.Target$ = Target$;
348
1068
  exports.TargetStatus = TargetStatus;
1069
+ exports.TargetSummary$ = TargetSummary$;
1070
+ exports.Unsubscribe$ = Unsubscribe$;
349
1071
  exports.UnsubscribeCommand = UnsubscribeCommand;
1072
+ exports.UnsubscribeRequest$ = UnsubscribeRequest$;
1073
+ exports.UnsubscribeResult$ = UnsubscribeResult$;
1074
+ exports.UntagResource$ = UntagResource$;
350
1075
  exports.UntagResourceCommand = UntagResourceCommand;
1076
+ exports.UntagResourceRequest$ = UntagResourceRequest$;
1077
+ exports.UntagResourceResult$ = UntagResourceResult$;
1078
+ exports.UpdateNotificationRule$ = UpdateNotificationRule$;
351
1079
  exports.UpdateNotificationRuleCommand = UpdateNotificationRuleCommand;
1080
+ exports.UpdateNotificationRuleRequest$ = UpdateNotificationRuleRequest$;
1081
+ exports.UpdateNotificationRuleResult$ = UpdateNotificationRuleResult$;
1082
+ exports.ValidationException = ValidationException;
1083
+ exports.ValidationException$ = ValidationException$;
1084
+ exports.errorTypeRegistries = errorTypeRegistries;
352
1085
  exports.paginateListEventTypes = paginateListEventTypes;
353
1086
  exports.paginateListNotificationRules = paginateListNotificationRules;
354
1087
  exports.paginateListTargets = paginateListTargets;