Skip to content

Commit 7501e91

Browse files
author
awstools
committed
feat(client-elastic-load-balancing-v2): Correct incorrectly mapped error in ELBv2 waiters
1 parent b3df65a commit 7501e91

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancerAvailable.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const checkState = async (
4747
} catch (e) {}
4848
} catch (exception) {
4949
reason = exception;
50-
if (exception.name && exception.name == "LoadBalancerNotFoundException") {
50+
if (exception.name && exception.name == "LoadBalancerNotFound") {
5151
return { state: WaiterState.RETRY, reason };
5252
}
5353
}

clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancerExists.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const checkState = async (
1818
return { state: WaiterState.SUCCESS, reason };
1919
} catch (exception) {
2020
reason = exception;
21-
if (exception.name && exception.name == "LoadBalancerNotFoundException") {
21+
if (exception.name && exception.name == "LoadBalancerNotFound") {
2222
return { state: WaiterState.RETRY, reason };
2323
}
2424
}

clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancersDeleted.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const checkState = async (
3333
} catch (e) {}
3434
} catch (exception) {
3535
reason = exception;
36-
if (exception.name && exception.name == "LoadBalancerNotFoundException") {
36+
if (exception.name && exception.name == "LoadBalancerNotFound") {
3737
return { state: WaiterState.SUCCESS, reason };
3838
}
3939
}

codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -2583,6 +2583,7 @@
25832583
"outputToken": "NextMarker",
25842584
"items": "LoadBalancers"
25852585
},
2586+
"smithy.api#suppress": ["WaitableTraitInvalidErrorType"],
25862587
"smithy.waiters#waitable": {
25872588
"LoadBalancerAvailable": {
25882589
"acceptors": [
@@ -2609,7 +2610,7 @@
26092610
{
26102611
"state": "retry",
26112612
"matcher": {
2612-
"errorType": "LoadBalancerNotFoundException"
2613+
"errorType": "LoadBalancerNotFound"
26132614
}
26142615
}
26152616
],
@@ -2626,7 +2627,7 @@
26262627
{
26272628
"state": "retry",
26282629
"matcher": {
2629-
"errorType": "LoadBalancerNotFoundException"
2630+
"errorType": "LoadBalancerNotFound"
26302631
}
26312632
}
26322633
],
@@ -2647,7 +2648,7 @@
26472648
{
26482649
"state": "success",
26492650
"matcher": {
2650-
"errorType": "LoadBalancerNotFoundException"
2651+
"errorType": "LoadBalancerNotFound"
26512652
}
26522653
}
26532654
],

0 commit comments

Comments
 (0)