@aws-sdk/client-notificationscontacts 3.986.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.
package/dist-cjs/index.js CHANGED
@@ -15,6 +15,9 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
15
15
  var runtimeConfig = require('./runtimeConfig');
16
16
  var regionConfigResolver = require('@aws-sdk/region-config-resolver');
17
17
  var protocolHttp = require('@smithy/protocol-http');
18
+ var schemas_0 = require('./schemas/schemas_0');
19
+ var errors = require('./models/errors');
20
+ var NotificationsContactsServiceException = require('./models/NotificationsContactsServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -108,383 +111,6 @@ class NotificationsContactsClient extends smithyClient.Client {
108
111
  }
109
112
  }
110
113
 
111
- class NotificationsContactsServiceException extends smithyClient.ServiceException {
112
- constructor(options) {
113
- super(options);
114
- Object.setPrototypeOf(this, NotificationsContactsServiceException.prototype);
115
- }
116
- }
117
-
118
- class AccessDeniedException extends NotificationsContactsServiceException {
119
- name = "AccessDeniedException";
120
- $fault = "client";
121
- constructor(opts) {
122
- super({
123
- name: "AccessDeniedException",
124
- $fault: "client",
125
- ...opts,
126
- });
127
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
128
- }
129
- }
130
- class ConflictException extends NotificationsContactsServiceException {
131
- name = "ConflictException";
132
- $fault = "client";
133
- resourceId;
134
- resourceType;
135
- constructor(opts) {
136
- super({
137
- name: "ConflictException",
138
- $fault: "client",
139
- ...opts,
140
- });
141
- Object.setPrototypeOf(this, ConflictException.prototype);
142
- this.resourceId = opts.resourceId;
143
- this.resourceType = opts.resourceType;
144
- }
145
- }
146
- class InternalServerException extends NotificationsContactsServiceException {
147
- name = "InternalServerException";
148
- $fault = "server";
149
- $retryable = {};
150
- constructor(opts) {
151
- super({
152
- name: "InternalServerException",
153
- $fault: "server",
154
- ...opts,
155
- });
156
- Object.setPrototypeOf(this, InternalServerException.prototype);
157
- }
158
- }
159
- class ResourceNotFoundException extends NotificationsContactsServiceException {
160
- name = "ResourceNotFoundException";
161
- $fault = "client";
162
- resourceId;
163
- resourceType;
164
- constructor(opts) {
165
- super({
166
- name: "ResourceNotFoundException",
167
- $fault: "client",
168
- ...opts,
169
- });
170
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
171
- this.resourceId = opts.resourceId;
172
- this.resourceType = opts.resourceType;
173
- }
174
- }
175
- class ThrottlingException extends NotificationsContactsServiceException {
176
- name = "ThrottlingException";
177
- $fault = "client";
178
- $retryable = {
179
- throttling: true,
180
- };
181
- serviceCode;
182
- quotaCode;
183
- retryAfterSeconds;
184
- constructor(opts) {
185
- super({
186
- name: "ThrottlingException",
187
- $fault: "client",
188
- ...opts,
189
- });
190
- Object.setPrototypeOf(this, ThrottlingException.prototype);
191
- this.serviceCode = opts.serviceCode;
192
- this.quotaCode = opts.quotaCode;
193
- this.retryAfterSeconds = opts.retryAfterSeconds;
194
- }
195
- }
196
- class ValidationException extends NotificationsContactsServiceException {
197
- name = "ValidationException";
198
- $fault = "client";
199
- reason;
200
- fieldList;
201
- constructor(opts) {
202
- super({
203
- name: "ValidationException",
204
- $fault: "client",
205
- ...opts,
206
- });
207
- Object.setPrototypeOf(this, ValidationException.prototype);
208
- this.reason = opts.reason;
209
- this.fieldList = opts.fieldList;
210
- }
211
- }
212
- class ServiceQuotaExceededException extends NotificationsContactsServiceException {
213
- name = "ServiceQuotaExceededException";
214
- $fault = "client";
215
- resourceId;
216
- resourceType;
217
- serviceCode;
218
- quotaCode;
219
- constructor(opts) {
220
- super({
221
- name: "ServiceQuotaExceededException",
222
- $fault: "client",
223
- ...opts,
224
- });
225
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
226
- this.resourceId = opts.resourceId;
227
- this.resourceType = opts.resourceType;
228
- this.serviceCode = opts.serviceCode;
229
- this.quotaCode = opts.quotaCode;
230
- }
231
- }
232
-
233
- const _ADE = "AccessDeniedException";
234
- const _AEC = "ActivateEmailContact";
235
- const _AECR = "ActivateEmailContactRequest";
236
- const _AECRc = "ActivateEmailContactResponse";
237
- const _CE = "ConflictException";
238
- const _CEC = "CreateEmailContact";
239
- const _CECR = "CreateEmailContactRequest";
240
- const _CECRr = "CreateEmailContactResponse";
241
- const _DEC = "DeleteEmailContact";
242
- const _DECR = "DeleteEmailContactRequest";
243
- const _DECRe = "DeleteEmailContactResponse";
244
- const _EC = "EmailContact";
245
- const _ECN = "EmailContactName";
246
- const _ECm = "EmailContacts";
247
- const _GEC = "GetEmailContact";
248
- const _GECR = "GetEmailContactRequest";
249
- const _GECRe = "GetEmailContactResponse";
250
- const _ISE = "InternalServerException";
251
- const _LEC = "ListEmailContacts";
252
- const _LECR = "ListEmailContactsRequest";
253
- const _LECRi = "ListEmailContactsResponse";
254
- const _LTFR = "ListTagsForResource";
255
- const _LTFRR = "ListTagsForResourceRequest";
256
- const _LTFRRi = "ListTagsForResourceResponse";
257
- const _RA = "Retry-After";
258
- const _RNFE = "ResourceNotFoundException";
259
- const _SAC = "SendActivationCode";
260
- const _SACR = "SendActivationCodeRequest";
261
- const _SACRe = "SendActivationCodeResponse";
262
- const _SECA = "SensitiveEmailContactAddress";
263
- const _SQEE = "ServiceQuotaExceededException";
264
- const _T = "Token";
265
- const _TE = "ThrottlingException";
266
- const _TR = "TagResource";
267
- const _TRR = "TagResourceRequest";
268
- const _TRRa = "TagResourceResponse";
269
- const _UR = "UntagResource";
270
- const _URR = "UntagResourceRequest";
271
- const _URRn = "UntagResourceResponse";
272
- const _VE = "ValidationException";
273
- const _VEF = "ValidationExceptionField";
274
- const _VEFL = "ValidationExceptionFieldList";
275
- const _a = "arn";
276
- const _ad = "address";
277
- const _c = "client";
278
- const _cT = "creationTime";
279
- const _co = "code";
280
- const _e = "error";
281
- const _eA = "emailAddress";
282
- const _eC = "emailContact";
283
- const _eCm = "emailContacts";
284
- const _fL = "fieldList";
285
- const _h = "http";
286
- const _hE = "httpError";
287
- const _hH = "httpHeader";
288
- const _hQ = "httpQuery";
289
- const _m = "message";
290
- const _mR = "maxResults";
291
- const _n = "name";
292
- const _nT = "nextToken";
293
- const _qC = "quotaCode";
294
- const _r = "reason";
295
- const _rAS = "retryAfterSeconds";
296
- const _rI = "resourceId";
297
- const _rT = "resourceType";
298
- const _s = "status";
299
- const _sC = "serviceCode";
300
- const _se = "server";
301
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.notificationscontacts";
302
- const _t = "tags";
303
- const _tK = "tagKeys";
304
- const _uT = "updateTime";
305
- const n0 = "com.amazonaws.notificationscontacts";
306
- var EmailContactName = [0, n0, _ECN, 8, 0];
307
- var SensitiveEmailContactAddress = [0, n0, _SECA, 8, 0];
308
- var Token = [0, n0, _T, 8, 0];
309
- var AccessDeniedException$ = [-3, n0, _ADE,
310
- { [_e]: _c, [_hE]: 403 },
311
- [_m],
312
- [0], 1
313
- ];
314
- schema.TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
315
- var ActivateEmailContactRequest$ = [3, n0, _AECR,
316
- 0,
317
- [_a, _co],
318
- [[0, 1], [() => Token, 1]], 2
319
- ];
320
- var ActivateEmailContactResponse$ = [3, n0, _AECRc,
321
- 0,
322
- [],
323
- []
324
- ];
325
- var ConflictException$ = [-3, n0, _CE,
326
- { [_e]: _c, [_hE]: 409 },
327
- [_m, _rI, _rT],
328
- [0, 0, 0], 3
329
- ];
330
- schema.TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
331
- var CreateEmailContactRequest$ = [3, n0, _CECR,
332
- 0,
333
- [_n, _eA, _t],
334
- [[() => EmailContactName, 0], 0, 128 | 0], 2
335
- ];
336
- var CreateEmailContactResponse$ = [3, n0, _CECRr,
337
- 0,
338
- [_a],
339
- [0], 1
340
- ];
341
- var DeleteEmailContactRequest$ = [3, n0, _DECR,
342
- 0,
343
- [_a],
344
- [[0, 1]], 1
345
- ];
346
- var DeleteEmailContactResponse$ = [3, n0, _DECRe,
347
- 0,
348
- [],
349
- []
350
- ];
351
- var EmailContact$ = [3, n0, _EC,
352
- 0,
353
- [_a, _n, _ad, _s, _cT, _uT],
354
- [0, [() => EmailContactName, 0], [() => SensitiveEmailContactAddress, 0], 0, 5, 5], 6
355
- ];
356
- var GetEmailContactRequest$ = [3, n0, _GECR,
357
- 0,
358
- [_a],
359
- [[0, 1]], 1
360
- ];
361
- var GetEmailContactResponse$ = [3, n0, _GECRe,
362
- 0,
363
- [_eC],
364
- [[() => EmailContact$, 0]], 1
365
- ];
366
- var InternalServerException$ = [-3, n0, _ISE,
367
- { [_e]: _se, [_hE]: 500 },
368
- [_m],
369
- [0], 1
370
- ];
371
- schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
372
- var ListEmailContactsRequest$ = [3, n0, _LECR,
373
- 0,
374
- [_mR, _nT],
375
- [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
376
- ];
377
- var ListEmailContactsResponse$ = [3, n0, _LECRi,
378
- 0,
379
- [_eCm, _nT],
380
- [[() => EmailContacts, 0], 0], 1
381
- ];
382
- var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
383
- 0,
384
- [_a],
385
- [[0, 1]], 1
386
- ];
387
- var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
388
- 0,
389
- [_t],
390
- [128 | 0]
391
- ];
392
- var ResourceNotFoundException$ = [-3, n0, _RNFE,
393
- { [_e]: _c, [_hE]: 404 },
394
- [_m, _rI, _rT],
395
- [0, 0, 0], 3
396
- ];
397
- schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
398
- var SendActivationCodeRequest$ = [3, n0, _SACR,
399
- 0,
400
- [_a],
401
- [[0, 1]], 1
402
- ];
403
- var SendActivationCodeResponse$ = [3, n0, _SACRe,
404
- 0,
405
- [],
406
- []
407
- ];
408
- var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
409
- { [_e]: _c, [_hE]: 402 },
410
- [_m, _rI, _rT, _sC, _qC],
411
- [0, 0, 0, 0, 0], 5
412
- ];
413
- schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
414
- var TagResourceRequest$ = [3, n0, _TRR,
415
- 0,
416
- [_a, _t],
417
- [[0, 1], 128 | 0], 2
418
- ];
419
- var TagResourceResponse$ = [3, n0, _TRRa,
420
- 0,
421
- [],
422
- []
423
- ];
424
- var ThrottlingException$ = [-3, n0, _TE,
425
- { [_e]: _c, [_hE]: 429 },
426
- [_m, _sC, _qC, _rAS],
427
- [0, 0, 0, [1, { [_hH]: _RA }]], 1
428
- ];
429
- schema.TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
430
- var UntagResourceRequest$ = [3, n0, _URR,
431
- 0,
432
- [_a, _tK],
433
- [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
434
- ];
435
- var UntagResourceResponse$ = [3, n0, _URRn,
436
- 0,
437
- [],
438
- []
439
- ];
440
- var ValidationException$ = [-3, n0, _VE,
441
- { [_e]: _c, [_hE]: 400 },
442
- [_m, _r, _fL],
443
- [0, 0, () => ValidationExceptionFieldList], 2
444
- ];
445
- schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
446
- var ValidationExceptionField$ = [3, n0, _VEF,
447
- 0,
448
- [_n, _m],
449
- [0, 0], 2
450
- ];
451
- var NotificationsContactsServiceException$ = [-3, _sm, "NotificationsContactsServiceException", 0, [], []];
452
- schema.TypeRegistry.for(_sm).registerError(NotificationsContactsServiceException$, NotificationsContactsServiceException);
453
- var EmailContacts = [1, n0, _ECm,
454
- 0, [() => EmailContact$,
455
- 0]
456
- ];
457
- var ValidationExceptionFieldList = [1, n0, _VEFL,
458
- 0, () => ValidationExceptionField$
459
- ];
460
- var ActivateEmailContact$ = [9, n0, _AEC,
461
- { [_h]: ["PUT", "/emailcontacts/{arn}/activate/{code}", 200] }, () => ActivateEmailContactRequest$, () => ActivateEmailContactResponse$
462
- ];
463
- var CreateEmailContact$ = [9, n0, _CEC,
464
- { [_h]: ["POST", "/2022-09-19/emailcontacts", 201] }, () => CreateEmailContactRequest$, () => CreateEmailContactResponse$
465
- ];
466
- var DeleteEmailContact$ = [9, n0, _DEC,
467
- { [_h]: ["DELETE", "/emailcontacts/{arn}", 200] }, () => DeleteEmailContactRequest$, () => DeleteEmailContactResponse$
468
- ];
469
- var GetEmailContact$ = [9, n0, _GEC,
470
- { [_h]: ["GET", "/emailcontacts/{arn}", 200] }, () => GetEmailContactRequest$, () => GetEmailContactResponse$
471
- ];
472
- var ListEmailContacts$ = [9, n0, _LEC,
473
- { [_h]: ["GET", "/emailcontacts", 200] }, () => ListEmailContactsRequest$, () => ListEmailContactsResponse$
474
- ];
475
- var ListTagsForResource$ = [9, n0, _LTFR,
476
- { [_h]: ["GET", "/tags/{arn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
477
- ];
478
- var SendActivationCode$ = [9, n0, _SAC,
479
- { [_h]: ["POST", "/2022-10-31/emailcontacts/{arn}/activate/send", 200] }, () => SendActivationCodeRequest$, () => SendActivationCodeResponse$
480
- ];
481
- var TagResource$ = [9, n0, _TR,
482
- { [_h]: ["POST", "/tags/{arn}", 200] }, () => TagResourceRequest$, () => TagResourceResponse$
483
- ];
484
- var UntagResource$ = [9, n0, _UR,
485
- { [_h]: ["DELETE", "/tags/{arn}", 200] }, () => UntagResourceRequest$, () => UntagResourceResponse$
486
- ];
487
-
488
114
  class ActivateEmailContactCommand extends smithyClient.Command
489
115
  .classBuilder()
490
116
  .ep(commonParams)
@@ -493,7 +119,7 @@ class ActivateEmailContactCommand extends smithyClient.Command
493
119
  })
494
120
  .s("NotificationsContacts", "ActivateEmailContact", {})
495
121
  .n("NotificationsContactsClient", "ActivateEmailContactCommand")
496
- .sc(ActivateEmailContact$)
122
+ .sc(schemas_0.ActivateEmailContact$)
497
123
  .build() {
498
124
  }
499
125
 
@@ -505,7 +131,7 @@ class CreateEmailContactCommand extends smithyClient.Command
505
131
  })
506
132
  .s("NotificationsContacts", "CreateEmailContact", {})
507
133
  .n("NotificationsContactsClient", "CreateEmailContactCommand")
508
- .sc(CreateEmailContact$)
134
+ .sc(schemas_0.CreateEmailContact$)
509
135
  .build() {
510
136
  }
511
137
 
@@ -517,7 +143,7 @@ class DeleteEmailContactCommand extends smithyClient.Command
517
143
  })
518
144
  .s("NotificationsContacts", "DeleteEmailContact", {})
519
145
  .n("NotificationsContactsClient", "DeleteEmailContactCommand")
520
- .sc(DeleteEmailContact$)
146
+ .sc(schemas_0.DeleteEmailContact$)
521
147
  .build() {
522
148
  }
523
149
 
@@ -529,7 +155,7 @@ class GetEmailContactCommand extends smithyClient.Command
529
155
  })
530
156
  .s("NotificationsContacts", "GetEmailContact", {})
531
157
  .n("NotificationsContactsClient", "GetEmailContactCommand")
532
- .sc(GetEmailContact$)
158
+ .sc(schemas_0.GetEmailContact$)
533
159
  .build() {
534
160
  }
535
161
 
@@ -541,7 +167,7 @@ class ListEmailContactsCommand extends smithyClient.Command
541
167
  })
542
168
  .s("NotificationsContacts", "ListEmailContacts", {})
543
169
  .n("NotificationsContactsClient", "ListEmailContactsCommand")
544
- .sc(ListEmailContacts$)
170
+ .sc(schemas_0.ListEmailContacts$)
545
171
  .build() {
546
172
  }
547
173
 
@@ -553,7 +179,7 @@ class ListTagsForResourceCommand extends smithyClient.Command
553
179
  })
554
180
  .s("NotificationsContacts", "ListTagsForResource", {})
555
181
  .n("NotificationsContactsClient", "ListTagsForResourceCommand")
556
- .sc(ListTagsForResource$)
182
+ .sc(schemas_0.ListTagsForResource$)
557
183
  .build() {
558
184
  }
559
185
 
@@ -565,7 +191,7 @@ class SendActivationCodeCommand extends smithyClient.Command
565
191
  })
566
192
  .s("NotificationsContacts", "SendActivationCode", {})
567
193
  .n("NotificationsContactsClient", "SendActivationCodeCommand")
568
- .sc(SendActivationCode$)
194
+ .sc(schemas_0.SendActivationCode$)
569
195
  .build() {
570
196
  }
571
197
 
@@ -577,7 +203,7 @@ class TagResourceCommand extends smithyClient.Command
577
203
  })
578
204
  .s("NotificationsContacts", "TagResource", {})
579
205
  .n("NotificationsContactsClient", "TagResourceCommand")
580
- .sc(TagResource$)
206
+ .sc(schemas_0.TagResource$)
581
207
  .build() {
582
208
  }
583
209
 
@@ -589,7 +215,7 @@ class UntagResourceCommand extends smithyClient.Command
589
215
  })
590
216
  .s("NotificationsContacts", "UntagResource", {})
591
217
  .n("NotificationsContactsClient", "UntagResourceCommand")
592
- .sc(UntagResource$)
218
+ .sc(schemas_0.UntagResource$)
593
219
  .build() {
594
220
  }
595
221
 
@@ -630,62 +256,33 @@ Object.defineProperty(exports, "__Client", {
630
256
  enumerable: true,
631
257
  get: function () { return smithyClient.Client; }
632
258
  });
633
- exports.AccessDeniedException = AccessDeniedException;
634
- exports.AccessDeniedException$ = AccessDeniedException$;
635
- exports.ActivateEmailContact$ = ActivateEmailContact$;
259
+ Object.defineProperty(exports, "NotificationsContactsServiceException", {
260
+ enumerable: true,
261
+ get: function () { return NotificationsContactsServiceException.NotificationsContactsServiceException; }
262
+ });
636
263
  exports.ActivateEmailContactCommand = ActivateEmailContactCommand;
637
- exports.ActivateEmailContactRequest$ = ActivateEmailContactRequest$;
638
- exports.ActivateEmailContactResponse$ = ActivateEmailContactResponse$;
639
- exports.ConflictException = ConflictException;
640
- exports.ConflictException$ = ConflictException$;
641
- exports.CreateEmailContact$ = CreateEmailContact$;
642
264
  exports.CreateEmailContactCommand = CreateEmailContactCommand;
643
- exports.CreateEmailContactRequest$ = CreateEmailContactRequest$;
644
- exports.CreateEmailContactResponse$ = CreateEmailContactResponse$;
645
- exports.DeleteEmailContact$ = DeleteEmailContact$;
646
265
  exports.DeleteEmailContactCommand = DeleteEmailContactCommand;
647
- exports.DeleteEmailContactRequest$ = DeleteEmailContactRequest$;
648
- exports.DeleteEmailContactResponse$ = DeleteEmailContactResponse$;
649
- exports.EmailContact$ = EmailContact$;
650
266
  exports.EmailContactStatus = EmailContactStatus;
651
- exports.GetEmailContact$ = GetEmailContact$;
652
267
  exports.GetEmailContactCommand = GetEmailContactCommand;
653
- exports.GetEmailContactRequest$ = GetEmailContactRequest$;
654
- exports.GetEmailContactResponse$ = GetEmailContactResponse$;
655
- exports.InternalServerException = InternalServerException;
656
- exports.InternalServerException$ = InternalServerException$;
657
- exports.ListEmailContacts$ = ListEmailContacts$;
658
268
  exports.ListEmailContactsCommand = ListEmailContactsCommand;
659
- exports.ListEmailContactsRequest$ = ListEmailContactsRequest$;
660
- exports.ListEmailContactsResponse$ = ListEmailContactsResponse$;
661
- exports.ListTagsForResource$ = ListTagsForResource$;
662
269
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
663
- exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
664
- exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
665
270
  exports.NotificationsContacts = NotificationsContacts;
666
271
  exports.NotificationsContactsClient = NotificationsContactsClient;
667
- exports.NotificationsContactsServiceException = NotificationsContactsServiceException;
668
- exports.NotificationsContactsServiceException$ = NotificationsContactsServiceException$;
669
- exports.ResourceNotFoundException = ResourceNotFoundException;
670
- exports.ResourceNotFoundException$ = ResourceNotFoundException$;
671
- exports.SendActivationCode$ = SendActivationCode$;
672
272
  exports.SendActivationCodeCommand = SendActivationCodeCommand;
673
- exports.SendActivationCodeRequest$ = SendActivationCodeRequest$;
674
- exports.SendActivationCodeResponse$ = SendActivationCodeResponse$;
675
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
676
- exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
677
- exports.TagResource$ = TagResource$;
678
273
  exports.TagResourceCommand = TagResourceCommand;
679
- exports.TagResourceRequest$ = TagResourceRequest$;
680
- exports.TagResourceResponse$ = TagResourceResponse$;
681
- exports.ThrottlingException = ThrottlingException;
682
- exports.ThrottlingException$ = ThrottlingException$;
683
- exports.UntagResource$ = UntagResource$;
684
274
  exports.UntagResourceCommand = UntagResourceCommand;
685
- exports.UntagResourceRequest$ = UntagResourceRequest$;
686
- exports.UntagResourceResponse$ = UntagResourceResponse$;
687
- exports.ValidationException = ValidationException;
688
- exports.ValidationException$ = ValidationException$;
689
- exports.ValidationExceptionField$ = ValidationExceptionField$;
690
275
  exports.ValidationExceptionReason = ValidationExceptionReason;
691
276
  exports.paginateListEmailContacts = paginateListEmailContacts;
277
+ Object.keys(schemas_0).forEach(function (k) {
278
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
279
+ enumerable: true,
280
+ get: function () { return schemas_0[k]; }
281
+ });
282
+ });
283
+ Object.keys(errors).forEach(function (k) {
284
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
285
+ enumerable: true,
286
+ get: function () { return errors[k]; }
287
+ });
288
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationsContactsServiceException = 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 NotificationsContactsServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, NotificationsContactsServiceException.prototype);
10
+ }
11
+ }
12
+ exports.NotificationsContactsServiceException = NotificationsContactsServiceException;
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ServiceQuotaExceededException = exports.ValidationException = exports.ThrottlingException = exports.ResourceNotFoundException = exports.InternalServerException = exports.ConflictException = exports.AccessDeniedException = void 0;
4
+ const NotificationsContactsServiceException_1 = require("./NotificationsContactsServiceException");
5
+ class AccessDeniedException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
6
+ name = "AccessDeniedException";
7
+ $fault = "client";
8
+ constructor(opts) {
9
+ super({
10
+ name: "AccessDeniedException",
11
+ $fault: "client",
12
+ ...opts,
13
+ });
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ }
16
+ }
17
+ exports.AccessDeniedException = AccessDeniedException;
18
+ class ConflictException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
19
+ name = "ConflictException";
20
+ $fault = "client";
21
+ resourceId;
22
+ resourceType;
23
+ constructor(opts) {
24
+ super({
25
+ name: "ConflictException",
26
+ $fault: "client",
27
+ ...opts,
28
+ });
29
+ Object.setPrototypeOf(this, ConflictException.prototype);
30
+ this.resourceId = opts.resourceId;
31
+ this.resourceType = opts.resourceType;
32
+ }
33
+ }
34
+ exports.ConflictException = ConflictException;
35
+ class InternalServerException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
36
+ name = "InternalServerException";
37
+ $fault = "server";
38
+ $retryable = {};
39
+ constructor(opts) {
40
+ super({
41
+ name: "InternalServerException",
42
+ $fault: "server",
43
+ ...opts,
44
+ });
45
+ Object.setPrototypeOf(this, InternalServerException.prototype);
46
+ }
47
+ }
48
+ exports.InternalServerException = InternalServerException;
49
+ class ResourceNotFoundException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
50
+ name = "ResourceNotFoundException";
51
+ $fault = "client";
52
+ resourceId;
53
+ resourceType;
54
+ constructor(opts) {
55
+ super({
56
+ name: "ResourceNotFoundException",
57
+ $fault: "client",
58
+ ...opts,
59
+ });
60
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
61
+ this.resourceId = opts.resourceId;
62
+ this.resourceType = opts.resourceType;
63
+ }
64
+ }
65
+ exports.ResourceNotFoundException = ResourceNotFoundException;
66
+ class ThrottlingException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
67
+ name = "ThrottlingException";
68
+ $fault = "client";
69
+ $retryable = {
70
+ throttling: true,
71
+ };
72
+ serviceCode;
73
+ quotaCode;
74
+ retryAfterSeconds;
75
+ constructor(opts) {
76
+ super({
77
+ name: "ThrottlingException",
78
+ $fault: "client",
79
+ ...opts,
80
+ });
81
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
82
+ this.serviceCode = opts.serviceCode;
83
+ this.quotaCode = opts.quotaCode;
84
+ this.retryAfterSeconds = opts.retryAfterSeconds;
85
+ }
86
+ }
87
+ exports.ThrottlingException = ThrottlingException;
88
+ class ValidationException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
89
+ name = "ValidationException";
90
+ $fault = "client";
91
+ reason;
92
+ fieldList;
93
+ constructor(opts) {
94
+ super({
95
+ name: "ValidationException",
96
+ $fault: "client",
97
+ ...opts,
98
+ });
99
+ Object.setPrototypeOf(this, ValidationException.prototype);
100
+ this.reason = opts.reason;
101
+ this.fieldList = opts.fieldList;
102
+ }
103
+ }
104
+ exports.ValidationException = ValidationException;
105
+ class ServiceQuotaExceededException extends NotificationsContactsServiceException_1.NotificationsContactsServiceException {
106
+ name = "ServiceQuotaExceededException";
107
+ $fault = "client";
108
+ resourceId;
109
+ resourceType;
110
+ serviceCode;
111
+ quotaCode;
112
+ constructor(opts) {
113
+ super({
114
+ name: "ServiceQuotaExceededException",
115
+ $fault: "client",
116
+ ...opts,
117
+ });
118
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
119
+ this.resourceId = opts.resourceId;
120
+ this.resourceType = opts.resourceType;
121
+ this.serviceCode = opts.serviceCode;
122
+ this.quotaCode = opts.quotaCode;
123
+ }
124
+ }
125
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
@@ -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: "2018-05-10",
@@ -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.notificationscontacts",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2018-05-10",
33
35
  serviceTarget: "NotificationsContacts",
34
36
  },
@@ -0,0 +1,268 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UntagResource$ = exports.TagResource$ = exports.SendActivationCode$ = exports.ListTagsForResource$ = exports.ListEmailContacts$ = exports.GetEmailContact$ = exports.DeleteEmailContact$ = exports.CreateEmailContact$ = exports.ActivateEmailContact$ = exports.ValidationExceptionField$ = exports.UntagResourceResponse$ = exports.UntagResourceRequest$ = exports.TagResourceResponse$ = exports.TagResourceRequest$ = exports.SendActivationCodeResponse$ = exports.SendActivationCodeRequest$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceRequest$ = exports.ListEmailContactsResponse$ = exports.ListEmailContactsRequest$ = exports.GetEmailContactResponse$ = exports.GetEmailContactRequest$ = exports.EmailContact$ = exports.DeleteEmailContactResponse$ = exports.DeleteEmailContactRequest$ = exports.CreateEmailContactResponse$ = exports.CreateEmailContactRequest$ = exports.ActivateEmailContactResponse$ = exports.ActivateEmailContactRequest$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ThrottlingException$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.NotificationsContactsServiceException$ = void 0;
4
+ const _ADE = "AccessDeniedException";
5
+ const _AEC = "ActivateEmailContact";
6
+ const _AECR = "ActivateEmailContactRequest";
7
+ const _AECRc = "ActivateEmailContactResponse";
8
+ const _CE = "ConflictException";
9
+ const _CEC = "CreateEmailContact";
10
+ const _CECR = "CreateEmailContactRequest";
11
+ const _CECRr = "CreateEmailContactResponse";
12
+ const _DEC = "DeleteEmailContact";
13
+ const _DECR = "DeleteEmailContactRequest";
14
+ const _DECRe = "DeleteEmailContactResponse";
15
+ const _EC = "EmailContact";
16
+ const _ECN = "EmailContactName";
17
+ const _ECm = "EmailContacts";
18
+ const _GEC = "GetEmailContact";
19
+ const _GECR = "GetEmailContactRequest";
20
+ const _GECRe = "GetEmailContactResponse";
21
+ const _ISE = "InternalServerException";
22
+ const _LEC = "ListEmailContacts";
23
+ const _LECR = "ListEmailContactsRequest";
24
+ const _LECRi = "ListEmailContactsResponse";
25
+ const _LTFR = "ListTagsForResource";
26
+ const _LTFRR = "ListTagsForResourceRequest";
27
+ const _LTFRRi = "ListTagsForResourceResponse";
28
+ const _RA = "Retry-After";
29
+ const _RNFE = "ResourceNotFoundException";
30
+ const _SAC = "SendActivationCode";
31
+ const _SACR = "SendActivationCodeRequest";
32
+ const _SACRe = "SendActivationCodeResponse";
33
+ const _SECA = "SensitiveEmailContactAddress";
34
+ const _SQEE = "ServiceQuotaExceededException";
35
+ const _T = "Token";
36
+ const _TE = "ThrottlingException";
37
+ const _TR = "TagResource";
38
+ const _TRR = "TagResourceRequest";
39
+ const _TRRa = "TagResourceResponse";
40
+ const _UR = "UntagResource";
41
+ const _URR = "UntagResourceRequest";
42
+ const _URRn = "UntagResourceResponse";
43
+ const _VE = "ValidationException";
44
+ const _VEF = "ValidationExceptionField";
45
+ const _VEFL = "ValidationExceptionFieldList";
46
+ const _a = "arn";
47
+ const _ad = "address";
48
+ const _c = "client";
49
+ const _cT = "creationTime";
50
+ const _co = "code";
51
+ const _e = "error";
52
+ const _eA = "emailAddress";
53
+ const _eC = "emailContact";
54
+ const _eCm = "emailContacts";
55
+ const _fL = "fieldList";
56
+ const _h = "http";
57
+ const _hE = "httpError";
58
+ const _hH = "httpHeader";
59
+ const _hQ = "httpQuery";
60
+ const _m = "message";
61
+ const _mR = "maxResults";
62
+ const _n = "name";
63
+ const _nT = "nextToken";
64
+ const _qC = "quotaCode";
65
+ const _r = "reason";
66
+ const _rAS = "retryAfterSeconds";
67
+ const _rI = "resourceId";
68
+ const _rT = "resourceType";
69
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.notificationscontacts";
70
+ const _sC = "serviceCode";
71
+ const _se = "server";
72
+ const _st = "status";
73
+ const _t = "tags";
74
+ const _tK = "tagKeys";
75
+ const _uT = "updateTime";
76
+ const n0 = "com.amazonaws.notificationscontacts";
77
+ const schema_1 = require("@smithy/core/schema");
78
+ const errors_1 = require("../models/errors");
79
+ const NotificationsContactsServiceException_1 = require("../models/NotificationsContactsServiceException");
80
+ const _s_registry = schema_1.TypeRegistry.for(_s);
81
+ exports.NotificationsContactsServiceException$ = [-3, _s, "NotificationsContactsServiceException", 0, [], []];
82
+ _s_registry.registerError(exports.NotificationsContactsServiceException$, NotificationsContactsServiceException_1.NotificationsContactsServiceException);
83
+ const n0_registry = schema_1.TypeRegistry.for(n0);
84
+ exports.AccessDeniedException$ = [-3, n0, _ADE,
85
+ { [_e]: _c, [_hE]: 403 },
86
+ [_m],
87
+ [0], 1
88
+ ];
89
+ n0_registry.registerError(exports.AccessDeniedException$, errors_1.AccessDeniedException);
90
+ exports.ConflictException$ = [-3, n0, _CE,
91
+ { [_e]: _c, [_hE]: 409 },
92
+ [_m, _rI, _rT],
93
+ [0, 0, 0], 3
94
+ ];
95
+ n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
96
+ exports.InternalServerException$ = [-3, n0, _ISE,
97
+ { [_e]: _se, [_hE]: 500 },
98
+ [_m],
99
+ [0], 1
100
+ ];
101
+ n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
102
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
103
+ { [_e]: _c, [_hE]: 404 },
104
+ [_m, _rI, _rT],
105
+ [0, 0, 0], 3
106
+ ];
107
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
108
+ exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
109
+ { [_e]: _c, [_hE]: 402 },
110
+ [_m, _rI, _rT, _sC, _qC],
111
+ [0, 0, 0, 0, 0], 5
112
+ ];
113
+ n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
114
+ exports.ThrottlingException$ = [-3, n0, _TE,
115
+ { [_e]: _c, [_hE]: 429 },
116
+ [_m, _sC, _qC, _rAS],
117
+ [0, 0, 0, [1, { [_hH]: _RA }]], 1
118
+ ];
119
+ n0_registry.registerError(exports.ThrottlingException$, errors_1.ThrottlingException);
120
+ exports.ValidationException$ = [-3, n0, _VE,
121
+ { [_e]: _c, [_hE]: 400 },
122
+ [_m, _r, _fL],
123
+ [0, 0, () => ValidationExceptionFieldList], 2
124
+ ];
125
+ n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
126
+ exports.errorTypeRegistries = [
127
+ _s_registry,
128
+ n0_registry,
129
+ ];
130
+ var EmailContactName = [0, n0, _ECN, 8, 0];
131
+ var SensitiveEmailContactAddress = [0, n0, _SECA, 8, 0];
132
+ var Token = [0, n0, _T, 8, 0];
133
+ exports.ActivateEmailContactRequest$ = [3, n0, _AECR,
134
+ 0,
135
+ [_a, _co],
136
+ [[0, 1], [() => Token, 1]], 2
137
+ ];
138
+ exports.ActivateEmailContactResponse$ = [3, n0, _AECRc,
139
+ 0,
140
+ [],
141
+ []
142
+ ];
143
+ exports.CreateEmailContactRequest$ = [3, n0, _CECR,
144
+ 0,
145
+ [_n, _eA, _t],
146
+ [[() => EmailContactName, 0], 0, 128 | 0], 2
147
+ ];
148
+ exports.CreateEmailContactResponse$ = [3, n0, _CECRr,
149
+ 0,
150
+ [_a],
151
+ [0], 1
152
+ ];
153
+ exports.DeleteEmailContactRequest$ = [3, n0, _DECR,
154
+ 0,
155
+ [_a],
156
+ [[0, 1]], 1
157
+ ];
158
+ exports.DeleteEmailContactResponse$ = [3, n0, _DECRe,
159
+ 0,
160
+ [],
161
+ []
162
+ ];
163
+ exports.EmailContact$ = [3, n0, _EC,
164
+ 0,
165
+ [_a, _n, _ad, _st, _cT, _uT],
166
+ [0, [() => EmailContactName, 0], [() => SensitiveEmailContactAddress, 0], 0, 5, 5], 6
167
+ ];
168
+ exports.GetEmailContactRequest$ = [3, n0, _GECR,
169
+ 0,
170
+ [_a],
171
+ [[0, 1]], 1
172
+ ];
173
+ exports.GetEmailContactResponse$ = [3, n0, _GECRe,
174
+ 0,
175
+ [_eC],
176
+ [[() => exports.EmailContact$, 0]], 1
177
+ ];
178
+ exports.ListEmailContactsRequest$ = [3, n0, _LECR,
179
+ 0,
180
+ [_mR, _nT],
181
+ [[1, { [_hQ]: _mR }], [0, { [_hQ]: _nT }]]
182
+ ];
183
+ exports.ListEmailContactsResponse$ = [3, n0, _LECRi,
184
+ 0,
185
+ [_eCm, _nT],
186
+ [[() => EmailContacts, 0], 0], 1
187
+ ];
188
+ exports.ListTagsForResourceRequest$ = [3, n0, _LTFRR,
189
+ 0,
190
+ [_a],
191
+ [[0, 1]], 1
192
+ ];
193
+ exports.ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
194
+ 0,
195
+ [_t],
196
+ [128 | 0]
197
+ ];
198
+ exports.SendActivationCodeRequest$ = [3, n0, _SACR,
199
+ 0,
200
+ [_a],
201
+ [[0, 1]], 1
202
+ ];
203
+ exports.SendActivationCodeResponse$ = [3, n0, _SACRe,
204
+ 0,
205
+ [],
206
+ []
207
+ ];
208
+ exports.TagResourceRequest$ = [3, n0, _TRR,
209
+ 0,
210
+ [_a, _t],
211
+ [[0, 1], 128 | 0], 2
212
+ ];
213
+ exports.TagResourceResponse$ = [3, n0, _TRRa,
214
+ 0,
215
+ [],
216
+ []
217
+ ];
218
+ exports.UntagResourceRequest$ = [3, n0, _URR,
219
+ 0,
220
+ [_a, _tK],
221
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
222
+ ];
223
+ exports.UntagResourceResponse$ = [3, n0, _URRn,
224
+ 0,
225
+ [],
226
+ []
227
+ ];
228
+ exports.ValidationExceptionField$ = [3, n0, _VEF,
229
+ 0,
230
+ [_n, _m],
231
+ [0, 0], 2
232
+ ];
233
+ var EmailContacts = [1, n0, _ECm,
234
+ 0, [() => exports.EmailContact$,
235
+ 0]
236
+ ];
237
+ var TagKeys = 64 | 0;
238
+ var ValidationExceptionFieldList = [1, n0, _VEFL,
239
+ 0, () => exports.ValidationExceptionField$
240
+ ];
241
+ var TagMap = 128 | 0;
242
+ exports.ActivateEmailContact$ = [9, n0, _AEC,
243
+ { [_h]: ["PUT", "/emailcontacts/{arn}/activate/{code}", 200] }, () => exports.ActivateEmailContactRequest$, () => exports.ActivateEmailContactResponse$
244
+ ];
245
+ exports.CreateEmailContact$ = [9, n0, _CEC,
246
+ { [_h]: ["POST", "/2022-09-19/emailcontacts", 201] }, () => exports.CreateEmailContactRequest$, () => exports.CreateEmailContactResponse$
247
+ ];
248
+ exports.DeleteEmailContact$ = [9, n0, _DEC,
249
+ { [_h]: ["DELETE", "/emailcontacts/{arn}", 200] }, () => exports.DeleteEmailContactRequest$, () => exports.DeleteEmailContactResponse$
250
+ ];
251
+ exports.GetEmailContact$ = [9, n0, _GEC,
252
+ { [_h]: ["GET", "/emailcontacts/{arn}", 200] }, () => exports.GetEmailContactRequest$, () => exports.GetEmailContactResponse$
253
+ ];
254
+ exports.ListEmailContacts$ = [9, n0, _LEC,
255
+ { [_h]: ["GET", "/emailcontacts", 200] }, () => exports.ListEmailContactsRequest$, () => exports.ListEmailContactsResponse$
256
+ ];
257
+ exports.ListTagsForResource$ = [9, n0, _LTFR,
258
+ { [_h]: ["GET", "/tags/{arn}", 200] }, () => exports.ListTagsForResourceRequest$, () => exports.ListTagsForResourceResponse$
259
+ ];
260
+ exports.SendActivationCode$ = [9, n0, _SAC,
261
+ { [_h]: ["POST", "/2022-10-31/emailcontacts/{arn}/activate/send", 200] }, () => exports.SendActivationCodeRequest$, () => exports.SendActivationCodeResponse$
262
+ ];
263
+ exports.TagResource$ = [9, n0, _TR,
264
+ { [_h]: ["POST", "/tags/{arn}", 200] }, () => exports.TagResourceRequest$, () => exports.TagResourceResponse$
265
+ ];
266
+ exports.UntagResource$ = [9, n0, _UR,
267
+ { [_h]: ["DELETE", "/tags/{arn}", 200] }, () => exports.UntagResourceRequest$, () => exports.UntagResourceResponse$
268
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultNotificationsContactsHttpAuthSchemeProvider } 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: "2018-05-10",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsRestJsonProtocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.notificationscontacts",
30
+ errorTypeRegistries,
29
31
  version: "2018-05-10",
30
32
  serviceTarget: "NotificationsContacts",
31
33
  },
@@ -63,10 +63,10 @@ const _r = "reason";
63
63
  const _rAS = "retryAfterSeconds";
64
64
  const _rI = "resourceId";
65
65
  const _rT = "resourceType";
66
- const _s = "status";
66
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.notificationscontacts";
67
67
  const _sC = "serviceCode";
68
68
  const _se = "server";
69
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.notificationscontacts";
69
+ const _st = "status";
70
70
  const _t = "tags";
71
71
  const _tK = "tagKeys";
72
72
  const _uT = "updateTime";
@@ -74,15 +74,59 @@ const n0 = "com.amazonaws.notificationscontacts";
74
74
  import { TypeRegistry } from "@smithy/core/schema";
75
75
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/errors";
76
76
  import { NotificationsContactsServiceException } from "../models/NotificationsContactsServiceException";
77
- var EmailContactName = [0, n0, _ECN, 8, 0];
78
- var SensitiveEmailContactAddress = [0, n0, _SECA, 8, 0];
79
- var Token = [0, n0, _T, 8, 0];
77
+ const _s_registry = TypeRegistry.for(_s);
78
+ export var NotificationsContactsServiceException$ = [-3, _s, "NotificationsContactsServiceException", 0, [], []];
79
+ _s_registry.registerError(NotificationsContactsServiceException$, NotificationsContactsServiceException);
80
+ const n0_registry = TypeRegistry.for(n0);
80
81
  export var AccessDeniedException$ = [-3, n0, _ADE,
81
82
  { [_e]: _c, [_hE]: 403 },
82
83
  [_m],
83
84
  [0], 1
84
85
  ];
85
- TypeRegistry.for(n0).registerError(AccessDeniedException$, AccessDeniedException);
86
+ n0_registry.registerError(AccessDeniedException$, AccessDeniedException);
87
+ export var ConflictException$ = [-3, n0, _CE,
88
+ { [_e]: _c, [_hE]: 409 },
89
+ [_m, _rI, _rT],
90
+ [0, 0, 0], 3
91
+ ];
92
+ n0_registry.registerError(ConflictException$, ConflictException);
93
+ export var InternalServerException$ = [-3, n0, _ISE,
94
+ { [_e]: _se, [_hE]: 500 },
95
+ [_m],
96
+ [0], 1
97
+ ];
98
+ n0_registry.registerError(InternalServerException$, InternalServerException);
99
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
100
+ { [_e]: _c, [_hE]: 404 },
101
+ [_m, _rI, _rT],
102
+ [0, 0, 0], 3
103
+ ];
104
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
105
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
106
+ { [_e]: _c, [_hE]: 402 },
107
+ [_m, _rI, _rT, _sC, _qC],
108
+ [0, 0, 0, 0, 0], 5
109
+ ];
110
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
111
+ export var ThrottlingException$ = [-3, n0, _TE,
112
+ { [_e]: _c, [_hE]: 429 },
113
+ [_m, _sC, _qC, _rAS],
114
+ [0, 0, 0, [1, { [_hH]: _RA }]], 1
115
+ ];
116
+ n0_registry.registerError(ThrottlingException$, ThrottlingException);
117
+ export var ValidationException$ = [-3, n0, _VE,
118
+ { [_e]: _c, [_hE]: 400 },
119
+ [_m, _r, _fL],
120
+ [0, 0, () => ValidationExceptionFieldList], 2
121
+ ];
122
+ n0_registry.registerError(ValidationException$, ValidationException);
123
+ export const errorTypeRegistries = [
124
+ _s_registry,
125
+ n0_registry,
126
+ ];
127
+ var EmailContactName = [0, n0, _ECN, 8, 0];
128
+ var SensitiveEmailContactAddress = [0, n0, _SECA, 8, 0];
129
+ var Token = [0, n0, _T, 8, 0];
86
130
  export var ActivateEmailContactRequest$ = [3, n0, _AECR,
87
131
  0,
88
132
  [_a, _co],
@@ -93,12 +137,6 @@ export var ActivateEmailContactResponse$ = [3, n0, _AECRc,
93
137
  [],
94
138
  []
95
139
  ];
96
- export var ConflictException$ = [-3, n0, _CE,
97
- { [_e]: _c, [_hE]: 409 },
98
- [_m, _rI, _rT],
99
- [0, 0, 0], 3
100
- ];
101
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
102
140
  export var CreateEmailContactRequest$ = [3, n0, _CECR,
103
141
  0,
104
142
  [_n, _eA, _t],
@@ -121,7 +159,7 @@ export var DeleteEmailContactResponse$ = [3, n0, _DECRe,
121
159
  ];
122
160
  export var EmailContact$ = [3, n0, _EC,
123
161
  0,
124
- [_a, _n, _ad, _s, _cT, _uT],
162
+ [_a, _n, _ad, _st, _cT, _uT],
125
163
  [0, [() => EmailContactName, 0], [() => SensitiveEmailContactAddress, 0], 0, 5, 5], 6
126
164
  ];
127
165
  export var GetEmailContactRequest$ = [3, n0, _GECR,
@@ -134,12 +172,6 @@ export var GetEmailContactResponse$ = [3, n0, _GECRe,
134
172
  [_eC],
135
173
  [[() => EmailContact$, 0]], 1
136
174
  ];
137
- export var InternalServerException$ = [-3, n0, _ISE,
138
- { [_e]: _se, [_hE]: 500 },
139
- [_m],
140
- [0], 1
141
- ];
142
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
143
175
  export var ListEmailContactsRequest$ = [3, n0, _LECR,
144
176
  0,
145
177
  [_mR, _nT],
@@ -160,12 +192,6 @@ export var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
160
192
  [_t],
161
193
  [128 | 0]
162
194
  ];
163
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
164
- { [_e]: _c, [_hE]: 404 },
165
- [_m, _rI, _rT],
166
- [0, 0, 0], 3
167
- ];
168
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
169
195
  export var SendActivationCodeRequest$ = [3, n0, _SACR,
170
196
  0,
171
197
  [_a],
@@ -176,12 +202,6 @@ export var SendActivationCodeResponse$ = [3, n0, _SACRe,
176
202
  [],
177
203
  []
178
204
  ];
179
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
180
- { [_e]: _c, [_hE]: 402 },
181
- [_m, _rI, _rT, _sC, _qC],
182
- [0, 0, 0, 0, 0], 5
183
- ];
184
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
185
205
  export var TagResourceRequest$ = [3, n0, _TRR,
186
206
  0,
187
207
  [_a, _t],
@@ -192,12 +212,6 @@ export var TagResourceResponse$ = [3, n0, _TRRa,
192
212
  [],
193
213
  []
194
214
  ];
195
- export var ThrottlingException$ = [-3, n0, _TE,
196
- { [_e]: _c, [_hE]: 429 },
197
- [_m, _sC, _qC, _rAS],
198
- [0, 0, 0, [1, { [_hH]: _RA }]], 1
199
- ];
200
- TypeRegistry.for(n0).registerError(ThrottlingException$, ThrottlingException);
201
215
  export var UntagResourceRequest$ = [3, n0, _URR,
202
216
  0,
203
217
  [_a, _tK],
@@ -208,19 +222,11 @@ export var UntagResourceResponse$ = [3, n0, _URRn,
208
222
  [],
209
223
  []
210
224
  ];
211
- export var ValidationException$ = [-3, n0, _VE,
212
- { [_e]: _c, [_hE]: 400 },
213
- [_m, _r, _fL],
214
- [0, 0, () => ValidationExceptionFieldList], 2
215
- ];
216
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
217
225
  export var ValidationExceptionField$ = [3, n0, _VEF,
218
226
  0,
219
227
  [_n, _m],
220
228
  [0, 0], 2
221
229
  ];
222
- export var NotificationsContactsServiceException$ = [-3, _sm, "NotificationsContactsServiceException", 0, [], []];
223
- TypeRegistry.for(_sm).registerError(NotificationsContactsServiceException$, NotificationsContactsServiceException);
224
230
  var EmailContacts = [1, n0, _ECm,
225
231
  0, [() => EmailContact$,
226
232
  0]
@@ -1,8 +1,21 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var NotificationsContactsServiceException$: StaticErrorSchema;
2
4
  export declare var AccessDeniedException$: StaticErrorSchema;
5
+ export declare var ConflictException$: StaticErrorSchema;
6
+ export declare var InternalServerException$: StaticErrorSchema;
7
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
8
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
9
+ export declare var ThrottlingException$: StaticErrorSchema;
10
+ export declare var ValidationException$: StaticErrorSchema;
11
+ /**
12
+ * TypeRegistry instances containing modeled errors.
13
+ * @internal
14
+ *
15
+ */
16
+ export declare const errorTypeRegistries: TypeRegistry[];
3
17
  export declare var ActivateEmailContactRequest$: StaticStructureSchema;
4
18
  export declare var ActivateEmailContactResponse$: StaticStructureSchema;
5
- export declare var ConflictException$: StaticErrorSchema;
6
19
  export declare var CreateEmailContactRequest$: StaticStructureSchema;
7
20
  export declare var CreateEmailContactResponse$: StaticStructureSchema;
8
21
  export declare var DeleteEmailContactRequest$: StaticStructureSchema;
@@ -10,23 +23,17 @@ export declare var DeleteEmailContactResponse$: StaticStructureSchema;
10
23
  export declare var EmailContact$: StaticStructureSchema;
11
24
  export declare var GetEmailContactRequest$: StaticStructureSchema;
12
25
  export declare var GetEmailContactResponse$: StaticStructureSchema;
13
- export declare var InternalServerException$: StaticErrorSchema;
14
26
  export declare var ListEmailContactsRequest$: StaticStructureSchema;
15
27
  export declare var ListEmailContactsResponse$: StaticStructureSchema;
16
28
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
17
29
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
18
- export declare var ResourceNotFoundException$: StaticErrorSchema;
19
30
  export declare var SendActivationCodeRequest$: StaticStructureSchema;
20
31
  export declare var SendActivationCodeResponse$: StaticStructureSchema;
21
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
22
32
  export declare var TagResourceRequest$: StaticStructureSchema;
23
33
  export declare var TagResourceResponse$: StaticStructureSchema;
24
- export declare var ThrottlingException$: StaticErrorSchema;
25
34
  export declare var UntagResourceRequest$: StaticStructureSchema;
26
35
  export declare var UntagResourceResponse$: StaticStructureSchema;
27
- export declare var ValidationException$: StaticErrorSchema;
28
36
  export declare var ValidationExceptionField$: StaticStructureSchema;
29
- export declare var NotificationsContactsServiceException$: StaticErrorSchema;
30
37
  export declare var ActivateEmailContact$: StaticOperationSchema;
31
38
  export declare var CreateEmailContact$: StaticOperationSchema;
32
39
  export declare var DeleteEmailContact$: StaticOperationSchema;
@@ -1,12 +1,20 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var NotificationsContactsServiceException$: StaticErrorSchema;
6
8
  export declare var AccessDeniedException$: StaticErrorSchema;
9
+ export declare var ConflictException$: StaticErrorSchema;
10
+ export declare var InternalServerException$: StaticErrorSchema;
11
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
12
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
13
+ export declare var ThrottlingException$: StaticErrorSchema;
14
+ export declare var ValidationException$: StaticErrorSchema;
15
+ export declare const errorTypeRegistries: TypeRegistry[];
7
16
  export declare var ActivateEmailContactRequest$: StaticStructureSchema;
8
17
  export declare var ActivateEmailContactResponse$: StaticStructureSchema;
9
- export declare var ConflictException$: StaticErrorSchema;
10
18
  export declare var CreateEmailContactRequest$: StaticStructureSchema;
11
19
  export declare var CreateEmailContactResponse$: StaticStructureSchema;
12
20
  export declare var DeleteEmailContactRequest$: StaticStructureSchema;
@@ -14,23 +22,17 @@ export declare var DeleteEmailContactResponse$: StaticStructureSchema;
14
22
  export declare var EmailContact$: StaticStructureSchema;
15
23
  export declare var GetEmailContactRequest$: StaticStructureSchema;
16
24
  export declare var GetEmailContactResponse$: StaticStructureSchema;
17
- export declare var InternalServerException$: StaticErrorSchema;
18
25
  export declare var ListEmailContactsRequest$: StaticStructureSchema;
19
26
  export declare var ListEmailContactsResponse$: StaticStructureSchema;
20
27
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
21
28
  export declare var ListTagsForResourceResponse$: StaticStructureSchema;
22
- export declare var ResourceNotFoundException$: StaticErrorSchema;
23
29
  export declare var SendActivationCodeRequest$: StaticStructureSchema;
24
30
  export declare var SendActivationCodeResponse$: StaticStructureSchema;
25
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
26
31
  export declare var TagResourceRequest$: StaticStructureSchema;
27
32
  export declare var TagResourceResponse$: StaticStructureSchema;
28
- export declare var ThrottlingException$: StaticErrorSchema;
29
33
  export declare var UntagResourceRequest$: StaticStructureSchema;
30
34
  export declare var UntagResourceResponse$: StaticStructureSchema;
31
- export declare var ValidationException$: StaticErrorSchema;
32
35
  export declare var ValidationExceptionField$: StaticStructureSchema;
33
- export declare var NotificationsContactsServiceException$: StaticErrorSchema;
34
36
  export declare var ActivateEmailContact$: StaticOperationSchema;
35
37
  export declare var CreateEmailContact$: StaticOperationSchema;
36
38
  export declare var DeleteEmailContact$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-notificationscontacts",
3
3
  "description": "AWS SDK for JavaScript Notificationscontacts Client for Node.js, Browser and React Native",
4
- "version": "3.986.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-notificationscontacts",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.986.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",