AWS SDK

AWS SDK

rev. 18b1dd205ff4335251e6dd0ecb88193de1b1cede

Files changed:

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/list_nodes/builders.rs

@@ -0,1 +0,178 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::list_nodes::_list_nodes_input::ListNodesInputBuilder;
           3  +
           4  +
pub use crate::operation::list_nodes::_list_nodes_output::ListNodesOutputBuilder;
           5  +
           6  +
impl crate::operation::list_nodes::builders::ListNodesInputBuilder {
           7  +
    /// Sends a request with this input using the given client.
           8  +
    pub async fn send_with(
           9  +
        self,
          10  +
        client: &crate::Client,
          11  +
    ) -> ::std::result::Result<
          12  +
        crate::operation::list_nodes::ListNodesOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::list_nodes::ListNodesError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.list_nodes();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `ListNodes`.
          24  +
///
          25  +
/// <p>Takes in filters and returns a list of managed nodes matching the filter criteria.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct ListNodesFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::list_nodes::builders::ListNodesInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl crate::client::customize::internal::CustomizableSend<crate::operation::list_nodes::ListNodesOutput, crate::operation::list_nodes::ListNodesError>
          33  +
    for ListNodesFluentBuilder
          34  +
{
          35  +
    fn send(
          36  +
        self,
          37  +
        config_override: crate::config::Builder,
          38  +
    ) -> crate::client::customize::internal::BoxFuture<
          39  +
        crate::client::customize::internal::SendResult<crate::operation::list_nodes::ListNodesOutput, crate::operation::list_nodes::ListNodesError>,
          40  +
    > {
          41  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          42  +
    }
          43  +
}
          44  +
impl ListNodesFluentBuilder {
          45  +
    /// Creates a new `ListNodesFluentBuilder`.
          46  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          47  +
        Self {
          48  +
            handle,
          49  +
            inner: ::std::default::Default::default(),
          50  +
            config_override: ::std::option::Option::None,
          51  +
        }
          52  +
    }
          53  +
    /// Access the ListNodes as a reference.
          54  +
    pub fn as_input(&self) -> &crate::operation::list_nodes::builders::ListNodesInputBuilder {
          55  +
        &self.inner
          56  +
    }
          57  +
    /// Sends the request and returns the response.
          58  +
    ///
          59  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          60  +
    /// can be matched against.
          61  +
    ///
          62  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          63  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          64  +
    /// set when configuring the client.
          65  +
    pub async fn send(
          66  +
        self,
          67  +
    ) -> ::std::result::Result<
          68  +
        crate::operation::list_nodes::ListNodesOutput,
          69  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          70  +
            crate::operation::list_nodes::ListNodesError,
          71  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          72  +
        >,
          73  +
    > {
          74  +
        let input = self
          75  +
            .inner
          76  +
            .build()
          77  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          78  +
        let runtime_plugins = crate::operation::list_nodes::ListNodes::operation_runtime_plugins(
          79  +
            self.handle.runtime_plugins.clone(),
          80  +
            &self.handle.conf,
          81  +
            self.config_override,
          82  +
        );
          83  +
        crate::operation::list_nodes::ListNodes::orchestrate(&runtime_plugins, input).await
          84  +
    }
          85  +
          86  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          87  +
    pub fn customize(
          88  +
        self,
          89  +
    ) -> crate::client::customize::CustomizableOperation<
          90  +
        crate::operation::list_nodes::ListNodesOutput,
          91  +
        crate::operation::list_nodes::ListNodesError,
          92  +
        Self,
          93  +
    > {
          94  +
        crate::client::customize::CustomizableOperation::new(self)
          95  +
    }
          96  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
          97  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
          98  +
        self
          99  +
    }
         100  +
         101  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         102  +
        self.config_override = config_override;
         103  +
        self
         104  +
    }
         105  +
    /// Create a paginator for this request
         106  +
    ///
         107  +
    /// Paginators are used by calling [`send().await`](crate::operation::list_nodes::paginator::ListNodesPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
         108  +
    pub fn into_paginator(self) -> crate::operation::list_nodes::paginator::ListNodesPaginator {
         109  +
        crate::operation::list_nodes::paginator::ListNodesPaginator::new(self.handle, self.inner)
         110  +
    }
         111  +
    /// <p>The name of the Amazon Web Services managed resource data sync to retrieve information about.</p>
         112  +
    /// <p>For cross-account/cross-Region configurations, this parameter is required, and the name of the supported resource data sync is <code>AWS-QuickSetup-ManagedNode</code>.</p>
         113  +
    /// <p>For single account/single-Region configurations, the parameter is not required.</p>
         114  +
    pub fn sync_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         115  +
        self.inner = self.inner.sync_name(input.into());
         116  +
        self
         117  +
    }
         118  +
    /// <p>The name of the Amazon Web Services managed resource data sync to retrieve information about.</p>
         119  +
    /// <p>For cross-account/cross-Region configurations, this parameter is required, and the name of the supported resource data sync is <code>AWS-QuickSetup-ManagedNode</code>.</p>
         120  +
    /// <p>For single account/single-Region configurations, the parameter is not required.</p>
         121  +
    pub fn set_sync_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         122  +
        self.inner = self.inner.set_sync_name(input);
         123  +
        self
         124  +
    }
         125  +
    /// <p>The name of the Amazon Web Services managed resource data sync to retrieve information about.</p>
         126  +
    /// <p>For cross-account/cross-Region configurations, this parameter is required, and the name of the supported resource data sync is <code>AWS-QuickSetup-ManagedNode</code>.</p>
         127  +
    /// <p>For single account/single-Region configurations, the parameter is not required.</p>
         128  +
    pub fn get_sync_name(&self) -> &::std::option::Option<::std::string::String> {
         129  +
        self.inner.get_sync_name()
         130  +
    }
         131  +
    ///
         132  +
    /// Appends an item to `Filters`.
         133  +
    ///
         134  +
    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
         135  +
    ///
         136  +
    /// <p>One or more filters. Use a filter to return a more specific list of managed nodes.</p>
         137  +
    pub fn filters(mut self, input: crate::types::NodeFilter) -> Self {
         138  +
        self.inner = self.inner.filters(input);
         139  +
        self
         140  +
    }
         141  +
    /// <p>One or more filters. Use a filter to return a more specific list of managed nodes.</p>
         142  +
    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::NodeFilter>>) -> Self {
         143  +
        self.inner = self.inner.set_filters(input);
         144  +
        self
         145  +
    }
         146  +
    /// <p>One or more filters. Use a filter to return a more specific list of managed nodes.</p>
         147  +
    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::NodeFilter>> {
         148  +
        self.inner.get_filters()
         149  +
    }
         150  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         151  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         152  +
        self.inner = self.inner.next_token(input.into());
         153  +
        self
         154  +
    }
         155  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         156  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         157  +
        self.inner = self.inner.set_next_token(input);
         158  +
        self
         159  +
    }
         160  +
    /// <p>The token for the next set of items to return. (You received this token from a previous call.)</p>
         161  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         162  +
        self.inner.get_next_token()
         163  +
    }
         164  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         165  +
    pub fn max_results(mut self, input: i32) -> Self {
         166  +
        self.inner = self.inner.max_results(input);
         167  +
        self
         168  +
    }
         169  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         170  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         171  +
        self.inner = self.inner.set_max_results(input);
         172  +
        self
         173  +
    }
         174  +
    /// <p>The maximum number of items to return for this call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         175  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         176  +
        self.inner.get_max_results()
         177  +
    }
         178  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/list_nodes/paginator.rs

@@ -0,1 +0,142 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Paginator for [`ListNodes`](crate::operation::list_nodes::ListNodes)
           3  +
pub struct ListNodesPaginator {
           4  +
    handle: std::sync::Arc<crate::client::Handle>,
           5  +
    builder: crate::operation::list_nodes::builders::ListNodesInputBuilder,
           6  +
    stop_on_duplicate_token: bool,
           7  +
}
           8  +
           9  +
impl ListNodesPaginator {
          10  +
    /// Create a new paginator-wrapper
          11  +
    pub(crate) fn new(handle: std::sync::Arc<crate::client::Handle>, builder: crate::operation::list_nodes::builders::ListNodesInputBuilder) -> Self {
          12  +
        Self {
          13  +
            handle,
          14  +
            builder,
          15  +
            stop_on_duplicate_token: true,
          16  +
        }
          17  +
    }
          18  +
          19  +
    /// Set the page size
          20  +
    ///
          21  +
    /// _Note: this method will override any previously set value for `max_results`_
          22  +
    pub fn page_size(mut self, limit: i32) -> Self {
          23  +
        self.builder.max_results = ::std::option::Option::Some(limit);
          24  +
        self
          25  +
    }
          26  +
          27  +
    /// Create a flattened paginator
          28  +
    ///
          29  +
    /// This paginator automatically flattens results using `nodes`. Queries to the underlying service
          30  +
    /// are dispatched lazily.
          31  +
    pub fn items(self) -> crate::operation::list_nodes::paginator::ListNodesPaginatorItems {
          32  +
        crate::operation::list_nodes::paginator::ListNodesPaginatorItems(self)
          33  +
    }
          34  +
          35  +
    /// Stop paginating when the service returns the same pagination token twice in a row.
          36  +
    ///
          37  +
    /// Defaults to true.
          38  +
    ///
          39  +
    /// For certain operations, it may be useful to continue on duplicate token. For example,
          40  +
    /// if an operation is for tailing a log file in real-time, then continuing may be desired.
          41  +
    /// This option can be set to `false` to accommodate these use cases.
          42  +
    pub fn stop_on_duplicate_token(mut self, stop_on_duplicate_token: bool) -> Self {
          43  +
        self.stop_on_duplicate_token = stop_on_duplicate_token;
          44  +
        self
          45  +
    }
          46  +
          47  +
    /// Create the pagination stream
          48  +
    ///
          49  +
    /// _Note:_ No requests will be dispatched until the stream is used
          50  +
    /// (e.g. with the [`.next().await`](aws_smithy_async::future::pagination_stream::PaginationStream::next) method).
          51  +
    pub fn send(
          52  +
        self,
          53  +
    ) -> ::aws_smithy_async::future::pagination_stream::PaginationStream<
          54  +
        ::std::result::Result<
          55  +
            crate::operation::list_nodes::ListNodesOutput,
          56  +
            ::aws_smithy_runtime_api::client::result::SdkError<
          57  +
                crate::operation::list_nodes::ListNodesError,
          58  +
                ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          59  +
            >,
          60  +
        >,
          61  +
    > {
          62  +
        // Move individual fields out of self for the borrow checker
          63  +
        let builder = self.builder;
          64  +
        let handle = self.handle;
          65  +
        let runtime_plugins = crate::operation::list_nodes::ListNodes::operation_runtime_plugins(
          66  +
            handle.runtime_plugins.clone(),
          67  +
            &handle.conf,
          68  +
            ::std::option::Option::None,
          69  +
        )
          70  +
        .with_operation_plugin(crate::sdk_feature_tracker::paginator::PaginatorFeatureTrackerRuntimePlugin::new());
          71  +
        ::aws_smithy_async::future::pagination_stream::PaginationStream::new(::aws_smithy_async::future::pagination_stream::fn_stream::FnStream::new(
          72  +
            move |tx| {
          73  +
                ::std::boxed::Box::pin(async move {
          74  +
                    // Build the input for the first time. If required fields are missing, this is where we'll produce an early error.
          75  +
                    let mut input = match builder
          76  +
                        .build()
          77  +
                        .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)
          78  +
                    {
          79  +
                        ::std::result::Result::Ok(input) => input,
          80  +
                        ::std::result::Result::Err(e) => {
          81  +
                            let _ = tx.send(::std::result::Result::Err(e)).await;
          82  +
                            return;
          83  +
                        }
          84  +
                    };
          85  +
                    loop {
          86  +
                        let resp = crate::operation::list_nodes::ListNodes::orchestrate(&runtime_plugins, input.clone()).await;
          87  +
                        // If the input member is None or it was an error
          88  +
                        let done = match resp {
          89  +
                            ::std::result::Result::Ok(ref resp) => {
          90  +
                                let new_token = crate::lens::reflens_list_nodes_output_output_next_token(resp);
          91  +
                                // Pagination is exhausted when the next token is an empty string
          92  +
                                let is_empty = new_token.map(|token| token.is_empty()).unwrap_or(true);
          93  +
                                if !is_empty && new_token == input.next_token.as_ref() && self.stop_on_duplicate_token {
          94  +
                                    true
          95  +
                                } else {
          96  +
                                    input.next_token = new_token.cloned();
          97  +
                                    is_empty
          98  +
                                }
          99  +
                            }
         100  +
                            ::std::result::Result::Err(_) => true,
         101  +
                        };
         102  +
                        if tx.send(resp).await.is_err() {
         103  +
                            // receiving end was dropped
         104  +
                            return;
         105  +
                        }
         106  +
                        if done {
         107  +
                            return;
         108  +
                        }
         109  +
                    }
         110  +
                })
         111  +
            },
         112  +
        ))
         113  +
    }
         114  +
}
         115  +
         116  +
/// Flattened paginator for `ListNodesPaginator`
         117  +
///
         118  +
/// This is created with [`.items()`](ListNodesPaginator::items)
         119  +
pub struct ListNodesPaginatorItems(ListNodesPaginator);
         120  +
         121  +
impl ListNodesPaginatorItems {
         122  +
    /// Create the pagination stream
         123  +
    ///
         124  +
    /// _Note_: No requests will be dispatched until the stream is used
         125  +
    /// (e.g. with the [`.next().await`](aws_smithy_async::future::pagination_stream::PaginationStream::next) method).
         126  +
    ///
         127  +
    /// To read the entirety of the paginator, use [`.collect::<Result<Vec<_>, _>()`](aws_smithy_async::future::pagination_stream::PaginationStream::collect).
         128  +
    pub fn send(
         129  +
        self,
         130  +
    ) -> ::aws_smithy_async::future::pagination_stream::PaginationStream<
         131  +
        ::std::result::Result<
         132  +
            crate::types::Node,
         133  +
            ::aws_smithy_runtime_api::client::result::SdkError<
         134  +
                crate::operation::list_nodes::ListNodesError,
         135  +
                ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         136  +
            >,
         137  +
        >,
         138  +
    > {
         139  +
        ::aws_smithy_async::future::pagination_stream::TryFlatMap::new(self.0.send())
         140  +
            .flat_map(|page| crate::lens::lens_list_nodes_output_output_nodes(page).unwrap_or_default().into_iter())
         141  +
    }
         142  +
}

tmp-codegen-diff/aws-sdk/sdk/ssm/src/operation/list_nodes_summary.rs

@@ -0,1 +0,726 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Orchestration and serialization glue logic for `ListNodesSummary`.
           3  +
#[derive(::std::clone::Clone, ::std::default::Default, ::std::fmt::Debug)]
           4  +
#[non_exhaustive]
           5  +
pub struct ListNodesSummary;
           6  +
impl ListNodesSummary {
           7  +
    /// Creates a new `ListNodesSummary`
           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::list_nodes_summary::ListNodesSummaryInput::SCHEMA;
          13  +
    /// The schema for this operation's output shape.
          14  +
    pub const OUTPUT_SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = crate::operation::list_nodes_summary::ListNodesSummaryOutput::SCHEMA;
          15  +
    pub(crate) async fn orchestrate(
          16  +
        runtime_plugins: &::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins,
          17  +
        input: crate::operation::list_nodes_summary::ListNodesSummaryInput,
          18  +
    ) -> ::std::result::Result<
          19  +
        crate::operation::list_nodes_summary::ListNodesSummaryOutput,
          20  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          21  +
            crate::operation::list_nodes_summary::ListNodesSummaryError,
          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::list_nodes_summary::ListNodesSummaryError>()
          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::list_nodes_summary::ListNodesSummaryOutput>()
          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::list_nodes_summary::ListNodesSummaryInput,
          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("SSM", "ListNodesSummary", 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  +
                "SSM.ListNodesSummary",
          63  +
                "rpc.service" = "SSM",
          64  +
                "rpc.method" = "ListNodesSummary",
          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.
          99  +
pub(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::InternalServerError::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::InternalServerError::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::InternalServerError::deserialize(d)?))
         109  +
                        },
         110  +
                    )
         111  +
.insert_error_shape(
         112  +
                        crate::types::error::InvalidAggregatorException::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::InvalidAggregatorException::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::InvalidAggregatorException::deserialize(d)?))
         118  +
                        },
         119  +
                    )
         120  +
.insert_error_shape(
         121  +
                        crate::types::error::InvalidFilter::SCHEMA,
         122  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         123  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InvalidFilter::deserialize(d)?))
         124  +
                        },
         125  +
                        |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> {
         126  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InvalidFilter::deserialize(d)?))
         127  +
                        },
         128  +
                    )
         129  +
.insert_error_shape(
         130  +
                        crate::types::error::InvalidNextToken::SCHEMA,
         131  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         132  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::InvalidNextToken::deserialize(d)?))
         133  +
                        },
         134  +
                        |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> {
         135  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::InvalidNextToken::deserialize(d)?))
         136  +
                        },
         137  +
                    )
         138  +
.insert_error_shape(
         139  +
                        crate::types::error::ResourceDataSyncNotFoundException::SCHEMA,
         140  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         141  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::ResourceDataSyncNotFoundException::deserialize(d)?))
         142  +
                        },
         143  +
                        |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> {
         144  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::ResourceDataSyncNotFoundException::deserialize(d)?))
         145  +
                        },
         146  +
                    )
         147  +
.insert_error_shape(
         148  +
                        crate::types::error::UnsupportedOperationException::SCHEMA,
         149  +
                        |d: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer| -> ::std::result::Result<::aws_smithy_types::type_erasure::TypeErasedBox, ::aws_smithy_schema::serde::SerdeError> {
         150  +
                            ::std::result::Result::Ok(::aws_smithy_types::type_erasure::TypeErasedBox::new(crate::types::error::UnsupportedOperationException::deserialize(d)?))
         151  +
                        },
         152  +
                        |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> {
         153  +
                            ::std::result::Result::Ok(::std::boxed::Box::new(crate::types::error::UnsupportedOperationException::deserialize(d)?))
         154  +
                        },
         155  +
                    )
         156  +
                            .build()
         157  +
    });
         158  +
}
         159  +
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ListNodesSummary {
         160  +
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
         161  +
        let mut cfg = ::aws_smithy_types::config_bag::Layer::new("ListNodesSummary");
         162  +
         163  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedRequestSerializer::new(
         164  +
            ListNodesSummaryRequestSerializer,
         165  +
        ));
         166  +
        cfg.store_put(::aws_smithy_runtime_api::client::ser_de::SharedResponseDeserializer::new(
         167  +
            ListNodesSummaryResponseDeserializer,
         168  +
        ));
         169  +
         170  +
        cfg.store_put(::aws_smithy_runtime_api::client::auth::AuthSchemeOptionResolverParams::new(
         171  +
            crate::config::auth::Params::builder()
         172  +
                .operation_name("ListNodesSummary")
         173  +
                .build()
         174  +
                .expect("required fields set"),
         175  +
        ));
         176  +
         177  +
        cfg.store_put(::aws_smithy_runtime_api::client::orchestrator::Metadata::new("ListNodesSummary", "SSM"));
         178  +
        let mut signing_options = ::aws_runtime::auth::SigningOptions::default();
         179  +
        signing_options.double_uri_encode = true;
         180  +
        signing_options.content_sha256_header = false;
         181  +
        signing_options.normalize_uri_path = true;
         182  +
        signing_options.payload_override = None;
         183  +
         184  +
        cfg.store_put(::aws_runtime::auth::SigV4OperationSigningConfig {
         185  +
            signing_options,
         186  +
            ..::std::default::Default::default()
         187  +
        });
         188  +
         189  +
        ::std::option::Option::Some(cfg.freeze())
         190  +
    }
         191  +
         192  +
    fn runtime_components(
         193  +
        &self,
         194  +
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
         195  +
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
         196  +
        #[allow(unused_mut)]
         197  +
        let mut rcb = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("ListNodesSummary")
         198  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         199  +
                ListNodesSummaryTelemetryInputCaptureInterceptor,
         200  +
            ))
         201  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         202  +
                ::aws_smithy_runtime::client::stalled_stream_protection::StalledStreamProtectionInterceptor::default(),
         203  +
            ))
         204  +
            .with_interceptor(::aws_smithy_runtime_api::client::interceptors::SharedInterceptor::permanent(
         205  +
                ListNodesSummaryEndpointParamsInterceptor,
         206  +
            ))
         207  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::TransientErrorClassifier::<
         208  +
                crate::operation::list_nodes_summary::ListNodesSummaryError,
         209  +
            >::new())
         210  +
            .with_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::ModeledAsRetryableClassifier::<
         211  +
                crate::operation::list_nodes_summary::ListNodesSummaryError,
         212  +
            >::new())
         213  +
            .with_retry_classifier(::aws_runtime::retries::classifiers::AwsErrorCodeClassifier::<
         214  +
                crate::operation::list_nodes_summary::ListNodesSummaryError,
         215  +
            >::new())
         216  +
            .with_retry_classifier(::aws_runtime::service_clock_skew::ServiceClockSkewClassifier::<
         217  +
                crate::operation::list_nodes_summary::ListNodesSummaryError,
         218  +
            >::new());
         219  +
         220  +
        ::std::borrow::Cow::Owned(rcb)
         221  +
    }
         222  +
}
         223  +
         224  +
#[derive(Debug)]
         225  +
struct ListNodesSummaryTelemetryInputCaptureInterceptor;
         226  +
         227  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         228  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListNodesSummaryTelemetryInputCaptureInterceptor {
         229  +
    fn name(&self) -> &'static str {
         230  +
        "ListNodesSummaryTelemetryInputCaptureInterceptor"
         231  +
    }
         232  +
         233  +
    fn read_before_execution(
         234  +
        &self,
         235  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         236  +
            '_,
         237  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         238  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         239  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         240  +
        >,
         241  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         242  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         243  +
        // Nothing to do unless the customer opted in by naming members to record.
         244  +
        let ::std::option::Option::Some(requested) = cfg
         245  +
            .load::<::aws_smithy_types::telemetry::RequestedTelemetryAttributes>()
         246  +
            .filter(|r| !r.is_empty())
         247  +
        else {
         248  +
            return ::std::result::Result::Ok(());
         249  +
        };
         250  +
         251  +
        let ::std::option::Option::Some(input) = context.input().downcast_ref::<ListNodesSummaryInput>() else {
         252  +
            // A mismatched input is not this interceptor's concern; skip quietly.
         253  +
            return ::std::result::Result::Ok(());
         254  +
        };
         255  +
         256  +
        let mut captured = ::aws_smithy_types::telemetry::CapturedTelemetryAttributes::default();
         257  +
        if requested.should_capture("SyncName") {
         258  +
            if let ::std::option::Option::Some(value) = input.sync_name.as_deref() {
         259  +
                captured.insert("SyncName", value);
         260  +
            }
         261  +
        }
         262  +
        if requested.should_capture("NextToken") {
         263  +
            if let ::std::option::Option::Some(value) = input.next_token.as_deref() {
         264  +
                captured.insert("NextToken", value);
         265  +
            }
         266  +
        }
         267  +
         268  +
        cfg.interceptor_state().store_put(captured);
         269  +
        ::std::result::Result::Ok(())
         270  +
    }
         271  +
}
         272  +
#[derive(Debug)]
         273  +
struct ListNodesSummaryResponseDeserializer;
         274  +
impl ::aws_smithy_runtime_api::client::ser_de::DeserializeResponse for ListNodesSummaryResponseDeserializer {
         275  +
    fn deserialize_nonstreaming_with_config(
         276  +
        &self,
         277  +
        response: &::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         278  +
        _cfg: &::aws_smithy_types::config_bag::ConfigBag,
         279  +
    ) -> ::aws_smithy_runtime_api::client::interceptors::context::OutputOrError {
         280  +
        let (success, status) = (response.status().is_success(), response.status().as_u16());
         281  +
        // Load body and headers BEFORE BeforeParseResponse so customizations
         282  +
        // (e.g., S3's `body_is_error` check that detects errors returned with
         283  +
        // HTTP 200) can inspect them. The legacy non-streaming path also
         284  +
        // loads `body` before firing this hook.
         285  +
        let body = response.body().bytes().expect("body loaded");
         286  +
        let headers = response.headers();
         287  +
        #[allow(unused_mut)]
         288  +
        let mut force_error = false;
         289  +
        ::tracing::debug!(request_id = ?::aws_types::request_id::RequestId::request_id(response));
         290  +
        if !success && status != 200 || force_error {
         291  +
            let protocol = _cfg
         292  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         293  +
                .expect("a SharedClientProtocol is required");
         294  +
            #[allow(unused_mut)]
         295  +
            let mut generic_builder = protocol.parse_error_metadata(response, _cfg).map_err(|e| {
         296  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         297  +
            })?;
         298  +
            generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, headers);
         299  +
            let generic = generic_builder.build();
         300  +
            let error_code = match generic.code() {
         301  +
                ::std::option::Option::Some(code) => code,
         302  +
                ::std::option::Option::None => {
         303  +
                    return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         304  +
                        ::aws_smithy_runtime_api::box_error::BoxError::from(crate::operation::list_nodes_summary::ListNodesSummaryError::unhandled(
         305  +
                            generic,
         306  +
                        )),
         307  +
                    ))
         308  +
                }
         309  +
            };
         310  +
            let _error_message = generic.message().map(|msg| msg.to_owned());
         311  +
            let err = match error_code {
         312  +
                "InternalServerError" => crate::operation::list_nodes_summary::ListNodesSummaryError::InternalServerError({
         313  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         314  +
                        crate::types::error::InternalServerError::deserialize_with_response(
         315  +
                            &mut *deser,
         316  +
                            response.headers(),
         317  +
                            response.status().into(),
         318  +
                            body,
         319  +
                        )
         320  +
                    }) {
         321  +
                        ::std::result::Result::Ok(val) => val,
         322  +
                        ::std::result::Result::Err(e) => {
         323  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         324  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         325  +
                            ))
         326  +
                        }
         327  +
                    };
         328  +
                    tmp.meta = generic;
         329  +
                    if tmp.message.is_none() {
         330  +
                        tmp.message = _error_message;
         331  +
                    }
         332  +
                    tmp
         333  +
                }),
         334  +
                "InvalidAggregatorException" => crate::operation::list_nodes_summary::ListNodesSummaryError::InvalidAggregatorException({
         335  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         336  +
                        crate::types::error::InvalidAggregatorException::deserialize_with_response(
         337  +
                            &mut *deser,
         338  +
                            response.headers(),
         339  +
                            response.status().into(),
         340  +
                            body,
         341  +
                        )
         342  +
                    }) {
         343  +
                        ::std::result::Result::Ok(val) => val,
         344  +
                        ::std::result::Result::Err(e) => {
         345  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         346  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         347  +
                            ))
         348  +
                        }
         349  +
                    };
         350  +
                    tmp.meta = generic;
         351  +
                    if tmp.message.is_none() {
         352  +
                        tmp.message = _error_message;
         353  +
                    }
         354  +
                    tmp
         355  +
                }),
         356  +
                "InvalidFilter" => crate::operation::list_nodes_summary::ListNodesSummaryError::InvalidFilter({
         357  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         358  +
                        crate::types::error::InvalidFilter::deserialize_with_response(&mut *deser, response.headers(), response.status().into(), body)
         359  +
                    }) {
         360  +
                        ::std::result::Result::Ok(val) => val,
         361  +
                        ::std::result::Result::Err(e) => {
         362  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         363  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         364  +
                            ))
         365  +
                        }
         366  +
                    };
         367  +
                    tmp.meta = generic;
         368  +
                    if tmp.message.is_none() {
         369  +
                        tmp.message = _error_message;
         370  +
                    }
         371  +
                    tmp
         372  +
                }),
         373  +
                "InvalidNextToken" => crate::operation::list_nodes_summary::ListNodesSummaryError::InvalidNextToken({
         374  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         375  +
                        crate::types::error::InvalidNextToken::deserialize_with_response(
         376  +
                            &mut *deser,
         377  +
                            response.headers(),
         378  +
                            response.status().into(),
         379  +
                            body,
         380  +
                        )
         381  +
                    }) {
         382  +
                        ::std::result::Result::Ok(val) => val,
         383  +
                        ::std::result::Result::Err(e) => {
         384  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         385  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         386  +
                            ))
         387  +
                        }
         388  +
                    };
         389  +
                    tmp.meta = generic;
         390  +
                    if tmp.message.is_none() {
         391  +
                        tmp.message = _error_message;
         392  +
                    }
         393  +
                    tmp
         394  +
                }),
         395  +
                "ResourceDataSyncNotFoundException" => {
         396  +
                    crate::operation::list_nodes_summary::ListNodesSummaryError::ResourceDataSyncNotFoundException({
         397  +
                        let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         398  +
                            crate::types::error::ResourceDataSyncNotFoundException::deserialize_with_response(
         399  +
                                &mut *deser,
         400  +
                                response.headers(),
         401  +
                                response.status().into(),
         402  +
                                body,
         403  +
                            )
         404  +
                        }) {
         405  +
                            ::std::result::Result::Ok(val) => val,
         406  +
                            ::std::result::Result::Err(e) => {
         407  +
                                return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         408  +
                                    ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         409  +
                                ))
         410  +
                            }
         411  +
                        };
         412  +
                        tmp.meta = generic;
         413  +
                        if tmp.message.is_none() {
         414  +
                            tmp.message = _error_message;
         415  +
                        }
         416  +
                        tmp
         417  +
                    })
         418  +
                }
         419  +
                "UnsupportedOperationException" => crate::operation::list_nodes_summary::ListNodesSummaryError::UnsupportedOperationException({
         420  +
                    let mut tmp = match protocol.deserialize_error_response(response, _cfg).and_then(|mut deser| {
         421  +
                        crate::types::error::UnsupportedOperationException::deserialize_with_response(
         422  +
                            &mut *deser,
         423  +
                            response.headers(),
         424  +
                            response.status().into(),
         425  +
                            body,
         426  +
                        )
         427  +
                    }) {
         428  +
                        ::std::result::Result::Ok(val) => val,
         429  +
                        ::std::result::Result::Err(e) => {
         430  +
                            return ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(
         431  +
                                ::aws_smithy_runtime_api::box_error::BoxError::from(e),
         432  +
                            ))
         433  +
                        }
         434  +
                    };
         435  +
                    tmp.meta = generic;
         436  +
                    if tmp.message.is_none() {
         437  +
                        tmp.message = _error_message;
         438  +
                    }
         439  +
                    tmp
         440  +
                }),
         441  +
                _ => {
         442  +
                    // Registry-backed, operation-scoped reification of an error whose
         443  +
                    // code this operation does not model directly: the operation's own
         444  +
                    // error registry is consulted first, then the lookup widens to the
         445  +
                    // service-wide error registry. On a hit, the reified error is attached
         446  +
                    // as the source of the returned unhandled error while its metadata
         447  +
                    // (code, message, request id) is preserved; on a miss the generic
         448  +
                    // error is returned unchanged.
         449  +
                    match protocol
         450  +
                        .deserialize_error_response(response, _cfg)
         451  +
                        .ok()
         452  +
                        .and_then(|mut deser| {
         453  +
                            ::aws_smithy_schema::registry::reify_error(
         454  +
                                crate::operation::list_nodes_summary::error_registry::REGISTRY
         455  +
                                    .or(&crate::error_type_registry::REGISTRY),
         456  +
                                error_code,
         457  +
                                &mut *deser,
         458  +
                            )
         459  +
                        }) {
         460  +
                        ::std::option::Option::Some(source) => <crate::operation::list_nodes_summary::ListNodesSummaryError as ::aws_smithy_runtime_api::client::result::CreateUnhandledError>::create_unhandled_error(source, ::std::option::Option::Some(generic)),
         461  +
                        ::std::option::Option::None => crate::operation::list_nodes_summary::ListNodesSummaryError::generic(generic),
         462  +
                    }
         463  +
                }
         464  +
            };
         465  +
            ::std::result::Result::Err(::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::operation(
         466  +
                ::aws_smithy_runtime_api::client::interceptors::context::Error::erase(err),
         467  +
            ))
         468  +
        } else {
         469  +
            let protocol = _cfg
         470  +
                .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         471  +
                .expect("a SharedClientProtocol is required");
         472  +
            let mut deser = protocol
         473  +
                .deserialize_response(response, ListNodesSummary::OUTPUT_SCHEMA, _cfg)
         474  +
                .map_err(|e| {
         475  +
                    ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         476  +
                })?;
         477  +
            // body and headers are already in scope from the top of the function;
         478  +
            // alias `headers` as `_response_headers` so MutateOutput
         479  +
            // customizations have a stable name to read from.
         480  +
            let _response_headers = headers;
         481  +
            #[allow(unused_mut)]
         482  +
            let mut output = crate::operation::list_nodes_summary::ListNodesSummaryOutput::deserialize_with_response(
         483  +
                &mut *deser,
         484  +
                _response_headers,
         485  +
                response.status().into(),
         486  +
                body,
         487  +
            )
         488  +
            .map_err(|e| {
         489  +
                ::aws_smithy_runtime_api::client::orchestrator::OrchestratorError::other(::aws_smithy_runtime_api::box_error::BoxError::from(e))
         490  +
            })?;
         491  +
            output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
         492  +
            ::std::result::Result::Ok(::aws_smithy_runtime_api::client::interceptors::context::Output::erase(output))
         493  +
        }
         494  +
    }
         495  +
}
         496  +
#[derive(Debug)]
         497  +
struct ListNodesSummaryRequestSerializer;
         498  +
impl ::aws_smithy_runtime_api::client::ser_de::SerializeRequest for ListNodesSummaryRequestSerializer {
         499  +
    #[allow(unused_mut, clippy::let_and_return, clippy::needless_borrow, clippy::useless_conversion)]
         500  +
    fn serialize_input(
         501  +
        &self,
         502  +
        input: ::aws_smithy_runtime_api::client::interceptors::context::Input,
         503  +
        _cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         504  +
    ) -> ::std::result::Result<::aws_smithy_runtime_api::client::orchestrator::HttpRequest, ::aws_smithy_runtime_api::box_error::BoxError> {
         505  +
        let input = input
         506  +
            .downcast::<crate::operation::list_nodes_summary::ListNodesSummaryInput>()
         507  +
            .expect("correct type");
         508  +
         509  +
        let protocol = _cfg
         510  +
            .load::<::aws_smithy_schema::protocol::SharedClientProtocol>()
         511  +
            .expect("a SharedClientProtocol is required");
         512  +
        let mut request = protocol
         513  +
            .serialize_request(&input, ListNodesSummary::INPUT_SCHEMA, "/", _cfg)
         514  +
            .map_err(::aws_smithy_runtime_api::box_error::BoxError::from)?;
         515  +
         516  +
        return ::std::result::Result::Ok(request);
         517  +
    }
         518  +
}
         519  +
#[derive(Debug)]
         520  +
struct ListNodesSummaryEndpointParamsInterceptor;
         521  +
         522  +
#[::aws_smithy_runtime_api::client::interceptors::dyn_dispatch_hint]
         523  +
impl ::aws_smithy_runtime_api::client::interceptors::Intercept for ListNodesSummaryEndpointParamsInterceptor {
         524  +
    fn name(&self) -> &'static str {
         525  +
        "ListNodesSummaryEndpointParamsInterceptor"
         526  +
    }
         527  +
         528  +
    fn read_before_execution(
         529  +
        &self,
         530  +
        context: &::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef<
         531  +
            '_,
         532  +
            ::aws_smithy_runtime_api::client::interceptors::context::Input,
         533  +
            ::aws_smithy_runtime_api::client::interceptors::context::Output,
         534  +
            ::aws_smithy_runtime_api::client::interceptors::context::Error,
         535  +
        >,
         536  +
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
         537  +
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
         538  +
        let _input = context
         539  +
            .input()
         540  +
            .downcast_ref::<ListNodesSummaryInput>()
         541  +
            .ok_or("failed to downcast to ListNodesSummaryInput")?;
         542  +
         543  +
        let params = crate::config::endpoint::Params::builder()
         544  +
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
         545  +
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
         546  +
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
         547  +
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
         548  +
            .build()
         549  +
            .map_err(|err| {
         550  +
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
         551  +
            })?;
         552  +
        cfg.interceptor_state()
         553  +
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         554  +
        ::std::result::Result::Ok(())
         555  +
    }
         556  +
}
         557  +
         558  +
// The get_* functions below are generated from JMESPath expressions in the
         559  +
// operationContextParams trait. They target the operation's input shape.
         560  +
         561  +
/// Error type for the `ListNodesSummaryError` operation.
         562  +
#[non_exhaustive]
         563  +
#[derive(::std::fmt::Debug)]
         564  +
pub enum ListNodesSummaryError {
         565  +
    /// <p>An error occurred on the server side.</p>
         566  +
    InternalServerError(crate::types::error::InternalServerError),
         567  +
    /// <p>The specified aggregator isn't valid for the group type. Verify that the aggregator you provided is supported.</p>
         568  +
    InvalidAggregatorException(crate::types::error::InvalidAggregatorException),
         569  +
    /// <p>The filter name isn't valid. Verify that you entered the correct name and try again.</p>
         570  +
    InvalidFilter(crate::types::error::InvalidFilter),
         571  +
    /// <p>The specified token isn't valid.</p>
         572  +
    InvalidNextToken(crate::types::error::InvalidNextToken),
         573  +
    /// <p>The specified sync name wasn't found.</p>
         574  +
    ResourceDataSyncNotFoundException(crate::types::error::ResourceDataSyncNotFoundException),
         575  +
    /// <p>This operation is not supported for the current account. You must first enable the Systems Manager integrated experience in your account.</p>
         576  +
    UnsupportedOperationException(crate::types::error::UnsupportedOperationException),
         577  +
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
         578  +
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
         579  +
    variable wildcard pattern and check `.code()`:
         580  +
     \
         581  +
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
         582  +
     \
         583  +
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-ListNodesSummaryError) for what information is available for the error.")]
         584  +
    Unhandled(crate::error::sealed_unhandled::Unhandled),
         585  +
}
         586  +
impl ListNodesSummaryError {
         587  +
    /// Creates the `ListNodesSummaryError::Unhandled` variant from any error type.
         588  +
    pub fn unhandled(
         589  +
        err: impl ::std::convert::Into<::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>>,
         590  +
    ) -> Self {
         591  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         592  +
            source: err.into(),
         593  +
            meta: ::std::default::Default::default(),
         594  +
        })
         595  +
    }
         596  +
         597  +
    /// Creates the `ListNodesSummaryError::Unhandled` variant from an [`ErrorMetadata`](::aws_smithy_types::error::ErrorMetadata).
         598  +
    pub fn generic(err: ::aws_smithy_types::error::ErrorMetadata) -> Self {
         599  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         600  +
            source: err.clone().into(),
         601  +
            meta: err,
         602  +
        })
         603  +
    }
         604  +
    ///
         605  +
    /// Returns error metadata, which includes the error code, message,
         606  +
    /// request ID, and potentially additional information.
         607  +
    ///
         608  +
    pub fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         609  +
        match self {
         610  +
            Self::InternalServerError(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         611  +
            Self::InvalidAggregatorException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         612  +
            Self::InvalidFilter(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         613  +
            Self::InvalidNextToken(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         614  +
            Self::ResourceDataSyncNotFoundException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         615  +
            Self::UnsupportedOperationException(e) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(e),
         616  +
            Self::Unhandled(e) => &e.meta,
         617  +
        }
         618  +
    }
         619  +
    /// Returns `true` if the error kind is `ListNodesSummaryError::InternalServerError`.
         620  +
    pub fn is_internal_server_error(&self) -> bool {
         621  +
        matches!(self, Self::InternalServerError(_))
         622  +
    }
         623  +
    /// Returns `true` if the error kind is `ListNodesSummaryError::InvalidAggregatorException`.
         624  +
    pub fn is_invalid_aggregator_exception(&self) -> bool {
         625  +
        matches!(self, Self::InvalidAggregatorException(_))
         626  +
    }
         627  +
    /// Returns `true` if the error kind is `ListNodesSummaryError::InvalidFilter`.
         628  +
    pub fn is_invalid_filter(&self) -> bool {
         629  +
        matches!(self, Self::InvalidFilter(_))
         630  +
    }
         631  +
    /// Returns `true` if the error kind is `ListNodesSummaryError::InvalidNextToken`.
         632  +
    pub fn is_invalid_next_token(&self) -> bool {
         633  +
        matches!(self, Self::InvalidNextToken(_))
         634  +
    }
         635  +
    /// Returns `true` if the error kind is `ListNodesSummaryError::ResourceDataSyncNotFoundException`.
         636  +
    pub fn is_resource_data_sync_not_found_exception(&self) -> bool {
         637  +
        matches!(self, Self::ResourceDataSyncNotFoundException(_))
         638  +
    }
         639  +
    /// Returns `true` if the error kind is `ListNodesSummaryError::UnsupportedOperationException`.
         640  +
    pub fn is_unsupported_operation_exception(&self) -> bool {
         641  +
        matches!(self, Self::UnsupportedOperationException(_))
         642  +
    }
         643  +
}
         644  +
impl ::std::error::Error for ListNodesSummaryError {
         645  +
    fn source(&self) -> ::std::option::Option<&(dyn ::std::error::Error + 'static)> {
         646  +
        match self {
         647  +
            Self::InternalServerError(_inner) => ::std::option::Option::Some(_inner),
         648  +
            Self::InvalidAggregatorException(_inner) => ::std::option::Option::Some(_inner),
         649  +
            Self::InvalidFilter(_inner) => ::std::option::Option::Some(_inner),
         650  +
            Self::InvalidNextToken(_inner) => ::std::option::Option::Some(_inner),
         651  +
            Self::ResourceDataSyncNotFoundException(_inner) => ::std::option::Option::Some(_inner),
         652  +
            Self::UnsupportedOperationException(_inner) => ::std::option::Option::Some(_inner),
         653  +
            Self::Unhandled(_inner) => ::std::option::Option::Some(&*_inner.source),
         654  +
        }
         655  +
    }
         656  +
}
         657  +
impl ::std::fmt::Display for ListNodesSummaryError {
         658  +
    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
         659  +
        match self {
         660  +
            Self::InternalServerError(_inner) => _inner.fmt(f),
         661  +
            Self::InvalidAggregatorException(_inner) => _inner.fmt(f),
         662  +
            Self::InvalidFilter(_inner) => _inner.fmt(f),
         663  +
            Self::InvalidNextToken(_inner) => _inner.fmt(f),
         664  +
            Self::ResourceDataSyncNotFoundException(_inner) => _inner.fmt(f),
         665  +
            Self::UnsupportedOperationException(_inner) => _inner.fmt(f),
         666  +
            Self::Unhandled(_inner) => {
         667  +
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
         668  +
                    write!(f, "unhandled error ({code})")
         669  +
                } else {
         670  +
                    f.write_str("unhandled error")
         671  +
                }
         672  +
            }
         673  +
        }
         674  +
    }
         675  +
}
         676  +
impl ::aws_smithy_types::retry::ProvideErrorKind for ListNodesSummaryError {
         677  +
    fn code(&self) -> ::std::option::Option<&str> {
         678  +
        ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self)
         679  +
    }
         680  +
    fn retryable_error_kind(&self) -> ::std::option::Option<::aws_smithy_types::retry::ErrorKind> {
         681  +
        ::std::option::Option::None
         682  +
    }
         683  +
}
         684  +
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for ListNodesSummaryError {
         685  +
    fn meta(&self) -> &::aws_smithy_types::error::ErrorMetadata {
         686  +
        match self {
         687  +
            Self::InternalServerError(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         688  +
            Self::InvalidAggregatorException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         689  +
            Self::InvalidFilter(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         690  +
            Self::InvalidNextToken(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         691  +
            Self::ResourceDataSyncNotFoundException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         692  +
            Self::UnsupportedOperationException(_inner) => ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(_inner),
         693  +
            Self::Unhandled(_inner) => &_inner.meta,
         694  +
        }
         695  +
    }
         696  +
}
         697  +
impl ::aws_smithy_runtime_api::client::result::CreateUnhandledError for ListNodesSummaryError {
         698  +
    fn create_unhandled_error(
         699  +
        source: ::std::boxed::Box<dyn ::std::error::Error + ::std::marker::Send + ::std::marker::Sync + 'static>,
         700  +
        meta: ::std::option::Option<::aws_smithy_types::error::ErrorMetadata>,
         701  +
    ) -> Self {
         702  +
        Self::Unhandled(crate::error::sealed_unhandled::Unhandled {
         703  +
            source,
         704  +
            meta: meta.unwrap_or_default(),
         705  +
        })
         706  +
    }
         707  +
}
         708  +
impl ::aws_types::request_id::RequestId for crate::operation::list_nodes_summary::ListNodesSummaryError {
         709  +
    fn request_id(&self) -> Option<&str> {
         710  +
        self.meta().request_id()
         711  +
    }
         712  +
}
         713  +
         714  +
pub use crate::operation::list_nodes_summary::_list_nodes_summary_input::ListNodesSummaryInput;
         715  +
         716  +
pub use crate::operation::list_nodes_summary::_list_nodes_summary_output::ListNodesSummaryOutput;
         717  +
         718  +
mod _list_nodes_summary_input;
         719  +
         720  +
mod _list_nodes_summary_output;
         721  +
         722  +
/// Builders
         723  +
pub mod builders;
         724  +
         725  +
/// Paginator for this operation
         726  +
pub mod paginator;