@aws-sdk/client-proton 3.958.0 → 3.962.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 +35 -35
- package/dist-es/waiters/waitForComponentDeleted.js +2 -2
- package/dist-es/waiters/waitForComponentDeployed.js +3 -3
- package/dist-es/waiters/waitForEnvironmentDeployed.js +3 -3
- package/dist-es/waiters/waitForEnvironmentTemplateVersionRegistered.js +4 -4
- package/dist-es/waiters/waitForServiceCreated.js +5 -5
- package/dist-es/waiters/waitForServiceDeleted.js +2 -2
- package/dist-es/waiters/waitForServiceInstanceDeployed.js +3 -3
- package/dist-es/waiters/waitForServicePipelineDeployed.js +3 -3
- package/dist-es/waiters/waitForServiceTemplateVersionRegistered.js +4 -4
- package/dist-es/waiters/waitForServiceUpdated.js +6 -6
- package/package.json +2 -2
package/dist-cjs/index.js
CHANGED
|
@@ -3431,10 +3431,10 @@ const paginateListTagsForResource = core.createPaginator(ProtonClient, ListTagsF
|
|
|
3431
3431
|
const checkState$9 = async (client, input) => {
|
|
3432
3432
|
let reason;
|
|
3433
3433
|
try {
|
|
3434
|
-
|
|
3434
|
+
let result = await client.send(new GetComponentCommand(input));
|
|
3435
3435
|
reason = result;
|
|
3436
3436
|
try {
|
|
3437
|
-
|
|
3437
|
+
const returnComparator = () => {
|
|
3438
3438
|
return result.component.deploymentStatus;
|
|
3439
3439
|
};
|
|
3440
3440
|
if (returnComparator() === "SUCCEEDED") {
|
|
@@ -3443,7 +3443,7 @@ const checkState$9 = async (client, input) => {
|
|
|
3443
3443
|
}
|
|
3444
3444
|
catch (e) { }
|
|
3445
3445
|
try {
|
|
3446
|
-
|
|
3446
|
+
const returnComparator = () => {
|
|
3447
3447
|
return result.component.deploymentStatus;
|
|
3448
3448
|
};
|
|
3449
3449
|
if (returnComparator() === "FAILED") {
|
|
@@ -3470,10 +3470,10 @@ const waitUntilComponentDeployed = async (params, input) => {
|
|
|
3470
3470
|
const checkState$8 = async (client, input) => {
|
|
3471
3471
|
let reason;
|
|
3472
3472
|
try {
|
|
3473
|
-
|
|
3473
|
+
let result = await client.send(new GetComponentCommand(input));
|
|
3474
3474
|
reason = result;
|
|
3475
3475
|
try {
|
|
3476
|
-
|
|
3476
|
+
const returnComparator = () => {
|
|
3477
3477
|
return result.component.deploymentStatus;
|
|
3478
3478
|
};
|
|
3479
3479
|
if (returnComparator() === "DELETE_FAILED") {
|
|
@@ -3503,10 +3503,10 @@ const waitUntilComponentDeleted = async (params, input) => {
|
|
|
3503
3503
|
const checkState$7 = async (client, input) => {
|
|
3504
3504
|
let reason;
|
|
3505
3505
|
try {
|
|
3506
|
-
|
|
3506
|
+
let result = await client.send(new GetEnvironmentCommand(input));
|
|
3507
3507
|
reason = result;
|
|
3508
3508
|
try {
|
|
3509
|
-
|
|
3509
|
+
const returnComparator = () => {
|
|
3510
3510
|
return result.environment.deploymentStatus;
|
|
3511
3511
|
};
|
|
3512
3512
|
if (returnComparator() === "SUCCEEDED") {
|
|
@@ -3515,7 +3515,7 @@ const checkState$7 = async (client, input) => {
|
|
|
3515
3515
|
}
|
|
3516
3516
|
catch (e) { }
|
|
3517
3517
|
try {
|
|
3518
|
-
|
|
3518
|
+
const returnComparator = () => {
|
|
3519
3519
|
return result.environment.deploymentStatus;
|
|
3520
3520
|
};
|
|
3521
3521
|
if (returnComparator() === "FAILED") {
|
|
@@ -3542,10 +3542,10 @@ const waitUntilEnvironmentDeployed = async (params, input) => {
|
|
|
3542
3542
|
const checkState$6 = async (client, input) => {
|
|
3543
3543
|
let reason;
|
|
3544
3544
|
try {
|
|
3545
|
-
|
|
3545
|
+
let result = await client.send(new GetEnvironmentTemplateVersionCommand(input));
|
|
3546
3546
|
reason = result;
|
|
3547
3547
|
try {
|
|
3548
|
-
|
|
3548
|
+
const returnComparator = () => {
|
|
3549
3549
|
return result.environmentTemplateVersion.status;
|
|
3550
3550
|
};
|
|
3551
3551
|
if (returnComparator() === "DRAFT") {
|
|
@@ -3554,7 +3554,7 @@ const checkState$6 = async (client, input) => {
|
|
|
3554
3554
|
}
|
|
3555
3555
|
catch (e) { }
|
|
3556
3556
|
try {
|
|
3557
|
-
|
|
3557
|
+
const returnComparator = () => {
|
|
3558
3558
|
return result.environmentTemplateVersion.status;
|
|
3559
3559
|
};
|
|
3560
3560
|
if (returnComparator() === "PUBLISHED") {
|
|
@@ -3563,7 +3563,7 @@ const checkState$6 = async (client, input) => {
|
|
|
3563
3563
|
}
|
|
3564
3564
|
catch (e) { }
|
|
3565
3565
|
try {
|
|
3566
|
-
|
|
3566
|
+
const returnComparator = () => {
|
|
3567
3567
|
return result.environmentTemplateVersion.status;
|
|
3568
3568
|
};
|
|
3569
3569
|
if (returnComparator() === "REGISTRATION_FAILED") {
|
|
@@ -3590,10 +3590,10 @@ const waitUntilEnvironmentTemplateVersionRegistered = async (params, input) => {
|
|
|
3590
3590
|
const checkState$5 = async (client, input) => {
|
|
3591
3591
|
let reason;
|
|
3592
3592
|
try {
|
|
3593
|
-
|
|
3593
|
+
let result = await client.send(new GetServiceCommand(input));
|
|
3594
3594
|
reason = result;
|
|
3595
3595
|
try {
|
|
3596
|
-
|
|
3596
|
+
const returnComparator = () => {
|
|
3597
3597
|
return result.service.status;
|
|
3598
3598
|
};
|
|
3599
3599
|
if (returnComparator() === "ACTIVE") {
|
|
@@ -3602,7 +3602,7 @@ const checkState$5 = async (client, input) => {
|
|
|
3602
3602
|
}
|
|
3603
3603
|
catch (e) { }
|
|
3604
3604
|
try {
|
|
3605
|
-
|
|
3605
|
+
const returnComparator = () => {
|
|
3606
3606
|
return result.service.status;
|
|
3607
3607
|
};
|
|
3608
3608
|
if (returnComparator() === "CREATE_FAILED_CLEANUP_COMPLETE") {
|
|
@@ -3611,7 +3611,7 @@ const checkState$5 = async (client, input) => {
|
|
|
3611
3611
|
}
|
|
3612
3612
|
catch (e) { }
|
|
3613
3613
|
try {
|
|
3614
|
-
|
|
3614
|
+
const returnComparator = () => {
|
|
3615
3615
|
return result.service.status;
|
|
3616
3616
|
};
|
|
3617
3617
|
if (returnComparator() === "CREATE_FAILED_CLEANUP_FAILED") {
|
|
@@ -3620,7 +3620,7 @@ const checkState$5 = async (client, input) => {
|
|
|
3620
3620
|
}
|
|
3621
3621
|
catch (e) { }
|
|
3622
3622
|
try {
|
|
3623
|
-
|
|
3623
|
+
const returnComparator = () => {
|
|
3624
3624
|
return result.service.status;
|
|
3625
3625
|
};
|
|
3626
3626
|
if (returnComparator() === "CREATE_FAILED") {
|
|
@@ -3647,10 +3647,10 @@ const waitUntilServiceCreated = async (params, input) => {
|
|
|
3647
3647
|
const checkState$4 = async (client, input) => {
|
|
3648
3648
|
let reason;
|
|
3649
3649
|
try {
|
|
3650
|
-
|
|
3650
|
+
let result = await client.send(new GetServiceCommand(input));
|
|
3651
3651
|
reason = result;
|
|
3652
3652
|
try {
|
|
3653
|
-
|
|
3653
|
+
const returnComparator = () => {
|
|
3654
3654
|
return result.service.status;
|
|
3655
3655
|
};
|
|
3656
3656
|
if (returnComparator() === "ACTIVE") {
|
|
@@ -3659,7 +3659,7 @@ const checkState$4 = async (client, input) => {
|
|
|
3659
3659
|
}
|
|
3660
3660
|
catch (e) { }
|
|
3661
3661
|
try {
|
|
3662
|
-
|
|
3662
|
+
const returnComparator = () => {
|
|
3663
3663
|
return result.service.status;
|
|
3664
3664
|
};
|
|
3665
3665
|
if (returnComparator() === "UPDATE_FAILED_CLEANUP_COMPLETE") {
|
|
@@ -3668,7 +3668,7 @@ const checkState$4 = async (client, input) => {
|
|
|
3668
3668
|
}
|
|
3669
3669
|
catch (e) { }
|
|
3670
3670
|
try {
|
|
3671
|
-
|
|
3671
|
+
const returnComparator = () => {
|
|
3672
3672
|
return result.service.status;
|
|
3673
3673
|
};
|
|
3674
3674
|
if (returnComparator() === "UPDATE_FAILED_CLEANUP_FAILED") {
|
|
@@ -3677,7 +3677,7 @@ const checkState$4 = async (client, input) => {
|
|
|
3677
3677
|
}
|
|
3678
3678
|
catch (e) { }
|
|
3679
3679
|
try {
|
|
3680
|
-
|
|
3680
|
+
const returnComparator = () => {
|
|
3681
3681
|
return result.service.status;
|
|
3682
3682
|
};
|
|
3683
3683
|
if (returnComparator() === "UPDATE_FAILED") {
|
|
@@ -3686,7 +3686,7 @@ const checkState$4 = async (client, input) => {
|
|
|
3686
3686
|
}
|
|
3687
3687
|
catch (e) { }
|
|
3688
3688
|
try {
|
|
3689
|
-
|
|
3689
|
+
const returnComparator = () => {
|
|
3690
3690
|
return result.service.status;
|
|
3691
3691
|
};
|
|
3692
3692
|
if (returnComparator() === "UPDATE_COMPLETE_CLEANUP_FAILED") {
|
|
@@ -3713,10 +3713,10 @@ const waitUntilServiceUpdated = async (params, input) => {
|
|
|
3713
3713
|
const checkState$3 = async (client, input) => {
|
|
3714
3714
|
let reason;
|
|
3715
3715
|
try {
|
|
3716
|
-
|
|
3716
|
+
let result = await client.send(new GetServiceCommand(input));
|
|
3717
3717
|
reason = result;
|
|
3718
3718
|
try {
|
|
3719
|
-
|
|
3719
|
+
const returnComparator = () => {
|
|
3720
3720
|
return result.service.status;
|
|
3721
3721
|
};
|
|
3722
3722
|
if (returnComparator() === "DELETE_FAILED") {
|
|
@@ -3746,10 +3746,10 @@ const waitUntilServiceDeleted = async (params, input) => {
|
|
|
3746
3746
|
const checkState$2 = async (client, input) => {
|
|
3747
3747
|
let reason;
|
|
3748
3748
|
try {
|
|
3749
|
-
|
|
3749
|
+
let result = await client.send(new GetServiceCommand(input));
|
|
3750
3750
|
reason = result;
|
|
3751
3751
|
try {
|
|
3752
|
-
|
|
3752
|
+
const returnComparator = () => {
|
|
3753
3753
|
return result.service.pipeline.deploymentStatus;
|
|
3754
3754
|
};
|
|
3755
3755
|
if (returnComparator() === "SUCCEEDED") {
|
|
@@ -3758,7 +3758,7 @@ const checkState$2 = async (client, input) => {
|
|
|
3758
3758
|
}
|
|
3759
3759
|
catch (e) { }
|
|
3760
3760
|
try {
|
|
3761
|
-
|
|
3761
|
+
const returnComparator = () => {
|
|
3762
3762
|
return result.service.pipeline.deploymentStatus;
|
|
3763
3763
|
};
|
|
3764
3764
|
if (returnComparator() === "FAILED") {
|
|
@@ -3785,10 +3785,10 @@ const waitUntilServicePipelineDeployed = async (params, input) => {
|
|
|
3785
3785
|
const checkState$1 = async (client, input) => {
|
|
3786
3786
|
let reason;
|
|
3787
3787
|
try {
|
|
3788
|
-
|
|
3788
|
+
let result = await client.send(new GetServiceInstanceCommand(input));
|
|
3789
3789
|
reason = result;
|
|
3790
3790
|
try {
|
|
3791
|
-
|
|
3791
|
+
const returnComparator = () => {
|
|
3792
3792
|
return result.serviceInstance.deploymentStatus;
|
|
3793
3793
|
};
|
|
3794
3794
|
if (returnComparator() === "SUCCEEDED") {
|
|
@@ -3797,7 +3797,7 @@ const checkState$1 = async (client, input) => {
|
|
|
3797
3797
|
}
|
|
3798
3798
|
catch (e) { }
|
|
3799
3799
|
try {
|
|
3800
|
-
|
|
3800
|
+
const returnComparator = () => {
|
|
3801
3801
|
return result.serviceInstance.deploymentStatus;
|
|
3802
3802
|
};
|
|
3803
3803
|
if (returnComparator() === "FAILED") {
|
|
@@ -3824,10 +3824,10 @@ const waitUntilServiceInstanceDeployed = async (params, input) => {
|
|
|
3824
3824
|
const checkState = async (client, input) => {
|
|
3825
3825
|
let reason;
|
|
3826
3826
|
try {
|
|
3827
|
-
|
|
3827
|
+
let result = await client.send(new GetServiceTemplateVersionCommand(input));
|
|
3828
3828
|
reason = result;
|
|
3829
3829
|
try {
|
|
3830
|
-
|
|
3830
|
+
const returnComparator = () => {
|
|
3831
3831
|
return result.serviceTemplateVersion.status;
|
|
3832
3832
|
};
|
|
3833
3833
|
if (returnComparator() === "DRAFT") {
|
|
@@ -3836,7 +3836,7 @@ const checkState = async (client, input) => {
|
|
|
3836
3836
|
}
|
|
3837
3837
|
catch (e) { }
|
|
3838
3838
|
try {
|
|
3839
|
-
|
|
3839
|
+
const returnComparator = () => {
|
|
3840
3840
|
return result.serviceTemplateVersion.status;
|
|
3841
3841
|
};
|
|
3842
3842
|
if (returnComparator() === "PUBLISHED") {
|
|
@@ -3845,7 +3845,7 @@ const checkState = async (client, input) => {
|
|
|
3845
3845
|
}
|
|
3846
3846
|
catch (e) { }
|
|
3847
3847
|
try {
|
|
3848
|
-
|
|
3848
|
+
const returnComparator = () => {
|
|
3849
3849
|
return result.serviceTemplateVersion.status;
|
|
3850
3850
|
};
|
|
3851
3851
|
if (returnComparator() === "REGISTRATION_FAILED") {
|
|
@@ -3,10 +3,10 @@ import { GetComponentCommand } from "../commands/GetComponentCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new GetComponentCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.component.deploymentStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "DELETE_FAILED") {
|
|
@@ -3,10 +3,10 @@ import { GetComponentCommand } from "../commands/GetComponentCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new GetComponentCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.component.deploymentStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "SUCCEEDED") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.component.deploymentStatus;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "FAILED") {
|
|
@@ -3,10 +3,10 @@ import { GetEnvironmentCommand } from "../commands/GetEnvironmentCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new GetEnvironmentCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.environment.deploymentStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "SUCCEEDED") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.environment.deploymentStatus;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "FAILED") {
|
|
@@ -3,10 +3,10 @@ import { GetEnvironmentTemplateVersionCommand, } from "../commands/GetEnvironmen
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new GetEnvironmentTemplateVersionCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.environmentTemplateVersion.status;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "DRAFT") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.environmentTemplateVersion.status;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "PUBLISHED") {
|
|
@@ -24,7 +24,7 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
catch (e) { }
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
const returnComparator = () => {
|
|
28
28
|
return result.environmentTemplateVersion.status;
|
|
29
29
|
};
|
|
30
30
|
if (returnComparator() === "REGISTRATION_FAILED") {
|
|
@@ -3,10 +3,10 @@ import { GetServiceCommand } from "../commands/GetServiceCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new GetServiceCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.service.status;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "ACTIVE") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.service.status;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "CREATE_FAILED_CLEANUP_COMPLETE") {
|
|
@@ -24,7 +24,7 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
catch (e) { }
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
const returnComparator = () => {
|
|
28
28
|
return result.service.status;
|
|
29
29
|
};
|
|
30
30
|
if (returnComparator() === "CREATE_FAILED_CLEANUP_FAILED") {
|
|
@@ -33,7 +33,7 @@ const checkState = async (client, input) => {
|
|
|
33
33
|
}
|
|
34
34
|
catch (e) { }
|
|
35
35
|
try {
|
|
36
|
-
|
|
36
|
+
const returnComparator = () => {
|
|
37
37
|
return result.service.status;
|
|
38
38
|
};
|
|
39
39
|
if (returnComparator() === "CREATE_FAILED") {
|
|
@@ -3,10 +3,10 @@ import { GetServiceCommand } from "../commands/GetServiceCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new GetServiceCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.service.status;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "DELETE_FAILED") {
|
|
@@ -3,10 +3,10 @@ import { GetServiceInstanceCommand } from "../commands/GetServiceInstanceCommand
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new GetServiceInstanceCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.serviceInstance.deploymentStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "SUCCEEDED") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.serviceInstance.deploymentStatus;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "FAILED") {
|
|
@@ -3,10 +3,10 @@ import { GetServiceCommand } from "../commands/GetServiceCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new GetServiceCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.service.pipeline.deploymentStatus;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "SUCCEEDED") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.service.pipeline.deploymentStatus;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "FAILED") {
|
|
@@ -3,10 +3,10 @@ import { GetServiceTemplateVersionCommand, } from "../commands/GetServiceTemplat
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new GetServiceTemplateVersionCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.serviceTemplateVersion.status;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "DRAFT") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.serviceTemplateVersion.status;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "PUBLISHED") {
|
|
@@ -24,7 +24,7 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
catch (e) { }
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
const returnComparator = () => {
|
|
28
28
|
return result.serviceTemplateVersion.status;
|
|
29
29
|
};
|
|
30
30
|
if (returnComparator() === "REGISTRATION_FAILED") {
|
|
@@ -3,10 +3,10 @@ import { GetServiceCommand } from "../commands/GetServiceCommand";
|
|
|
3
3
|
const checkState = async (client, input) => {
|
|
4
4
|
let reason;
|
|
5
5
|
try {
|
|
6
|
-
|
|
6
|
+
let result = await client.send(new GetServiceCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
9
|
+
const returnComparator = () => {
|
|
10
10
|
return result.service.status;
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() === "ACTIVE") {
|
|
@@ -15,7 +15,7 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
18
|
+
const returnComparator = () => {
|
|
19
19
|
return result.service.status;
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() === "UPDATE_FAILED_CLEANUP_COMPLETE") {
|
|
@@ -24,7 +24,7 @@ const checkState = async (client, input) => {
|
|
|
24
24
|
}
|
|
25
25
|
catch (e) { }
|
|
26
26
|
try {
|
|
27
|
-
|
|
27
|
+
const returnComparator = () => {
|
|
28
28
|
return result.service.status;
|
|
29
29
|
};
|
|
30
30
|
if (returnComparator() === "UPDATE_FAILED_CLEANUP_FAILED") {
|
|
@@ -33,7 +33,7 @@ const checkState = async (client, input) => {
|
|
|
33
33
|
}
|
|
34
34
|
catch (e) { }
|
|
35
35
|
try {
|
|
36
|
-
|
|
36
|
+
const returnComparator = () => {
|
|
37
37
|
return result.service.status;
|
|
38
38
|
};
|
|
39
39
|
if (returnComparator() === "UPDATE_FAILED") {
|
|
@@ -42,7 +42,7 @@ const checkState = async (client, input) => {
|
|
|
42
42
|
}
|
|
43
43
|
catch (e) { }
|
|
44
44
|
try {
|
|
45
|
-
|
|
45
|
+
const returnComparator = () => {
|
|
46
46
|
return result.service.status;
|
|
47
47
|
};
|
|
48
48
|
if (returnComparator() === "UPDATE_COMPLETE_CLEANUP_FAILED") {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-proton",
|
|
3
3
|
"description": "AWS SDK for JavaScript Proton Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.962.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-proton",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
24
|
"@aws-sdk/core": "3.957.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.962.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.957.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.957.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.957.0",
|