1#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct DeleteConnection;
6impl DeleteConnection {
7 pub fn new() -> Self {
9 Self
10 }
11 pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::delete_connection::DeleteConnectionInput::SCHEMA;
13 pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::delete_connection::DeleteConnectionOutput::SCHEMA;
15 pub(crate) async fn orchestrate(
16 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
17 input: crate::operation::delete_connection::DeleteConnectionInput,
18 ) -> ::std::result::Result<
19 crate::operation::delete_connection::DeleteConnectionOutput,
20 ::aws_smithy_runtime_api::client::result::SdkError<
21 crate::operation::delete_connection::DeleteConnectionError,
22 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
23 >,
24 > {
25 let map_err = |err: ::aws_smithy_runtime_api::client::result::SdkError<
26 ::aws_smithy_runtime_api::client::interceptors::context::Error,
27 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
28 >| {
29 err.map_service_error(|err| {
30 err.downcast::<crate::operation::delete_connection::DeleteConnectionError>()
31 .expect("correct error type")
32 })
33 };
34 let context = Self::orchestrate_with_stop_point(runtime_plugins, input, ::aws_smithy_runtime::client::orchestrator::StopPoint::None)
35 .await
36 .map_err(map_err)?;
37 let output = context.finalize().map_err(map_err)?;
38 ::std::result::Result::Ok(
39 output
40 .downcast::<crate::operation::delete_connection::DeleteConnectionOutput>()
41 .expect("correct output type"),
42 )
43 }
44
45 pub(crate) async fn orchestrate_with_stop_point(
46 runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
47 input: crate::operation::delete_connection::DeleteConnectionInput,
48 stop_point: ::aws_smithy_runtime::client::orchestrator::StopPoint,
49 ) -> ::std::result::Result<
50 ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext,
51 ::aws_smithy_runtime_api::client::result::SdkError<
52 ::aws_smithy_runtime_api::client::interceptors::context::Error,
53 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
54 >,
55 > {
56 let input = ::aws_smithy_runtime_api::client::interceptors::context::Input::erase(input);
57 use ::tracing::Instrument;
58 ::aws_smithy_runtime::client::orchestrator::invoke_with_stop_point("Glue", "DeleteConnection", input, runtime_plugins, stop_point)
59 .instrument(::tracing::debug_span!(
62 "Glue.DeleteConnection",
63 "rpc.service" = "Glue",
64 "rpc.method" = "DeleteConnection",
65 "sdk_invocation_id" = ::fastrand::u32(1_000_000..10_000_000),
66 "rpc.system" = "aws-api",
67 ))
68 .await
69 }
70
71 pub(crate) fn operation_runtime_plugins(
72 client_runtime_plugins: ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
73 client_config: &crate::config::Config,
74 config_override: ::std::option::Option<crate::config::Builder>,
75 ) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
76 let mut runtime_plugins = client_runtime_plugins.with_operation_plugin(Self::new());
77
78 if let ::std::option::Option::Some(config_override) = config_override {
79 for plugin in config_override.runtime_plugins.iter().cloned() {
80 runtime_plugins = runtime_plugins.with_operation_plugin(plugin);
81 }
82 runtime_plugins = runtime_plugins.with_operation_plugin(crate::config::ConfigOverrideRuntimePlugin::new(
83 config_override,
84 client_config.config.clone(),
85 &client_config.runtime_components,
86 ));
87 }
88 runtime_plugins
89 }
90}
91pub(crate) mod error_registry {
100 pub(crate) static REGISTRY: ::std::sync::LazyLock<::aws_smithy_schema::registry::TypeRegistry> = ::std::sync::LazyLock::new(|| {
101 ::aws_smithy_schema::registry::TypeRegistry::builder()
102 .insert_error_shape(
103 crate::types::error::EntityNotFoundException::SCHEMA,
104 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
105 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::EntityNotFoundException::deserialize(d)?))
106 },
107 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
108 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::EntityNotFoundException::deserialize(d)?))
109 },
110 )
111.insert_error_shape(
112 crate::types::error::OperationTimeoutException::SCHEMA,
113 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
114 ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::OperationTimeoutException::deserialize(d)?))
115 },
116 |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync>, ::aws_smithy_schema::serde::SerdeError> {
117 ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::OperationTimeoutException::deserialize(d)?))
118 },
119 )
120 .build()
121 });
122}
123impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for DeleteConnection {
124 fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
125 let mut cfg = ::aws_smithy_types::config_bag::Layer::new("DeleteConnection");
126
127 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
128 DeleteConnectionRequestSerializer,
129 ));
130 cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
131 DeleteConnectionResponseDeserializer,
132 ));
133
134 cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
135 crate::config::auth::Params::builder()
136 .operation_name("DeleteConnection")
137 .build()
138 .expect("required fields set"),
139 ));
140
141 cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("DeleteConnection", "Glue"));
142 let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
143 signing_options.double_uri_encode = true;
144 signing_options.content_sha256_header = false;
145 signing_options.normalize_uri_path = true;
146 signing_options.payload_override = None;
147
148 cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
149 signing_options,
150 ..::std::default::Default::default()
151 });
152
153 ::std::option::Option::Some(cfg.freeze())
154 }
155
156 fn runtime_components(
157 &self,
158 _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
159 ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
160 #[allow(unused_mut)]
161 let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("DeleteConnection")
162 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
163 DeleteConnectionTelemetryInputCaptureInterceptor,
164 ))
165 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
166 ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
167 ))
168 .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
169 DeleteConnectionEndpointParamsInterceptor,
170 ))
171 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
172 crate::operation::delete_connection::DeleteConnectionError,
173 >::new())
174 .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
175 crate::operation::delete_connection::DeleteConnectionError,
176 >::new())
177 .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
178 crate::operation::delete_connection::DeleteConnectionError,
179 >::new())
180 .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
181 crate::operation::delete_connection::DeleteConnectionError,
182 >::new());
183
184 ::std::borrow::Cow::Owned(rcb)
185 }
186}
187
188#[derive(Debug)]
189struct DeleteConnectionTelemetryInputCaptureInterceptor;
190
191#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
192impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteConnectionTelemetryInputCaptureInterceptor {
193 fn name(&self) -> &'static str {
194 "DeleteConnectionTelemetryInputCaptureInterceptor"
195 }
196
197 fn read_before_execution(
198 &self,
199 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
200 '_,
201 ::aws_smithy_runtime_api::client::interceptors::context::Input,
202 ::aws_smithy_runtime_api::client::interceptors::context::Output,
203 ::aws_smithy_runtime_api::client::interceptors::context::Error,
204 >,
205 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
206 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
207 let ::std::option::Option::Some(requested) = cfg
209 .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
210 .filter(|r| !r.is_empty())
211 else {
212 return ::std::result::Result::Ok(());
213 };
214
215 let ::std::option::Option::Some(input) = context.input().downcast_ref::<DeleteConnectionInput>() else {
216 return ::std::result::Result::Ok(());
218 };
219
220 let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
221 if requested.should_capture("CatalogId") {
222 if let ::std::option::Option::Some(value) = input.catalog_id.as_deref() {
223 captured.insert("CatalogId", value);
224 }
225 }
226 if requested.should_capture("ConnectionName") {
227 if let ::std::option::Option::Some(value) = input.connection_name.as_deref() {
228 captured.insert("ConnectionName", value);
229 }
230 }
231
232 cfg.interceptor_state().store_put(captured);
233 ::std::result::Result::Ok(())
234 }
235}
236#[derive(Debug)]
237struct DeleteConnectionResponseDeserializer;
238impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for DeleteConnectionResponseDeserializer {
239 fn deserialize_nonstreaming_with_config(
240 &self,
241 response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
242 _cfg: &::aws_smithy_types::config_bag::ConfigBag,
243 ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
244 let (success, status) = (response.status().is_success(), response.status().as_u16());
245 #[allow(unused_variables)]
250 let body = response.body().bytes().expect("body loaded");
251 let headers = response.headers();
252 #[allow(unused_mut)]
253 let mut force_error = false;
254 ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
255 if !success && status != 200 || force_error {
256 let protocol = _cfg
257 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
258 .expect("a SharedClientProtocol is required");
259 #[allow(unused_mut)]
260 let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
261 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
262 })?;
263 generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
264 let generic = generic_builder.build();
265 let error_code = match generic.code() {
266 ::std::option::Option::Some(code) => code,
267 ::std::option::Option::None => {
268 return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
269 ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::delete_connection::DeleteConnectionError::unhandled(
270 generic,
271 )),
272 ))
273 }
274 };
275 let _error_message = generic.message().map(|msg| msg.to_owned());
276 let err = match error_code {
277 "EntityNotFoundException" => crate::operation::delete_connection::DeleteConnectionError::EntityNotFoundException({
278 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
279 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
280 e,
281 ))
282 })?;
283 let mut tmp = <crate::types::error::builders::EntityNotFoundExceptionBuilder>::default();
284 tmp.deserialize_members(&mut *deser).map_err(|e| {
285 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
286 e,
287 ))
288 })?;
289 if tmp.message.is_none() {
290 tmp.message = _error_message;
291 }
292 let tmp = tmp.meta(generic);
293 tmp.build()
294 }),
295 "OperationTimeoutException" => crate::operation::delete_connection::DeleteConnectionError::OperationTimeoutException({
296 let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
297 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
298 e,
299 ))
300 })?;
301 let mut tmp = <crate::types::error::builders::OperationTimeoutExceptionBuilder>::default();
302 tmp.deserialize_members(&mut *deser).map_err(|e| {
303 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
304 e,
305 ))
306 })?;
307 if tmp.message.is_none() {
308 tmp.message = _error_message;
309 }
310 let tmp = tmp.meta(generic);
311 tmp.build()
312 }),
313 _ => {
314 match protocol
322 .deserialize_error_response(response, _cfg)
323 .ok()
324 .and_then(|mut deser| {
325 ::aws_smithy_schema::registry::reify_error(
326 crate::operation::delete_connection::error_registry::REGISTRY
327 .or(&crate::error_type_registry::REGISTRY),
328 error_code,
329 &mut *deser,
330 )
331 }) {
332 ::std::option::Option::Some(source) => <crate::operation::delete_connection::DeleteConnectionError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
333 ::std::option::Option::None => crate::operation::delete_connection::DeleteConnectionError::generic(generic),
334 }
335 }
336 };
337 ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
338 ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
339 ))
340 } else {
341 let protocol = _cfg
342 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
343 .expect("a SharedClientProtocol is required");
344 let mut deser = protocol
345 .deserialize_response(response, DeleteConnection::OUTPUT_SCHEMA, _cfg)
346 .map_err(|e| {
347 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
348 })?;
349 let _response_headers = headers;
353 #[allow(unused_mut)]
357 let mut output = <crate::operation::delete_connection::builders::DeleteConnectionOutputBuilder>::default();
358 output.deserialize_members(&mut *deser).map_err(|e| {
359 ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
360 })?;
361 output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
362 let output = output.build();
363 ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
364 }
365 }
366}
367#[derive(Debug)]
368struct DeleteConnectionRequestSerializer;
369impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for DeleteConnectionRequestSerializer {
370 #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
371 fn serialize_input(
372 &self,
373 input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
374 _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
375 ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
376 let input = input
377 .downcast::<crate::operation::delete_connection::DeleteConnectionInput>()
378 .expect("correct type");
379
380 let protocol = _cfg
381 .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
382 .expect("a SharedClientProtocol is required");
383 let mut request = protocol
384 .serialize_request(&input, DeleteConnection::INPUT_SCHEMA, "/", _cfg)
385 .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
386
387 return ::std::result::Result::Ok(request);
388 }
389}
390#[derive(Debug)]
391struct DeleteConnectionEndpointParamsInterceptor;
392
393#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
394impl ::aws_smithy_runtime_api::client::interceptors::Intercept for DeleteConnectionEndpointParamsInterceptor {
395 fn name(&self) -> &'static str {
396 "DeleteConnectionEndpointParamsInterceptor"
397 }
398
399 fn read_before_execution(
400 &self,
401 context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
402 '_,
403 ::aws_smithy_runtime_api::client::interceptors::context::Input,
404 ::aws_smithy_runtime_api::client::interceptors::context::Output,
405 ::aws_smithy_runtime_api::client::interceptors::context::Error,
406 >,
407 cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
408 ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
409 let _input = context
410 .input()
411 .downcast_ref::<DeleteConnectionInput>()
412 .ok_or("failed to downcast to DeleteConnectionInput")?;
413
414 let params = crate::config::endpoint::Params::builder()
415 .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
416 .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
417 .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
418 .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
419 .build()
420 .map_err(|err| {
421 ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
422 })?;
423 cfg.interceptor_state()
424 .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
425 ::std::result::Result::Ok(())
426 }
427}
428
429#[non_exhaustive]
434#[derive(::std::fmt::Debug)]
435pub enum DeleteConnectionError {
436 EntityNotFoundException(crate::types::error::EntityNotFoundException),
438 OperationTimeoutException(crate::types::error::OperationTimeoutException),
440 #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
442 variable wildcard pattern and check `.code()`:
443 \
444 `err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
445 \
446 See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-DeleteConnectionError) for what information is available for the error.")]
447 Unhandled(crate::error::sealed_unhandled::Unhandled),
448}
449impl DeleteConnectionError {
450 pub fn unhandled(
452 err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
453 ) -> Self {
454 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
455 source: err.into(),
456 meta: ::std::default::Default::default(),
457 })
458 }
459
460 pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
462 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
463 source: err.clone().into(),
464 meta: err,
465 })
466 }
467 pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
472 match self {
473 Self::EntityNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
474 Self::OperationTimeoutException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
475 Self::Unhandled(e) => &e.meta,
476 }
477 }
478 pub fn is_entity_not_found_exception(&self) -> bool {
480 matches!(self, Self::EntityNotFoundException(_))
481 }
482 pub fn is_operation_timeout_exception(&self) -> bool {
484 matches!(self, Self::OperationTimeoutException(_))
485 }
486}
487impl ::std::error::Error for DeleteConnectionError {
488 fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
489 match self {
490 Self::EntityNotFoundException(_inner) => ::std::option::Option::Some(_inner),
491 Self::OperationTimeoutException(_inner) => ::std::option::Option::Some(_inner),
492 Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
493 }
494 }
495}
496impl ::std::fmt::Display for DeleteConnectionError {
497 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
498 match self {
499 Self::EntityNotFoundException(_inner) => _inner.fmt(f),
500 Self::OperationTimeoutException(_inner) => _inner.fmt(f),
501 Self::Unhandled(_inner) => {
502 if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
503 write!(f, "unhandled error ({code})")
504 } else {
505 f.write_str("unhandled error")
506 }
507 }
508 }
509 }
510}
511impl ::aws_smithy_types::retry::ProvideErrorKind for DeleteConnectionError {
512 fn code(&self) -> ::std::option::Option<&str> {
513 ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
514 }
515 fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
516 ::std::option::Option::None
517 }
518}
519impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for DeleteConnectionError {
520 fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
521 match self {
522 Self::EntityNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
523 Self::OperationTimeoutException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
524 Self::Unhandled(_inner) => &_inner.meta,
525 }
526 }
527}
528impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for DeleteConnectionError {
529 fn create_unhandled_error(
530 source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
531 meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
532 ) -> Self {
533 Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
534 source,
535 meta: meta.unwrap_or_default(),
536 })
537 }
538}
539impl ::aws_types::request_id::RequestId for crate::operation::delete_connection::DeleteConnectionError {
540 fn request_id(&self) -> Option<&str> {
541 self.meta().request_id()
542 }
543}
544
545pub use crate::operation::delete_connection::_delete_connection_input::DeleteConnectionInput;
546
547pub use crate::operation::delete_connection::_delete_connection_output::DeleteConnectionOutput;
548
549mod _delete_connection_input;
550
551mod _delete_connection_output;
552
553pub mod builders;