Skip to content

Commit

Permalink
feat(client-elastic-load-balancing-v2): Correct incorrectly mapped er…
Browse files Browse the repository at this point in the history
…ror in ELBv2 waiters
  • Loading branch information
awstools committed Sep 12, 2024
1 parent b3df65a commit 7501e91
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const checkState = async (
} catch (e) {}
} catch (exception) {
reason = exception;
if (exception.name && exception.name == "LoadBalancerNotFoundException") {
if (exception.name && exception.name == "LoadBalancerNotFound") {
return { state: WaiterState.RETRY, reason };
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const checkState = async (
return { state: WaiterState.SUCCESS, reason };
} catch (exception) {
reason = exception;
if (exception.name && exception.name == "LoadBalancerNotFoundException") {
if (exception.name && exception.name == "LoadBalancerNotFound") {
return { state: WaiterState.RETRY, reason };
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const checkState = async (
} catch (e) {}
} catch (exception) {
reason = exception;
if (exception.name && exception.name == "LoadBalancerNotFoundException") {
if (exception.name && exception.name == "LoadBalancerNotFound") {
return { state: WaiterState.SUCCESS, reason };
}
}
Expand Down
7 changes: 4 additions & 3 deletions codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2583,6 +2583,7 @@
"outputToken": "NextMarker",
"items": "LoadBalancers"
},
"smithy.api#suppress": ["WaitableTraitInvalidErrorType"],
"smithy.waiters#waitable": {
"LoadBalancerAvailable": {
"acceptors": [
Expand All @@ -2609,7 +2610,7 @@
{
"state": "retry",
"matcher": {
"errorType": "LoadBalancerNotFoundException"
"errorType": "LoadBalancerNotFound"
}
}
],
Expand All @@ -2626,7 +2627,7 @@
{
"state": "retry",
"matcher": {
"errorType": "LoadBalancerNotFoundException"
"errorType": "LoadBalancerNotFound"
}
}
],
Expand All @@ -2647,7 +2648,7 @@
{
"state": "success",
"matcher": {
"errorType": "LoadBalancerNotFoundException"
"errorType": "LoadBalancerNotFound"
}
}
],
Expand Down

0 comments on commit 7501e91

Please sign in to comment.