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