Skip to main content

aws_sdk_workspaces/operation/
rebuild_workspaces.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2/// Orchestration and serialization glue logic for `RebuildWorkspaces`.
3#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
4#[non_exhaustive]
5pub struct RebuildWorkspaces;
6impl RebuildWorkspaces {
7    /// Creates a new `RebuildWorkspaces`
8    pub fn new() -> Self {
9        Self
10    }
11    /// The schema for this operation's input shape.
12    pub const INPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::rebuild_workspaces::RebuildWorkspacesInput::SCHEMA;
13    /// The schema for this operation's output shape.
14    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::rebuild_workspaces::RebuildWorkspacesOutput::SCHEMA;
15    pub(crate) async fn orchestrate(
16        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
17        input: crate::operation::rebuild_workspaces::RebuildWorkspacesInput,
18    ) -> ::std::result::Result<
19        crate::operation::rebuild_workspaces::RebuildWorkspacesOutput,
20        ::aws_smithy_runtime_api::client::result::SdkError<
21            crate::operation::rebuild_workspaces::RebuildWorkspacesError,
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::rebuild_workspaces::RebuildWorkspacesError>()
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::rebuild_workspaces::RebuildWorkspacesOutput>()
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::rebuild_workspaces::RebuildWorkspacesInput,
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("WorkSpaces", "RebuildWorkspaces", input, runtime_plugins, stop_point)
59            // Create a parent span for the entire operation. Includes a random, internal-only,
60            // seven-digit ID for the operation orchestration so that it can be correlated in the logs.
61            .instrument(::tracing::debug_span!(
62                "WorkSpaces.RebuildWorkspaces",
63                "rpc.service" = "WorkSpaces",
64                "rpc.method" = "RebuildWorkspaces",
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}
91/// Per-operation error registry. Contains an entry for every modeled
92/// error this operation can throw.
93///
94/// Used by the schema-serde error path as the operation-scoped lookup
95/// for registry-backed error reification: an error code that does not
96/// match one of the operation's modeled errors directly is resolved
97/// against this registry first, then widened to the service-wide error
98/// registry.
99pub(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::OperationNotSupportedException::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::OperationNotSupportedException::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::OperationNotSupportedException::deserialize(d)?))
109                        },
110                    )
111                            .build()
112    });
113}
114impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for RebuildWorkspaces {
115    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
116        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("RebuildWorkspaces");
117
118        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
119            RebuildWorkspacesRequestSerializer,
120        ));
121        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
122            RebuildWorkspacesResponseDeserializer,
123        ));
124
125        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
126            crate::config::auth::Params::builder()
127                .operation_name("RebuildWorkspaces")
128                .build()
129                .expect("required fields set"),
130        ));
131
132        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new(
133            "RebuildWorkspaces",
134            "WorkSpaces",
135        ));
136        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
137        signing_options.double_uri_encode = true;
138        signing_options.content_sha256_header = false;
139        signing_options.normalize_uri_path = true;
140        signing_options.payload_override = None;
141
142        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
143            signing_options,
144            ..::std::default::Default::default()
145        });
146
147        ::std::option::Option::Some(cfg.freeze())
148    }
149
150    fn runtime_components(
151        &self,
152        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
153    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
154        #[allow(unused_mut)]
155        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("RebuildWorkspaces")
156            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
157                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
158            ))
159            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
160                RebuildWorkspacesEndpointParamsInterceptor,
161            ))
162            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
163                crate::operation::rebuild_workspaces::RebuildWorkspacesError,
164            >::new())
165            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
166                crate::operation::rebuild_workspaces::RebuildWorkspacesError,
167            >::new())
168            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
169                crate::operation::rebuild_workspaces::RebuildWorkspacesError,
170            >::new())
171            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
172                crate::operation::rebuild_workspaces::RebuildWorkspacesError,
173            >::new());
174
175        ::std::borrow::Cow::Owned(rcb)
176    }
177}
178
179#[derive(Debug)]
180struct RebuildWorkspacesResponseDeserializer;
181impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for RebuildWorkspacesResponseDeserializer {
182    fn deserialize_nonstreaming_with_config(
183        &self,
184        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
185        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
186    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
187        let (success, status) = (response.status().is_success(), response.status().as_u16());
188        // Load body and headers BEFORE BeforeParseResponse so customizations
189        // (e.g., S3's `body_is_error` check that detects errors returned with
190        // HTTP 200) can inspect them. The legacy non-streaming path also
191        // loads `body` before firing this hook.
192        #[allow(unused_variables)]
193        let body = response.body().bytes().expect("body loaded");
194        let headers = response.headers();
195        #[allow(unused_mut)]
196        let mut force_error = false;
197        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
198        if !success && status != 200 || force_error {
199            let protocol = _cfg
200                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
201                .expect("a SharedClientProtocol is required");
202            #[allow(unused_mut)]
203            let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
204                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
205            })?;
206            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
207            let generic = generic_builder.build();
208            let error_code = match generic.code() {
209                ::std::option::Option::Some(code) => code,
210                ::std::option::Option::None => {
211                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
212                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::rebuild_workspaces::RebuildWorkspacesError::unhandled(
213                            generic,
214                        )),
215                    ))
216                }
217            };
218            let _error_message = generic.message().map(|msg| msg.to_owned());
219            let err = match error_code {
220                "OperationNotSupportedException" => crate::operation::rebuild_workspaces::RebuildWorkspacesError::OperationNotSupportedException({
221                    let mut deser = protocol.deserialize_error_response(response, _cfg).map_err(|e| {
222                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
223                            e,
224                        ))
225                    })?;
226                    let mut tmp = <crate::types::error::builders::OperationNotSupportedExceptionBuilder>::default();
227                    tmp.deserialize_members(&mut *deser).map_err(|e| {
228                        ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(
229                            e,
230                        ))
231                    })?;
232                    if tmp.message.is_none() {
233                        tmp.message = _error_message;
234                    }
235                    let tmp = tmp.meta(generic);
236                    tmp.build()
237                }),
238                _ => {
239                    // Registry-backed, operation-scoped reification of an error whose
240                    // code this operation does not model directly: the operation's own
241                    // error registry is consulted first, then the lookup widens to the
242                    // service-wide error registry. On a hit, the reified error is attached
243                    // as the source of the returned unhandled error while its metadata
244                    // (code, message, request id) is preserved; on a miss the generic
245                    // error is returned unchanged.
246                    match protocol
247                        .deserialize_error_response(response, _cfg)
248                        .ok()
249                        .and_then(|mut deser| {
250                            ::aws_smithy_schema::registry::reify_error(
251                                crate::operation::rebuild_workspaces::error_registry::REGISTRY
252                                    .or(&crate::error_type_registry::REGISTRY),
253                                error_code,
254                                &mut *deser,
255                            )
256                        }) {
257                        ::std::option::Option::Some(source) => <crate::operation::rebuild_workspaces::RebuildWorkspacesError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
258                        ::std::option::Option::None => crate::operation::rebuild_workspaces::RebuildWorkspacesError::generic(generic),
259                    }
260                }
261            };
262            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
263                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
264            ))
265        } else {
266            let protocol = _cfg
267                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
268                .expect("a SharedClientProtocol is required");
269            let mut deser = protocol
270                .deserialize_response(response, RebuildWorkspaces::OUTPUT_SCHEMA, _cfg)
271                .map_err(|e| {
272                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
273                })?;
274            // `headers` is already in scope from the top of the function; alias it as
275            // `_response_headers` so MutateOutput customizations have a stable name to
276            // read from.
277            let _response_headers = headers;
278            // `mut` is required because `deserialize_members` and the `MutateOutput`
279            // builder setters take `&mut self`. Marked `allow(unused_mut)` because an
280            // empty output has no members and no customizations to run.
281            #[allow(unused_mut)]
282            let mut output = <crate::operation::rebuild_workspaces::builders::RebuildWorkspacesOutputBuilder>::default();
283            output.deserialize_members(&mut *deser).map_err(|e| {
284                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
285            })?;
286            output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
287            let output = output.build();
288            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
289        }
290    }
291}
292#[derive(Debug)]
293struct RebuildWorkspacesRequestSerializer;
294impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for RebuildWorkspacesRequestSerializer {
295    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
296    fn serialize_input(
297        &self,
298        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
299        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
300    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
301        let input = input
302            .downcast::<crate::operation::rebuild_workspaces::RebuildWorkspacesInput>()
303            .expect("correct type");
304
305        let protocol = _cfg
306            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
307            .expect("a SharedClientProtocol is required");
308        let mut request = protocol
309            .serialize_request(
310                &input,
311                RebuildWorkspaces::INPUT_SCHEMA,
312                "/service/WorkspacesService/operation/RebuildWorkspaces",
313                _cfg,
314            )
315            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
316
317        return ::std::result::Result::Ok(request);
318    }
319}
320#[derive(Debug)]
321struct RebuildWorkspacesEndpointParamsInterceptor;
322
323#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
324impl ::aws_smithy_runtime_api::client::interceptors::Intercept for RebuildWorkspacesEndpointParamsInterceptor {
325    fn name(&self) -> &'static str {
326        "RebuildWorkspacesEndpointParamsInterceptor"
327    }
328
329    fn read_before_execution(
330        &self,
331        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
332            '_,
333            ::aws_smithy_runtime_api::client::interceptors::context::Input,
334            ::aws_smithy_runtime_api::client::interceptors::context::Output,
335            ::aws_smithy_runtime_api::client::interceptors::context::Error,
336        >,
337        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
338    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
339        let _input = context
340            .input()
341            .downcast_ref::<RebuildWorkspacesInput>()
342            .ok_or("failed to downcast to RebuildWorkspacesInput")?;
343
344        let params = crate::config::endpoint::Params::builder()
345            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
346            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
347            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
348            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
349            .build()
350            .map_err(|err| {
351                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
352            })?;
353        cfg.interceptor_state()
354            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
355        ::std::result::Result::Ok(())
356    }
357}
358
359// The get_* functions below are generated from JMESPath expressions in the
360// operationContextParams trait. They target the operation's input shape.
361
362/// Error type for the `RebuildWorkspacesError` operation.
363#[non_exhaustive]
364#[derive(::std::fmt::Debug)]
365pub enum RebuildWorkspacesError {
366    /// <p>This operation is not supported.</p>
367    OperationNotSupportedException(crate::types::error::OperationNotSupportedException),
368    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
369    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
370    variable wildcard pattern and check `.code()`:
371     \
372    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
373     \
374    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-RebuildWorkspacesError) for what information is available for the error.")]
375    Unhandled(crate::error::sealed_unhandled::Unhandled),
376}
377impl RebuildWorkspacesError {
378    /// Creates the `RebuildWorkspacesError::Unhandled` variant from any error type.
379    pub fn unhandled(
380        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
381    ) -> Self {
382        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
383            source: err.into(),
384            meta: ::std::default::Default::default(),
385        })
386    }
387
388    /// Creates the `RebuildWorkspacesError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
389    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
390        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
391            source: err.clone().into(),
392            meta: err,
393        })
394    }
395    ///
396    /// Returns error metadata, which includes the error code, message,
397    /// request ID, and potentially additional information.
398    ///
399    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
400        match self {
401            Self::OperationNotSupportedException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
402            Self::Unhandled(e) => &e.meta,
403        }
404    }
405    /// Returns `true` if the error kind is `RebuildWorkspacesError::OperationNotSupportedException`.
406    pub fn is_operation_not_supported_exception(&self) -> bool {
407        matches!(self, Self::OperationNotSupportedException(_))
408    }
409}
410impl ::std::error::Error for RebuildWorkspacesError {
411    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
412        match self {
413            Self::OperationNotSupportedException(_inner) => ::std::option::Option::Some(_inner),
414            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
415        }
416    }
417}
418impl ::std::fmt::Display for RebuildWorkspacesError {
419    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
420        match self {
421            Self::OperationNotSupportedException(_inner) => _inner.fmt(f),
422            Self::Unhandled(_inner) => {
423                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
424                    write!(f, "unhandled error ({code})")
425                } else {
426                    f.write_str("unhandled error")
427                }
428            }
429        }
430    }
431}
432impl ::aws_smithy_types::retry::ProvideErrorKind for RebuildWorkspacesError {
433    fn code(&self) -> ::std::option::Option<&str> {
434        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
435    }
436    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
437        ::std::option::Option::None
438    }
439}
440impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for RebuildWorkspacesError {
441    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
442        match self {
443            Self::OperationNotSupportedException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
444            Self::Unhandled(_inner) => &_inner.meta,
445        }
446    }
447}
448impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for RebuildWorkspacesError {
449    fn create_unhandled_error(
450        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
451        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
452    ) -> Self {
453        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
454            source,
455            meta: meta.unwrap_or_default(),
456        })
457    }
458}
459impl ::aws_types::request_id::RequestId for crate::operation::rebuild_workspaces::RebuildWorkspacesError {
460    fn request_id(&self) -> Option<&str> {
461        self.meta().request_id()
462    }
463}
464
465pub use crate::operation::rebuild_workspaces::_rebuild_workspaces_input::RebuildWorkspacesInput;
466
467pub use crate::operation::rebuild_workspaces::_rebuild_workspaces_output::RebuildWorkspacesOutput;
468
469mod _rebuild_workspaces_input;
470
471mod _rebuild_workspaces_output;
472
473/// Builders
474pub mod builders;