@aws-sdk/client-rbin 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 RbinServiceException = require('./models/RbinServiceException');
18
21
 
19
22
  const resolveClientEndpointParameters = (options) => {
20
23
  return Object.assign(options, {
@@ -110,374 +113,6 @@ class RbinClient extends smithyClient.Client {
110
113
  }
111
114
  }
112
115
 
113
- class RbinServiceException extends smithyClient.ServiceException {
114
- constructor(options) {
115
- super(options);
116
- Object.setPrototypeOf(this, RbinServiceException.prototype);
117
- }
118
- }
119
-
120
- class InternalServerException extends RbinServiceException {
121
- name = "InternalServerException";
122
- $fault = "server";
123
- Message;
124
- constructor(opts) {
125
- super({
126
- name: "InternalServerException",
127
- $fault: "server",
128
- ...opts,
129
- });
130
- Object.setPrototypeOf(this, InternalServerException.prototype);
131
- this.Message = opts.Message;
132
- }
133
- }
134
- class ServiceQuotaExceededException extends RbinServiceException {
135
- name = "ServiceQuotaExceededException";
136
- $fault = "client";
137
- Message;
138
- Reason;
139
- constructor(opts) {
140
- super({
141
- name: "ServiceQuotaExceededException",
142
- $fault: "client",
143
- ...opts,
144
- });
145
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
146
- this.Message = opts.Message;
147
- this.Reason = opts.Reason;
148
- }
149
- }
150
- class ValidationException extends RbinServiceException {
151
- name = "ValidationException";
152
- $fault = "client";
153
- Message;
154
- Reason;
155
- constructor(opts) {
156
- super({
157
- name: "ValidationException",
158
- $fault: "client",
159
- ...opts,
160
- });
161
- Object.setPrototypeOf(this, ValidationException.prototype);
162
- this.Message = opts.Message;
163
- this.Reason = opts.Reason;
164
- }
165
- }
166
- class ConflictException extends RbinServiceException {
167
- name = "ConflictException";
168
- $fault = "client";
169
- Message;
170
- Reason;
171
- constructor(opts) {
172
- super({
173
- name: "ConflictException",
174
- $fault: "client",
175
- ...opts,
176
- });
177
- Object.setPrototypeOf(this, ConflictException.prototype);
178
- this.Message = opts.Message;
179
- this.Reason = opts.Reason;
180
- }
181
- }
182
- class ResourceNotFoundException extends RbinServiceException {
183
- name = "ResourceNotFoundException";
184
- $fault = "client";
185
- Message;
186
- Reason;
187
- constructor(opts) {
188
- super({
189
- name: "ResourceNotFoundException",
190
- $fault: "client",
191
- ...opts,
192
- });
193
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
194
- this.Message = opts.Message;
195
- this.Reason = opts.Reason;
196
- }
197
- }
198
-
199
- const _CE = "ConflictException";
200
- const _CR = "CreateRule";
201
- const _CRR = "CreateRuleRequest";
202
- const _CRRr = "CreateRuleResponse";
203
- const _D = "Description";
204
- const _DR = "DeleteRule";
205
- const _DRR = "DeleteRuleRequest";
206
- const _DRRe = "DeleteRuleResponse";
207
- const _ERT = "ExcludeResourceTags";
208
- const _GR = "GetRule";
209
- const _GRR = "GetRuleRequest";
210
- const _GRRe = "GetRuleResponse";
211
- const _I = "Identifier";
212
- const _ISE = "InternalServerException";
213
- const _K = "Key";
214
- const _LC = "LockConfiguration";
215
- const _LET = "LockEndTime";
216
- const _LR = "ListRules";
217
- const _LRR = "ListRulesRequest";
218
- const _LRRi = "ListRulesResponse";
219
- const _LRRo = "LockRuleRequest";
220
- const _LRRoc = "LockRuleResponse";
221
- const _LRo = "LockRule";
222
- const _LS = "LockState";
223
- const _LTFR = "ListTagsForResource";
224
- const _LTFRR = "ListTagsForResourceRequest";
225
- const _LTFRRi = "ListTagsForResourceResponse";
226
- const _M = "Message";
227
- const _MR = "MaxResults";
228
- const _NT = "NextToken";
229
- const _R = "Reason";
230
- const _RA = "RuleArn";
231
- const _RAe = "ResourceArn";
232
- const _RNFE = "ResourceNotFoundException";
233
- const _RP = "RetentionPeriod";
234
- const _RPU = "RetentionPeriodUnit";
235
- const _RPV = "RetentionPeriodValue";
236
- const _RS = "RuleSummary";
237
- const _RSL = "RuleSummaryList";
238
- const _RT = "ResourceType";
239
- const _RTK = "ResourceTagKey";
240
- const _RTV = "ResourceTagValue";
241
- const _RTe = "ResourceTags";
242
- const _RTes = "ResourceTag";
243
- const _Ru = "Rules";
244
- const _S = "Status";
245
- const _SQEE = "ServiceQuotaExceededException";
246
- const _T = "Tags";
247
- const _TK = "TagKeys";
248
- const _TL = "TagList";
249
- const _TR = "TagResource";
250
- const _TRR = "TagResourceRequest";
251
- const _TRRa = "TagResourceResponse";
252
- const _Ta = "Tag";
253
- const _UD = "UnlockDelay";
254
- const _UDU = "UnlockDelayUnit";
255
- const _UDV = "UnlockDelayValue";
256
- const _UR = "UnlockRule";
257
- const _URR = "UnlockRuleRequest";
258
- const _URRn = "UnlockRuleResponse";
259
- const _URRnt = "UntagResourceRequest";
260
- const _URRnta = "UntagResourceResponse";
261
- const _URRp = "UpdateRuleRequest";
262
- const _URRpd = "UpdateRuleResponse";
263
- const _URn = "UntagResource";
264
- const _URp = "UpdateRule";
265
- const _V = "Value";
266
- const _VE = "ValidationException";
267
- const _c = "client";
268
- const _e = "error";
269
- const _h = "http";
270
- const _hE = "httpError";
271
- const _hQ = "httpQuery";
272
- const _s = "server";
273
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.rbin";
274
- const _tK = "tagKeys";
275
- const n0 = "com.amazonaws.rbin";
276
- var ConflictException$ = [-3, n0, _CE,
277
- { [_e]: _c, [_hE]: 409 },
278
- [_M, _R],
279
- [0, 0]
280
- ];
281
- schema.TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
282
- var CreateRuleRequest$ = [3, n0, _CRR,
283
- 0,
284
- [_RP, _RT, _D, _T, _RTe, _LC, _ERT],
285
- [() => RetentionPeriod$, 0, 0, () => TagList, () => ResourceTags, () => LockConfiguration$, () => ExcludeResourceTags], 2
286
- ];
287
- var CreateRuleResponse$ = [3, n0, _CRRr,
288
- 0,
289
- [_I, _RP, _D, _T, _RT, _RTe, _S, _LC, _LS, _RA, _ERT],
290
- [0, () => RetentionPeriod$, 0, () => TagList, 0, () => ResourceTags, 0, () => LockConfiguration$, 0, 0, () => ExcludeResourceTags]
291
- ];
292
- var DeleteRuleRequest$ = [3, n0, _DRR,
293
- 0,
294
- [_I],
295
- [[0, 1]], 1
296
- ];
297
- var DeleteRuleResponse$ = [3, n0, _DRRe,
298
- 0,
299
- [],
300
- []
301
- ];
302
- var GetRuleRequest$ = [3, n0, _GRR,
303
- 0,
304
- [_I],
305
- [[0, 1]], 1
306
- ];
307
- var GetRuleResponse$ = [3, n0, _GRRe,
308
- 0,
309
- [_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _LET, _RA, _ERT],
310
- [0, 0, 0, () => RetentionPeriod$, () => ResourceTags, 0, () => LockConfiguration$, 0, 4, 0, () => ExcludeResourceTags]
311
- ];
312
- var InternalServerException$ = [-3, n0, _ISE,
313
- { [_e]: _s, [_hE]: 500 },
314
- [_M],
315
- [0]
316
- ];
317
- schema.TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
318
- var ListRulesRequest$ = [3, n0, _LRR,
319
- 0,
320
- [_RT, _MR, _NT, _RTe, _LS, _ERT],
321
- [0, 1, 0, () => ResourceTags, 0, () => ExcludeResourceTags], 1
322
- ];
323
- var ListRulesResponse$ = [3, n0, _LRRi,
324
- 0,
325
- [_Ru, _NT],
326
- [() => RuleSummaryList, 0]
327
- ];
328
- var ListTagsForResourceRequest$ = [3, n0, _LTFRR,
329
- 0,
330
- [_RAe],
331
- [[0, 1]], 1
332
- ];
333
- var ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
334
- 0,
335
- [_T],
336
- [() => TagList]
337
- ];
338
- var LockConfiguration$ = [3, n0, _LC,
339
- 0,
340
- [_UD],
341
- [() => UnlockDelay$], 1
342
- ];
343
- var LockRuleRequest$ = [3, n0, _LRRo,
344
- 0,
345
- [_I, _LC],
346
- [[0, 1], () => LockConfiguration$], 2
347
- ];
348
- var LockRuleResponse$ = [3, n0, _LRRoc,
349
- 0,
350
- [_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _RA, _ERT],
351
- [0, 0, 0, () => RetentionPeriod$, () => ResourceTags, 0, () => LockConfiguration$, 0, 0, () => ExcludeResourceTags]
352
- ];
353
- var ResourceNotFoundException$ = [-3, n0, _RNFE,
354
- { [_e]: _c, [_hE]: 404 },
355
- [_M, _R],
356
- [0, 0]
357
- ];
358
- schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
359
- var ResourceTag$ = [3, n0, _RTes,
360
- 0,
361
- [_RTK, _RTV],
362
- [0, 0], 1
363
- ];
364
- var RetentionPeriod$ = [3, n0, _RP,
365
- 0,
366
- [_RPV, _RPU],
367
- [1, 0], 2
368
- ];
369
- var RuleSummary$ = [3, n0, _RS,
370
- 0,
371
- [_I, _D, _RP, _LS, _RA],
372
- [0, 0, () => RetentionPeriod$, 0, 0]
373
- ];
374
- var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
375
- { [_e]: _c, [_hE]: 402 },
376
- [_M, _R],
377
- [0, 0]
378
- ];
379
- schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
380
- var Tag$ = [3, n0, _Ta,
381
- 0,
382
- [_K, _V],
383
- [0, 0], 2
384
- ];
385
- var TagResourceRequest$ = [3, n0, _TRR,
386
- 0,
387
- [_RAe, _T],
388
- [[0, 1], () => TagList], 2
389
- ];
390
- var TagResourceResponse$ = [3, n0, _TRRa,
391
- 0,
392
- [],
393
- []
394
- ];
395
- var UnlockDelay$ = [3, n0, _UD,
396
- 0,
397
- [_UDV, _UDU],
398
- [1, 0], 2
399
- ];
400
- var UnlockRuleRequest$ = [3, n0, _URR,
401
- 0,
402
- [_I],
403
- [[0, 1]], 1
404
- ];
405
- var UnlockRuleResponse$ = [3, n0, _URRn,
406
- 0,
407
- [_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _LET, _RA, _ERT],
408
- [0, 0, 0, () => RetentionPeriod$, () => ResourceTags, 0, () => LockConfiguration$, 0, 4, 0, () => ExcludeResourceTags]
409
- ];
410
- var UntagResourceRequest$ = [3, n0, _URRnt,
411
- 0,
412
- [_RAe, _TK],
413
- [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
414
- ];
415
- var UntagResourceResponse$ = [3, n0, _URRnta,
416
- 0,
417
- [],
418
- []
419
- ];
420
- var UpdateRuleRequest$ = [3, n0, _URRp,
421
- 0,
422
- [_I, _RP, _D, _RT, _RTe, _ERT],
423
- [[0, 1], () => RetentionPeriod$, 0, 0, () => ResourceTags, () => ExcludeResourceTags], 1
424
- ];
425
- var UpdateRuleResponse$ = [3, n0, _URRpd,
426
- 0,
427
- [_I, _RP, _D, _RT, _RTe, _S, _LS, _LET, _RA, _ERT],
428
- [0, () => RetentionPeriod$, 0, 0, () => ResourceTags, 0, 0, 4, 0, () => ExcludeResourceTags]
429
- ];
430
- var ValidationException$ = [-3, n0, _VE,
431
- { [_e]: _c, [_hE]: 400 },
432
- [_M, _R],
433
- [0, 0]
434
- ];
435
- schema.TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
436
- var RbinServiceException$ = [-3, _sm, "RbinServiceException", 0, [], []];
437
- schema.TypeRegistry.for(_sm).registerError(RbinServiceException$, RbinServiceException);
438
- var ExcludeResourceTags = [1, n0, _ERT,
439
- 0, () => ResourceTag$
440
- ];
441
- var ResourceTags = [1, n0, _RTe,
442
- 0, () => ResourceTag$
443
- ];
444
- var RuleSummaryList = [1, n0, _RSL,
445
- 0, () => RuleSummary$
446
- ];
447
- var TagList = [1, n0, _TL,
448
- 0, () => Tag$
449
- ];
450
- var CreateRule$ = [9, n0, _CR,
451
- { [_h]: ["POST", "/rules", 201] }, () => CreateRuleRequest$, () => CreateRuleResponse$
452
- ];
453
- var DeleteRule$ = [9, n0, _DR,
454
- { [_h]: ["DELETE", "/rules/{Identifier}", 204] }, () => DeleteRuleRequest$, () => DeleteRuleResponse$
455
- ];
456
- var GetRule$ = [9, n0, _GR,
457
- { [_h]: ["GET", "/rules/{Identifier}", 200] }, () => GetRuleRequest$, () => GetRuleResponse$
458
- ];
459
- var ListRules$ = [9, n0, _LR,
460
- { [_h]: ["POST", "/list-rules", 200] }, () => ListRulesRequest$, () => ListRulesResponse$
461
- ];
462
- var ListTagsForResource$ = [9, n0, _LTFR,
463
- { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => ListTagsForResourceRequest$, () => ListTagsForResourceResponse$
464
- ];
465
- var LockRule$ = [9, n0, _LRo,
466
- { [_h]: ["PATCH", "/rules/{Identifier}/lock", 200] }, () => LockRuleRequest$, () => LockRuleResponse$
467
- ];
468
- var TagResource$ = [9, n0, _TR,
469
- { [_h]: ["POST", "/tags/{ResourceArn}", 201] }, () => TagResourceRequest$, () => TagResourceResponse$
470
- ];
471
- var UnlockRule$ = [9, n0, _UR,
472
- { [_h]: ["PATCH", "/rules/{Identifier}/unlock", 200] }, () => UnlockRuleRequest$, () => UnlockRuleResponse$
473
- ];
474
- var UntagResource$ = [9, n0, _URn,
475
- { [_h]: ["DELETE", "/tags/{ResourceArn}", 204] }, () => UntagResourceRequest$, () => UntagResourceResponse$
476
- ];
477
- var UpdateRule$ = [9, n0, _URp,
478
- { [_h]: ["PATCH", "/rules/{Identifier}", 200] }, () => UpdateRuleRequest$, () => UpdateRuleResponse$
479
- ];
480
-
481
116
  class CreateRuleCommand extends smithyClient.Command
482
117
  .classBuilder()
483
118
  .ep(commonParams)
@@ -486,7 +121,7 @@ class CreateRuleCommand extends smithyClient.Command
486
121
  })
487
122
  .s("AmazonRecycleBin", "CreateRule", {})
488
123
  .n("RbinClient", "CreateRuleCommand")
489
- .sc(CreateRule$)
124
+ .sc(schemas_0.CreateRule$)
490
125
  .build() {
491
126
  }
492
127
 
@@ -498,7 +133,7 @@ class DeleteRuleCommand extends smithyClient.Command
498
133
  })
499
134
  .s("AmazonRecycleBin", "DeleteRule", {})
500
135
  .n("RbinClient", "DeleteRuleCommand")
501
- .sc(DeleteRule$)
136
+ .sc(schemas_0.DeleteRule$)
502
137
  .build() {
503
138
  }
504
139
 
@@ -510,7 +145,7 @@ class GetRuleCommand extends smithyClient.Command
510
145
  })
511
146
  .s("AmazonRecycleBin", "GetRule", {})
512
147
  .n("RbinClient", "GetRuleCommand")
513
- .sc(GetRule$)
148
+ .sc(schemas_0.GetRule$)
514
149
  .build() {
515
150
  }
516
151
 
@@ -522,7 +157,7 @@ class ListRulesCommand extends smithyClient.Command
522
157
  })
523
158
  .s("AmazonRecycleBin", "ListRules", {})
524
159
  .n("RbinClient", "ListRulesCommand")
525
- .sc(ListRules$)
160
+ .sc(schemas_0.ListRules$)
526
161
  .build() {
527
162
  }
528
163
 
@@ -534,7 +169,7 @@ class ListTagsForResourceCommand extends smithyClient.Command
534
169
  })
535
170
  .s("AmazonRecycleBin", "ListTagsForResource", {})
536
171
  .n("RbinClient", "ListTagsForResourceCommand")
537
- .sc(ListTagsForResource$)
172
+ .sc(schemas_0.ListTagsForResource$)
538
173
  .build() {
539
174
  }
540
175
 
@@ -546,7 +181,7 @@ class LockRuleCommand extends smithyClient.Command
546
181
  })
547
182
  .s("AmazonRecycleBin", "LockRule", {})
548
183
  .n("RbinClient", "LockRuleCommand")
549
- .sc(LockRule$)
184
+ .sc(schemas_0.LockRule$)
550
185
  .build() {
551
186
  }
552
187
 
@@ -558,7 +193,7 @@ class TagResourceCommand extends smithyClient.Command
558
193
  })
559
194
  .s("AmazonRecycleBin", "TagResource", {})
560
195
  .n("RbinClient", "TagResourceCommand")
561
- .sc(TagResource$)
196
+ .sc(schemas_0.TagResource$)
562
197
  .build() {
563
198
  }
564
199
 
@@ -570,7 +205,7 @@ class UnlockRuleCommand extends smithyClient.Command
570
205
  })
571
206
  .s("AmazonRecycleBin", "UnlockRule", {})
572
207
  .n("RbinClient", "UnlockRuleCommand")
573
- .sc(UnlockRule$)
208
+ .sc(schemas_0.UnlockRule$)
574
209
  .build() {
575
210
  }
576
211
 
@@ -582,7 +217,7 @@ class UntagResourceCommand extends smithyClient.Command
582
217
  })
583
218
  .s("AmazonRecycleBin", "UntagResource", {})
584
219
  .n("RbinClient", "UntagResourceCommand")
585
- .sc(UntagResource$)
220
+ .sc(schemas_0.UntagResource$)
586
221
  .build() {
587
222
  }
588
223
 
@@ -594,7 +229,7 @@ class UpdateRuleCommand extends smithyClient.Command
594
229
  })
595
230
  .s("AmazonRecycleBin", "UpdateRule", {})
596
231
  .n("RbinClient", "UpdateRuleCommand")
597
- .sc(UpdateRule$)
232
+ .sc(schemas_0.UpdateRule$)
598
233
  .build() {
599
234
  }
600
235
 
@@ -661,73 +296,41 @@ Object.defineProperty(exports, "__Client", {
661
296
  enumerable: true,
662
297
  get: function () { return smithyClient.Client; }
663
298
  });
664
- exports.ConflictException = ConflictException;
665
- exports.ConflictException$ = ConflictException$;
299
+ Object.defineProperty(exports, "RbinServiceException", {
300
+ enumerable: true,
301
+ get: function () { return RbinServiceException.RbinServiceException; }
302
+ });
666
303
  exports.ConflictExceptionReason = ConflictExceptionReason;
667
- exports.CreateRule$ = CreateRule$;
668
304
  exports.CreateRuleCommand = CreateRuleCommand;
669
- exports.CreateRuleRequest$ = CreateRuleRequest$;
670
- exports.CreateRuleResponse$ = CreateRuleResponse$;
671
- exports.DeleteRule$ = DeleteRule$;
672
305
  exports.DeleteRuleCommand = DeleteRuleCommand;
673
- exports.DeleteRuleRequest$ = DeleteRuleRequest$;
674
- exports.DeleteRuleResponse$ = DeleteRuleResponse$;
675
- exports.GetRule$ = GetRule$;
676
306
  exports.GetRuleCommand = GetRuleCommand;
677
- exports.GetRuleRequest$ = GetRuleRequest$;
678
- exports.GetRuleResponse$ = GetRuleResponse$;
679
- exports.InternalServerException = InternalServerException;
680
- exports.InternalServerException$ = InternalServerException$;
681
- exports.ListRules$ = ListRules$;
682
307
  exports.ListRulesCommand = ListRulesCommand;
683
- exports.ListRulesRequest$ = ListRulesRequest$;
684
- exports.ListRulesResponse$ = ListRulesResponse$;
685
- exports.ListTagsForResource$ = ListTagsForResource$;
686
308
  exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
687
- exports.ListTagsForResourceRequest$ = ListTagsForResourceRequest$;
688
- exports.ListTagsForResourceResponse$ = ListTagsForResourceResponse$;
689
- exports.LockConfiguration$ = LockConfiguration$;
690
- exports.LockRule$ = LockRule$;
691
309
  exports.LockRuleCommand = LockRuleCommand;
692
- exports.LockRuleRequest$ = LockRuleRequest$;
693
- exports.LockRuleResponse$ = LockRuleResponse$;
694
310
  exports.LockState = LockState;
695
311
  exports.Rbin = Rbin;
696
312
  exports.RbinClient = RbinClient;
697
- exports.RbinServiceException = RbinServiceException;
698
- exports.RbinServiceException$ = RbinServiceException$;
699
- exports.ResourceNotFoundException = ResourceNotFoundException;
700
- exports.ResourceNotFoundException$ = ResourceNotFoundException$;
701
313
  exports.ResourceNotFoundExceptionReason = ResourceNotFoundExceptionReason;
702
- exports.ResourceTag$ = ResourceTag$;
703
314
  exports.ResourceType = ResourceType;
704
- exports.RetentionPeriod$ = RetentionPeriod$;
705
315
  exports.RetentionPeriodUnit = RetentionPeriodUnit;
706
316
  exports.RuleStatus = RuleStatus;
707
- exports.RuleSummary$ = RuleSummary$;
708
- exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
709
- exports.ServiceQuotaExceededException$ = ServiceQuotaExceededException$;
710
317
  exports.ServiceQuotaExceededExceptionReason = ServiceQuotaExceededExceptionReason;
711
- exports.Tag$ = Tag$;
712
- exports.TagResource$ = TagResource$;
713
318
  exports.TagResourceCommand = TagResourceCommand;
714
- exports.TagResourceRequest$ = TagResourceRequest$;
715
- exports.TagResourceResponse$ = TagResourceResponse$;
716
- exports.UnlockDelay$ = UnlockDelay$;
717
319
  exports.UnlockDelayUnit = UnlockDelayUnit;
718
- exports.UnlockRule$ = UnlockRule$;
719
320
  exports.UnlockRuleCommand = UnlockRuleCommand;
720
- exports.UnlockRuleRequest$ = UnlockRuleRequest$;
721
- exports.UnlockRuleResponse$ = UnlockRuleResponse$;
722
- exports.UntagResource$ = UntagResource$;
723
321
  exports.UntagResourceCommand = UntagResourceCommand;
724
- exports.UntagResourceRequest$ = UntagResourceRequest$;
725
- exports.UntagResourceResponse$ = UntagResourceResponse$;
726
- exports.UpdateRule$ = UpdateRule$;
727
322
  exports.UpdateRuleCommand = UpdateRuleCommand;
728
- exports.UpdateRuleRequest$ = UpdateRuleRequest$;
729
- exports.UpdateRuleResponse$ = UpdateRuleResponse$;
730
- exports.ValidationException = ValidationException;
731
- exports.ValidationException$ = ValidationException$;
732
323
  exports.ValidationExceptionReason = ValidationExceptionReason;
733
324
  exports.paginateListRules = paginateListRules;
325
+ Object.keys(schemas_0).forEach(function (k) {
326
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
327
+ enumerable: true,
328
+ get: function () { return schemas_0[k]; }
329
+ });
330
+ });
331
+ Object.keys(errors).forEach(function (k) {
332
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
333
+ enumerable: true,
334
+ get: function () { return errors[k]; }
335
+ });
336
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RbinServiceException = 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 RbinServiceException extends smithy_client_1.ServiceException {
7
+ constructor(options) {
8
+ super(options);
9
+ Object.setPrototypeOf(this, RbinServiceException.prototype);
10
+ }
11
+ }
12
+ exports.RbinServiceException = RbinServiceException;
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ResourceNotFoundException = exports.ConflictException = exports.ValidationException = exports.ServiceQuotaExceededException = exports.InternalServerException = void 0;
4
+ const RbinServiceException_1 = require("./RbinServiceException");
5
+ class InternalServerException extends RbinServiceException_1.RbinServiceException {
6
+ name = "InternalServerException";
7
+ $fault = "server";
8
+ Message;
9
+ constructor(opts) {
10
+ super({
11
+ name: "InternalServerException",
12
+ $fault: "server",
13
+ ...opts,
14
+ });
15
+ Object.setPrototypeOf(this, InternalServerException.prototype);
16
+ this.Message = opts.Message;
17
+ }
18
+ }
19
+ exports.InternalServerException = InternalServerException;
20
+ class ServiceQuotaExceededException extends RbinServiceException_1.RbinServiceException {
21
+ name = "ServiceQuotaExceededException";
22
+ $fault = "client";
23
+ Message;
24
+ Reason;
25
+ constructor(opts) {
26
+ super({
27
+ name: "ServiceQuotaExceededException",
28
+ $fault: "client",
29
+ ...opts,
30
+ });
31
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
32
+ this.Message = opts.Message;
33
+ this.Reason = opts.Reason;
34
+ }
35
+ }
36
+ exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
37
+ class ValidationException extends RbinServiceException_1.RbinServiceException {
38
+ name = "ValidationException";
39
+ $fault = "client";
40
+ Message;
41
+ Reason;
42
+ constructor(opts) {
43
+ super({
44
+ name: "ValidationException",
45
+ $fault: "client",
46
+ ...opts,
47
+ });
48
+ Object.setPrototypeOf(this, ValidationException.prototype);
49
+ this.Message = opts.Message;
50
+ this.Reason = opts.Reason;
51
+ }
52
+ }
53
+ exports.ValidationException = ValidationException;
54
+ class ConflictException extends RbinServiceException_1.RbinServiceException {
55
+ name = "ConflictException";
56
+ $fault = "client";
57
+ Message;
58
+ Reason;
59
+ constructor(opts) {
60
+ super({
61
+ name: "ConflictException",
62
+ $fault: "client",
63
+ ...opts,
64
+ });
65
+ Object.setPrototypeOf(this, ConflictException.prototype);
66
+ this.Message = opts.Message;
67
+ this.Reason = opts.Reason;
68
+ }
69
+ }
70
+ exports.ConflictException = ConflictException;
71
+ class ResourceNotFoundException extends RbinServiceException_1.RbinServiceException {
72
+ name = "ResourceNotFoundException";
73
+ $fault = "client";
74
+ Message;
75
+ Reason;
76
+ constructor(opts) {
77
+ super({
78
+ name: "ResourceNotFoundException",
79
+ $fault: "client",
80
+ ...opts,
81
+ });
82
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
83
+ this.Message = opts.Message;
84
+ this.Reason = opts.Reason;
85
+ }
86
+ }
87
+ exports.ResourceNotFoundException = ResourceNotFoundException;
@@ -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: "2021-06-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.rbin",
33
+ errorTypeRegistries: schemas_0_1.errorTypeRegistries,
32
34
  version: "2021-06-15",
33
35
  serviceTarget: "AmazonRecycleBin",
34
36
  },
@@ -0,0 +1,294 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateRule$ = exports.UntagResource$ = exports.UnlockRule$ = exports.TagResource$ = exports.LockRule$ = exports.ListTagsForResource$ = exports.ListRules$ = exports.GetRule$ = exports.DeleteRule$ = exports.CreateRule$ = exports.UpdateRuleResponse$ = exports.UpdateRuleRequest$ = exports.UntagResourceResponse$ = exports.UntagResourceRequest$ = exports.UnlockRuleResponse$ = exports.UnlockRuleRequest$ = exports.UnlockDelay$ = exports.TagResourceResponse$ = exports.TagResourceRequest$ = exports.Tag$ = exports.RuleSummary$ = exports.RetentionPeriod$ = exports.ResourceTag$ = exports.LockRuleResponse$ = exports.LockRuleRequest$ = exports.LockConfiguration$ = exports.ListTagsForResourceResponse$ = exports.ListTagsForResourceRequest$ = exports.ListRulesResponse$ = exports.ListRulesRequest$ = exports.GetRuleResponse$ = exports.GetRuleRequest$ = exports.DeleteRuleResponse$ = exports.DeleteRuleRequest$ = exports.CreateRuleResponse$ = exports.CreateRuleRequest$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.ServiceQuotaExceededException$ = exports.ResourceNotFoundException$ = exports.InternalServerException$ = exports.ConflictException$ = exports.RbinServiceException$ = void 0;
4
+ const _CE = "ConflictException";
5
+ const _CR = "CreateRule";
6
+ const _CRR = "CreateRuleRequest";
7
+ const _CRRr = "CreateRuleResponse";
8
+ const _D = "Description";
9
+ const _DR = "DeleteRule";
10
+ const _DRR = "DeleteRuleRequest";
11
+ const _DRRe = "DeleteRuleResponse";
12
+ const _ERT = "ExcludeResourceTags";
13
+ const _GR = "GetRule";
14
+ const _GRR = "GetRuleRequest";
15
+ const _GRRe = "GetRuleResponse";
16
+ const _I = "Identifier";
17
+ const _ISE = "InternalServerException";
18
+ const _K = "Key";
19
+ const _LC = "LockConfiguration";
20
+ const _LET = "LockEndTime";
21
+ const _LR = "ListRules";
22
+ const _LRR = "ListRulesRequest";
23
+ const _LRRi = "ListRulesResponse";
24
+ const _LRRo = "LockRuleRequest";
25
+ const _LRRoc = "LockRuleResponse";
26
+ const _LRo = "LockRule";
27
+ const _LS = "LockState";
28
+ const _LTFR = "ListTagsForResource";
29
+ const _LTFRR = "ListTagsForResourceRequest";
30
+ const _LTFRRi = "ListTagsForResourceResponse";
31
+ const _M = "Message";
32
+ const _MR = "MaxResults";
33
+ const _NT = "NextToken";
34
+ const _R = "Reason";
35
+ const _RA = "RuleArn";
36
+ const _RAe = "ResourceArn";
37
+ const _RNFE = "ResourceNotFoundException";
38
+ const _RP = "RetentionPeriod";
39
+ const _RPU = "RetentionPeriodUnit";
40
+ const _RPV = "RetentionPeriodValue";
41
+ const _RS = "RuleSummary";
42
+ const _RSL = "RuleSummaryList";
43
+ const _RT = "ResourceType";
44
+ const _RTK = "ResourceTagKey";
45
+ const _RTV = "ResourceTagValue";
46
+ const _RTe = "ResourceTags";
47
+ const _RTes = "ResourceTag";
48
+ const _Ru = "Rules";
49
+ const _S = "Status";
50
+ const _SQEE = "ServiceQuotaExceededException";
51
+ const _T = "Tags";
52
+ const _TK = "TagKeys";
53
+ const _TL = "TagList";
54
+ const _TR = "TagResource";
55
+ const _TRR = "TagResourceRequest";
56
+ const _TRRa = "TagResourceResponse";
57
+ const _Ta = "Tag";
58
+ const _UD = "UnlockDelay";
59
+ const _UDU = "UnlockDelayUnit";
60
+ const _UDV = "UnlockDelayValue";
61
+ const _UR = "UnlockRule";
62
+ const _URR = "UnlockRuleRequest";
63
+ const _URRn = "UnlockRuleResponse";
64
+ const _URRnt = "UntagResourceRequest";
65
+ const _URRnta = "UntagResourceResponse";
66
+ const _URRp = "UpdateRuleRequest";
67
+ const _URRpd = "UpdateRuleResponse";
68
+ const _URn = "UntagResource";
69
+ const _URp = "UpdateRule";
70
+ const _V = "Value";
71
+ const _VE = "ValidationException";
72
+ const _c = "client";
73
+ const _e = "error";
74
+ const _h = "http";
75
+ const _hE = "httpError";
76
+ const _hQ = "httpQuery";
77
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.rbin";
78
+ const _se = "server";
79
+ const _tK = "tagKeys";
80
+ const n0 = "com.amazonaws.rbin";
81
+ const schema_1 = require("@smithy/core/schema");
82
+ const errors_1 = require("../models/errors");
83
+ const RbinServiceException_1 = require("../models/RbinServiceException");
84
+ const _s_registry = schema_1.TypeRegistry.for(_s);
85
+ exports.RbinServiceException$ = [-3, _s, "RbinServiceException", 0, [], []];
86
+ _s_registry.registerError(exports.RbinServiceException$, RbinServiceException_1.RbinServiceException);
87
+ const n0_registry = schema_1.TypeRegistry.for(n0);
88
+ exports.ConflictException$ = [-3, n0, _CE,
89
+ { [_e]: _c, [_hE]: 409 },
90
+ [_M, _R],
91
+ [0, 0]
92
+ ];
93
+ n0_registry.registerError(exports.ConflictException$, errors_1.ConflictException);
94
+ exports.InternalServerException$ = [-3, n0, _ISE,
95
+ { [_e]: _se, [_hE]: 500 },
96
+ [_M],
97
+ [0]
98
+ ];
99
+ n0_registry.registerError(exports.InternalServerException$, errors_1.InternalServerException);
100
+ exports.ResourceNotFoundException$ = [-3, n0, _RNFE,
101
+ { [_e]: _c, [_hE]: 404 },
102
+ [_M, _R],
103
+ [0, 0]
104
+ ];
105
+ n0_registry.registerError(exports.ResourceNotFoundException$, errors_1.ResourceNotFoundException);
106
+ exports.ServiceQuotaExceededException$ = [-3, n0, _SQEE,
107
+ { [_e]: _c, [_hE]: 402 },
108
+ [_M, _R],
109
+ [0, 0]
110
+ ];
111
+ n0_registry.registerError(exports.ServiceQuotaExceededException$, errors_1.ServiceQuotaExceededException);
112
+ exports.ValidationException$ = [-3, n0, _VE,
113
+ { [_e]: _c, [_hE]: 400 },
114
+ [_M, _R],
115
+ [0, 0]
116
+ ];
117
+ n0_registry.registerError(exports.ValidationException$, errors_1.ValidationException);
118
+ exports.errorTypeRegistries = [
119
+ _s_registry,
120
+ n0_registry,
121
+ ];
122
+ exports.CreateRuleRequest$ = [3, n0, _CRR,
123
+ 0,
124
+ [_RP, _RT, _D, _T, _RTe, _LC, _ERT],
125
+ [() => exports.RetentionPeriod$, 0, 0, () => TagList, () => ResourceTags, () => exports.LockConfiguration$, () => ExcludeResourceTags], 2
126
+ ];
127
+ exports.CreateRuleResponse$ = [3, n0, _CRRr,
128
+ 0,
129
+ [_I, _RP, _D, _T, _RT, _RTe, _S, _LC, _LS, _RA, _ERT],
130
+ [0, () => exports.RetentionPeriod$, 0, () => TagList, 0, () => ResourceTags, 0, () => exports.LockConfiguration$, 0, 0, () => ExcludeResourceTags]
131
+ ];
132
+ exports.DeleteRuleRequest$ = [3, n0, _DRR,
133
+ 0,
134
+ [_I],
135
+ [[0, 1]], 1
136
+ ];
137
+ exports.DeleteRuleResponse$ = [3, n0, _DRRe,
138
+ 0,
139
+ [],
140
+ []
141
+ ];
142
+ exports.GetRuleRequest$ = [3, n0, _GRR,
143
+ 0,
144
+ [_I],
145
+ [[0, 1]], 1
146
+ ];
147
+ exports.GetRuleResponse$ = [3, n0, _GRRe,
148
+ 0,
149
+ [_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _LET, _RA, _ERT],
150
+ [0, 0, 0, () => exports.RetentionPeriod$, () => ResourceTags, 0, () => exports.LockConfiguration$, 0, 4, 0, () => ExcludeResourceTags]
151
+ ];
152
+ exports.ListRulesRequest$ = [3, n0, _LRR,
153
+ 0,
154
+ [_RT, _MR, _NT, _RTe, _LS, _ERT],
155
+ [0, 1, 0, () => ResourceTags, 0, () => ExcludeResourceTags], 1
156
+ ];
157
+ exports.ListRulesResponse$ = [3, n0, _LRRi,
158
+ 0,
159
+ [_Ru, _NT],
160
+ [() => RuleSummaryList, 0]
161
+ ];
162
+ exports.ListTagsForResourceRequest$ = [3, n0, _LTFRR,
163
+ 0,
164
+ [_RAe],
165
+ [[0, 1]], 1
166
+ ];
167
+ exports.ListTagsForResourceResponse$ = [3, n0, _LTFRRi,
168
+ 0,
169
+ [_T],
170
+ [() => TagList]
171
+ ];
172
+ exports.LockConfiguration$ = [3, n0, _LC,
173
+ 0,
174
+ [_UD],
175
+ [() => exports.UnlockDelay$], 1
176
+ ];
177
+ exports.LockRuleRequest$ = [3, n0, _LRRo,
178
+ 0,
179
+ [_I, _LC],
180
+ [[0, 1], () => exports.LockConfiguration$], 2
181
+ ];
182
+ exports.LockRuleResponse$ = [3, n0, _LRRoc,
183
+ 0,
184
+ [_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _RA, _ERT],
185
+ [0, 0, 0, () => exports.RetentionPeriod$, () => ResourceTags, 0, () => exports.LockConfiguration$, 0, 0, () => ExcludeResourceTags]
186
+ ];
187
+ exports.ResourceTag$ = [3, n0, _RTes,
188
+ 0,
189
+ [_RTK, _RTV],
190
+ [0, 0], 1
191
+ ];
192
+ exports.RetentionPeriod$ = [3, n0, _RP,
193
+ 0,
194
+ [_RPV, _RPU],
195
+ [1, 0], 2
196
+ ];
197
+ exports.RuleSummary$ = [3, n0, _RS,
198
+ 0,
199
+ [_I, _D, _RP, _LS, _RA],
200
+ [0, 0, () => exports.RetentionPeriod$, 0, 0]
201
+ ];
202
+ exports.Tag$ = [3, n0, _Ta,
203
+ 0,
204
+ [_K, _V],
205
+ [0, 0], 2
206
+ ];
207
+ exports.TagResourceRequest$ = [3, n0, _TRR,
208
+ 0,
209
+ [_RAe, _T],
210
+ [[0, 1], () => TagList], 2
211
+ ];
212
+ exports.TagResourceResponse$ = [3, n0, _TRRa,
213
+ 0,
214
+ [],
215
+ []
216
+ ];
217
+ exports.UnlockDelay$ = [3, n0, _UD,
218
+ 0,
219
+ [_UDV, _UDU],
220
+ [1, 0], 2
221
+ ];
222
+ exports.UnlockRuleRequest$ = [3, n0, _URR,
223
+ 0,
224
+ [_I],
225
+ [[0, 1]], 1
226
+ ];
227
+ exports.UnlockRuleResponse$ = [3, n0, _URRn,
228
+ 0,
229
+ [_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _LET, _RA, _ERT],
230
+ [0, 0, 0, () => exports.RetentionPeriod$, () => ResourceTags, 0, () => exports.LockConfiguration$, 0, 4, 0, () => ExcludeResourceTags]
231
+ ];
232
+ exports.UntagResourceRequest$ = [3, n0, _URRnt,
233
+ 0,
234
+ [_RAe, _TK],
235
+ [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
236
+ ];
237
+ exports.UntagResourceResponse$ = [3, n0, _URRnta,
238
+ 0,
239
+ [],
240
+ []
241
+ ];
242
+ exports.UpdateRuleRequest$ = [3, n0, _URRp,
243
+ 0,
244
+ [_I, _RP, _D, _RT, _RTe, _ERT],
245
+ [[0, 1], () => exports.RetentionPeriod$, 0, 0, () => ResourceTags, () => ExcludeResourceTags], 1
246
+ ];
247
+ exports.UpdateRuleResponse$ = [3, n0, _URRpd,
248
+ 0,
249
+ [_I, _RP, _D, _RT, _RTe, _S, _LS, _LET, _RA, _ERT],
250
+ [0, () => exports.RetentionPeriod$, 0, 0, () => ResourceTags, 0, 0, 4, 0, () => ExcludeResourceTags]
251
+ ];
252
+ var ExcludeResourceTags = [1, n0, _ERT,
253
+ 0, () => exports.ResourceTag$
254
+ ];
255
+ var ResourceTags = [1, n0, _RTe,
256
+ 0, () => exports.ResourceTag$
257
+ ];
258
+ var RuleSummaryList = [1, n0, _RSL,
259
+ 0, () => exports.RuleSummary$
260
+ ];
261
+ var TagKeyList = 64 | 0;
262
+ var TagList = [1, n0, _TL,
263
+ 0, () => exports.Tag$
264
+ ];
265
+ exports.CreateRule$ = [9, n0, _CR,
266
+ { [_h]: ["POST", "/rules", 201] }, () => exports.CreateRuleRequest$, () => exports.CreateRuleResponse$
267
+ ];
268
+ exports.DeleteRule$ = [9, n0, _DR,
269
+ { [_h]: ["DELETE", "/rules/{Identifier}", 204] }, () => exports.DeleteRuleRequest$, () => exports.DeleteRuleResponse$
270
+ ];
271
+ exports.GetRule$ = [9, n0, _GR,
272
+ { [_h]: ["GET", "/rules/{Identifier}", 200] }, () => exports.GetRuleRequest$, () => exports.GetRuleResponse$
273
+ ];
274
+ exports.ListRules$ = [9, n0, _LR,
275
+ { [_h]: ["POST", "/list-rules", 200] }, () => exports.ListRulesRequest$, () => exports.ListRulesResponse$
276
+ ];
277
+ exports.ListTagsForResource$ = [9, n0, _LTFR,
278
+ { [_h]: ["GET", "/tags/{ResourceArn}", 200] }, () => exports.ListTagsForResourceRequest$, () => exports.ListTagsForResourceResponse$
279
+ ];
280
+ exports.LockRule$ = [9, n0, _LRo,
281
+ { [_h]: ["PATCH", "/rules/{Identifier}/lock", 200] }, () => exports.LockRuleRequest$, () => exports.LockRuleResponse$
282
+ ];
283
+ exports.TagResource$ = [9, n0, _TR,
284
+ { [_h]: ["POST", "/tags/{ResourceArn}", 201] }, () => exports.TagResourceRequest$, () => exports.TagResourceResponse$
285
+ ];
286
+ exports.UnlockRule$ = [9, n0, _UR,
287
+ { [_h]: ["PATCH", "/rules/{Identifier}/unlock", 200] }, () => exports.UnlockRuleRequest$, () => exports.UnlockRuleResponse$
288
+ ];
289
+ exports.UntagResource$ = [9, n0, _URn,
290
+ { [_h]: ["DELETE", "/tags/{ResourceArn}", 204] }, () => exports.UntagResourceRequest$, () => exports.UntagResourceResponse$
291
+ ];
292
+ exports.UpdateRule$ = [9, n0, _URp,
293
+ { [_h]: ["PATCH", "/rules/{Identifier}", 200] }, () => exports.UpdateRuleRequest$, () => exports.UpdateRuleResponse$
294
+ ];
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultRbinHttpAuthSchemeProvider } 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: "2021-06-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.rbin",
30
+ errorTypeRegistries,
29
31
  version: "2021-06-15",
30
32
  serviceTarget: "AmazonRecycleBin",
31
33
  },
@@ -71,19 +71,51 @@ const _e = "error";
71
71
  const _h = "http";
72
72
  const _hE = "httpError";
73
73
  const _hQ = "httpQuery";
74
- const _s = "server";
75
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.rbin";
74
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.rbin";
75
+ const _se = "server";
76
76
  const _tK = "tagKeys";
77
77
  const n0 = "com.amazonaws.rbin";
78
78
  import { TypeRegistry } from "@smithy/core/schema";
79
79
  import { ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ValidationException, } from "../models/errors";
80
80
  import { RbinServiceException } from "../models/RbinServiceException";
81
+ const _s_registry = TypeRegistry.for(_s);
82
+ export var RbinServiceException$ = [-3, _s, "RbinServiceException", 0, [], []];
83
+ _s_registry.registerError(RbinServiceException$, RbinServiceException);
84
+ const n0_registry = TypeRegistry.for(n0);
81
85
  export var ConflictException$ = [-3, n0, _CE,
82
86
  { [_e]: _c, [_hE]: 409 },
83
87
  [_M, _R],
84
88
  [0, 0]
85
89
  ];
86
- TypeRegistry.for(n0).registerError(ConflictException$, ConflictException);
90
+ n0_registry.registerError(ConflictException$, ConflictException);
91
+ export var InternalServerException$ = [-3, n0, _ISE,
92
+ { [_e]: _se, [_hE]: 500 },
93
+ [_M],
94
+ [0]
95
+ ];
96
+ n0_registry.registerError(InternalServerException$, InternalServerException);
97
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
98
+ { [_e]: _c, [_hE]: 404 },
99
+ [_M, _R],
100
+ [0, 0]
101
+ ];
102
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
103
+ export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
104
+ { [_e]: _c, [_hE]: 402 },
105
+ [_M, _R],
106
+ [0, 0]
107
+ ];
108
+ n0_registry.registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
109
+ export var ValidationException$ = [-3, n0, _VE,
110
+ { [_e]: _c, [_hE]: 400 },
111
+ [_M, _R],
112
+ [0, 0]
113
+ ];
114
+ n0_registry.registerError(ValidationException$, ValidationException);
115
+ export const errorTypeRegistries = [
116
+ _s_registry,
117
+ n0_registry,
118
+ ];
87
119
  export var CreateRuleRequest$ = [3, n0, _CRR,
88
120
  0,
89
121
  [_RP, _RT, _D, _T, _RTe, _LC, _ERT],
@@ -114,12 +146,6 @@ export var GetRuleResponse$ = [3, n0, _GRRe,
114
146
  [_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _LET, _RA, _ERT],
115
147
  [0, 0, 0, () => RetentionPeriod$, () => ResourceTags, 0, () => LockConfiguration$, 0, 4, 0, () => ExcludeResourceTags]
116
148
  ];
117
- export var InternalServerException$ = [-3, n0, _ISE,
118
- { [_e]: _s, [_hE]: 500 },
119
- [_M],
120
- [0]
121
- ];
122
- TypeRegistry.for(n0).registerError(InternalServerException$, InternalServerException);
123
149
  export var ListRulesRequest$ = [3, n0, _LRR,
124
150
  0,
125
151
  [_RT, _MR, _NT, _RTe, _LS, _ERT],
@@ -155,12 +181,6 @@ export var LockRuleResponse$ = [3, n0, _LRRoc,
155
181
  [_I, _D, _RT, _RP, _RTe, _S, _LC, _LS, _RA, _ERT],
156
182
  [0, 0, 0, () => RetentionPeriod$, () => ResourceTags, 0, () => LockConfiguration$, 0, 0, () => ExcludeResourceTags]
157
183
  ];
158
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
159
- { [_e]: _c, [_hE]: 404 },
160
- [_M, _R],
161
- [0, 0]
162
- ];
163
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
164
184
  export var ResourceTag$ = [3, n0, _RTes,
165
185
  0,
166
186
  [_RTK, _RTV],
@@ -176,12 +196,6 @@ export var RuleSummary$ = [3, n0, _RS,
176
196
  [_I, _D, _RP, _LS, _RA],
177
197
  [0, 0, () => RetentionPeriod$, 0, 0]
178
198
  ];
179
- export var ServiceQuotaExceededException$ = [-3, n0, _SQEE,
180
- { [_e]: _c, [_hE]: 402 },
181
- [_M, _R],
182
- [0, 0]
183
- ];
184
- TypeRegistry.for(n0).registerError(ServiceQuotaExceededException$, ServiceQuotaExceededException);
185
199
  export var Tag$ = [3, n0, _Ta,
186
200
  0,
187
201
  [_K, _V],
@@ -232,14 +246,6 @@ export var UpdateRuleResponse$ = [3, n0, _URRpd,
232
246
  [_I, _RP, _D, _RT, _RTe, _S, _LS, _LET, _RA, _ERT],
233
247
  [0, () => RetentionPeriod$, 0, 0, () => ResourceTags, 0, 0, 4, 0, () => ExcludeResourceTags]
234
248
  ];
235
- export var ValidationException$ = [-3, n0, _VE,
236
- { [_e]: _c, [_hE]: 400 },
237
- [_M, _R],
238
- [0, 0]
239
- ];
240
- TypeRegistry.for(n0).registerError(ValidationException$, ValidationException);
241
- export var RbinServiceException$ = [-3, _sm, "RbinServiceException", 0, [], []];
242
- TypeRegistry.for(_sm).registerError(RbinServiceException$, RbinServiceException);
243
249
  var ExcludeResourceTags = [1, n0, _ERT,
244
250
  0, () => ResourceTag$
245
251
  ];
@@ -1,12 +1,23 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var RbinServiceException$: StaticErrorSchema;
2
4
  export declare var ConflictException$: StaticErrorSchema;
5
+ export declare var InternalServerException$: StaticErrorSchema;
6
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
7
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
8
+ export declare var ValidationException$: StaticErrorSchema;
9
+ /**
10
+ * TypeRegistry instances containing modeled errors.
11
+ * @internal
12
+ *
13
+ */
14
+ export declare const errorTypeRegistries: TypeRegistry[];
3
15
  export declare var CreateRuleRequest$: StaticStructureSchema;
4
16
  export declare var CreateRuleResponse$: StaticStructureSchema;
5
17
  export declare var DeleteRuleRequest$: StaticStructureSchema;
6
18
  export declare var DeleteRuleResponse$: StaticStructureSchema;
7
19
  export declare var GetRuleRequest$: StaticStructureSchema;
8
20
  export declare var GetRuleResponse$: StaticStructureSchema;
9
- export declare var InternalServerException$: StaticErrorSchema;
10
21
  export declare var ListRulesRequest$: StaticStructureSchema;
11
22
  export declare var ListRulesResponse$: StaticStructureSchema;
12
23
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
@@ -14,11 +25,9 @@ export declare var ListTagsForResourceResponse$: StaticStructureSchema;
14
25
  export declare var LockConfiguration$: StaticStructureSchema;
15
26
  export declare var LockRuleRequest$: StaticStructureSchema;
16
27
  export declare var LockRuleResponse$: StaticStructureSchema;
17
- export declare var ResourceNotFoundException$: StaticErrorSchema;
18
28
  export declare var ResourceTag$: StaticStructureSchema;
19
29
  export declare var RetentionPeriod$: StaticStructureSchema;
20
30
  export declare var RuleSummary$: StaticStructureSchema;
21
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
22
31
  export declare var Tag$: StaticStructureSchema;
23
32
  export declare var TagResourceRequest$: StaticStructureSchema;
24
33
  export declare var TagResourceResponse$: StaticStructureSchema;
@@ -29,8 +38,6 @@ export declare var UntagResourceRequest$: StaticStructureSchema;
29
38
  export declare var UntagResourceResponse$: StaticStructureSchema;
30
39
  export declare var UpdateRuleRequest$: StaticStructureSchema;
31
40
  export declare var UpdateRuleResponse$: StaticStructureSchema;
32
- export declare var ValidationException$: StaticErrorSchema;
33
- export declare var RbinServiceException$: StaticErrorSchema;
34
41
  export declare var CreateRule$: StaticOperationSchema;
35
42
  export declare var DeleteRule$: StaticOperationSchema;
36
43
  export declare var GetRule$: StaticOperationSchema;
@@ -1,16 +1,22 @@
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 RbinServiceException$: StaticErrorSchema;
6
8
  export declare var ConflictException$: StaticErrorSchema;
9
+ export declare var InternalServerException$: StaticErrorSchema;
10
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
11
+ export declare var ServiceQuotaExceededException$: StaticErrorSchema;
12
+ export declare var ValidationException$: StaticErrorSchema;
13
+ export declare const errorTypeRegistries: TypeRegistry[];
7
14
  export declare var CreateRuleRequest$: StaticStructureSchema;
8
15
  export declare var CreateRuleResponse$: StaticStructureSchema;
9
16
  export declare var DeleteRuleRequest$: StaticStructureSchema;
10
17
  export declare var DeleteRuleResponse$: StaticStructureSchema;
11
18
  export declare var GetRuleRequest$: StaticStructureSchema;
12
19
  export declare var GetRuleResponse$: StaticStructureSchema;
13
- export declare var InternalServerException$: StaticErrorSchema;
14
20
  export declare var ListRulesRequest$: StaticStructureSchema;
15
21
  export declare var ListRulesResponse$: StaticStructureSchema;
16
22
  export declare var ListTagsForResourceRequest$: StaticStructureSchema;
@@ -18,11 +24,9 @@ export declare var ListTagsForResourceResponse$: StaticStructureSchema;
18
24
  export declare var LockConfiguration$: StaticStructureSchema;
19
25
  export declare var LockRuleRequest$: StaticStructureSchema;
20
26
  export declare var LockRuleResponse$: StaticStructureSchema;
21
- export declare var ResourceNotFoundException$: StaticErrorSchema;
22
27
  export declare var ResourceTag$: StaticStructureSchema;
23
28
  export declare var RetentionPeriod$: StaticStructureSchema;
24
29
  export declare var RuleSummary$: StaticStructureSchema;
25
- export declare var ServiceQuotaExceededException$: StaticErrorSchema;
26
30
  export declare var Tag$: StaticStructureSchema;
27
31
  export declare var TagResourceRequest$: StaticStructureSchema;
28
32
  export declare var TagResourceResponse$: StaticStructureSchema;
@@ -33,8 +37,6 @@ export declare var UntagResourceRequest$: StaticStructureSchema;
33
37
  export declare var UntagResourceResponse$: StaticStructureSchema;
34
38
  export declare var UpdateRuleRequest$: StaticStructureSchema;
35
39
  export declare var UpdateRuleResponse$: StaticStructureSchema;
36
- export declare var ValidationException$: StaticErrorSchema;
37
- export declare var RbinServiceException$: StaticErrorSchema;
38
40
  export declare var CreateRule$: StaticOperationSchema;
39
41
  export declare var DeleteRule$: StaticOperationSchema;
40
42
  export declare var GetRule$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-rbin",
3
3
  "description": "AWS SDK for JavaScript Rbin 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-rbin",
@@ -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",