aws_sdk_elasticloadbalancingv2/
error_meta.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// All possible error types for this service.
3#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6    /// <p>The specified ALPN policy is not supported.</p>
7    AlpnPolicyNotSupportedException(crate::types::error::AlpnPolicyNotSupportedException),
8    /// <p>The specified allocation ID does not exist.</p>
9    AllocationIdNotFoundException(crate::types::error::AllocationIdNotFoundException),
10    /// <p>The specified Availability Zone is not supported.</p>
11    AvailabilityZoneNotSupportedException(crate::types::error::AvailabilityZoneNotSupportedException),
12    /// <p>The specified ca certificate bundle does not exist.</p>
13    CaCertificatesBundleNotFoundException(crate::types::error::CaCertificatesBundleNotFoundException),
14    /// <p>You've exceeded the daily capacity decrease limit for this reservation.</p>
15    CapacityDecreaseRequestsLimitExceededException(crate::types::error::CapacityDecreaseRequestsLimitExceededException),
16    /// <p>There is a pending capacity reservation.</p>
17    CapacityReservationPendingException(crate::types::error::CapacityReservationPendingException),
18    /// <p>You've exceeded the capacity units limit.</p>
19    CapacityUnitsLimitExceededException(crate::types::error::CapacityUnitsLimitExceededException),
20    /// <p>The specified certificate does not exist.</p>
21    CertificateNotFoundException(crate::types::error::CertificateNotFoundException),
22    /// <p>The specified association can't be within the same account.</p>
23    DeleteAssociationSameAccountException(crate::types::error::DeleteAssociationSameAccountException),
24    /// <p>A listener with the specified port already exists.</p>
25    DuplicateListenerException(crate::types::error::DuplicateListenerException),
26    /// <p>A load balancer with the specified name already exists.</p>
27    DuplicateLoadBalancerNameException(crate::types::error::DuplicateLoadBalancerNameException),
28    /// <p>A tag key was specified more than once.</p>
29    DuplicateTagKeysException(crate::types::error::DuplicateTagKeysException),
30    /// <p>A target group with the specified name already exists.</p>
31    DuplicateTargetGroupNameException(crate::types::error::DuplicateTargetGroupNameException),
32    /// <p>A trust store with the specified name already exists.</p>
33    DuplicateTrustStoreNameException(crate::types::error::DuplicateTrustStoreNameException),
34    /// <p>The health of the specified targets could not be retrieved due to an internal error.</p>
35    HealthUnavailableException(crate::types::error::HealthUnavailableException),
36    /// <p>The specified configuration is not valid with this protocol.</p>
37    IncompatibleProtocolsException(crate::types::error::IncompatibleProtocolsException),
38    /// <p>There is insufficient capacity to reserve.</p>
39    InsufficientCapacityException(crate::types::error::InsufficientCapacityException),
40    /// <p>The specified ca certificate bundle is in an invalid format, or corrupt.</p>
41    InvalidCaCertificatesBundleException(crate::types::error::InvalidCaCertificatesBundleException),
42    /// <p>The requested configuration is not valid.</p>
43    InvalidConfigurationRequestException(crate::types::error::InvalidConfigurationRequestException),
44    /// <p>The requested action is not valid.</p>
45    InvalidLoadBalancerActionException(crate::types::error::InvalidLoadBalancerActionException),
46    /// <p>The provided revocation file is an invalid format, or uses an incorrect algorithm.</p>
47    InvalidRevocationContentException(crate::types::error::InvalidRevocationContentException),
48    /// <p>The requested scheme is not valid.</p>
49    InvalidSchemeException(crate::types::error::InvalidSchemeException),
50    /// <p>The specified security group does not exist.</p>
51    InvalidSecurityGroupException(crate::types::error::InvalidSecurityGroupException),
52    /// <p>The specified subnet is out of available addresses.</p>
53    InvalidSubnetException(crate::types::error::InvalidSubnetException),
54    /// <p>The specified target does not exist, is not in the same VPC as the target group, or has an unsupported instance type.</p>
55    InvalidTargetException(crate::types::error::InvalidTargetException),
56    /// <p>The specified listener does not exist.</p>
57    ListenerNotFoundException(crate::types::error::ListenerNotFoundException),
58    /// <p>The specified load balancer does not exist.</p>
59    LoadBalancerNotFoundException(crate::types::error::LoadBalancerNotFoundException),
60    /// <p>This operation is not allowed.</p>
61    OperationNotPermittedException(crate::types::error::OperationNotPermittedException),
62    /// <p>This operation is not allowed while a prior request has not been completed.</p>
63    PriorRequestNotCompleteException(crate::types::error::PriorRequestNotCompleteException),
64    /// <p>The specified priority is in use.</p>
65    PriorityInUseException(crate::types::error::PriorityInUseException),
66    /// <p>A specified resource is in use.</p>
67    ResourceInUseException(crate::types::error::ResourceInUseException),
68    /// <p>The specified resource does not exist.</p>
69    ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
70    /// <p>The specified revocation file does not exist.</p>
71    RevocationContentNotFoundException(crate::types::error::RevocationContentNotFoundException),
72    /// <p>The specified revocation ID does not exist.</p>
73    RevocationIdNotFoundException(crate::types::error::RevocationIdNotFoundException),
74    /// <p>The specified rule does not exist.</p>
75    RuleNotFoundException(crate::types::error::RuleNotFoundException),
76    /// <p>The specified SSL policy does not exist.</p>
77    SslPolicyNotFoundException(crate::types::error::SslPolicyNotFoundException),
78    /// <p>The specified subnet does not exist.</p>
79    SubnetNotFoundException(crate::types::error::SubnetNotFoundException),
80    /// <p>You've reached the limit on the number of load balancers per target group.</p>
81    TargetGroupAssociationLimitException(crate::types::error::TargetGroupAssociationLimitException),
82    /// <p>The specified target group does not exist.</p>
83    TargetGroupNotFoundException(crate::types::error::TargetGroupNotFoundException),
84    /// <p>You've reached the limit on the number of actions per rule.</p>
85    TooManyActionsException(crate::types::error::TooManyActionsException),
86    /// <p>You've reached the limit on the number of certificates per load balancer.</p>
87    TooManyCertificatesException(crate::types::error::TooManyCertificatesException),
88    /// <p>You've reached the limit on the number of listeners per load balancer.</p>
89    TooManyListenersException(crate::types::error::TooManyListenersException),
90    /// <p>You've reached the limit on the number of load balancers for your Amazon Web Services account.</p>
91    TooManyLoadBalancersException(crate::types::error::TooManyLoadBalancersException),
92    /// <p>You've reached the limit on the number of times a target can be registered with a load balancer.</p>
93    TooManyRegistrationsForTargetIdException(crate::types::error::TooManyRegistrationsForTargetIdException),
94    /// <p>You've reached the limit on the number of rules per load balancer.</p>
95    TooManyRulesException(crate::types::error::TooManyRulesException),
96    /// <p>You've reached the limit on the number of tags for this resource.</p>
97    TooManyTagsException(crate::types::error::TooManyTagsException),
98    /// <p>You've reached the limit on the number of target groups for your Amazon Web Services account.</p>
99    TooManyTargetGroupsException(crate::types::error::TooManyTargetGroupsException),
100    /// <p>You've reached the limit on the number of targets.</p>
101    TooManyTargetsException(crate::types::error::TooManyTargetsException),
102    /// <p>The specified trust store has too many revocation entries.</p>
103    TooManyTrustStoreRevocationEntriesException(crate::types::error::TooManyTrustStoreRevocationEntriesException),
104    /// <p>You've reached the limit on the number of trust stores for your Amazon Web Services account.</p>
105    TooManyTrustStoresException(crate::types::error::TooManyTrustStoresException),
106    /// <p>You've reached the limit on the number of unique target groups per load balancer across all listeners. If a target group is used by multiple actions for a load balancer, it is counted as only one use.</p>
107    TooManyUniqueTargetGroupsPerLoadBalancerException(crate::types::error::TooManyUniqueTargetGroupsPerLoadBalancerException),
108    /// <p>The specified association does not exist.</p>
109    TrustStoreAssociationNotFoundException(crate::types::error::TrustStoreAssociationNotFoundException),
110    /// <p>The specified trust store is currently in use.</p>
111    TrustStoreInUseException(crate::types::error::TrustStoreInUseException),
112    /// <p>The specified trust store does not exist.</p>
113    TrustStoreNotFoundException(crate::types::error::TrustStoreNotFoundException),
114    /// <p>The specified trust store is not active.</p>
115    TrustStoreNotReadyException(crate::types::error::TrustStoreNotReadyException),
116    /// <p>The specified protocol is not supported.</p>
117    UnsupportedProtocolException(crate::types::error::UnsupportedProtocolException),
118    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
119    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
120    variable wildcard pattern and check `.code()`:
121     \
122    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
123     \
124    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
125    Unhandled(crate::error::sealed_unhandled::Unhandled),
126}
127impl ::std::fmt::Display for Error {
128    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
129        match self {
130            Error::AlpnPolicyNotSupportedException(inner) => inner.fmt(f),
131            Error::AllocationIdNotFoundException(inner) => inner.fmt(f),
132            Error::AvailabilityZoneNotSupportedException(inner) => inner.fmt(f),
133            Error::CaCertificatesBundleNotFoundException(inner) => inner.fmt(f),
134            Error::CapacityDecreaseRequestsLimitExceededException(inner) => inner.fmt(f),
135            Error::CapacityReservationPendingException(inner) => inner.fmt(f),
136            Error::CapacityUnitsLimitExceededException(inner) => inner.fmt(f),
137            Error::CertificateNotFoundException(inner) => inner.fmt(f),
138            Error::DeleteAssociationSameAccountException(inner) => inner.fmt(f),
139            Error::DuplicateListenerException(inner) => inner.fmt(f),
140            Error::DuplicateLoadBalancerNameException(inner) => inner.fmt(f),
141            Error::DuplicateTagKeysException(inner) => inner.fmt(f),
142            Error::DuplicateTargetGroupNameException(inner) => inner.fmt(f),
143            Error::DuplicateTrustStoreNameException(inner) => inner.fmt(f),
144            Error::HealthUnavailableException(inner) => inner.fmt(f),
145            Error::IncompatibleProtocolsException(inner) => inner.fmt(f),
146            Error::InsufficientCapacityException(inner) => inner.fmt(f),
147            Error::InvalidCaCertificatesBundleException(inner) => inner.fmt(f),
148            Error::InvalidConfigurationRequestException(inner) => inner.fmt(f),
149            Error::InvalidLoadBalancerActionException(inner) => inner.fmt(f),
150            Error::InvalidRevocationContentException(inner) => inner.fmt(f),
151            Error::InvalidSchemeException(inner) => inner.fmt(f),
152            Error::InvalidSecurityGroupException(inner) => inner.fmt(f),
153            Error::InvalidSubnetException(inner) => inner.fmt(f),
154            Error::InvalidTargetException(inner) => inner.fmt(f),
155            Error::ListenerNotFoundException(inner) => inner.fmt(f),
156            Error::LoadBalancerNotFoundException(inner) => inner.fmt(f),
157            Error::OperationNotPermittedException(inner) => inner.fmt(f),
158            Error::PriorRequestNotCompleteException(inner) => inner.fmt(f),
159            Error::PriorityInUseException(inner) => inner.fmt(f),
160            Error::ResourceInUseException(inner) => inner.fmt(f),
161            Error::ResourceNotFoundException(inner) => inner.fmt(f),
162            Error::RevocationContentNotFoundException(inner) => inner.fmt(f),
163            Error::RevocationIdNotFoundException(inner) => inner.fmt(f),
164            Error::RuleNotFoundException(inner) => inner.fmt(f),
165            Error::SslPolicyNotFoundException(inner) => inner.fmt(f),
166            Error::SubnetNotFoundException(inner) => inner.fmt(f),
167            Error::TargetGroupAssociationLimitException(inner) => inner.fmt(f),
168            Error::TargetGroupNotFoundException(inner) => inner.fmt(f),
169            Error::TooManyActionsException(inner) => inner.fmt(f),
170            Error::TooManyCertificatesException(inner) => inner.fmt(f),
171            Error::TooManyListenersException(inner) => inner.fmt(f),
172            Error::TooManyLoadBalancersException(inner) => inner.fmt(f),
173            Error::TooManyRegistrationsForTargetIdException(inner) => inner.fmt(f),
174            Error::TooManyRulesException(inner) => inner.fmt(f),
175            Error::TooManyTagsException(inner) => inner.fmt(f),
176            Error::TooManyTargetGroupsException(inner) => inner.fmt(f),
177            Error::TooManyTargetsException(inner) => inner.fmt(f),
178            Error::TooManyTrustStoreRevocationEntriesException(inner) => inner.fmt(f),
179            Error::TooManyTrustStoresException(inner) => inner.fmt(f),
180            Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => inner.fmt(f),
181            Error::TrustStoreAssociationNotFoundException(inner) => inner.fmt(f),
182            Error::TrustStoreInUseException(inner) => inner.fmt(f),
183            Error::TrustStoreNotFoundException(inner) => inner.fmt(f),
184            Error::TrustStoreNotReadyException(inner) => inner.fmt(f),
185            Error::UnsupportedProtocolException(inner) => inner.fmt(f),
186            Error::Unhandled(_) => {
187                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
188                    write!(f, "unhandled error ({code})")
189                } else {
190                    f.write_str("unhandled error")
191                }
192            }
193        }
194    }
195}
196impl From<::aws_smithy_types::error::operation::BuildError> for Error {
197    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
198        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
199            source: value.into(),
200            meta: ::std::default::Default::default(),
201        })
202    }
203}
204impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
205    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
206        match self {
207            Self::AlpnPolicyNotSupportedException(inner) => inner.meta(),
208            Self::AllocationIdNotFoundException(inner) => inner.meta(),
209            Self::AvailabilityZoneNotSupportedException(inner) => inner.meta(),
210            Self::CaCertificatesBundleNotFoundException(inner) => inner.meta(),
211            Self::CapacityDecreaseRequestsLimitExceededException(inner) => inner.meta(),
212            Self::CapacityReservationPendingException(inner) => inner.meta(),
213            Self::CapacityUnitsLimitExceededException(inner) => inner.meta(),
214            Self::CertificateNotFoundException(inner) => inner.meta(),
215            Self::DeleteAssociationSameAccountException(inner) => inner.meta(),
216            Self::DuplicateListenerException(inner) => inner.meta(),
217            Self::DuplicateLoadBalancerNameException(inner) => inner.meta(),
218            Self::DuplicateTagKeysException(inner) => inner.meta(),
219            Self::DuplicateTargetGroupNameException(inner) => inner.meta(),
220            Self::DuplicateTrustStoreNameException(inner) => inner.meta(),
221            Self::HealthUnavailableException(inner) => inner.meta(),
222            Self::IncompatibleProtocolsException(inner) => inner.meta(),
223            Self::InsufficientCapacityException(inner) => inner.meta(),
224            Self::InvalidCaCertificatesBundleException(inner) => inner.meta(),
225            Self::InvalidConfigurationRequestException(inner) => inner.meta(),
226            Self::InvalidLoadBalancerActionException(inner) => inner.meta(),
227            Self::InvalidRevocationContentException(inner) => inner.meta(),
228            Self::InvalidSchemeException(inner) => inner.meta(),
229            Self::InvalidSecurityGroupException(inner) => inner.meta(),
230            Self::InvalidSubnetException(inner) => inner.meta(),
231            Self::InvalidTargetException(inner) => inner.meta(),
232            Self::ListenerNotFoundException(inner) => inner.meta(),
233            Self::LoadBalancerNotFoundException(inner) => inner.meta(),
234            Self::OperationNotPermittedException(inner) => inner.meta(),
235            Self::PriorRequestNotCompleteException(inner) => inner.meta(),
236            Self::PriorityInUseException(inner) => inner.meta(),
237            Self::ResourceInUseException(inner) => inner.meta(),
238            Self::ResourceNotFoundException(inner) => inner.meta(),
239            Self::RevocationContentNotFoundException(inner) => inner.meta(),
240            Self::RevocationIdNotFoundException(inner) => inner.meta(),
241            Self::RuleNotFoundException(inner) => inner.meta(),
242            Self::SslPolicyNotFoundException(inner) => inner.meta(),
243            Self::SubnetNotFoundException(inner) => inner.meta(),
244            Self::TargetGroupAssociationLimitException(inner) => inner.meta(),
245            Self::TargetGroupNotFoundException(inner) => inner.meta(),
246            Self::TooManyActionsException(inner) => inner.meta(),
247            Self::TooManyCertificatesException(inner) => inner.meta(),
248            Self::TooManyListenersException(inner) => inner.meta(),
249            Self::TooManyLoadBalancersException(inner) => inner.meta(),
250            Self::TooManyRegistrationsForTargetIdException(inner) => inner.meta(),
251            Self::TooManyRulesException(inner) => inner.meta(),
252            Self::TooManyTagsException(inner) => inner.meta(),
253            Self::TooManyTargetGroupsException(inner) => inner.meta(),
254            Self::TooManyTargetsException(inner) => inner.meta(),
255            Self::TooManyTrustStoreRevocationEntriesException(inner) => inner.meta(),
256            Self::TooManyTrustStoresException(inner) => inner.meta(),
257            Self::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => inner.meta(),
258            Self::TrustStoreAssociationNotFoundException(inner) => inner.meta(),
259            Self::TrustStoreInUseException(inner) => inner.meta(),
260            Self::TrustStoreNotFoundException(inner) => inner.meta(),
261            Self::TrustStoreNotReadyException(inner) => inner.meta(),
262            Self::UnsupportedProtocolException(inner) => inner.meta(),
263            Self::Unhandled(inner) => &inner.meta,
264        }
265    }
266}
267impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_listener_certificates::AddListenerCertificatesError, R>>
268    for Error
269where
270    R: Send + Sync + std::fmt::Debug + 'static,
271{
272    fn from(
273        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_listener_certificates::AddListenerCertificatesError, R>,
274    ) -> Self {
275        match err {
276            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
277            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
278                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
279                source: err.into(),
280            }),
281        }
282    }
283}
284impl From<crate::operation::add_listener_certificates::AddListenerCertificatesError> for Error {
285    fn from(err: crate::operation::add_listener_certificates::AddListenerCertificatesError) -> Self {
286        match err {
287            crate::operation::add_listener_certificates::AddListenerCertificatesError::CertificateNotFoundException(inner) => {
288                Error::CertificateNotFoundException(inner)
289            }
290            crate::operation::add_listener_certificates::AddListenerCertificatesError::ListenerNotFoundException(inner) => {
291                Error::ListenerNotFoundException(inner)
292            }
293            crate::operation::add_listener_certificates::AddListenerCertificatesError::TooManyCertificatesException(inner) => {
294                Error::TooManyCertificatesException(inner)
295            }
296            crate::operation::add_listener_certificates::AddListenerCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
297        }
298    }
299}
300impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags::AddTagsError, R>> for Error
301where
302    R: Send + Sync + std::fmt::Debug + 'static,
303{
304    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_tags::AddTagsError, R>) -> Self {
305        match err {
306            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
307            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
308                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
309                source: err.into(),
310            }),
311        }
312    }
313}
314impl From<crate::operation::add_tags::AddTagsError> for Error {
315    fn from(err: crate::operation::add_tags::AddTagsError) -> Self {
316        match err {
317            crate::operation::add_tags::AddTagsError::DuplicateTagKeysException(inner) => Error::DuplicateTagKeysException(inner),
318            crate::operation::add_tags::AddTagsError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
319            crate::operation::add_tags::AddTagsError::LoadBalancerNotFoundException(inner) => Error::LoadBalancerNotFoundException(inner),
320            crate::operation::add_tags::AddTagsError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
321            crate::operation::add_tags::AddTagsError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
322            crate::operation::add_tags::AddTagsError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
323            crate::operation::add_tags::AddTagsError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
324            crate::operation::add_tags::AddTagsError::Unhandled(inner) => Error::Unhandled(inner),
325        }
326    }
327}
328impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError, R>>
329    for Error
330where
331    R: Send + Sync + std::fmt::Debug + 'static,
332{
333    fn from(
334        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError, R>,
335    ) -> Self {
336        match err {
337            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
338            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
339                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
340                source: err.into(),
341            }),
342        }
343    }
344}
345impl From<crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError> for Error {
346    fn from(err: crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError) -> Self {
347        match err {
348            crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError::InvalidRevocationContentException(inner) => {
349                Error::InvalidRevocationContentException(inner)
350            }
351            crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError::RevocationContentNotFoundException(inner) => {
352                Error::RevocationContentNotFoundException(inner)
353            }
354            crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError::TooManyTrustStoreRevocationEntriesException(inner) => {
355                Error::TooManyTrustStoreRevocationEntriesException(inner)
356            }
357            crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError::TrustStoreNotFoundException(inner) => {
358                Error::TrustStoreNotFoundException(inner)
359            }
360            crate::operation::add_trust_store_revocations::AddTrustStoreRevocationsError::Unhandled(inner) => Error::Unhandled(inner),
361        }
362    }
363}
364impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_listener::CreateListenerError, R>> for Error
365where
366    R: Send + Sync + std::fmt::Debug + 'static,
367{
368    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_listener::CreateListenerError, R>) -> Self {
369        match err {
370            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
371            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
372                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
373                source: err.into(),
374            }),
375        }
376    }
377}
378impl From<crate::operation::create_listener::CreateListenerError> for Error {
379    fn from(err: crate::operation::create_listener::CreateListenerError) -> Self {
380        match err {
381            crate::operation::create_listener::CreateListenerError::AlpnPolicyNotSupportedException(inner) => {
382                Error::AlpnPolicyNotSupportedException(inner)
383            }
384            crate::operation::create_listener::CreateListenerError::CertificateNotFoundException(inner) => Error::CertificateNotFoundException(inner),
385            crate::operation::create_listener::CreateListenerError::DuplicateListenerException(inner) => Error::DuplicateListenerException(inner),
386            crate::operation::create_listener::CreateListenerError::IncompatibleProtocolsException(inner) => {
387                Error::IncompatibleProtocolsException(inner)
388            }
389            crate::operation::create_listener::CreateListenerError::InvalidConfigurationRequestException(inner) => {
390                Error::InvalidConfigurationRequestException(inner)
391            }
392            crate::operation::create_listener::CreateListenerError::InvalidLoadBalancerActionException(inner) => {
393                Error::InvalidLoadBalancerActionException(inner)
394            }
395            crate::operation::create_listener::CreateListenerError::LoadBalancerNotFoundException(inner) => {
396                Error::LoadBalancerNotFoundException(inner)
397            }
398            crate::operation::create_listener::CreateListenerError::SslPolicyNotFoundException(inner) => Error::SslPolicyNotFoundException(inner),
399            crate::operation::create_listener::CreateListenerError::TargetGroupAssociationLimitException(inner) => {
400                Error::TargetGroupAssociationLimitException(inner)
401            }
402            crate::operation::create_listener::CreateListenerError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
403            crate::operation::create_listener::CreateListenerError::TooManyActionsException(inner) => Error::TooManyActionsException(inner),
404            crate::operation::create_listener::CreateListenerError::TooManyCertificatesException(inner) => Error::TooManyCertificatesException(inner),
405            crate::operation::create_listener::CreateListenerError::TooManyListenersException(inner) => Error::TooManyListenersException(inner),
406            crate::operation::create_listener::CreateListenerError::TooManyRegistrationsForTargetIdException(inner) => {
407                Error::TooManyRegistrationsForTargetIdException(inner)
408            }
409            crate::operation::create_listener::CreateListenerError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
410            crate::operation::create_listener::CreateListenerError::TooManyTargetsException(inner) => Error::TooManyTargetsException(inner),
411            crate::operation::create_listener::CreateListenerError::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => {
412                Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner)
413            }
414            crate::operation::create_listener::CreateListenerError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
415            crate::operation::create_listener::CreateListenerError::TrustStoreNotReadyException(inner) => Error::TrustStoreNotReadyException(inner),
416            crate::operation::create_listener::CreateListenerError::UnsupportedProtocolException(inner) => Error::UnsupportedProtocolException(inner),
417            crate::operation::create_listener::CreateListenerError::Unhandled(inner) => Error::Unhandled(inner),
418        }
419    }
420}
421impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_load_balancer::CreateLoadBalancerError, R>> for Error
422where
423    R: Send + Sync + std::fmt::Debug + 'static,
424{
425    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_load_balancer::CreateLoadBalancerError, R>) -> Self {
426        match err {
427            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
428            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
429                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
430                source: err.into(),
431            }),
432        }
433    }
434}
435impl From<crate::operation::create_load_balancer::CreateLoadBalancerError> for Error {
436    fn from(err: crate::operation::create_load_balancer::CreateLoadBalancerError) -> Self {
437        match err {
438            crate::operation::create_load_balancer::CreateLoadBalancerError::AllocationIdNotFoundException(inner) => {
439                Error::AllocationIdNotFoundException(inner)
440            }
441            crate::operation::create_load_balancer::CreateLoadBalancerError::AvailabilityZoneNotSupportedException(inner) => {
442                Error::AvailabilityZoneNotSupportedException(inner)
443            }
444            crate::operation::create_load_balancer::CreateLoadBalancerError::DuplicateLoadBalancerNameException(inner) => {
445                Error::DuplicateLoadBalancerNameException(inner)
446            }
447            crate::operation::create_load_balancer::CreateLoadBalancerError::DuplicateTagKeysException(inner) => {
448                Error::DuplicateTagKeysException(inner)
449            }
450            crate::operation::create_load_balancer::CreateLoadBalancerError::InvalidConfigurationRequestException(inner) => {
451                Error::InvalidConfigurationRequestException(inner)
452            }
453            crate::operation::create_load_balancer::CreateLoadBalancerError::InvalidSchemeException(inner) => Error::InvalidSchemeException(inner),
454            crate::operation::create_load_balancer::CreateLoadBalancerError::InvalidSecurityGroupException(inner) => {
455                Error::InvalidSecurityGroupException(inner)
456            }
457            crate::operation::create_load_balancer::CreateLoadBalancerError::InvalidSubnetException(inner) => Error::InvalidSubnetException(inner),
458            crate::operation::create_load_balancer::CreateLoadBalancerError::OperationNotPermittedException(inner) => {
459                Error::OperationNotPermittedException(inner)
460            }
461            crate::operation::create_load_balancer::CreateLoadBalancerError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
462            crate::operation::create_load_balancer::CreateLoadBalancerError::SubnetNotFoundException(inner) => Error::SubnetNotFoundException(inner),
463            crate::operation::create_load_balancer::CreateLoadBalancerError::TooManyLoadBalancersException(inner) => {
464                Error::TooManyLoadBalancersException(inner)
465            }
466            crate::operation::create_load_balancer::CreateLoadBalancerError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
467            crate::operation::create_load_balancer::CreateLoadBalancerError::Unhandled(inner) => Error::Unhandled(inner),
468        }
469    }
470}
471impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule::CreateRuleError, R>> for Error
472where
473    R: Send + Sync + std::fmt::Debug + 'static,
474{
475    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_rule::CreateRuleError, R>) -> Self {
476        match err {
477            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
478            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
479                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
480                source: err.into(),
481            }),
482        }
483    }
484}
485impl From<crate::operation::create_rule::CreateRuleError> for Error {
486    fn from(err: crate::operation::create_rule::CreateRuleError) -> Self {
487        match err {
488            crate::operation::create_rule::CreateRuleError::IncompatibleProtocolsException(inner) => Error::IncompatibleProtocolsException(inner),
489            crate::operation::create_rule::CreateRuleError::InvalidConfigurationRequestException(inner) => {
490                Error::InvalidConfigurationRequestException(inner)
491            }
492            crate::operation::create_rule::CreateRuleError::InvalidLoadBalancerActionException(inner) => {
493                Error::InvalidLoadBalancerActionException(inner)
494            }
495            crate::operation::create_rule::CreateRuleError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
496            crate::operation::create_rule::CreateRuleError::PriorityInUseException(inner) => Error::PriorityInUseException(inner),
497            crate::operation::create_rule::CreateRuleError::TargetGroupAssociationLimitException(inner) => {
498                Error::TargetGroupAssociationLimitException(inner)
499            }
500            crate::operation::create_rule::CreateRuleError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
501            crate::operation::create_rule::CreateRuleError::TooManyActionsException(inner) => Error::TooManyActionsException(inner),
502            crate::operation::create_rule::CreateRuleError::TooManyRegistrationsForTargetIdException(inner) => {
503                Error::TooManyRegistrationsForTargetIdException(inner)
504            }
505            crate::operation::create_rule::CreateRuleError::TooManyRulesException(inner) => Error::TooManyRulesException(inner),
506            crate::operation::create_rule::CreateRuleError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
507            crate::operation::create_rule::CreateRuleError::TooManyTargetGroupsException(inner) => Error::TooManyTargetGroupsException(inner),
508            crate::operation::create_rule::CreateRuleError::TooManyTargetsException(inner) => Error::TooManyTargetsException(inner),
509            crate::operation::create_rule::CreateRuleError::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => {
510                Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner)
511            }
512            crate::operation::create_rule::CreateRuleError::UnsupportedProtocolException(inner) => Error::UnsupportedProtocolException(inner),
513            crate::operation::create_rule::CreateRuleError::Unhandled(inner) => Error::Unhandled(inner),
514        }
515    }
516}
517impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_target_group::CreateTargetGroupError, R>> for Error
518where
519    R: Send + Sync + std::fmt::Debug + 'static,
520{
521    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_target_group::CreateTargetGroupError, R>) -> Self {
522        match err {
523            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
524            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
525                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
526                source: err.into(),
527            }),
528        }
529    }
530}
531impl From<crate::operation::create_target_group::CreateTargetGroupError> for Error {
532    fn from(err: crate::operation::create_target_group::CreateTargetGroupError) -> Self {
533        match err {
534            crate::operation::create_target_group::CreateTargetGroupError::DuplicateTargetGroupNameException(inner) => {
535                Error::DuplicateTargetGroupNameException(inner)
536            }
537            crate::operation::create_target_group::CreateTargetGroupError::InvalidConfigurationRequestException(inner) => {
538                Error::InvalidConfigurationRequestException(inner)
539            }
540            crate::operation::create_target_group::CreateTargetGroupError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
541            crate::operation::create_target_group::CreateTargetGroupError::TooManyTargetGroupsException(inner) => {
542                Error::TooManyTargetGroupsException(inner)
543            }
544            crate::operation::create_target_group::CreateTargetGroupError::Unhandled(inner) => Error::Unhandled(inner),
545        }
546    }
547}
548impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trust_store::CreateTrustStoreError, R>> for Error
549where
550    R: Send + Sync + std::fmt::Debug + 'static,
551{
552    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_trust_store::CreateTrustStoreError, R>) -> Self {
553        match err {
554            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
555            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
556                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
557                source: err.into(),
558            }),
559        }
560    }
561}
562impl From<crate::operation::create_trust_store::CreateTrustStoreError> for Error {
563    fn from(err: crate::operation::create_trust_store::CreateTrustStoreError) -> Self {
564        match err {
565            crate::operation::create_trust_store::CreateTrustStoreError::CaCertificatesBundleNotFoundException(inner) => {
566                Error::CaCertificatesBundleNotFoundException(inner)
567            }
568            crate::operation::create_trust_store::CreateTrustStoreError::DuplicateTagKeysException(inner) => Error::DuplicateTagKeysException(inner),
569            crate::operation::create_trust_store::CreateTrustStoreError::DuplicateTrustStoreNameException(inner) => {
570                Error::DuplicateTrustStoreNameException(inner)
571            }
572            crate::operation::create_trust_store::CreateTrustStoreError::InvalidCaCertificatesBundleException(inner) => {
573                Error::InvalidCaCertificatesBundleException(inner)
574            }
575            crate::operation::create_trust_store::CreateTrustStoreError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
576            crate::operation::create_trust_store::CreateTrustStoreError::TooManyTrustStoresException(inner) => {
577                Error::TooManyTrustStoresException(inner)
578            }
579            crate::operation::create_trust_store::CreateTrustStoreError::Unhandled(inner) => Error::Unhandled(inner),
580        }
581    }
582}
583impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_listener::DeleteListenerError, R>> for Error
584where
585    R: Send + Sync + std::fmt::Debug + 'static,
586{
587    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_listener::DeleteListenerError, R>) -> Self {
588        match err {
589            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
590            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
591                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
592                source: err.into(),
593            }),
594        }
595    }
596}
597impl From<crate::operation::delete_listener::DeleteListenerError> for Error {
598    fn from(err: crate::operation::delete_listener::DeleteListenerError) -> Self {
599        match err {
600            crate::operation::delete_listener::DeleteListenerError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
601            crate::operation::delete_listener::DeleteListenerError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
602            crate::operation::delete_listener::DeleteListenerError::Unhandled(inner) => Error::Unhandled(inner),
603        }
604    }
605}
606impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_load_balancer::DeleteLoadBalancerError, R>> for Error
607where
608    R: Send + Sync + std::fmt::Debug + 'static,
609{
610    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_load_balancer::DeleteLoadBalancerError, R>) -> Self {
611        match err {
612            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
613            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
614                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
615                source: err.into(),
616            }),
617        }
618    }
619}
620impl From<crate::operation::delete_load_balancer::DeleteLoadBalancerError> for Error {
621    fn from(err: crate::operation::delete_load_balancer::DeleteLoadBalancerError) -> Self {
622        match err {
623            crate::operation::delete_load_balancer::DeleteLoadBalancerError::LoadBalancerNotFoundException(inner) => {
624                Error::LoadBalancerNotFoundException(inner)
625            }
626            crate::operation::delete_load_balancer::DeleteLoadBalancerError::OperationNotPermittedException(inner) => {
627                Error::OperationNotPermittedException(inner)
628            }
629            crate::operation::delete_load_balancer::DeleteLoadBalancerError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
630            crate::operation::delete_load_balancer::DeleteLoadBalancerError::Unhandled(inner) => Error::Unhandled(inner),
631        }
632    }
633}
634impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule::DeleteRuleError, R>> for Error
635where
636    R: Send + Sync + std::fmt::Debug + 'static,
637{
638    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_rule::DeleteRuleError, R>) -> Self {
639        match err {
640            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
641            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
642                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
643                source: err.into(),
644            }),
645        }
646    }
647}
648impl From<crate::operation::delete_rule::DeleteRuleError> for Error {
649    fn from(err: crate::operation::delete_rule::DeleteRuleError) -> Self {
650        match err {
651            crate::operation::delete_rule::DeleteRuleError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
652            crate::operation::delete_rule::DeleteRuleError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
653            crate::operation::delete_rule::DeleteRuleError::Unhandled(inner) => Error::Unhandled(inner),
654        }
655    }
656}
657impl<R>
658    From<
659        ::aws_smithy_runtime_api::client::result::SdkError<
660            crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError,
661            R,
662        >,
663    > for Error
664where
665    R: Send + Sync + std::fmt::Debug + 'static,
666{
667    fn from(
668        err: ::aws_smithy_runtime_api::client::result::SdkError<
669            crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError,
670            R,
671        >,
672    ) -> Self {
673        match err {
674            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
675            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
676                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
677                source: err.into(),
678            }),
679        }
680    }
681}
682impl From<crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError> for Error {
683    fn from(err: crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError) -> Self {
684        match err {
685            crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError::DeleteAssociationSameAccountException(inner) => Error::DeleteAssociationSameAccountException(inner),
686            crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError::TrustStoreAssociationNotFoundException(inner) => Error::TrustStoreAssociationNotFoundException(inner),
687            crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
688            crate::operation::delete_shared_trust_store_association::DeleteSharedTrustStoreAssociationError::Unhandled(inner) => Error::Unhandled(inner),
689        }
690    }
691}
692impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_target_group::DeleteTargetGroupError, R>> for Error
693where
694    R: Send + Sync + std::fmt::Debug + 'static,
695{
696    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_target_group::DeleteTargetGroupError, R>) -> Self {
697        match err {
698            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
699            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
700                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
701                source: err.into(),
702            }),
703        }
704    }
705}
706impl From<crate::operation::delete_target_group::DeleteTargetGroupError> for Error {
707    fn from(err: crate::operation::delete_target_group::DeleteTargetGroupError) -> Self {
708        match err {
709            crate::operation::delete_target_group::DeleteTargetGroupError::ResourceInUseException(inner) => Error::ResourceInUseException(inner),
710            crate::operation::delete_target_group::DeleteTargetGroupError::Unhandled(inner) => Error::Unhandled(inner),
711        }
712    }
713}
714impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trust_store::DeleteTrustStoreError, R>> for Error
715where
716    R: Send + Sync + std::fmt::Debug + 'static,
717{
718    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_trust_store::DeleteTrustStoreError, R>) -> Self {
719        match err {
720            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
721            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
722                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
723                source: err.into(),
724            }),
725        }
726    }
727}
728impl From<crate::operation::delete_trust_store::DeleteTrustStoreError> for Error {
729    fn from(err: crate::operation::delete_trust_store::DeleteTrustStoreError) -> Self {
730        match err {
731            crate::operation::delete_trust_store::DeleteTrustStoreError::TrustStoreInUseException(inner) => Error::TrustStoreInUseException(inner),
732            crate::operation::delete_trust_store::DeleteTrustStoreError::TrustStoreNotFoundException(inner) => {
733                Error::TrustStoreNotFoundException(inner)
734            }
735            crate::operation::delete_trust_store::DeleteTrustStoreError::Unhandled(inner) => Error::Unhandled(inner),
736        }
737    }
738}
739impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_targets::DeregisterTargetsError, R>> for Error
740where
741    R: Send + Sync + std::fmt::Debug + 'static,
742{
743    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::deregister_targets::DeregisterTargetsError, R>) -> Self {
744        match err {
745            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
746            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
747                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
748                source: err.into(),
749            }),
750        }
751    }
752}
753impl From<crate::operation::deregister_targets::DeregisterTargetsError> for Error {
754    fn from(err: crate::operation::deregister_targets::DeregisterTargetsError) -> Self {
755        match err {
756            crate::operation::deregister_targets::DeregisterTargetsError::InvalidTargetException(inner) => Error::InvalidTargetException(inner),
757            crate::operation::deregister_targets::DeregisterTargetsError::TargetGroupNotFoundException(inner) => {
758                Error::TargetGroupNotFoundException(inner)
759            }
760            crate::operation::deregister_targets::DeregisterTargetsError::Unhandled(inner) => Error::Unhandled(inner),
761        }
762    }
763}
764impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>> for Error
765where
766    R: Send + Sync + std::fmt::Debug + 'static,
767{
768    fn from(
769        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_account_limits::DescribeAccountLimitsError, R>,
770    ) -> Self {
771        match err {
772            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
773            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
774                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
775                source: err.into(),
776            }),
777        }
778    }
779}
780impl From<crate::operation::describe_account_limits::DescribeAccountLimitsError> for Error {
781    fn from(err: crate::operation::describe_account_limits::DescribeAccountLimitsError) -> Self {
782        match err {
783            crate::operation::describe_account_limits::DescribeAccountLimitsError::Unhandled(inner) => Error::Unhandled(inner),
784        }
785    }
786}
787impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_reservation::DescribeCapacityReservationError, R>>
788    for Error
789where
790    R: Send + Sync + std::fmt::Debug + 'static,
791{
792    fn from(
793        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_capacity_reservation::DescribeCapacityReservationError, R>,
794    ) -> Self {
795        match err {
796            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
797            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
798                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
799                source: err.into(),
800            }),
801        }
802    }
803}
804impl From<crate::operation::describe_capacity_reservation::DescribeCapacityReservationError> for Error {
805    fn from(err: crate::operation::describe_capacity_reservation::DescribeCapacityReservationError) -> Self {
806        match err {
807            crate::operation::describe_capacity_reservation::DescribeCapacityReservationError::LoadBalancerNotFoundException(inner) => {
808                Error::LoadBalancerNotFoundException(inner)
809            }
810            crate::operation::describe_capacity_reservation::DescribeCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
811        }
812    }
813}
814impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_listener_attributes::DescribeListenerAttributesError, R>>
815    for Error
816where
817    R: Send + Sync + std::fmt::Debug + 'static,
818{
819    fn from(
820        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_listener_attributes::DescribeListenerAttributesError, R>,
821    ) -> Self {
822        match err {
823            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
824            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
825                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
826                source: err.into(),
827            }),
828        }
829    }
830}
831impl From<crate::operation::describe_listener_attributes::DescribeListenerAttributesError> for Error {
832    fn from(err: crate::operation::describe_listener_attributes::DescribeListenerAttributesError) -> Self {
833        match err {
834            crate::operation::describe_listener_attributes::DescribeListenerAttributesError::ListenerNotFoundException(inner) => {
835                Error::ListenerNotFoundException(inner)
836            }
837            crate::operation::describe_listener_attributes::DescribeListenerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
838        }
839    }
840}
841impl<R>
842    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_listener_certificates::DescribeListenerCertificatesError, R>>
843    for Error
844where
845    R: Send + Sync + std::fmt::Debug + 'static,
846{
847    fn from(
848        err: ::aws_smithy_runtime_api::client::result::SdkError<
849            crate::operation::describe_listener_certificates::DescribeListenerCertificatesError,
850            R,
851        >,
852    ) -> Self {
853        match err {
854            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
855            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
856                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
857                source: err.into(),
858            }),
859        }
860    }
861}
862impl From<crate::operation::describe_listener_certificates::DescribeListenerCertificatesError> for Error {
863    fn from(err: crate::operation::describe_listener_certificates::DescribeListenerCertificatesError) -> Self {
864        match err {
865            crate::operation::describe_listener_certificates::DescribeListenerCertificatesError::ListenerNotFoundException(inner) => {
866                Error::ListenerNotFoundException(inner)
867            }
868            crate::operation::describe_listener_certificates::DescribeListenerCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
869        }
870    }
871}
872impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_listeners::DescribeListenersError, R>> for Error
873where
874    R: Send + Sync + std::fmt::Debug + 'static,
875{
876    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_listeners::DescribeListenersError, R>) -> Self {
877        match err {
878            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
879            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
880                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
881                source: err.into(),
882            }),
883        }
884    }
885}
886impl From<crate::operation::describe_listeners::DescribeListenersError> for Error {
887    fn from(err: crate::operation::describe_listeners::DescribeListenersError) -> Self {
888        match err {
889            crate::operation::describe_listeners::DescribeListenersError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
890            crate::operation::describe_listeners::DescribeListenersError::LoadBalancerNotFoundException(inner) => {
891                Error::LoadBalancerNotFoundException(inner)
892            }
893            crate::operation::describe_listeners::DescribeListenersError::UnsupportedProtocolException(inner) => {
894                Error::UnsupportedProtocolException(inner)
895            }
896            crate::operation::describe_listeners::DescribeListenersError::Unhandled(inner) => Error::Unhandled(inner),
897        }
898    }
899}
900impl<R>
901    From<
902        ::aws_smithy_runtime_api::client::result::SdkError<
903            crate::operation::describe_load_balancer_attributes::DescribeLoadBalancerAttributesError,
904            R,
905        >,
906    > for Error
907where
908    R: Send + Sync + std::fmt::Debug + 'static,
909{
910    fn from(
911        err: ::aws_smithy_runtime_api::client::result::SdkError<
912            crate::operation::describe_load_balancer_attributes::DescribeLoadBalancerAttributesError,
913            R,
914        >,
915    ) -> Self {
916        match err {
917            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
918            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
919                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
920                source: err.into(),
921            }),
922        }
923    }
924}
925impl From<crate::operation::describe_load_balancer_attributes::DescribeLoadBalancerAttributesError> for Error {
926    fn from(err: crate::operation::describe_load_balancer_attributes::DescribeLoadBalancerAttributesError) -> Self {
927        match err {
928            crate::operation::describe_load_balancer_attributes::DescribeLoadBalancerAttributesError::LoadBalancerNotFoundException(inner) => {
929                Error::LoadBalancerNotFoundException(inner)
930            }
931            crate::operation::describe_load_balancer_attributes::DescribeLoadBalancerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
932        }
933    }
934}
935impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_load_balancers::DescribeLoadBalancersError, R>> for Error
936where
937    R: Send + Sync + std::fmt::Debug + 'static,
938{
939    fn from(
940        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_load_balancers::DescribeLoadBalancersError, R>,
941    ) -> Self {
942        match err {
943            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
944            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
945                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
946                source: err.into(),
947            }),
948        }
949    }
950}
951impl From<crate::operation::describe_load_balancers::DescribeLoadBalancersError> for Error {
952    fn from(err: crate::operation::describe_load_balancers::DescribeLoadBalancersError) -> Self {
953        match err {
954            crate::operation::describe_load_balancers::DescribeLoadBalancersError::LoadBalancerNotFoundException(inner) => {
955                Error::LoadBalancerNotFoundException(inner)
956            }
957            crate::operation::describe_load_balancers::DescribeLoadBalancersError::Unhandled(inner) => Error::Unhandled(inner),
958        }
959    }
960}
961impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rules::DescribeRulesError, R>> for Error
962where
963    R: Send + Sync + std::fmt::Debug + 'static,
964{
965    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_rules::DescribeRulesError, R>) -> Self {
966        match err {
967            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
968            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
969                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
970                source: err.into(),
971            }),
972        }
973    }
974}
975impl From<crate::operation::describe_rules::DescribeRulesError> for Error {
976    fn from(err: crate::operation::describe_rules::DescribeRulesError) -> Self {
977        match err {
978            crate::operation::describe_rules::DescribeRulesError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
979            crate::operation::describe_rules::DescribeRulesError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
980            crate::operation::describe_rules::DescribeRulesError::UnsupportedProtocolException(inner) => Error::UnsupportedProtocolException(inner),
981            crate::operation::describe_rules::DescribeRulesError::Unhandled(inner) => Error::Unhandled(inner),
982        }
983    }
984}
985impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ssl_policies::DescribeSSLPoliciesError, R>> for Error
986where
987    R: Send + Sync + std::fmt::Debug + 'static,
988{
989    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_ssl_policies::DescribeSSLPoliciesError, R>) -> Self {
990        match err {
991            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
992            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
993                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
994                source: err.into(),
995            }),
996        }
997    }
998}
999impl From<crate::operation::describe_ssl_policies::DescribeSSLPoliciesError> for Error {
1000    fn from(err: crate::operation::describe_ssl_policies::DescribeSSLPoliciesError) -> Self {
1001        match err {
1002            crate::operation::describe_ssl_policies::DescribeSSLPoliciesError::SslPolicyNotFoundException(inner) => {
1003                Error::SslPolicyNotFoundException(inner)
1004            }
1005            crate::operation::describe_ssl_policies::DescribeSSLPoliciesError::Unhandled(inner) => Error::Unhandled(inner),
1006        }
1007    }
1008}
1009impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>> for Error
1010where
1011    R: Send + Sync + std::fmt::Debug + 'static,
1012{
1013    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_tags::DescribeTagsError, R>) -> Self {
1014        match err {
1015            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1016            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1017                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1018                source: err.into(),
1019            }),
1020        }
1021    }
1022}
1023impl From<crate::operation::describe_tags::DescribeTagsError> for Error {
1024    fn from(err: crate::operation::describe_tags::DescribeTagsError) -> Self {
1025        match err {
1026            crate::operation::describe_tags::DescribeTagsError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
1027            crate::operation::describe_tags::DescribeTagsError::LoadBalancerNotFoundException(inner) => Error::LoadBalancerNotFoundException(inner),
1028            crate::operation::describe_tags::DescribeTagsError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
1029            crate::operation::describe_tags::DescribeTagsError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
1030            crate::operation::describe_tags::DescribeTagsError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
1031            crate::operation::describe_tags::DescribeTagsError::Unhandled(inner) => Error::Unhandled(inner),
1032        }
1033    }
1034}
1035impl<R>
1036    From<
1037        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_target_group_attributes::DescribeTargetGroupAttributesError, R>,
1038    > for Error
1039where
1040    R: Send + Sync + std::fmt::Debug + 'static,
1041{
1042    fn from(
1043        err: ::aws_smithy_runtime_api::client::result::SdkError<
1044            crate::operation::describe_target_group_attributes::DescribeTargetGroupAttributesError,
1045            R,
1046        >,
1047    ) -> Self {
1048        match err {
1049            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1050            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1051                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1052                source: err.into(),
1053            }),
1054        }
1055    }
1056}
1057impl From<crate::operation::describe_target_group_attributes::DescribeTargetGroupAttributesError> for Error {
1058    fn from(err: crate::operation::describe_target_group_attributes::DescribeTargetGroupAttributesError) -> Self {
1059        match err {
1060            crate::operation::describe_target_group_attributes::DescribeTargetGroupAttributesError::TargetGroupNotFoundException(inner) => {
1061                Error::TargetGroupNotFoundException(inner)
1062            }
1063            crate::operation::describe_target_group_attributes::DescribeTargetGroupAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1064        }
1065    }
1066}
1067impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_target_groups::DescribeTargetGroupsError, R>> for Error
1068where
1069    R: Send + Sync + std::fmt::Debug + 'static,
1070{
1071    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_target_groups::DescribeTargetGroupsError, R>) -> Self {
1072        match err {
1073            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1074            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1075                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1076                source: err.into(),
1077            }),
1078        }
1079    }
1080}
1081impl From<crate::operation::describe_target_groups::DescribeTargetGroupsError> for Error {
1082    fn from(err: crate::operation::describe_target_groups::DescribeTargetGroupsError) -> Self {
1083        match err {
1084            crate::operation::describe_target_groups::DescribeTargetGroupsError::LoadBalancerNotFoundException(inner) => {
1085                Error::LoadBalancerNotFoundException(inner)
1086            }
1087            crate::operation::describe_target_groups::DescribeTargetGroupsError::TargetGroupNotFoundException(inner) => {
1088                Error::TargetGroupNotFoundException(inner)
1089            }
1090            crate::operation::describe_target_groups::DescribeTargetGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1091        }
1092    }
1093}
1094impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_target_health::DescribeTargetHealthError, R>> for Error
1095where
1096    R: Send + Sync + std::fmt::Debug + 'static,
1097{
1098    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_target_health::DescribeTargetHealthError, R>) -> Self {
1099        match err {
1100            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1101            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1102                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1103                source: err.into(),
1104            }),
1105        }
1106    }
1107}
1108impl From<crate::operation::describe_target_health::DescribeTargetHealthError> for Error {
1109    fn from(err: crate::operation::describe_target_health::DescribeTargetHealthError) -> Self {
1110        match err {
1111            crate::operation::describe_target_health::DescribeTargetHealthError::HealthUnavailableException(inner) => {
1112                Error::HealthUnavailableException(inner)
1113            }
1114            crate::operation::describe_target_health::DescribeTargetHealthError::InvalidTargetException(inner) => {
1115                Error::InvalidTargetException(inner)
1116            }
1117            crate::operation::describe_target_health::DescribeTargetHealthError::TargetGroupNotFoundException(inner) => {
1118                Error::TargetGroupNotFoundException(inner)
1119            }
1120            crate::operation::describe_target_health::DescribeTargetHealthError::Unhandled(inner) => Error::Unhandled(inner),
1121        }
1122    }
1123}
1124impl<R>
1125    From<
1126        ::aws_smithy_runtime_api::client::result::SdkError<
1127            crate::operation::describe_trust_store_associations::DescribeTrustStoreAssociationsError,
1128            R,
1129        >,
1130    > for Error
1131where
1132    R: Send + Sync + std::fmt::Debug + 'static,
1133{
1134    fn from(
1135        err: ::aws_smithy_runtime_api::client::result::SdkError<
1136            crate::operation::describe_trust_store_associations::DescribeTrustStoreAssociationsError,
1137            R,
1138        >,
1139    ) -> Self {
1140        match err {
1141            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1142            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1143                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1144                source: err.into(),
1145            }),
1146        }
1147    }
1148}
1149impl From<crate::operation::describe_trust_store_associations::DescribeTrustStoreAssociationsError> for Error {
1150    fn from(err: crate::operation::describe_trust_store_associations::DescribeTrustStoreAssociationsError) -> Self {
1151        match err {
1152            crate::operation::describe_trust_store_associations::DescribeTrustStoreAssociationsError::TrustStoreNotFoundException(inner) => {
1153                Error::TrustStoreNotFoundException(inner)
1154            }
1155            crate::operation::describe_trust_store_associations::DescribeTrustStoreAssociationsError::Unhandled(inner) => Error::Unhandled(inner),
1156        }
1157    }
1158}
1159impl<R>
1160    From<
1161        ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError, R>,
1162    > for Error
1163where
1164    R: Send + Sync + std::fmt::Debug + 'static,
1165{
1166    fn from(
1167        err: ::aws_smithy_runtime_api::client::result::SdkError<
1168            crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError,
1169            R,
1170        >,
1171    ) -> Self {
1172        match err {
1173            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1174            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1175                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1176                source: err.into(),
1177            }),
1178        }
1179    }
1180}
1181impl From<crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError> for Error {
1182    fn from(err: crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError) -> Self {
1183        match err {
1184            crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError::RevocationIdNotFoundException(inner) => {
1185                Error::RevocationIdNotFoundException(inner)
1186            }
1187            crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError::TrustStoreNotFoundException(inner) => {
1188                Error::TrustStoreNotFoundException(inner)
1189            }
1190            crate::operation::describe_trust_store_revocations::DescribeTrustStoreRevocationsError::Unhandled(inner) => Error::Unhandled(inner),
1191        }
1192    }
1193}
1194impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trust_stores::DescribeTrustStoresError, R>> for Error
1195where
1196    R: Send + Sync + std::fmt::Debug + 'static,
1197{
1198    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::describe_trust_stores::DescribeTrustStoresError, R>) -> Self {
1199        match err {
1200            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1201            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1202                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1203                source: err.into(),
1204            }),
1205        }
1206    }
1207}
1208impl From<crate::operation::describe_trust_stores::DescribeTrustStoresError> for Error {
1209    fn from(err: crate::operation::describe_trust_stores::DescribeTrustStoresError) -> Self {
1210        match err {
1211            crate::operation::describe_trust_stores::DescribeTrustStoresError::TrustStoreNotFoundException(inner) => {
1212                Error::TrustStoreNotFoundException(inner)
1213            }
1214            crate::operation::describe_trust_stores::DescribeTrustStoresError::Unhandled(inner) => Error::Unhandled(inner),
1215        }
1216    }
1217}
1218impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>> for Error
1219where
1220    R: Send + Sync + std::fmt::Debug + 'static,
1221{
1222    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_resource_policy::GetResourcePolicyError, R>) -> Self {
1223        match err {
1224            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1225            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1226                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1227                source: err.into(),
1228            }),
1229        }
1230    }
1231}
1232impl From<crate::operation::get_resource_policy::GetResourcePolicyError> for Error {
1233    fn from(err: crate::operation::get_resource_policy::GetResourcePolicyError) -> Self {
1234        match err {
1235            crate::operation::get_resource_policy::GetResourcePolicyError::ResourceNotFoundException(inner) => {
1236                Error::ResourceNotFoundException(inner)
1237            }
1238            crate::operation::get_resource_policy::GetResourcePolicyError::Unhandled(inner) => Error::Unhandled(inner),
1239        }
1240    }
1241}
1242impl<R>
1243    From<
1244        ::aws_smithy_runtime_api::client::result::SdkError<
1245            crate::operation::get_trust_store_ca_certificates_bundle::GetTrustStoreCaCertificatesBundleError,
1246            R,
1247        >,
1248    > for Error
1249where
1250    R: Send + Sync + std::fmt::Debug + 'static,
1251{
1252    fn from(
1253        err: ::aws_smithy_runtime_api::client::result::SdkError<
1254            crate::operation::get_trust_store_ca_certificates_bundle::GetTrustStoreCaCertificatesBundleError,
1255            R,
1256        >,
1257    ) -> Self {
1258        match err {
1259            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1260            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1261                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1262                source: err.into(),
1263            }),
1264        }
1265    }
1266}
1267impl From<crate::operation::get_trust_store_ca_certificates_bundle::GetTrustStoreCaCertificatesBundleError> for Error {
1268    fn from(err: crate::operation::get_trust_store_ca_certificates_bundle::GetTrustStoreCaCertificatesBundleError) -> Self {
1269        match err {
1270            crate::operation::get_trust_store_ca_certificates_bundle::GetTrustStoreCaCertificatesBundleError::TrustStoreNotFoundException(inner) => {
1271                Error::TrustStoreNotFoundException(inner)
1272            }
1273            crate::operation::get_trust_store_ca_certificates_bundle::GetTrustStoreCaCertificatesBundleError::Unhandled(inner) => {
1274                Error::Unhandled(inner)
1275            }
1276        }
1277    }
1278}
1279impl<R>
1280    From<
1281        ::aws_smithy_runtime_api::client::result::SdkError<
1282            crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError,
1283            R,
1284        >,
1285    > for Error
1286where
1287    R: Send + Sync + std::fmt::Debug + 'static,
1288{
1289    fn from(
1290        err: ::aws_smithy_runtime_api::client::result::SdkError<
1291            crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError,
1292            R,
1293        >,
1294    ) -> Self {
1295        match err {
1296            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1297            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1298                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1299                source: err.into(),
1300            }),
1301        }
1302    }
1303}
1304impl From<crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError> for Error {
1305    fn from(err: crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError) -> Self {
1306        match err {
1307            crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError::RevocationIdNotFoundException(inner) => {
1308                Error::RevocationIdNotFoundException(inner)
1309            }
1310            crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError::TrustStoreNotFoundException(inner) => {
1311                Error::TrustStoreNotFoundException(inner)
1312            }
1313            crate::operation::get_trust_store_revocation_content::GetTrustStoreRevocationContentError::Unhandled(inner) => Error::Unhandled(inner),
1314        }
1315    }
1316}
1317impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>>
1318    for Error
1319where
1320    R: Send + Sync + std::fmt::Debug + 'static,
1321{
1322    fn from(
1323        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError, R>,
1324    ) -> Self {
1325        match err {
1326            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1327            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1328                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1329                source: err.into(),
1330            }),
1331        }
1332    }
1333}
1334impl From<crate::operation::modify_capacity_reservation::ModifyCapacityReservationError> for Error {
1335    fn from(err: crate::operation::modify_capacity_reservation::ModifyCapacityReservationError) -> Self {
1336        match err {
1337            crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::CapacityDecreaseRequestsLimitExceededException(inner) => {
1338                Error::CapacityDecreaseRequestsLimitExceededException(inner)
1339            }
1340            crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::CapacityReservationPendingException(inner) => {
1341                Error::CapacityReservationPendingException(inner)
1342            }
1343            crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::CapacityUnitsLimitExceededException(inner) => {
1344                Error::CapacityUnitsLimitExceededException(inner)
1345            }
1346            crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::InsufficientCapacityException(inner) => {
1347                Error::InsufficientCapacityException(inner)
1348            }
1349            crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::InvalidConfigurationRequestException(inner) => {
1350                Error::InvalidConfigurationRequestException(inner)
1351            }
1352            crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::LoadBalancerNotFoundException(inner) => {
1353                Error::LoadBalancerNotFoundException(inner)
1354            }
1355            crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::OperationNotPermittedException(inner) => {
1356                Error::OperationNotPermittedException(inner)
1357            }
1358            crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::PriorRequestNotCompleteException(inner) => {
1359                Error::PriorRequestNotCompleteException(inner)
1360            }
1361            crate::operation::modify_capacity_reservation::ModifyCapacityReservationError::Unhandled(inner) => Error::Unhandled(inner),
1362        }
1363    }
1364}
1365impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ip_pools::ModifyIpPoolsError, R>> for Error
1366where
1367    R: Send + Sync + std::fmt::Debug + 'static,
1368{
1369    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_ip_pools::ModifyIpPoolsError, R>) -> Self {
1370        match err {
1371            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1372            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1373                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1374                source: err.into(),
1375            }),
1376        }
1377    }
1378}
1379impl From<crate::operation::modify_ip_pools::ModifyIpPoolsError> for Error {
1380    fn from(err: crate::operation::modify_ip_pools::ModifyIpPoolsError) -> Self {
1381        match err {
1382            crate::operation::modify_ip_pools::ModifyIpPoolsError::LoadBalancerNotFoundException(inner) => {
1383                Error::LoadBalancerNotFoundException(inner)
1384            }
1385            crate::operation::modify_ip_pools::ModifyIpPoolsError::Unhandled(inner) => Error::Unhandled(inner),
1386        }
1387    }
1388}
1389impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_listener::ModifyListenerError, R>> for Error
1390where
1391    R: Send + Sync + std::fmt::Debug + 'static,
1392{
1393    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_listener::ModifyListenerError, R>) -> Self {
1394        match err {
1395            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1396            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1397                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1398                source: err.into(),
1399            }),
1400        }
1401    }
1402}
1403impl From<crate::operation::modify_listener::ModifyListenerError> for Error {
1404    fn from(err: crate::operation::modify_listener::ModifyListenerError) -> Self {
1405        match err {
1406            crate::operation::modify_listener::ModifyListenerError::AlpnPolicyNotSupportedException(inner) => {
1407                Error::AlpnPolicyNotSupportedException(inner)
1408            }
1409            crate::operation::modify_listener::ModifyListenerError::CertificateNotFoundException(inner) => Error::CertificateNotFoundException(inner),
1410            crate::operation::modify_listener::ModifyListenerError::DuplicateListenerException(inner) => Error::DuplicateListenerException(inner),
1411            crate::operation::modify_listener::ModifyListenerError::IncompatibleProtocolsException(inner) => {
1412                Error::IncompatibleProtocolsException(inner)
1413            }
1414            crate::operation::modify_listener::ModifyListenerError::InvalidConfigurationRequestException(inner) => {
1415                Error::InvalidConfigurationRequestException(inner)
1416            }
1417            crate::operation::modify_listener::ModifyListenerError::InvalidLoadBalancerActionException(inner) => {
1418                Error::InvalidLoadBalancerActionException(inner)
1419            }
1420            crate::operation::modify_listener::ModifyListenerError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
1421            crate::operation::modify_listener::ModifyListenerError::SslPolicyNotFoundException(inner) => Error::SslPolicyNotFoundException(inner),
1422            crate::operation::modify_listener::ModifyListenerError::TargetGroupAssociationLimitException(inner) => {
1423                Error::TargetGroupAssociationLimitException(inner)
1424            }
1425            crate::operation::modify_listener::ModifyListenerError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
1426            crate::operation::modify_listener::ModifyListenerError::TooManyActionsException(inner) => Error::TooManyActionsException(inner),
1427            crate::operation::modify_listener::ModifyListenerError::TooManyCertificatesException(inner) => Error::TooManyCertificatesException(inner),
1428            crate::operation::modify_listener::ModifyListenerError::TooManyListenersException(inner) => Error::TooManyListenersException(inner),
1429            crate::operation::modify_listener::ModifyListenerError::TooManyRegistrationsForTargetIdException(inner) => {
1430                Error::TooManyRegistrationsForTargetIdException(inner)
1431            }
1432            crate::operation::modify_listener::ModifyListenerError::TooManyTargetsException(inner) => Error::TooManyTargetsException(inner),
1433            crate::operation::modify_listener::ModifyListenerError::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => {
1434                Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner)
1435            }
1436            crate::operation::modify_listener::ModifyListenerError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
1437            crate::operation::modify_listener::ModifyListenerError::TrustStoreNotReadyException(inner) => Error::TrustStoreNotReadyException(inner),
1438            crate::operation::modify_listener::ModifyListenerError::UnsupportedProtocolException(inner) => Error::UnsupportedProtocolException(inner),
1439            crate::operation::modify_listener::ModifyListenerError::Unhandled(inner) => Error::Unhandled(inner),
1440        }
1441    }
1442}
1443impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_listener_attributes::ModifyListenerAttributesError, R>>
1444    for Error
1445where
1446    R: Send + Sync + std::fmt::Debug + 'static,
1447{
1448    fn from(
1449        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_listener_attributes::ModifyListenerAttributesError, R>,
1450    ) -> Self {
1451        match err {
1452            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1453            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1454                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1455                source: err.into(),
1456            }),
1457        }
1458    }
1459}
1460impl From<crate::operation::modify_listener_attributes::ModifyListenerAttributesError> for Error {
1461    fn from(err: crate::operation::modify_listener_attributes::ModifyListenerAttributesError) -> Self {
1462        match err {
1463            crate::operation::modify_listener_attributes::ModifyListenerAttributesError::InvalidConfigurationRequestException(inner) => {
1464                Error::InvalidConfigurationRequestException(inner)
1465            }
1466            crate::operation::modify_listener_attributes::ModifyListenerAttributesError::ListenerNotFoundException(inner) => {
1467                Error::ListenerNotFoundException(inner)
1468            }
1469            crate::operation::modify_listener_attributes::ModifyListenerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1470        }
1471    }
1472}
1473impl<R>
1474    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError, R>>
1475    for Error
1476where
1477    R: Send + Sync + std::fmt::Debug + 'static,
1478{
1479    fn from(
1480        err: ::aws_smithy_runtime_api::client::result::SdkError<
1481            crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError,
1482            R,
1483        >,
1484    ) -> Self {
1485        match err {
1486            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1487            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1488                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1489                source: err.into(),
1490            }),
1491        }
1492    }
1493}
1494impl From<crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError> for Error {
1495    fn from(err: crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError) -> Self {
1496        match err {
1497            crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError::InvalidConfigurationRequestException(inner) => {
1498                Error::InvalidConfigurationRequestException(inner)
1499            }
1500            crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError::LoadBalancerNotFoundException(inner) => {
1501                Error::LoadBalancerNotFoundException(inner)
1502            }
1503            crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1504        }
1505    }
1506}
1507impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_rule::ModifyRuleError, R>> for Error
1508where
1509    R: Send + Sync + std::fmt::Debug + 'static,
1510{
1511    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_rule::ModifyRuleError, R>) -> Self {
1512        match err {
1513            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1514            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1515                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1516                source: err.into(),
1517            }),
1518        }
1519    }
1520}
1521impl From<crate::operation::modify_rule::ModifyRuleError> for Error {
1522    fn from(err: crate::operation::modify_rule::ModifyRuleError) -> Self {
1523        match err {
1524            crate::operation::modify_rule::ModifyRuleError::IncompatibleProtocolsException(inner) => Error::IncompatibleProtocolsException(inner),
1525            crate::operation::modify_rule::ModifyRuleError::InvalidLoadBalancerActionException(inner) => {
1526                Error::InvalidLoadBalancerActionException(inner)
1527            }
1528            crate::operation::modify_rule::ModifyRuleError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1529            crate::operation::modify_rule::ModifyRuleError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
1530            crate::operation::modify_rule::ModifyRuleError::TargetGroupAssociationLimitException(inner) => {
1531                Error::TargetGroupAssociationLimitException(inner)
1532            }
1533            crate::operation::modify_rule::ModifyRuleError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
1534            crate::operation::modify_rule::ModifyRuleError::TooManyActionsException(inner) => Error::TooManyActionsException(inner),
1535            crate::operation::modify_rule::ModifyRuleError::TooManyRegistrationsForTargetIdException(inner) => {
1536                Error::TooManyRegistrationsForTargetIdException(inner)
1537            }
1538            crate::operation::modify_rule::ModifyRuleError::TooManyTargetsException(inner) => Error::TooManyTargetsException(inner),
1539            crate::operation::modify_rule::ModifyRuleError::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => {
1540                Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner)
1541            }
1542            crate::operation::modify_rule::ModifyRuleError::UnsupportedProtocolException(inner) => Error::UnsupportedProtocolException(inner),
1543            crate::operation::modify_rule::ModifyRuleError::Unhandled(inner) => Error::Unhandled(inner),
1544        }
1545    }
1546}
1547impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_target_group::ModifyTargetGroupError, R>> for Error
1548where
1549    R: Send + Sync + std::fmt::Debug + 'static,
1550{
1551    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_target_group::ModifyTargetGroupError, R>) -> Self {
1552        match err {
1553            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1554            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1555                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1556                source: err.into(),
1557            }),
1558        }
1559    }
1560}
1561impl From<crate::operation::modify_target_group::ModifyTargetGroupError> for Error {
1562    fn from(err: crate::operation::modify_target_group::ModifyTargetGroupError) -> Self {
1563        match err {
1564            crate::operation::modify_target_group::ModifyTargetGroupError::InvalidConfigurationRequestException(inner) => {
1565                Error::InvalidConfigurationRequestException(inner)
1566            }
1567            crate::operation::modify_target_group::ModifyTargetGroupError::TargetGroupNotFoundException(inner) => {
1568                Error::TargetGroupNotFoundException(inner)
1569            }
1570            crate::operation::modify_target_group::ModifyTargetGroupError::Unhandled(inner) => Error::Unhandled(inner),
1571        }
1572    }
1573}
1574impl<R>
1575    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError, R>>
1576    for Error
1577where
1578    R: Send + Sync + std::fmt::Debug + 'static,
1579{
1580    fn from(
1581        err: ::aws_smithy_runtime_api::client::result::SdkError<
1582            crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError,
1583            R,
1584        >,
1585    ) -> Self {
1586        match err {
1587            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1588            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1589                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1590                source: err.into(),
1591            }),
1592        }
1593    }
1594}
1595impl From<crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError> for Error {
1596    fn from(err: crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError) -> Self {
1597        match err {
1598            crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError::InvalidConfigurationRequestException(inner) => {
1599                Error::InvalidConfigurationRequestException(inner)
1600            }
1601            crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError::TargetGroupNotFoundException(inner) => {
1602                Error::TargetGroupNotFoundException(inner)
1603            }
1604            crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1605        }
1606    }
1607}
1608impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_trust_store::ModifyTrustStoreError, R>> for Error
1609where
1610    R: Send + Sync + std::fmt::Debug + 'static,
1611{
1612    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_trust_store::ModifyTrustStoreError, R>) -> Self {
1613        match err {
1614            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1615            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1616                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1617                source: err.into(),
1618            }),
1619        }
1620    }
1621}
1622impl From<crate::operation::modify_trust_store::ModifyTrustStoreError> for Error {
1623    fn from(err: crate::operation::modify_trust_store::ModifyTrustStoreError) -> Self {
1624        match err {
1625            crate::operation::modify_trust_store::ModifyTrustStoreError::CaCertificatesBundleNotFoundException(inner) => {
1626                Error::CaCertificatesBundleNotFoundException(inner)
1627            }
1628            crate::operation::modify_trust_store::ModifyTrustStoreError::InvalidCaCertificatesBundleException(inner) => {
1629                Error::InvalidCaCertificatesBundleException(inner)
1630            }
1631            crate::operation::modify_trust_store::ModifyTrustStoreError::TrustStoreNotFoundException(inner) => {
1632                Error::TrustStoreNotFoundException(inner)
1633            }
1634            crate::operation::modify_trust_store::ModifyTrustStoreError::Unhandled(inner) => Error::Unhandled(inner),
1635        }
1636    }
1637}
1638impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_targets::RegisterTargetsError, R>> for Error
1639where
1640    R: Send + Sync + std::fmt::Debug + 'static,
1641{
1642    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_targets::RegisterTargetsError, R>) -> Self {
1643        match err {
1644            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1645            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1646                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1647                source: err.into(),
1648            }),
1649        }
1650    }
1651}
1652impl From<crate::operation::register_targets::RegisterTargetsError> for Error {
1653    fn from(err: crate::operation::register_targets::RegisterTargetsError) -> Self {
1654        match err {
1655            crate::operation::register_targets::RegisterTargetsError::InvalidTargetException(inner) => Error::InvalidTargetException(inner),
1656            crate::operation::register_targets::RegisterTargetsError::TargetGroupNotFoundException(inner) => {
1657                Error::TargetGroupNotFoundException(inner)
1658            }
1659            crate::operation::register_targets::RegisterTargetsError::TooManyRegistrationsForTargetIdException(inner) => {
1660                Error::TooManyRegistrationsForTargetIdException(inner)
1661            }
1662            crate::operation::register_targets::RegisterTargetsError::TooManyTargetsException(inner) => Error::TooManyTargetsException(inner),
1663            crate::operation::register_targets::RegisterTargetsError::Unhandled(inner) => Error::Unhandled(inner),
1664        }
1665    }
1666}
1667impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_listener_certificates::RemoveListenerCertificatesError, R>>
1668    for Error
1669where
1670    R: Send + Sync + std::fmt::Debug + 'static,
1671{
1672    fn from(
1673        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_listener_certificates::RemoveListenerCertificatesError, R>,
1674    ) -> Self {
1675        match err {
1676            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1677            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1678                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1679                source: err.into(),
1680            }),
1681        }
1682    }
1683}
1684impl From<crate::operation::remove_listener_certificates::RemoveListenerCertificatesError> for Error {
1685    fn from(err: crate::operation::remove_listener_certificates::RemoveListenerCertificatesError) -> Self {
1686        match err {
1687            crate::operation::remove_listener_certificates::RemoveListenerCertificatesError::ListenerNotFoundException(inner) => {
1688                Error::ListenerNotFoundException(inner)
1689            }
1690            crate::operation::remove_listener_certificates::RemoveListenerCertificatesError::OperationNotPermittedException(inner) => {
1691                Error::OperationNotPermittedException(inner)
1692            }
1693            crate::operation::remove_listener_certificates::RemoveListenerCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
1694        }
1695    }
1696}
1697impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags::RemoveTagsError, R>> for Error
1698where
1699    R: Send + Sync + std::fmt::Debug + 'static,
1700{
1701    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags::RemoveTagsError, R>) -> Self {
1702        match err {
1703            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1704            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1705                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1706                source: err.into(),
1707            }),
1708        }
1709    }
1710}
1711impl From<crate::operation::remove_tags::RemoveTagsError> for Error {
1712    fn from(err: crate::operation::remove_tags::RemoveTagsError) -> Self {
1713        match err {
1714            crate::operation::remove_tags::RemoveTagsError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
1715            crate::operation::remove_tags::RemoveTagsError::LoadBalancerNotFoundException(inner) => Error::LoadBalancerNotFoundException(inner),
1716            crate::operation::remove_tags::RemoveTagsError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
1717            crate::operation::remove_tags::RemoveTagsError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
1718            crate::operation::remove_tags::RemoveTagsError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
1719            crate::operation::remove_tags::RemoveTagsError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
1720            crate::operation::remove_tags::RemoveTagsError::Unhandled(inner) => Error::Unhandled(inner),
1721        }
1722    }
1723}
1724impl<R>
1725    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError, R>>
1726    for Error
1727where
1728    R: Send + Sync + std::fmt::Debug + 'static,
1729{
1730    fn from(
1731        err: ::aws_smithy_runtime_api::client::result::SdkError<
1732            crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError,
1733            R,
1734        >,
1735    ) -> Self {
1736        match err {
1737            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1738            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1739                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1740                source: err.into(),
1741            }),
1742        }
1743    }
1744}
1745impl From<crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError> for Error {
1746    fn from(err: crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError) -> Self {
1747        match err {
1748            crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError::RevocationIdNotFoundException(inner) => {
1749                Error::RevocationIdNotFoundException(inner)
1750            }
1751            crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError::TrustStoreNotFoundException(inner) => {
1752                Error::TrustStoreNotFoundException(inner)
1753            }
1754            crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError::Unhandled(inner) => Error::Unhandled(inner),
1755        }
1756    }
1757}
1758impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_ip_address_type::SetIpAddressTypeError, R>> for Error
1759where
1760    R: Send + Sync + std::fmt::Debug + 'static,
1761{
1762    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_ip_address_type::SetIpAddressTypeError, R>) -> Self {
1763        match err {
1764            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1765            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1766                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1767                source: err.into(),
1768            }),
1769        }
1770    }
1771}
1772impl From<crate::operation::set_ip_address_type::SetIpAddressTypeError> for Error {
1773    fn from(err: crate::operation::set_ip_address_type::SetIpAddressTypeError) -> Self {
1774        match err {
1775            crate::operation::set_ip_address_type::SetIpAddressTypeError::InvalidConfigurationRequestException(inner) => {
1776                Error::InvalidConfigurationRequestException(inner)
1777            }
1778            crate::operation::set_ip_address_type::SetIpAddressTypeError::InvalidSubnetException(inner) => Error::InvalidSubnetException(inner),
1779            crate::operation::set_ip_address_type::SetIpAddressTypeError::LoadBalancerNotFoundException(inner) => {
1780                Error::LoadBalancerNotFoundException(inner)
1781            }
1782            crate::operation::set_ip_address_type::SetIpAddressTypeError::Unhandled(inner) => Error::Unhandled(inner),
1783        }
1784    }
1785}
1786impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_rule_priorities::SetRulePrioritiesError, R>> for Error
1787where
1788    R: Send + Sync + std::fmt::Debug + 'static,
1789{
1790    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_rule_priorities::SetRulePrioritiesError, R>) -> Self {
1791        match err {
1792            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1793            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1794                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1795                source: err.into(),
1796            }),
1797        }
1798    }
1799}
1800impl From<crate::operation::set_rule_priorities::SetRulePrioritiesError> for Error {
1801    fn from(err: crate::operation::set_rule_priorities::SetRulePrioritiesError) -> Self {
1802        match err {
1803            crate::operation::set_rule_priorities::SetRulePrioritiesError::OperationNotPermittedException(inner) => {
1804                Error::OperationNotPermittedException(inner)
1805            }
1806            crate::operation::set_rule_priorities::SetRulePrioritiesError::PriorityInUseException(inner) => Error::PriorityInUseException(inner),
1807            crate::operation::set_rule_priorities::SetRulePrioritiesError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
1808            crate::operation::set_rule_priorities::SetRulePrioritiesError::Unhandled(inner) => Error::Unhandled(inner),
1809        }
1810    }
1811}
1812impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_security_groups::SetSecurityGroupsError, R>> for Error
1813where
1814    R: Send + Sync + std::fmt::Debug + 'static,
1815{
1816    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_security_groups::SetSecurityGroupsError, R>) -> Self {
1817        match err {
1818            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1819            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1820                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1821                source: err.into(),
1822            }),
1823        }
1824    }
1825}
1826impl From<crate::operation::set_security_groups::SetSecurityGroupsError> for Error {
1827    fn from(err: crate::operation::set_security_groups::SetSecurityGroupsError) -> Self {
1828        match err {
1829            crate::operation::set_security_groups::SetSecurityGroupsError::InvalidConfigurationRequestException(inner) => {
1830                Error::InvalidConfigurationRequestException(inner)
1831            }
1832            crate::operation::set_security_groups::SetSecurityGroupsError::InvalidSecurityGroupException(inner) => {
1833                Error::InvalidSecurityGroupException(inner)
1834            }
1835            crate::operation::set_security_groups::SetSecurityGroupsError::LoadBalancerNotFoundException(inner) => {
1836                Error::LoadBalancerNotFoundException(inner)
1837            }
1838            crate::operation::set_security_groups::SetSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1839        }
1840    }
1841}
1842impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_subnets::SetSubnetsError, R>> for Error
1843where
1844    R: Send + Sync + std::fmt::Debug + 'static,
1845{
1846    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_subnets::SetSubnetsError, R>) -> Self {
1847        match err {
1848            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1849            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1850                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1851                source: err.into(),
1852            }),
1853        }
1854    }
1855}
1856impl From<crate::operation::set_subnets::SetSubnetsError> for Error {
1857    fn from(err: crate::operation::set_subnets::SetSubnetsError) -> Self {
1858        match err {
1859            crate::operation::set_subnets::SetSubnetsError::AllocationIdNotFoundException(inner) => Error::AllocationIdNotFoundException(inner),
1860            crate::operation::set_subnets::SetSubnetsError::AvailabilityZoneNotSupportedException(inner) => {
1861                Error::AvailabilityZoneNotSupportedException(inner)
1862            }
1863            crate::operation::set_subnets::SetSubnetsError::CapacityReservationPendingException(inner) => {
1864                Error::CapacityReservationPendingException(inner)
1865            }
1866            crate::operation::set_subnets::SetSubnetsError::InvalidConfigurationRequestException(inner) => {
1867                Error::InvalidConfigurationRequestException(inner)
1868            }
1869            crate::operation::set_subnets::SetSubnetsError::InvalidSubnetException(inner) => Error::InvalidSubnetException(inner),
1870            crate::operation::set_subnets::SetSubnetsError::LoadBalancerNotFoundException(inner) => Error::LoadBalancerNotFoundException(inner),
1871            crate::operation::set_subnets::SetSubnetsError::SubnetNotFoundException(inner) => Error::SubnetNotFoundException(inner),
1872            crate::operation::set_subnets::SetSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
1873        }
1874    }
1875}
1876impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
1877where
1878    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
1879    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
1880{
1881    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
1882        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1883            meta: ::std::default::Default::default(),
1884            source: err.into(),
1885        })
1886    }
1887}
1888impl ::std::error::Error for Error {
1889    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1890        match self {
1891            Error::AlpnPolicyNotSupportedException(inner) => inner.source(),
1892            Error::AllocationIdNotFoundException(inner) => inner.source(),
1893            Error::AvailabilityZoneNotSupportedException(inner) => inner.source(),
1894            Error::CaCertificatesBundleNotFoundException(inner) => inner.source(),
1895            Error::CapacityDecreaseRequestsLimitExceededException(inner) => inner.source(),
1896            Error::CapacityReservationPendingException(inner) => inner.source(),
1897            Error::CapacityUnitsLimitExceededException(inner) => inner.source(),
1898            Error::CertificateNotFoundException(inner) => inner.source(),
1899            Error::DeleteAssociationSameAccountException(inner) => inner.source(),
1900            Error::DuplicateListenerException(inner) => inner.source(),
1901            Error::DuplicateLoadBalancerNameException(inner) => inner.source(),
1902            Error::DuplicateTagKeysException(inner) => inner.source(),
1903            Error::DuplicateTargetGroupNameException(inner) => inner.source(),
1904            Error::DuplicateTrustStoreNameException(inner) => inner.source(),
1905            Error::HealthUnavailableException(inner) => inner.source(),
1906            Error::IncompatibleProtocolsException(inner) => inner.source(),
1907            Error::InsufficientCapacityException(inner) => inner.source(),
1908            Error::InvalidCaCertificatesBundleException(inner) => inner.source(),
1909            Error::InvalidConfigurationRequestException(inner) => inner.source(),
1910            Error::InvalidLoadBalancerActionException(inner) => inner.source(),
1911            Error::InvalidRevocationContentException(inner) => inner.source(),
1912            Error::InvalidSchemeException(inner) => inner.source(),
1913            Error::InvalidSecurityGroupException(inner) => inner.source(),
1914            Error::InvalidSubnetException(inner) => inner.source(),
1915            Error::InvalidTargetException(inner) => inner.source(),
1916            Error::ListenerNotFoundException(inner) => inner.source(),
1917            Error::LoadBalancerNotFoundException(inner) => inner.source(),
1918            Error::OperationNotPermittedException(inner) => inner.source(),
1919            Error::PriorRequestNotCompleteException(inner) => inner.source(),
1920            Error::PriorityInUseException(inner) => inner.source(),
1921            Error::ResourceInUseException(inner) => inner.source(),
1922            Error::ResourceNotFoundException(inner) => inner.source(),
1923            Error::RevocationContentNotFoundException(inner) => inner.source(),
1924            Error::RevocationIdNotFoundException(inner) => inner.source(),
1925            Error::RuleNotFoundException(inner) => inner.source(),
1926            Error::SslPolicyNotFoundException(inner) => inner.source(),
1927            Error::SubnetNotFoundException(inner) => inner.source(),
1928            Error::TargetGroupAssociationLimitException(inner) => inner.source(),
1929            Error::TargetGroupNotFoundException(inner) => inner.source(),
1930            Error::TooManyActionsException(inner) => inner.source(),
1931            Error::TooManyCertificatesException(inner) => inner.source(),
1932            Error::TooManyListenersException(inner) => inner.source(),
1933            Error::TooManyLoadBalancersException(inner) => inner.source(),
1934            Error::TooManyRegistrationsForTargetIdException(inner) => inner.source(),
1935            Error::TooManyRulesException(inner) => inner.source(),
1936            Error::TooManyTagsException(inner) => inner.source(),
1937            Error::TooManyTargetGroupsException(inner) => inner.source(),
1938            Error::TooManyTargetsException(inner) => inner.source(),
1939            Error::TooManyTrustStoreRevocationEntriesException(inner) => inner.source(),
1940            Error::TooManyTrustStoresException(inner) => inner.source(),
1941            Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => inner.source(),
1942            Error::TrustStoreAssociationNotFoundException(inner) => inner.source(),
1943            Error::TrustStoreInUseException(inner) => inner.source(),
1944            Error::TrustStoreNotFoundException(inner) => inner.source(),
1945            Error::TrustStoreNotReadyException(inner) => inner.source(),
1946            Error::UnsupportedProtocolException(inner) => inner.source(),
1947            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1948        }
1949    }
1950}
1951impl ::aws_types::request_id::RequestId for Error {
1952    fn request_id(&self) -> Option<&str> {
1953        match self {
1954            Self::AlpnPolicyNotSupportedException(e) => e.request_id(),
1955            Self::AllocationIdNotFoundException(e) => e.request_id(),
1956            Self::AvailabilityZoneNotSupportedException(e) => e.request_id(),
1957            Self::CaCertificatesBundleNotFoundException(e) => e.request_id(),
1958            Self::CapacityDecreaseRequestsLimitExceededException(e) => e.request_id(),
1959            Self::CapacityReservationPendingException(e) => e.request_id(),
1960            Self::CapacityUnitsLimitExceededException(e) => e.request_id(),
1961            Self::CertificateNotFoundException(e) => e.request_id(),
1962            Self::DeleteAssociationSameAccountException(e) => e.request_id(),
1963            Self::DuplicateListenerException(e) => e.request_id(),
1964            Self::DuplicateLoadBalancerNameException(e) => e.request_id(),
1965            Self::DuplicateTagKeysException(e) => e.request_id(),
1966            Self::DuplicateTargetGroupNameException(e) => e.request_id(),
1967            Self::DuplicateTrustStoreNameException(e) => e.request_id(),
1968            Self::HealthUnavailableException(e) => e.request_id(),
1969            Self::IncompatibleProtocolsException(e) => e.request_id(),
1970            Self::InsufficientCapacityException(e) => e.request_id(),
1971            Self::InvalidCaCertificatesBundleException(e) => e.request_id(),
1972            Self::InvalidConfigurationRequestException(e) => e.request_id(),
1973            Self::InvalidLoadBalancerActionException(e) => e.request_id(),
1974            Self::InvalidRevocationContentException(e) => e.request_id(),
1975            Self::InvalidSchemeException(e) => e.request_id(),
1976            Self::InvalidSecurityGroupException(e) => e.request_id(),
1977            Self::InvalidSubnetException(e) => e.request_id(),
1978            Self::InvalidTargetException(e) => e.request_id(),
1979            Self::ListenerNotFoundException(e) => e.request_id(),
1980            Self::LoadBalancerNotFoundException(e) => e.request_id(),
1981            Self::OperationNotPermittedException(e) => e.request_id(),
1982            Self::PriorRequestNotCompleteException(e) => e.request_id(),
1983            Self::PriorityInUseException(e) => e.request_id(),
1984            Self::ResourceInUseException(e) => e.request_id(),
1985            Self::ResourceNotFoundException(e) => e.request_id(),
1986            Self::RevocationContentNotFoundException(e) => e.request_id(),
1987            Self::RevocationIdNotFoundException(e) => e.request_id(),
1988            Self::RuleNotFoundException(e) => e.request_id(),
1989            Self::SslPolicyNotFoundException(e) => e.request_id(),
1990            Self::SubnetNotFoundException(e) => e.request_id(),
1991            Self::TargetGroupAssociationLimitException(e) => e.request_id(),
1992            Self::TargetGroupNotFoundException(e) => e.request_id(),
1993            Self::TooManyActionsException(e) => e.request_id(),
1994            Self::TooManyCertificatesException(e) => e.request_id(),
1995            Self::TooManyListenersException(e) => e.request_id(),
1996            Self::TooManyLoadBalancersException(e) => e.request_id(),
1997            Self::TooManyRegistrationsForTargetIdException(e) => e.request_id(),
1998            Self::TooManyRulesException(e) => e.request_id(),
1999            Self::TooManyTagsException(e) => e.request_id(),
2000            Self::TooManyTargetGroupsException(e) => e.request_id(),
2001            Self::TooManyTargetsException(e) => e.request_id(),
2002            Self::TooManyTrustStoreRevocationEntriesException(e) => e.request_id(),
2003            Self::TooManyTrustStoresException(e) => e.request_id(),
2004            Self::TooManyUniqueTargetGroupsPerLoadBalancerException(e) => e.request_id(),
2005            Self::TrustStoreAssociationNotFoundException(e) => e.request_id(),
2006            Self::TrustStoreInUseException(e) => e.request_id(),
2007            Self::TrustStoreNotFoundException(e) => e.request_id(),
2008            Self::TrustStoreNotReadyException(e) => e.request_id(),
2009            Self::UnsupportedProtocolException(e) => e.request_id(),
2010            Self::Unhandled(e) => e.meta.request_id(),
2011        }
2012    }
2013}