@aws-sdk/client-scheduler 3.940.0 → 3.946.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 +31 -182
- package/dist-cjs/runtimeConfig.browser.js +2 -2
- package/dist-cjs/runtimeConfig.js +3 -4
- package/dist-es/SchedulerClient.js +2 -2
- package/dist-es/runtimeConfig.browser.js +2 -2
- package/dist-es/runtimeConfig.js +2 -3
- package/dist-es/schemas/schemas_0.js +31 -182
- package/dist-types/Scheduler.d.ts +1 -1
- package/dist-types/SchedulerClient.d.ts +10 -10
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
- package/dist-types/commands/CreateScheduleCommand.d.ts +3 -3
- package/dist-types/commands/CreateScheduleGroupCommand.d.ts +3 -3
- package/dist-types/commands/DeleteScheduleCommand.d.ts +3 -3
- package/dist-types/commands/DeleteScheduleGroupCommand.d.ts +3 -3
- package/dist-types/commands/GetScheduleCommand.d.ts +3 -3
- package/dist-types/commands/GetScheduleGroupCommand.d.ts +3 -3
- package/dist-types/commands/ListScheduleGroupsCommand.d.ts +3 -3
- package/dist-types/commands/ListSchedulesCommand.d.ts +3 -3
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +3 -3
- package/dist-types/commands/TagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UntagResourceCommand.d.ts +3 -3
- package/dist-types/commands/UpdateScheduleCommand.d.ts +3 -3
- package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
- package/dist-types/endpoint/endpointResolver.d.ts +5 -2
- package/dist-types/extensionConfiguration.d.ts +4 -4
- package/dist-types/models/SchedulerServiceException.d.ts +1 -1
- package/dist-types/models/errors.d.ts +1 -1
- package/dist-types/pagination/Interfaces.d.ts +1 -1
- package/dist-types/pagination/ListScheduleGroupsPaginator.d.ts +1 -1
- package/dist-types/pagination/ListSchedulesPaginator.d.ts +1 -1
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +1 -1
- package/dist-types/runtimeConfig.shared.d.ts +1 -1
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/schemas/schemas_0.d.ts +1 -1
- package/dist-types/ts3.4/SchedulerClient.d.ts +3 -3
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
- package/dist-types/ts3.4/models/SchedulerServiceException.d.ts +1 -1
- package/package.json +13 -12
package/dist-cjs/index.js
CHANGED
|
@@ -341,17 +341,7 @@ const _w = "weight";
|
|
|
341
341
|
const n0 = "com.amazonaws.scheduler";
|
|
342
342
|
var AwsVpcConfiguration = [3, n0, _AVC, 0, [_S, _SG, _API], [64 | 0, 64 | 0, 0]];
|
|
343
343
|
var CapacityProviderStrategyItem = [3, n0, _CPSI, 0, [_cP, _w, _b], [0, 1, 1]];
|
|
344
|
-
var ConflictException = [
|
|
345
|
-
-3,
|
|
346
|
-
n0,
|
|
347
|
-
_CE,
|
|
348
|
-
{
|
|
349
|
-
[_e]: _c,
|
|
350
|
-
[_hE]: 409,
|
|
351
|
-
},
|
|
352
|
-
[_M],
|
|
353
|
-
[0],
|
|
354
|
-
];
|
|
344
|
+
var ConflictException = [-3, n0, _CE, { [_e]: _c, [_hE]: 409 }, [_M], [0]];
|
|
355
345
|
schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
|
|
356
346
|
var CreateScheduleGroupInput = [
|
|
357
347
|
3,
|
|
@@ -380,13 +370,7 @@ var DeleteScheduleGroupInput = [
|
|
|
380
370
|
[_N, _CT],
|
|
381
371
|
[
|
|
382
372
|
[0, 1],
|
|
383
|
-
[
|
|
384
|
-
0,
|
|
385
|
-
{
|
|
386
|
-
[_iT]: 1,
|
|
387
|
-
[_hQ]: _cT,
|
|
388
|
-
},
|
|
389
|
-
],
|
|
373
|
+
[0, { [_iT]: 1, [_hQ]: _cT }],
|
|
390
374
|
],
|
|
391
375
|
];
|
|
392
376
|
var DeleteScheduleGroupOutput = [3, n0, _DSGO, 0, [], []];
|
|
@@ -398,19 +382,8 @@ var DeleteScheduleInput = [
|
|
|
398
382
|
[_N, _GN, _CT],
|
|
399
383
|
[
|
|
400
384
|
[0, 1],
|
|
401
|
-
[
|
|
402
|
-
|
|
403
|
-
{
|
|
404
|
-
[_hQ]: _gN,
|
|
405
|
-
},
|
|
406
|
-
],
|
|
407
|
-
[
|
|
408
|
-
0,
|
|
409
|
-
{
|
|
410
|
-
[_iT]: 1,
|
|
411
|
-
[_hQ]: _cT,
|
|
412
|
-
},
|
|
413
|
-
],
|
|
385
|
+
[0, { [_hQ]: _gN }],
|
|
386
|
+
[0, { [_iT]: 1, [_hQ]: _cT }],
|
|
414
387
|
],
|
|
415
388
|
];
|
|
416
389
|
var DeleteScheduleOutput = [3, n0, _DSO, 0, [], []];
|
|
@@ -449,12 +422,7 @@ var GetScheduleInput = [
|
|
|
449
422
|
[_N, _GN],
|
|
450
423
|
[
|
|
451
424
|
[0, 1],
|
|
452
|
-
[
|
|
453
|
-
0,
|
|
454
|
-
{
|
|
455
|
-
[_hQ]: _gN,
|
|
456
|
-
},
|
|
457
|
-
],
|
|
425
|
+
[0, { [_hQ]: _gN }],
|
|
458
426
|
],
|
|
459
427
|
];
|
|
460
428
|
var GetScheduleOutput = [
|
|
@@ -465,17 +433,7 @@ var GetScheduleOutput = [
|
|
|
465
433
|
[_A, _GN, _N, _SE, _SD, _ED, _D, _SET, _St, _CD, _LMD, _KKA, _Ta, _FTW, _AAC],
|
|
466
434
|
[0, 0, 0, 0, 4, 4, 0, 0, 0, 4, 4, 0, () => Target, () => FlexibleTimeWindow, 0],
|
|
467
435
|
];
|
|
468
|
-
var InternalServerException = [
|
|
469
|
-
-3,
|
|
470
|
-
n0,
|
|
471
|
-
_ISE,
|
|
472
|
-
{
|
|
473
|
-
[_e]: _s,
|
|
474
|
-
[_hE]: 500,
|
|
475
|
-
},
|
|
476
|
-
[_M],
|
|
477
|
-
[0],
|
|
478
|
-
];
|
|
436
|
+
var InternalServerException = [-3, n0, _ISE, { [_e]: _s, [_hE]: 500 }, [_M], [0]];
|
|
479
437
|
schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
|
|
480
438
|
var KinesisParameters = [3, n0, _KP, 0, [_PK], [0]];
|
|
481
439
|
var ListScheduleGroupsInput = [
|
|
@@ -485,24 +443,9 @@ var ListScheduleGroupsInput = [
|
|
|
485
443
|
0,
|
|
486
444
|
[_NP, _NT, _MR],
|
|
487
445
|
[
|
|
488
|
-
[
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
[_hQ]: _NP,
|
|
492
|
-
},
|
|
493
|
-
],
|
|
494
|
-
[
|
|
495
|
-
0,
|
|
496
|
-
{
|
|
497
|
-
[_hQ]: _NT,
|
|
498
|
-
},
|
|
499
|
-
],
|
|
500
|
-
[
|
|
501
|
-
1,
|
|
502
|
-
{
|
|
503
|
-
[_hQ]: _MR,
|
|
504
|
-
},
|
|
505
|
-
],
|
|
446
|
+
[0, { [_hQ]: _NP }],
|
|
447
|
+
[0, { [_hQ]: _NT }],
|
|
448
|
+
[1, { [_hQ]: _MR }],
|
|
506
449
|
],
|
|
507
450
|
];
|
|
508
451
|
var ListScheduleGroupsOutput = [
|
|
@@ -520,36 +463,11 @@ var ListSchedulesInput = [
|
|
|
520
463
|
0,
|
|
521
464
|
[_GN, _NP, _St, _NT, _MR],
|
|
522
465
|
[
|
|
523
|
-
[
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
],
|
|
529
|
-
[
|
|
530
|
-
0,
|
|
531
|
-
{
|
|
532
|
-
[_hQ]: _NP,
|
|
533
|
-
},
|
|
534
|
-
],
|
|
535
|
-
[
|
|
536
|
-
0,
|
|
537
|
-
{
|
|
538
|
-
[_hQ]: _St,
|
|
539
|
-
},
|
|
540
|
-
],
|
|
541
|
-
[
|
|
542
|
-
0,
|
|
543
|
-
{
|
|
544
|
-
[_hQ]: _NT,
|
|
545
|
-
},
|
|
546
|
-
],
|
|
547
|
-
[
|
|
548
|
-
1,
|
|
549
|
-
{
|
|
550
|
-
[_hQ]: _MR,
|
|
551
|
-
},
|
|
552
|
-
],
|
|
466
|
+
[0, { [_hQ]: _SGch }],
|
|
467
|
+
[0, { [_hQ]: _NP }],
|
|
468
|
+
[0, { [_hQ]: _St }],
|
|
469
|
+
[0, { [_hQ]: _NT }],
|
|
470
|
+
[1, { [_hQ]: _MR }],
|
|
553
471
|
],
|
|
554
472
|
];
|
|
555
473
|
var ListSchedulesOutput = [3, n0, _LSO, 0, [_NT, _Sc], [0, () => ScheduleList]];
|
|
@@ -558,17 +476,7 @@ var ListTagsForResourceOutput = [3, n0, _LTFRO, 0, [_T], [() => TagList]];
|
|
|
558
476
|
var NetworkConfiguration = [3, n0, _NC, 0, [_aC], [() => AwsVpcConfiguration]];
|
|
559
477
|
var PlacementConstraint = [3, n0, _PCl, 0, [_t, _ex], [0, 0]];
|
|
560
478
|
var PlacementStrategy = [3, n0, _PS, 0, [_t, _f], [0, 0]];
|
|
561
|
-
var ResourceNotFoundException = [
|
|
562
|
-
-3,
|
|
563
|
-
n0,
|
|
564
|
-
_RNFE,
|
|
565
|
-
{
|
|
566
|
-
[_e]: _c,
|
|
567
|
-
[_hE]: 404,
|
|
568
|
-
},
|
|
569
|
-
[_M],
|
|
570
|
-
[0],
|
|
571
|
-
];
|
|
479
|
+
var ResourceNotFoundException = [-3, n0, _RNFE, { [_e]: _c, [_hE]: 404 }, [_M], [0]];
|
|
572
480
|
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
573
481
|
var RetryPolicy = [3, n0, _RP, 0, [_MEAIS, _MRA], [1, 1]];
|
|
574
482
|
var SageMakerPipelineParameter = [3, n0, _SMPP, 0, [_N, _V], [0, 0]];
|
|
@@ -589,17 +497,7 @@ var ScheduleSummary = [
|
|
|
589
497
|
[_A, _N, _GN, _St, _CD, _LMD, _Ta],
|
|
590
498
|
[0, 0, 0, 0, 4, 4, () => TargetSummary],
|
|
591
499
|
];
|
|
592
|
-
var ServiceQuotaExceededException = [
|
|
593
|
-
-3,
|
|
594
|
-
n0,
|
|
595
|
-
_SQEE,
|
|
596
|
-
{
|
|
597
|
-
[_e]: _c,
|
|
598
|
-
[_hE]: 402,
|
|
599
|
-
},
|
|
600
|
-
[_M],
|
|
601
|
-
[0],
|
|
602
|
-
];
|
|
500
|
+
var ServiceQuotaExceededException = [-3, n0, _SQEE, { [_e]: _c, [_hE]: 402 }, [_M], [0]];
|
|
603
501
|
schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
|
|
604
502
|
var SqsParameters = [3, n0, _SP, 0, [_MGI], [0]];
|
|
605
503
|
var Tag = [3, n0, _Tag, 0, [_K, _V], [0, 0]];
|
|
@@ -625,17 +523,7 @@ var Target = [
|
|
|
625
523
|
],
|
|
626
524
|
];
|
|
627
525
|
var TargetSummary = [3, n0, _TS, 0, [_A], [0]];
|
|
628
|
-
var ThrottlingException = [
|
|
629
|
-
-3,
|
|
630
|
-
n0,
|
|
631
|
-
_TE,
|
|
632
|
-
{
|
|
633
|
-
[_e]: _c,
|
|
634
|
-
[_hE]: 429,
|
|
635
|
-
},
|
|
636
|
-
[_M],
|
|
637
|
-
[0],
|
|
638
|
-
];
|
|
526
|
+
var ThrottlingException = [-3, n0, _TE, { [_e]: _c, [_hE]: 429 }, [_M], [0]];
|
|
639
527
|
schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
|
|
640
528
|
var UntagResourceInput = [
|
|
641
529
|
3,
|
|
@@ -645,12 +533,7 @@ var UntagResourceInput = [
|
|
|
645
533
|
[_RA, _TK],
|
|
646
534
|
[
|
|
647
535
|
[0, 1],
|
|
648
|
-
[
|
|
649
|
-
64 | 0,
|
|
650
|
-
{
|
|
651
|
-
[_hQ]: _TK,
|
|
652
|
-
},
|
|
653
|
-
],
|
|
536
|
+
[64 | 0, { [_hQ]: _TK }],
|
|
654
537
|
],
|
|
655
538
|
];
|
|
656
539
|
var UntagResourceOutput = [3, n0, _URO, 0, [], []];
|
|
@@ -663,17 +546,7 @@ var UpdateScheduleInput = [
|
|
|
663
546
|
[[0, 1], 0, 0, 4, 4, 0, 0, 0, 0, () => Target, () => FlexibleTimeWindow, [0, 4], 0],
|
|
664
547
|
];
|
|
665
548
|
var UpdateScheduleOutput = [3, n0, _USO, 0, [_SA], [0]];
|
|
666
|
-
var ValidationException = [
|
|
667
|
-
-3,
|
|
668
|
-
n0,
|
|
669
|
-
_VE,
|
|
670
|
-
{
|
|
671
|
-
[_e]: _c,
|
|
672
|
-
[_hE]: 400,
|
|
673
|
-
},
|
|
674
|
-
[_M],
|
|
675
|
-
[0],
|
|
676
|
-
];
|
|
549
|
+
var ValidationException = [-3, n0, _VE, { [_e]: _c, [_hE]: 400 }, [_M], [0]];
|
|
677
550
|
schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
|
|
678
551
|
var SchedulerServiceException = [-3, _sm, "SchedulerServiceException", 0, [], []];
|
|
679
552
|
schema.TypeRegistry.for(_sm).registerError(SchedulerServiceException, SchedulerServiceException$1);
|
|
@@ -688,9 +561,7 @@ var CreateSchedule = [
|
|
|
688
561
|
9,
|
|
689
562
|
n0,
|
|
690
563
|
_CS,
|
|
691
|
-
{
|
|
692
|
-
[_h]: ["POST", "/schedules/{Name}", 200],
|
|
693
|
-
},
|
|
564
|
+
{ [_h]: ["POST", "/schedules/{Name}", 200] },
|
|
694
565
|
() => CreateScheduleInput,
|
|
695
566
|
() => CreateScheduleOutput,
|
|
696
567
|
];
|
|
@@ -698,9 +569,7 @@ var CreateScheduleGroup = [
|
|
|
698
569
|
9,
|
|
699
570
|
n0,
|
|
700
571
|
_CSG,
|
|
701
|
-
{
|
|
702
|
-
[_h]: ["POST", "/schedule-groups/{Name}", 200],
|
|
703
|
-
},
|
|
572
|
+
{ [_h]: ["POST", "/schedule-groups/{Name}", 200] },
|
|
704
573
|
() => CreateScheduleGroupInput,
|
|
705
574
|
() => CreateScheduleGroupOutput,
|
|
706
575
|
];
|
|
@@ -708,9 +577,7 @@ var DeleteSchedule = [
|
|
|
708
577
|
9,
|
|
709
578
|
n0,
|
|
710
579
|
_DS,
|
|
711
|
-
{
|
|
712
|
-
[_h]: ["DELETE", "/schedules/{Name}", 200],
|
|
713
|
-
},
|
|
580
|
+
{ [_h]: ["DELETE", "/schedules/{Name}", 200] },
|
|
714
581
|
() => DeleteScheduleInput,
|
|
715
582
|
() => DeleteScheduleOutput,
|
|
716
583
|
];
|
|
@@ -718,9 +585,7 @@ var DeleteScheduleGroup = [
|
|
|
718
585
|
9,
|
|
719
586
|
n0,
|
|
720
587
|
_DSG,
|
|
721
|
-
{
|
|
722
|
-
[_h]: ["DELETE", "/schedule-groups/{Name}", 200],
|
|
723
|
-
},
|
|
588
|
+
{ [_h]: ["DELETE", "/schedule-groups/{Name}", 200] },
|
|
724
589
|
() => DeleteScheduleGroupInput,
|
|
725
590
|
() => DeleteScheduleGroupOutput,
|
|
726
591
|
];
|
|
@@ -728,9 +593,7 @@ var GetSchedule = [
|
|
|
728
593
|
9,
|
|
729
594
|
n0,
|
|
730
595
|
_GS,
|
|
731
|
-
{
|
|
732
|
-
[_h]: ["GET", "/schedules/{Name}", 200],
|
|
733
|
-
},
|
|
596
|
+
{ [_h]: ["GET", "/schedules/{Name}", 200] },
|
|
734
597
|
() => GetScheduleInput,
|
|
735
598
|
() => GetScheduleOutput,
|
|
736
599
|
];
|
|
@@ -738,9 +601,7 @@ var GetScheduleGroup = [
|
|
|
738
601
|
9,
|
|
739
602
|
n0,
|
|
740
603
|
_GSG,
|
|
741
|
-
{
|
|
742
|
-
[_h]: ["GET", "/schedule-groups/{Name}", 200],
|
|
743
|
-
},
|
|
604
|
+
{ [_h]: ["GET", "/schedule-groups/{Name}", 200] },
|
|
744
605
|
() => GetScheduleGroupInput,
|
|
745
606
|
() => GetScheduleGroupOutput,
|
|
746
607
|
];
|
|
@@ -748,9 +609,7 @@ var ListScheduleGroups = [
|
|
|
748
609
|
9,
|
|
749
610
|
n0,
|
|
750
611
|
_LSG,
|
|
751
|
-
{
|
|
752
|
-
[_h]: ["GET", "/schedule-groups", 200],
|
|
753
|
-
},
|
|
612
|
+
{ [_h]: ["GET", "/schedule-groups", 200] },
|
|
754
613
|
() => ListScheduleGroupsInput,
|
|
755
614
|
() => ListScheduleGroupsOutput,
|
|
756
615
|
];
|
|
@@ -758,9 +617,7 @@ var ListSchedules = [
|
|
|
758
617
|
9,
|
|
759
618
|
n0,
|
|
760
619
|
_LS,
|
|
761
|
-
{
|
|
762
|
-
[_h]: ["GET", "/schedules", 200],
|
|
763
|
-
},
|
|
620
|
+
{ [_h]: ["GET", "/schedules", 200] },
|
|
764
621
|
() => ListSchedulesInput,
|
|
765
622
|
() => ListSchedulesOutput,
|
|
766
623
|
];
|
|
@@ -768,9 +625,7 @@ var ListTagsForResource = [
|
|
|
768
625
|
9,
|
|
769
626
|
n0,
|
|
770
627
|
_LTFR,
|
|
771
|
-
{
|
|
772
|
-
[_h]: ["GET", "/tags/{ResourceArn}", 200],
|
|
773
|
-
},
|
|
628
|
+
{ [_h]: ["GET", "/tags/{ResourceArn}", 200] },
|
|
774
629
|
() => ListTagsForResourceInput,
|
|
775
630
|
() => ListTagsForResourceOutput,
|
|
776
631
|
];
|
|
@@ -778,9 +633,7 @@ var TagResource = [
|
|
|
778
633
|
9,
|
|
779
634
|
n0,
|
|
780
635
|
_TR,
|
|
781
|
-
{
|
|
782
|
-
[_h]: ["POST", "/tags/{ResourceArn}", 200],
|
|
783
|
-
},
|
|
636
|
+
{ [_h]: ["POST", "/tags/{ResourceArn}", 200] },
|
|
784
637
|
() => TagResourceInput,
|
|
785
638
|
() => TagResourceOutput,
|
|
786
639
|
];
|
|
@@ -788,9 +641,7 @@ var UntagResource = [
|
|
|
788
641
|
9,
|
|
789
642
|
n0,
|
|
790
643
|
_UR,
|
|
791
|
-
{
|
|
792
|
-
[_h]: ["DELETE", "/tags/{ResourceArn}", 200],
|
|
793
|
-
},
|
|
644
|
+
{ [_h]: ["DELETE", "/tags/{ResourceArn}", 200] },
|
|
794
645
|
() => UntagResourceInput,
|
|
795
646
|
() => UntagResourceOutput,
|
|
796
647
|
];
|
|
@@ -798,9 +649,7 @@ var UpdateSchedule = [
|
|
|
798
649
|
9,
|
|
799
650
|
n0,
|
|
800
651
|
_US,
|
|
801
|
-
{
|
|
802
|
-
[_h]: ["PUT", "/schedules/{Name}", 200],
|
|
803
|
-
},
|
|
652
|
+
{ [_h]: ["PUT", "/schedules/{Name}", 200] },
|
|
804
653
|
() => UpdateScheduleInput,
|
|
805
654
|
() => UpdateScheduleOutput,
|
|
806
655
|
];
|
|
@@ -8,11 +8,11 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
|
|
|
8
8
|
const config_resolver_1 = require("@smithy/config-resolver");
|
|
9
9
|
const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
|
|
10
10
|
const invalid_dependency_1 = require("@smithy/invalid-dependency");
|
|
11
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
11
12
|
const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
|
|
13
|
+
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
12
14
|
const util_retry_1 = require("@smithy/util-retry");
|
|
13
15
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
14
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
15
|
-
const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
|
|
16
16
|
const getRuntimeConfig = (config) => {
|
|
17
17
|
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
18
18
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
@@ -11,14 +11,13 @@ const hash_node_1 = require("@smithy/hash-node");
|
|
|
11
11
|
const middleware_retry_1 = require("@smithy/middleware-retry");
|
|
12
12
|
const node_config_provider_1 = require("@smithy/node-config-provider");
|
|
13
13
|
const node_http_handler_1 = require("@smithy/node-http-handler");
|
|
14
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
14
15
|
const util_body_length_node_1 = require("@smithy/util-body-length-node");
|
|
16
|
+
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
15
17
|
const util_retry_1 = require("@smithy/util-retry");
|
|
16
18
|
const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
|
|
17
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
18
|
-
const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
|
|
19
|
-
const smithy_client_2 = require("@smithy/smithy-client");
|
|
20
19
|
const getRuntimeConfig = (config) => {
|
|
21
|
-
(0,
|
|
20
|
+
(0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
|
|
22
21
|
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
22
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
23
|
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
@@ -6,8 +6,8 @@ import { resolveRegionConfig } from "@smithy/config-resolver";
|
|
|
6
6
|
import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
|
|
7
7
|
import { getSchemaSerdePlugin } from "@smithy/core/schema";
|
|
8
8
|
import { getContentLengthPlugin } from "@smithy/middleware-content-length";
|
|
9
|
-
import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
|
|
10
|
-
import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
|
|
9
|
+
import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
|
|
10
|
+
import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
|
|
11
11
|
import { Client as __Client, } from "@smithy/smithy-client";
|
|
12
12
|
import { defaultSchedulerHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
|
|
13
13
|
import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
|
|
@@ -4,11 +4,11 @@ import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser
|
|
|
4
4
|
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
|
|
5
5
|
import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
|
|
6
6
|
import { invalidProvider } from "@smithy/invalid-dependency";
|
|
7
|
+
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
7
8
|
import { calculateBodyLength } from "@smithy/util-body-length-browser";
|
|
9
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
8
10
|
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
9
11
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
10
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
11
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
|
|
12
12
|
export const getRuntimeConfig = (config) => {
|
|
13
13
|
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
14
14
|
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
package/dist-es/runtimeConfig.js
CHANGED
|
@@ -7,12 +7,11 @@ import { Hash } from "@smithy/hash-node";
|
|
|
7
7
|
import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
|
|
8
8
|
import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
|
|
9
9
|
import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
|
|
10
|
+
import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
10
11
|
import { calculateBodyLength } from "@smithy/util-body-length-node";
|
|
12
|
+
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
11
13
|
import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
|
|
12
14
|
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
-
import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
|
|
14
|
-
import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
|
|
15
|
-
import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
|
|
16
15
|
export const getRuntimeConfig = (config) => {
|
|
17
16
|
emitWarningIfUnsupportedVersion(process.version);
|
|
18
17
|
const defaultsMode = resolveDefaultsModeConfig(config);
|