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_listener::ModifyListenerError, 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_listener::ModifyListenerError, 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_listener::ModifyListenerError> for Error {
1380    fn from(err: crate::operation::modify_listener::ModifyListenerError) -> Self {
1381        match err {
1382            crate::operation::modify_listener::ModifyListenerError::AlpnPolicyNotSupportedException(inner) => {
1383                Error::AlpnPolicyNotSupportedException(inner)
1384            }
1385            crate::operation::modify_listener::ModifyListenerError::CertificateNotFoundException(inner) => Error::CertificateNotFoundException(inner),
1386            crate::operation::modify_listener::ModifyListenerError::DuplicateListenerException(inner) => Error::DuplicateListenerException(inner),
1387            crate::operation::modify_listener::ModifyListenerError::IncompatibleProtocolsException(inner) => {
1388                Error::IncompatibleProtocolsException(inner)
1389            }
1390            crate::operation::modify_listener::ModifyListenerError::InvalidConfigurationRequestException(inner) => {
1391                Error::InvalidConfigurationRequestException(inner)
1392            }
1393            crate::operation::modify_listener::ModifyListenerError::InvalidLoadBalancerActionException(inner) => {
1394                Error::InvalidLoadBalancerActionException(inner)
1395            }
1396            crate::operation::modify_listener::ModifyListenerError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
1397            crate::operation::modify_listener::ModifyListenerError::SslPolicyNotFoundException(inner) => Error::SslPolicyNotFoundException(inner),
1398            crate::operation::modify_listener::ModifyListenerError::TargetGroupAssociationLimitException(inner) => {
1399                Error::TargetGroupAssociationLimitException(inner)
1400            }
1401            crate::operation::modify_listener::ModifyListenerError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
1402            crate::operation::modify_listener::ModifyListenerError::TooManyActionsException(inner) => Error::TooManyActionsException(inner),
1403            crate::operation::modify_listener::ModifyListenerError::TooManyCertificatesException(inner) => Error::TooManyCertificatesException(inner),
1404            crate::operation::modify_listener::ModifyListenerError::TooManyListenersException(inner) => Error::TooManyListenersException(inner),
1405            crate::operation::modify_listener::ModifyListenerError::TooManyRegistrationsForTargetIdException(inner) => {
1406                Error::TooManyRegistrationsForTargetIdException(inner)
1407            }
1408            crate::operation::modify_listener::ModifyListenerError::TooManyTargetsException(inner) => Error::TooManyTargetsException(inner),
1409            crate::operation::modify_listener::ModifyListenerError::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => {
1410                Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner)
1411            }
1412            crate::operation::modify_listener::ModifyListenerError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
1413            crate::operation::modify_listener::ModifyListenerError::TrustStoreNotReadyException(inner) => Error::TrustStoreNotReadyException(inner),
1414            crate::operation::modify_listener::ModifyListenerError::UnsupportedProtocolException(inner) => Error::UnsupportedProtocolException(inner),
1415            crate::operation::modify_listener::ModifyListenerError::Unhandled(inner) => Error::Unhandled(inner),
1416        }
1417    }
1418}
1419impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_listener_attributes::ModifyListenerAttributesError, R>>
1420    for Error
1421where
1422    R: Send + Sync + std::fmt::Debug + 'static,
1423{
1424    fn from(
1425        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_listener_attributes::ModifyListenerAttributesError, R>,
1426    ) -> Self {
1427        match err {
1428            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1429            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1430                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1431                source: err.into(),
1432            }),
1433        }
1434    }
1435}
1436impl From<crate::operation::modify_listener_attributes::ModifyListenerAttributesError> for Error {
1437    fn from(err: crate::operation::modify_listener_attributes::ModifyListenerAttributesError) -> Self {
1438        match err {
1439            crate::operation::modify_listener_attributes::ModifyListenerAttributesError::InvalidConfigurationRequestException(inner) => {
1440                Error::InvalidConfigurationRequestException(inner)
1441            }
1442            crate::operation::modify_listener_attributes::ModifyListenerAttributesError::ListenerNotFoundException(inner) => {
1443                Error::ListenerNotFoundException(inner)
1444            }
1445            crate::operation::modify_listener_attributes::ModifyListenerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1446        }
1447    }
1448}
1449impl<R>
1450    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError, R>>
1451    for Error
1452where
1453    R: Send + Sync + std::fmt::Debug + 'static,
1454{
1455    fn from(
1456        err: ::aws_smithy_runtime_api::client::result::SdkError<
1457            crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError,
1458            R,
1459        >,
1460    ) -> Self {
1461        match err {
1462            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1463            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1464                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1465                source: err.into(),
1466            }),
1467        }
1468    }
1469}
1470impl From<crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError> for Error {
1471    fn from(err: crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError) -> Self {
1472        match err {
1473            crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError::InvalidConfigurationRequestException(inner) => {
1474                Error::InvalidConfigurationRequestException(inner)
1475            }
1476            crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError::LoadBalancerNotFoundException(inner) => {
1477                Error::LoadBalancerNotFoundException(inner)
1478            }
1479            crate::operation::modify_load_balancer_attributes::ModifyLoadBalancerAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1480        }
1481    }
1482}
1483impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_rule::ModifyRuleError, R>> for Error
1484where
1485    R: Send + Sync + std::fmt::Debug + 'static,
1486{
1487    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_rule::ModifyRuleError, R>) -> Self {
1488        match err {
1489            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1490            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1491                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1492                source: err.into(),
1493            }),
1494        }
1495    }
1496}
1497impl From<crate::operation::modify_rule::ModifyRuleError> for Error {
1498    fn from(err: crate::operation::modify_rule::ModifyRuleError) -> Self {
1499        match err {
1500            crate::operation::modify_rule::ModifyRuleError::IncompatibleProtocolsException(inner) => Error::IncompatibleProtocolsException(inner),
1501            crate::operation::modify_rule::ModifyRuleError::InvalidLoadBalancerActionException(inner) => {
1502                Error::InvalidLoadBalancerActionException(inner)
1503            }
1504            crate::operation::modify_rule::ModifyRuleError::OperationNotPermittedException(inner) => Error::OperationNotPermittedException(inner),
1505            crate::operation::modify_rule::ModifyRuleError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
1506            crate::operation::modify_rule::ModifyRuleError::TargetGroupAssociationLimitException(inner) => {
1507                Error::TargetGroupAssociationLimitException(inner)
1508            }
1509            crate::operation::modify_rule::ModifyRuleError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
1510            crate::operation::modify_rule::ModifyRuleError::TooManyActionsException(inner) => Error::TooManyActionsException(inner),
1511            crate::operation::modify_rule::ModifyRuleError::TooManyRegistrationsForTargetIdException(inner) => {
1512                Error::TooManyRegistrationsForTargetIdException(inner)
1513            }
1514            crate::operation::modify_rule::ModifyRuleError::TooManyTargetsException(inner) => Error::TooManyTargetsException(inner),
1515            crate::operation::modify_rule::ModifyRuleError::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => {
1516                Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner)
1517            }
1518            crate::operation::modify_rule::ModifyRuleError::UnsupportedProtocolException(inner) => Error::UnsupportedProtocolException(inner),
1519            crate::operation::modify_rule::ModifyRuleError::Unhandled(inner) => Error::Unhandled(inner),
1520        }
1521    }
1522}
1523impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_target_group::ModifyTargetGroupError, R>> for Error
1524where
1525    R: Send + Sync + std::fmt::Debug + 'static,
1526{
1527    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_target_group::ModifyTargetGroupError, R>) -> Self {
1528        match err {
1529            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1530            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1531                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1532                source: err.into(),
1533            }),
1534        }
1535    }
1536}
1537impl From<crate::operation::modify_target_group::ModifyTargetGroupError> for Error {
1538    fn from(err: crate::operation::modify_target_group::ModifyTargetGroupError) -> Self {
1539        match err {
1540            crate::operation::modify_target_group::ModifyTargetGroupError::InvalidConfigurationRequestException(inner) => {
1541                Error::InvalidConfigurationRequestException(inner)
1542            }
1543            crate::operation::modify_target_group::ModifyTargetGroupError::TargetGroupNotFoundException(inner) => {
1544                Error::TargetGroupNotFoundException(inner)
1545            }
1546            crate::operation::modify_target_group::ModifyTargetGroupError::Unhandled(inner) => Error::Unhandled(inner),
1547        }
1548    }
1549}
1550impl<R>
1551    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError, R>>
1552    for Error
1553where
1554    R: Send + Sync + std::fmt::Debug + 'static,
1555{
1556    fn from(
1557        err: ::aws_smithy_runtime_api::client::result::SdkError<
1558            crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError,
1559            R,
1560        >,
1561    ) -> Self {
1562        match err {
1563            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1564            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1565                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1566                source: err.into(),
1567            }),
1568        }
1569    }
1570}
1571impl From<crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError> for Error {
1572    fn from(err: crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError) -> Self {
1573        match err {
1574            crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError::InvalidConfigurationRequestException(inner) => {
1575                Error::InvalidConfigurationRequestException(inner)
1576            }
1577            crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError::TargetGroupNotFoundException(inner) => {
1578                Error::TargetGroupNotFoundException(inner)
1579            }
1580            crate::operation::modify_target_group_attributes::ModifyTargetGroupAttributesError::Unhandled(inner) => Error::Unhandled(inner),
1581        }
1582    }
1583}
1584impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_trust_store::ModifyTrustStoreError, R>> for Error
1585where
1586    R: Send + Sync + std::fmt::Debug + 'static,
1587{
1588    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::modify_trust_store::ModifyTrustStoreError, R>) -> Self {
1589        match err {
1590            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1591            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1592                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1593                source: err.into(),
1594            }),
1595        }
1596    }
1597}
1598impl From<crate::operation::modify_trust_store::ModifyTrustStoreError> for Error {
1599    fn from(err: crate::operation::modify_trust_store::ModifyTrustStoreError) -> Self {
1600        match err {
1601            crate::operation::modify_trust_store::ModifyTrustStoreError::CaCertificatesBundleNotFoundException(inner) => {
1602                Error::CaCertificatesBundleNotFoundException(inner)
1603            }
1604            crate::operation::modify_trust_store::ModifyTrustStoreError::InvalidCaCertificatesBundleException(inner) => {
1605                Error::InvalidCaCertificatesBundleException(inner)
1606            }
1607            crate::operation::modify_trust_store::ModifyTrustStoreError::TrustStoreNotFoundException(inner) => {
1608                Error::TrustStoreNotFoundException(inner)
1609            }
1610            crate::operation::modify_trust_store::ModifyTrustStoreError::Unhandled(inner) => Error::Unhandled(inner),
1611        }
1612    }
1613}
1614impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_targets::RegisterTargetsError, R>> for Error
1615where
1616    R: Send + Sync + std::fmt::Debug + 'static,
1617{
1618    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::register_targets::RegisterTargetsError, R>) -> Self {
1619        match err {
1620            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1621            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1622                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1623                source: err.into(),
1624            }),
1625        }
1626    }
1627}
1628impl From<crate::operation::register_targets::RegisterTargetsError> for Error {
1629    fn from(err: crate::operation::register_targets::RegisterTargetsError) -> Self {
1630        match err {
1631            crate::operation::register_targets::RegisterTargetsError::InvalidTargetException(inner) => Error::InvalidTargetException(inner),
1632            crate::operation::register_targets::RegisterTargetsError::TargetGroupNotFoundException(inner) => {
1633                Error::TargetGroupNotFoundException(inner)
1634            }
1635            crate::operation::register_targets::RegisterTargetsError::TooManyRegistrationsForTargetIdException(inner) => {
1636                Error::TooManyRegistrationsForTargetIdException(inner)
1637            }
1638            crate::operation::register_targets::RegisterTargetsError::TooManyTargetsException(inner) => Error::TooManyTargetsException(inner),
1639            crate::operation::register_targets::RegisterTargetsError::Unhandled(inner) => Error::Unhandled(inner),
1640        }
1641    }
1642}
1643impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_listener_certificates::RemoveListenerCertificatesError, R>>
1644    for Error
1645where
1646    R: Send + Sync + std::fmt::Debug + 'static,
1647{
1648    fn from(
1649        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_listener_certificates::RemoveListenerCertificatesError, R>,
1650    ) -> Self {
1651        match err {
1652            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1653            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1654                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1655                source: err.into(),
1656            }),
1657        }
1658    }
1659}
1660impl From<crate::operation::remove_listener_certificates::RemoveListenerCertificatesError> for Error {
1661    fn from(err: crate::operation::remove_listener_certificates::RemoveListenerCertificatesError) -> Self {
1662        match err {
1663            crate::operation::remove_listener_certificates::RemoveListenerCertificatesError::ListenerNotFoundException(inner) => {
1664                Error::ListenerNotFoundException(inner)
1665            }
1666            crate::operation::remove_listener_certificates::RemoveListenerCertificatesError::OperationNotPermittedException(inner) => {
1667                Error::OperationNotPermittedException(inner)
1668            }
1669            crate::operation::remove_listener_certificates::RemoveListenerCertificatesError::Unhandled(inner) => Error::Unhandled(inner),
1670        }
1671    }
1672}
1673impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags::RemoveTagsError, R>> for Error
1674where
1675    R: Send + Sync + std::fmt::Debug + 'static,
1676{
1677    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_tags::RemoveTagsError, R>) -> Self {
1678        match err {
1679            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1680            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1681                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1682                source: err.into(),
1683            }),
1684        }
1685    }
1686}
1687impl From<crate::operation::remove_tags::RemoveTagsError> for Error {
1688    fn from(err: crate::operation::remove_tags::RemoveTagsError) -> Self {
1689        match err {
1690            crate::operation::remove_tags::RemoveTagsError::ListenerNotFoundException(inner) => Error::ListenerNotFoundException(inner),
1691            crate::operation::remove_tags::RemoveTagsError::LoadBalancerNotFoundException(inner) => Error::LoadBalancerNotFoundException(inner),
1692            crate::operation::remove_tags::RemoveTagsError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
1693            crate::operation::remove_tags::RemoveTagsError::TargetGroupNotFoundException(inner) => Error::TargetGroupNotFoundException(inner),
1694            crate::operation::remove_tags::RemoveTagsError::TooManyTagsException(inner) => Error::TooManyTagsException(inner),
1695            crate::operation::remove_tags::RemoveTagsError::TrustStoreNotFoundException(inner) => Error::TrustStoreNotFoundException(inner),
1696            crate::operation::remove_tags::RemoveTagsError::Unhandled(inner) => Error::Unhandled(inner),
1697        }
1698    }
1699}
1700impl<R>
1701    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError, R>>
1702    for Error
1703where
1704    R: Send + Sync + std::fmt::Debug + 'static,
1705{
1706    fn from(
1707        err: ::aws_smithy_runtime_api::client::result::SdkError<
1708            crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError,
1709            R,
1710        >,
1711    ) -> Self {
1712        match err {
1713            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1714            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1715                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1716                source: err.into(),
1717            }),
1718        }
1719    }
1720}
1721impl From<crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError> for Error {
1722    fn from(err: crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError) -> Self {
1723        match err {
1724            crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError::RevocationIdNotFoundException(inner) => {
1725                Error::RevocationIdNotFoundException(inner)
1726            }
1727            crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError::TrustStoreNotFoundException(inner) => {
1728                Error::TrustStoreNotFoundException(inner)
1729            }
1730            crate::operation::remove_trust_store_revocations::RemoveTrustStoreRevocationsError::Unhandled(inner) => Error::Unhandled(inner),
1731        }
1732    }
1733}
1734impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_ip_address_type::SetIpAddressTypeError, R>> for Error
1735where
1736    R: Send + Sync + std::fmt::Debug + 'static,
1737{
1738    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_ip_address_type::SetIpAddressTypeError, R>) -> Self {
1739        match err {
1740            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1741            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1742                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1743                source: err.into(),
1744            }),
1745        }
1746    }
1747}
1748impl From<crate::operation::set_ip_address_type::SetIpAddressTypeError> for Error {
1749    fn from(err: crate::operation::set_ip_address_type::SetIpAddressTypeError) -> Self {
1750        match err {
1751            crate::operation::set_ip_address_type::SetIpAddressTypeError::InvalidConfigurationRequestException(inner) => {
1752                Error::InvalidConfigurationRequestException(inner)
1753            }
1754            crate::operation::set_ip_address_type::SetIpAddressTypeError::InvalidSubnetException(inner) => Error::InvalidSubnetException(inner),
1755            crate::operation::set_ip_address_type::SetIpAddressTypeError::LoadBalancerNotFoundException(inner) => {
1756                Error::LoadBalancerNotFoundException(inner)
1757            }
1758            crate::operation::set_ip_address_type::SetIpAddressTypeError::Unhandled(inner) => Error::Unhandled(inner),
1759        }
1760    }
1761}
1762impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_rule_priorities::SetRulePrioritiesError, R>> for Error
1763where
1764    R: Send + Sync + std::fmt::Debug + 'static,
1765{
1766    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_rule_priorities::SetRulePrioritiesError, R>) -> Self {
1767        match err {
1768            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1769            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1770                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1771                source: err.into(),
1772            }),
1773        }
1774    }
1775}
1776impl From<crate::operation::set_rule_priorities::SetRulePrioritiesError> for Error {
1777    fn from(err: crate::operation::set_rule_priorities::SetRulePrioritiesError) -> Self {
1778        match err {
1779            crate::operation::set_rule_priorities::SetRulePrioritiesError::OperationNotPermittedException(inner) => {
1780                Error::OperationNotPermittedException(inner)
1781            }
1782            crate::operation::set_rule_priorities::SetRulePrioritiesError::PriorityInUseException(inner) => Error::PriorityInUseException(inner),
1783            crate::operation::set_rule_priorities::SetRulePrioritiesError::RuleNotFoundException(inner) => Error::RuleNotFoundException(inner),
1784            crate::operation::set_rule_priorities::SetRulePrioritiesError::Unhandled(inner) => Error::Unhandled(inner),
1785        }
1786    }
1787}
1788impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_security_groups::SetSecurityGroupsError, R>> for Error
1789where
1790    R: Send + Sync + std::fmt::Debug + 'static,
1791{
1792    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_security_groups::SetSecurityGroupsError, R>) -> Self {
1793        match err {
1794            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1795            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1796                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1797                source: err.into(),
1798            }),
1799        }
1800    }
1801}
1802impl From<crate::operation::set_security_groups::SetSecurityGroupsError> for Error {
1803    fn from(err: crate::operation::set_security_groups::SetSecurityGroupsError) -> Self {
1804        match err {
1805            crate::operation::set_security_groups::SetSecurityGroupsError::InvalidConfigurationRequestException(inner) => {
1806                Error::InvalidConfigurationRequestException(inner)
1807            }
1808            crate::operation::set_security_groups::SetSecurityGroupsError::InvalidSecurityGroupException(inner) => {
1809                Error::InvalidSecurityGroupException(inner)
1810            }
1811            crate::operation::set_security_groups::SetSecurityGroupsError::LoadBalancerNotFoundException(inner) => {
1812                Error::LoadBalancerNotFoundException(inner)
1813            }
1814            crate::operation::set_security_groups::SetSecurityGroupsError::Unhandled(inner) => Error::Unhandled(inner),
1815        }
1816    }
1817}
1818impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_subnets::SetSubnetsError, R>> for Error
1819where
1820    R: Send + Sync + std::fmt::Debug + 'static,
1821{
1822    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::set_subnets::SetSubnetsError, R>) -> Self {
1823        match err {
1824            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
1825            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1826                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
1827                source: err.into(),
1828            }),
1829        }
1830    }
1831}
1832impl From<crate::operation::set_subnets::SetSubnetsError> for Error {
1833    fn from(err: crate::operation::set_subnets::SetSubnetsError) -> Self {
1834        match err {
1835            crate::operation::set_subnets::SetSubnetsError::AllocationIdNotFoundException(inner) => Error::AllocationIdNotFoundException(inner),
1836            crate::operation::set_subnets::SetSubnetsError::AvailabilityZoneNotSupportedException(inner) => {
1837                Error::AvailabilityZoneNotSupportedException(inner)
1838            }
1839            crate::operation::set_subnets::SetSubnetsError::CapacityReservationPendingException(inner) => {
1840                Error::CapacityReservationPendingException(inner)
1841            }
1842            crate::operation::set_subnets::SetSubnetsError::InvalidConfigurationRequestException(inner) => {
1843                Error::InvalidConfigurationRequestException(inner)
1844            }
1845            crate::operation::set_subnets::SetSubnetsError::InvalidSubnetException(inner) => Error::InvalidSubnetException(inner),
1846            crate::operation::set_subnets::SetSubnetsError::LoadBalancerNotFoundException(inner) => Error::LoadBalancerNotFoundException(inner),
1847            crate::operation::set_subnets::SetSubnetsError::SubnetNotFoundException(inner) => Error::SubnetNotFoundException(inner),
1848            crate::operation::set_subnets::SetSubnetsError::Unhandled(inner) => Error::Unhandled(inner),
1849        }
1850    }
1851}
1852impl<O, E> ::std::convert::From<::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>> for Error
1853where
1854    O: ::std::fmt::Debug + ::std::marker::Send + ::std::marker::Sync + 'static,
1855    E: ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static,
1856{
1857    fn from(err: ::aws_smithy_runtime_api::client::waiters::error::WaiterError<O, E>) -> Self {
1858        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
1859            meta: ::std::default::Default::default(),
1860            source: err.into(),
1861        })
1862    }
1863}
1864impl ::std::error::Error for Error {
1865    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
1866        match self {
1867            Error::AlpnPolicyNotSupportedException(inner) => inner.source(),
1868            Error::AllocationIdNotFoundException(inner) => inner.source(),
1869            Error::AvailabilityZoneNotSupportedException(inner) => inner.source(),
1870            Error::CaCertificatesBundleNotFoundException(inner) => inner.source(),
1871            Error::CapacityDecreaseRequestsLimitExceededException(inner) => inner.source(),
1872            Error::CapacityReservationPendingException(inner) => inner.source(),
1873            Error::CapacityUnitsLimitExceededException(inner) => inner.source(),
1874            Error::CertificateNotFoundException(inner) => inner.source(),
1875            Error::DeleteAssociationSameAccountException(inner) => inner.source(),
1876            Error::DuplicateListenerException(inner) => inner.source(),
1877            Error::DuplicateLoadBalancerNameException(inner) => inner.source(),
1878            Error::DuplicateTagKeysException(inner) => inner.source(),
1879            Error::DuplicateTargetGroupNameException(inner) => inner.source(),
1880            Error::DuplicateTrustStoreNameException(inner) => inner.source(),
1881            Error::HealthUnavailableException(inner) => inner.source(),
1882            Error::IncompatibleProtocolsException(inner) => inner.source(),
1883            Error::InsufficientCapacityException(inner) => inner.source(),
1884            Error::InvalidCaCertificatesBundleException(inner) => inner.source(),
1885            Error::InvalidConfigurationRequestException(inner) => inner.source(),
1886            Error::InvalidLoadBalancerActionException(inner) => inner.source(),
1887            Error::InvalidRevocationContentException(inner) => inner.source(),
1888            Error::InvalidSchemeException(inner) => inner.source(),
1889            Error::InvalidSecurityGroupException(inner) => inner.source(),
1890            Error::InvalidSubnetException(inner) => inner.source(),
1891            Error::InvalidTargetException(inner) => inner.source(),
1892            Error::ListenerNotFoundException(inner) => inner.source(),
1893            Error::LoadBalancerNotFoundException(inner) => inner.source(),
1894            Error::OperationNotPermittedException(inner) => inner.source(),
1895            Error::PriorRequestNotCompleteException(inner) => inner.source(),
1896            Error::PriorityInUseException(inner) => inner.source(),
1897            Error::ResourceInUseException(inner) => inner.source(),
1898            Error::ResourceNotFoundException(inner) => inner.source(),
1899            Error::RevocationContentNotFoundException(inner) => inner.source(),
1900            Error::RevocationIdNotFoundException(inner) => inner.source(),
1901            Error::RuleNotFoundException(inner) => inner.source(),
1902            Error::SslPolicyNotFoundException(inner) => inner.source(),
1903            Error::SubnetNotFoundException(inner) => inner.source(),
1904            Error::TargetGroupAssociationLimitException(inner) => inner.source(),
1905            Error::TargetGroupNotFoundException(inner) => inner.source(),
1906            Error::TooManyActionsException(inner) => inner.source(),
1907            Error::TooManyCertificatesException(inner) => inner.source(),
1908            Error::TooManyListenersException(inner) => inner.source(),
1909            Error::TooManyLoadBalancersException(inner) => inner.source(),
1910            Error::TooManyRegistrationsForTargetIdException(inner) => inner.source(),
1911            Error::TooManyRulesException(inner) => inner.source(),
1912            Error::TooManyTagsException(inner) => inner.source(),
1913            Error::TooManyTargetGroupsException(inner) => inner.source(),
1914            Error::TooManyTargetsException(inner) => inner.source(),
1915            Error::TooManyTrustStoreRevocationEntriesException(inner) => inner.source(),
1916            Error::TooManyTrustStoresException(inner) => inner.source(),
1917            Error::TooManyUniqueTargetGroupsPerLoadBalancerException(inner) => inner.source(),
1918            Error::TrustStoreAssociationNotFoundException(inner) => inner.source(),
1919            Error::TrustStoreInUseException(inner) => inner.source(),
1920            Error::TrustStoreNotFoundException(inner) => inner.source(),
1921            Error::TrustStoreNotReadyException(inner) => inner.source(),
1922            Error::UnsupportedProtocolException(inner) => inner.source(),
1923            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
1924        }
1925    }
1926}
1927impl ::aws_types::request_id::RequestId for Error {
1928    fn request_id(&self) -> Option<&str> {
1929        match self {
1930            Self::AlpnPolicyNotSupportedException(e) => e.request_id(),
1931            Self::AllocationIdNotFoundException(e) => e.request_id(),
1932            Self::AvailabilityZoneNotSupportedException(e) => e.request_id(),
1933            Self::CaCertificatesBundleNotFoundException(e) => e.request_id(),
1934            Self::CapacityDecreaseRequestsLimitExceededException(e) => e.request_id(),
1935            Self::CapacityReservationPendingException(e) => e.request_id(),
1936            Self::CapacityUnitsLimitExceededException(e) => e.request_id(),
1937            Self::CertificateNotFoundException(e) => e.request_id(),
1938            Self::DeleteAssociationSameAccountException(e) => e.request_id(),
1939            Self::DuplicateListenerException(e) => e.request_id(),
1940            Self::DuplicateLoadBalancerNameException(e) => e.request_id(),
1941            Self::DuplicateTagKeysException(e) => e.request_id(),
1942            Self::DuplicateTargetGroupNameException(e) => e.request_id(),
1943            Self::DuplicateTrustStoreNameException(e) => e.request_id(),
1944            Self::HealthUnavailableException(e) => e.request_id(),
1945            Self::IncompatibleProtocolsException(e) => e.request_id(),
1946            Self::InsufficientCapacityException(e) => e.request_id(),
1947            Self::InvalidCaCertificatesBundleException(e) => e.request_id(),
1948            Self::InvalidConfigurationRequestException(e) => e.request_id(),
1949            Self::InvalidLoadBalancerActionException(e) => e.request_id(),
1950            Self::InvalidRevocationContentException(e) => e.request_id(),
1951            Self::InvalidSchemeException(e) => e.request_id(),
1952            Self::InvalidSecurityGroupException(e) => e.request_id(),
1953            Self::InvalidSubnetException(e) => e.request_id(),
1954            Self::InvalidTargetException(e) => e.request_id(),
1955            Self::ListenerNotFoundException(e) => e.request_id(),
1956            Self::LoadBalancerNotFoundException(e) => e.request_id(),
1957            Self::OperationNotPermittedException(e) => e.request_id(),
1958            Self::PriorRequestNotCompleteException(e) => e.request_id(),
1959            Self::PriorityInUseException(e) => e.request_id(),
1960            Self::ResourceInUseException(e) => e.request_id(),
1961            Self::ResourceNotFoundException(e) => e.request_id(),
1962            Self::RevocationContentNotFoundException(e) => e.request_id(),
1963            Self::RevocationIdNotFoundException(e) => e.request_id(),
1964            Self::RuleNotFoundException(e) => e.request_id(),
1965            Self::SslPolicyNotFoundException(e) => e.request_id(),
1966            Self::SubnetNotFoundException(e) => e.request_id(),
1967            Self::TargetGroupAssociationLimitException(e) => e.request_id(),
1968            Self::TargetGroupNotFoundException(e) => e.request_id(),
1969            Self::TooManyActionsException(e) => e.request_id(),
1970            Self::TooManyCertificatesException(e) => e.request_id(),
1971            Self::TooManyListenersException(e) => e.request_id(),
1972            Self::TooManyLoadBalancersException(e) => e.request_id(),
1973            Self::TooManyRegistrationsForTargetIdException(e) => e.request_id(),
1974            Self::TooManyRulesException(e) => e.request_id(),
1975            Self::TooManyTagsException(e) => e.request_id(),
1976            Self::TooManyTargetGroupsException(e) => e.request_id(),
1977            Self::TooManyTargetsException(e) => e.request_id(),
1978            Self::TooManyTrustStoreRevocationEntriesException(e) => e.request_id(),
1979            Self::TooManyTrustStoresException(e) => e.request_id(),
1980            Self::TooManyUniqueTargetGroupsPerLoadBalancerException(e) => e.request_id(),
1981            Self::TrustStoreAssociationNotFoundException(e) => e.request_id(),
1982            Self::TrustStoreInUseException(e) => e.request_id(),
1983            Self::TrustStoreNotFoundException(e) => e.request_id(),
1984            Self::TrustStoreNotReadyException(e) => e.request_id(),
1985            Self::UnsupportedProtocolException(e) => e.request_id(),
1986            Self::Unhandled(e) => e.meta.request_id(),
1987        }
1988    }
1989}