1#[non_exhaustive]
4#[derive(::std::fmt::Debug)]
5pub enum Error {
6 AccessDeniedException(crate::types::error::AccessDeniedException),
8 ConflictException(crate::types::error::ConflictException),
10 InternalServerException(crate::types::error::InternalServerException),
12 ResourceNotFoundException(crate::types::error::ResourceNotFoundException),
14 ServiceQuotaExceededException(crate::types::error::ServiceQuotaExceededException),
16 ThrottlingException(crate::types::error::ThrottlingException),
18 ValidationException(crate::types::error::ValidationException),
20 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
22 variable wildcard pattern and check `.code()`:
23 \
24 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
25 \
26 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
27 Unhandled(crate::error::sealed_unhandled::Unhandled),
28}
29impl ::std::fmt::Display for Error {
30 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
31 match self {
32 Error::AccessDeniedException(inner) => inner.fmt(f),
33 Error::ConflictException(inner) => inner.fmt(f),
34 Error::InternalServerException(inner) => inner.fmt(f),
35 Error::ResourceNotFoundException(inner) => inner.fmt(f),
36 Error::ServiceQuotaExceededException(inner) => inner.fmt(f),
37 Error::ThrottlingException(inner) => inner.fmt(f),
38 Error::ValidationException(inner) => inner.fmt(f),
39 Error::Unhandled(_) => {
40 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
41 write!(f, "unhandled error ({code})")
42 } else {
43 f.write_str("unhandled error")
44 }
45 }
46 }
47 }
48}
49impl From<::aws_smithy_types::error::operation::BuildError> for Error {
50 fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
51 Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
52 source: value.into(),
53 meta: ::std::default::Default::default(),
54 })
55 }
56}
57impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
58 fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
59 match self {
60 Self::AccessDeniedException(inner) => inner.meta(),
61 Self::ConflictException(inner) => inner.meta(),
62 Self::InternalServerException(inner) => inner.meta(),
63 Self::ResourceNotFoundException(inner) => inner.meta(),
64 Self::ServiceQuotaExceededException(inner) => inner.meta(),
65 Self::ThrottlingException(inner) => inner.meta(),
66 Self::ValidationException(inner) => inner.meta(),
67 Self::Unhandled(inner) => &inner.meta,
68 }
69 }
70}
71impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitor::CreateMonitorError, R>> for Error
72where
73 R: Send + Sync + std::fmt::Debug + 'static,
74{
75 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_monitor::CreateMonitorError, R>) -> Self {
76 match err {
77 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
78 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
79 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
80 source: err.into(),
81 }),
82 }
83 }
84}
85impl From<crate::operation::create_monitor::CreateMonitorError> for Error {
86 fn from(err: crate::operation::create_monitor::CreateMonitorError) -> Self {
87 match err {
88 crate::operation::create_monitor::CreateMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
89 crate::operation::create_monitor::CreateMonitorError::ConflictException(inner) => Error::ConflictException(inner),
90 crate::operation::create_monitor::CreateMonitorError::InternalServerException(inner) => Error::InternalServerException(inner),
91 crate::operation::create_monitor::CreateMonitorError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
92 crate::operation::create_monitor::CreateMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
93 crate::operation::create_monitor::CreateMonitorError::ValidationException(inner) => Error::ValidationException(inner),
94 crate::operation::create_monitor::CreateMonitorError::Unhandled(inner) => Error::Unhandled(inner),
95 }
96 }
97}
98impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_probe::CreateProbeError, R>> for Error
99where
100 R: Send + Sync + std::fmt::Debug + 'static,
101{
102 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::create_probe::CreateProbeError, R>) -> Self {
103 match err {
104 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
105 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
106 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
107 source: err.into(),
108 }),
109 }
110 }
111}
112impl From<crate::operation::create_probe::CreateProbeError> for Error {
113 fn from(err: crate::operation::create_probe::CreateProbeError) -> Self {
114 match err {
115 crate::operation::create_probe::CreateProbeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
116 crate::operation::create_probe::CreateProbeError::InternalServerException(inner) => Error::InternalServerException(inner),
117 crate::operation::create_probe::CreateProbeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
118 crate::operation::create_probe::CreateProbeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
119 crate::operation::create_probe::CreateProbeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
120 crate::operation::create_probe::CreateProbeError::ValidationException(inner) => Error::ValidationException(inner),
121 crate::operation::create_probe::CreateProbeError::Unhandled(inner) => Error::Unhandled(inner),
122 }
123 }
124}
125impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitor::DeleteMonitorError, R>> for Error
126where
127 R: Send + Sync + std::fmt::Debug + 'static,
128{
129 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_monitor::DeleteMonitorError, R>) -> Self {
130 match err {
131 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
132 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
133 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
134 source: err.into(),
135 }),
136 }
137 }
138}
139impl From<crate::operation::delete_monitor::DeleteMonitorError> for Error {
140 fn from(err: crate::operation::delete_monitor::DeleteMonitorError) -> Self {
141 match err {
142 crate::operation::delete_monitor::DeleteMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
143 crate::operation::delete_monitor::DeleteMonitorError::InternalServerException(inner) => Error::InternalServerException(inner),
144 crate::operation::delete_monitor::DeleteMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
145 crate::operation::delete_monitor::DeleteMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
146 crate::operation::delete_monitor::DeleteMonitorError::ValidationException(inner) => Error::ValidationException(inner),
147 crate::operation::delete_monitor::DeleteMonitorError::Unhandled(inner) => Error::Unhandled(inner),
148 }
149 }
150}
151impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_probe::DeleteProbeError, R>> for Error
152where
153 R: Send + Sync + std::fmt::Debug + 'static,
154{
155 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::delete_probe::DeleteProbeError, R>) -> Self {
156 match err {
157 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
158 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
159 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
160 source: err.into(),
161 }),
162 }
163 }
164}
165impl From<crate::operation::delete_probe::DeleteProbeError> for Error {
166 fn from(err: crate::operation::delete_probe::DeleteProbeError) -> Self {
167 match err {
168 crate::operation::delete_probe::DeleteProbeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
169 crate::operation::delete_probe::DeleteProbeError::InternalServerException(inner) => Error::InternalServerException(inner),
170 crate::operation::delete_probe::DeleteProbeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
171 crate::operation::delete_probe::DeleteProbeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
172 crate::operation::delete_probe::DeleteProbeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
173 crate::operation::delete_probe::DeleteProbeError::ValidationException(inner) => Error::ValidationException(inner),
174 crate::operation::delete_probe::DeleteProbeError::Unhandled(inner) => Error::Unhandled(inner),
175 }
176 }
177}
178impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_monitor::GetMonitorError, R>> for Error
179where
180 R: Send + Sync + std::fmt::Debug + 'static,
181{
182 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_monitor::GetMonitorError, R>) -> Self {
183 match err {
184 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
185 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
186 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
187 source: err.into(),
188 }),
189 }
190 }
191}
192impl From<crate::operation::get_monitor::GetMonitorError> for Error {
193 fn from(err: crate::operation::get_monitor::GetMonitorError) -> Self {
194 match err {
195 crate::operation::get_monitor::GetMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
196 crate::operation::get_monitor::GetMonitorError::InternalServerException(inner) => Error::InternalServerException(inner),
197 crate::operation::get_monitor::GetMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
198 crate::operation::get_monitor::GetMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
199 crate::operation::get_monitor::GetMonitorError::ValidationException(inner) => Error::ValidationException(inner),
200 crate::operation::get_monitor::GetMonitorError::Unhandled(inner) => Error::Unhandled(inner),
201 }
202 }
203}
204impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_probe::GetProbeError, R>> for Error
205where
206 R: Send + Sync + std::fmt::Debug + 'static,
207{
208 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::get_probe::GetProbeError, R>) -> Self {
209 match err {
210 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
211 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
212 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
213 source: err.into(),
214 }),
215 }
216 }
217}
218impl From<crate::operation::get_probe::GetProbeError> for Error {
219 fn from(err: crate::operation::get_probe::GetProbeError) -> Self {
220 match err {
221 crate::operation::get_probe::GetProbeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
222 crate::operation::get_probe::GetProbeError::InternalServerException(inner) => Error::InternalServerException(inner),
223 crate::operation::get_probe::GetProbeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
224 crate::operation::get_probe::GetProbeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
225 crate::operation::get_probe::GetProbeError::ValidationException(inner) => Error::ValidationException(inner),
226 crate::operation::get_probe::GetProbeError::Unhandled(inner) => Error::Unhandled(inner),
227 }
228 }
229}
230impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitors::ListMonitorsError, R>> for Error
231where
232 R: Send + Sync + std::fmt::Debug + 'static,
233{
234 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_monitors::ListMonitorsError, R>) -> Self {
235 match err {
236 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
237 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
238 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
239 source: err.into(),
240 }),
241 }
242 }
243}
244impl From<crate::operation::list_monitors::ListMonitorsError> for Error {
245 fn from(err: crate::operation::list_monitors::ListMonitorsError) -> Self {
246 match err {
247 crate::operation::list_monitors::ListMonitorsError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
248 crate::operation::list_monitors::ListMonitorsError::InternalServerException(inner) => Error::InternalServerException(inner),
249 crate::operation::list_monitors::ListMonitorsError::ThrottlingException(inner) => Error::ThrottlingException(inner),
250 crate::operation::list_monitors::ListMonitorsError::ValidationException(inner) => Error::ValidationException(inner),
251 crate::operation::list_monitors::ListMonitorsError::Unhandled(inner) => Error::Unhandled(inner),
252 }
253 }
254}
255impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>> for Error
256where
257 R: Send + Sync + std::fmt::Debug + 'static,
258{
259 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::list_tags_for_resource::ListTagsForResourceError, R>) -> Self {
260 match err {
261 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
262 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
263 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
264 source: err.into(),
265 }),
266 }
267 }
268}
269impl From<crate::operation::list_tags_for_resource::ListTagsForResourceError> for Error {
270 fn from(err: crate::operation::list_tags_for_resource::ListTagsForResourceError) -> Self {
271 match err {
272 crate::operation::list_tags_for_resource::ListTagsForResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
273 crate::operation::list_tags_for_resource::ListTagsForResourceError::ConflictException(inner) => Error::ConflictException(inner),
274 crate::operation::list_tags_for_resource::ListTagsForResourceError::InternalServerException(inner) => {
275 Error::InternalServerException(inner)
276 }
277 crate::operation::list_tags_for_resource::ListTagsForResourceError::ResourceNotFoundException(inner) => {
278 Error::ResourceNotFoundException(inner)
279 }
280 crate::operation::list_tags_for_resource::ListTagsForResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
281 crate::operation::list_tags_for_resource::ListTagsForResourceError::ValidationException(inner) => Error::ValidationException(inner),
282 crate::operation::list_tags_for_resource::ListTagsForResourceError::Unhandled(inner) => Error::Unhandled(inner),
283 }
284 }
285}
286impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>> for Error
287where
288 R: Send + Sync + std::fmt::Debug + 'static,
289{
290 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::tag_resource::TagResourceError, R>) -> Self {
291 match err {
292 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
293 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
294 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
295 source: err.into(),
296 }),
297 }
298 }
299}
300impl From<crate::operation::tag_resource::TagResourceError> for Error {
301 fn from(err: crate::operation::tag_resource::TagResourceError) -> Self {
302 match err {
303 crate::operation::tag_resource::TagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
304 crate::operation::tag_resource::TagResourceError::ConflictException(inner) => Error::ConflictException(inner),
305 crate::operation::tag_resource::TagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
306 crate::operation::tag_resource::TagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
307 crate::operation::tag_resource::TagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
308 crate::operation::tag_resource::TagResourceError::ValidationException(inner) => Error::ValidationException(inner),
309 crate::operation::tag_resource::TagResourceError::Unhandled(inner) => Error::Unhandled(inner),
310 }
311 }
312}
313impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>> for Error
314where
315 R: Send + Sync + std::fmt::Debug + 'static,
316{
317 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::untag_resource::UntagResourceError, R>) -> Self {
318 match err {
319 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
320 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
321 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
322 source: err.into(),
323 }),
324 }
325 }
326}
327impl From<crate::operation::untag_resource::UntagResourceError> for Error {
328 fn from(err: crate::operation::untag_resource::UntagResourceError) -> Self {
329 match err {
330 crate::operation::untag_resource::UntagResourceError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
331 crate::operation::untag_resource::UntagResourceError::ConflictException(inner) => Error::ConflictException(inner),
332 crate::operation::untag_resource::UntagResourceError::InternalServerException(inner) => Error::InternalServerException(inner),
333 crate::operation::untag_resource::UntagResourceError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
334 crate::operation::untag_resource::UntagResourceError::ThrottlingException(inner) => Error::ThrottlingException(inner),
335 crate::operation::untag_resource::UntagResourceError::ValidationException(inner) => Error::ValidationException(inner),
336 crate::operation::untag_resource::UntagResourceError::Unhandled(inner) => Error::Unhandled(inner),
337 }
338 }
339}
340impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitor::UpdateMonitorError, R>> for Error
341where
342 R: Send + Sync + std::fmt::Debug + 'static,
343{
344 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_monitor::UpdateMonitorError, R>) -> Self {
345 match err {
346 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
347 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
348 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
349 source: err.into(),
350 }),
351 }
352 }
353}
354impl From<crate::operation::update_monitor::UpdateMonitorError> for Error {
355 fn from(err: crate::operation::update_monitor::UpdateMonitorError) -> Self {
356 match err {
357 crate::operation::update_monitor::UpdateMonitorError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
358 crate::operation::update_monitor::UpdateMonitorError::InternalServerException(inner) => Error::InternalServerException(inner),
359 crate::operation::update_monitor::UpdateMonitorError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
360 crate::operation::update_monitor::UpdateMonitorError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
361 crate::operation::update_monitor::UpdateMonitorError::ThrottlingException(inner) => Error::ThrottlingException(inner),
362 crate::operation::update_monitor::UpdateMonitorError::ValidationException(inner) => Error::ValidationException(inner),
363 crate::operation::update_monitor::UpdateMonitorError::Unhandled(inner) => Error::Unhandled(inner),
364 }
365 }
366}
367impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_probe::UpdateProbeError, R>> for Error
368where
369 R: Send + Sync + std::fmt::Debug + 'static,
370{
371 fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::update_probe::UpdateProbeError, R>) -> Self {
372 match err {
373 ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
374 _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
375 meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
376 source: err.into(),
377 }),
378 }
379 }
380}
381impl From<crate::operation::update_probe::UpdateProbeError> for Error {
382 fn from(err: crate::operation::update_probe::UpdateProbeError) -> Self {
383 match err {
384 crate::operation::update_probe::UpdateProbeError::AccessDeniedException(inner) => Error::AccessDeniedException(inner),
385 crate::operation::update_probe::UpdateProbeError::InternalServerException(inner) => Error::InternalServerException(inner),
386 crate::operation::update_probe::UpdateProbeError::ResourceNotFoundException(inner) => Error::ResourceNotFoundException(inner),
387 crate::operation::update_probe::UpdateProbeError::ServiceQuotaExceededException(inner) => Error::ServiceQuotaExceededException(inner),
388 crate::operation::update_probe::UpdateProbeError::ThrottlingException(inner) => Error::ThrottlingException(inner),
389 crate::operation::update_probe::UpdateProbeError::ValidationException(inner) => Error::ValidationException(inner),
390 crate::operation::update_probe::UpdateProbeError::Unhandled(inner) => Error::Unhandled(inner),
391 }
392 }
393}
394impl ::std::error::Error for Error {
395 fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
396 match self {
397 Error::AccessDeniedException(inner) => inner.source(),
398 Error::ConflictException(inner) => inner.source(),
399 Error::InternalServerException(inner) => inner.source(),
400 Error::ResourceNotFoundException(inner) => inner.source(),
401 Error::ServiceQuotaExceededException(inner) => inner.source(),
402 Error::ThrottlingException(inner) => inner.source(),
403 Error::ValidationException(inner) => inner.source(),
404 Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
405 }
406 }
407}
408impl ::aws_types::request_id::RequestId for Error {
409 fn request_id(&self) -> Option<&str> {
410 match self {
411 Self::AccessDeniedException(e) => e.request_id(),
412 Self::ConflictException(e) => e.request_id(),
413 Self::InternalServerException(e) => e.request_id(),
414 Self::ResourceNotFoundException(e) => e.request_id(),
415 Self::ServiceQuotaExceededException(e) => e.request_id(),
416 Self::ThrottlingException(e) => e.request_id(),
417 Self::ValidationException(e) => e.request_id(),
418 Self::Unhandled(e) => e.meta.request_id(),
419 }
420 }
421}