diff --git a/clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancerAvailable.ts b/clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancerAvailable.ts index 5c1658dcaa9f..78e74c15de5a 100644 --- a/clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancerAvailable.ts +++ b/clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancerAvailable.ts @@ -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 }; } } diff --git a/clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancerExists.ts b/clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancerExists.ts index 23d1a4f6e8de..0a6bd555efa4 100644 --- a/clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancerExists.ts +++ b/clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancerExists.ts @@ -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 }; } } diff --git a/clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancersDeleted.ts b/clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancersDeleted.ts index 130a08eab9ab..1266d742f87f 100644 --- a/clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancersDeleted.ts +++ b/clients/client-elastic-load-balancing-v2/src/waiters/waitForLoadBalancersDeleted.ts @@ -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 }; } } diff --git a/codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json b/codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json index 40f977a53b2c..600f6d2f21fe 100644 --- a/codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json +++ b/codegen/sdk-codegen/aws-models/elastic-load-balancing-v2.json @@ -2583,6 +2583,7 @@ "outputToken": "NextMarker", "items": "LoadBalancers" }, + "smithy.api#suppress": ["WaitableTraitInvalidErrorType"], "smithy.waiters#waitable": { "LoadBalancerAvailable": { "acceptors": [ @@ -2609,7 +2610,7 @@ { "state": "retry", "matcher": { - "errorType": "LoadBalancerNotFoundException" + "errorType": "LoadBalancerNotFound" } } ], @@ -2626,7 +2627,7 @@ { "state": "retry", "matcher": { - "errorType": "LoadBalancerNotFoundException" + "errorType": "LoadBalancerNotFound" } } ], @@ -2647,7 +2648,7 @@ { "state": "success", "matcher": { - "errorType": "LoadBalancerNotFoundException" + "errorType": "LoadBalancerNotFound" } } ],