AWS SDK

AWS SDK

rev. bbca34fa2eddb4be623fbbc6b6df1a2401de0029 (ignoring whitespace)

Files changed:

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

@@ -0,1 +0,269 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
#[allow(missing_docs)] // documentation missing in model
           3  +
#[non_exhaustive]
           4  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
           5  +
pub struct ListCommandsOutput {
           6  +
    /// <p>(Optional) The list of commands requested by the user.</p>
           7  +
    pub commands: ::std::option::Option<::std::vec::Vec<crate::types::Command>>,
           8  +
    /// <p>(Optional) The token for the next set of items to return. (You received this token from a previous call.)</p>
           9  +
    pub next_token: ::std::option::Option<::std::string::String>,
          10  +
    _request_id: Option<String>,
          11  +
}
          12  +
impl ListCommandsOutput {
          13  +
    /// <p>(Optional) The list of commands requested by the user.</p>
          14  +
    ///
          15  +
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.commands.is_none()`.
          16  +
    pub fn commands(&self) -> &[crate::types::Command] {
          17  +
        self.commands.as_deref().unwrap_or_default()
          18  +
    }
          19  +
    /// <p>(Optional) The token for the next set of items to return. (You received this token from a previous call.)</p>
          20  +
    pub fn next_token(&self) -> ::std::option::Option<&str> {
          21  +
        self.next_token.as_deref()
          22  +
    }
          23  +
}
          24  +
static LISTCOMMANDSOUTPUT_MEMBER_COMMANDS_MEMBER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          25  +
    ::aws_smithy_schema::ShapeId::from_parts("com.amazonaws.ssm#CommandList$member", "com.amazonaws.ssm", "CommandList"),
          26  +
    ::aws_smithy_schema::ShapeType::Structure,
          27  +
    "member",
          28  +
    0,
          29  +
);
          30  +
static LISTCOMMANDSOUTPUT_MEMBER_COMMANDS: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          31  +
    ::aws_smithy_schema::ShapeId::from_parts(
          32  +
        "com.amazonaws.ssm.synthetic#ListCommandsOutput$Commands",
          33  +
        "com.amazonaws.ssm.synthetic",
          34  +
        "ListCommandsOutput",
          35  +
    ),
          36  +
    ::aws_smithy_schema::ShapeType::List,
          37  +
    "Commands",
          38  +
    0,
          39  +
)
          40  +
.with_list_member(&LISTCOMMANDSOUTPUT_MEMBER_COMMANDS_MEMBER);
          41  +
static LISTCOMMANDSOUTPUT_MEMBER_NEXT_TOKEN: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          42  +
    ::aws_smithy_schema::ShapeId::from_parts(
          43  +
        "com.amazonaws.ssm.synthetic#ListCommandsOutput$NextToken",
          44  +
        "com.amazonaws.ssm.synthetic",
          45  +
        "ListCommandsOutput",
          46  +
    ),
          47  +
    ::aws_smithy_schema::ShapeType::String,
          48  +
    "NextToken",
          49  +
    1,
          50  +
);
          51  +
static LISTCOMMANDSOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
          52  +
    ::aws_smithy_schema::ShapeId::from_parts("synthetic#request_id", "synthetic", "request_id"),
          53  +
    ::aws_smithy_schema::ShapeType::String,
          54  +
    "request_id",
          55  +
    2,
          56  +
)
          57  +
.with_http_header("x-amzn-requestid");
          58  +
static LISTCOMMANDSOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
          59  +
    ::aws_smithy_schema::ShapeId::from_parts(
          60  +
        "com.amazonaws.ssm.synthetic#ListCommandsOutput",
          61  +
        "com.amazonaws.ssm.synthetic",
          62  +
        "ListCommandsOutput",
          63  +
    ),
          64  +
    ::aws_smithy_schema::ShapeType::Structure,
          65  +
    &[
          66  +
        &LISTCOMMANDSOUTPUT_MEMBER_COMMANDS,
          67  +
        &LISTCOMMANDSOUTPUT_MEMBER_NEXT_TOKEN,
          68  +
        &LISTCOMMANDSOUTPUT_MEMBER__REQUEST_ID,
          69  +
    ],
          70  +
)
          71  +
.with_original_name("ListCommandsResult");
          72  +
impl ListCommandsOutput {
          73  +
    /// The schema for this shape.
          74  +
    pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &LISTCOMMANDSOUTPUT_SCHEMA;
          75  +
}
          76  +
impl ::aws_smithy_schema::serde::SerializableStruct for ListCommandsOutput {
          77  +
    #[allow(unused_variables, clippy::diverging_sub_expression)]
          78  +
    fn serialize_members(
          79  +
        &self,
          80  +
        ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
          81  +
    ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
          82  +
        if let Some(ref val) = self.commands {
          83  +
            ser.write_list(
          84  +
                &LISTCOMMANDSOUTPUT_MEMBER_COMMANDS,
          85  +
                &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
          86  +
                    for item in val {
          87  +
                        ser.write_struct(crate::types::Command::SCHEMA, item)?;
          88  +
                    }
          89  +
                    Ok(())
          90  +
                },
          91  +
            )?;
          92  +
        }
          93  +
        if let Some(ref val) = self.next_token {
          94  +
            ser.write_string(&LISTCOMMANDSOUTPUT_MEMBER_NEXT_TOKEN, val)?;
          95  +
        }
          96  +
        Ok(())
          97  +
    }
          98  +
}
          99  +
impl ListCommandsOutput {
         100  +
    /// Deserializes this structure from a [`ShapeDeserializer`].
         101  +
    pub fn deserialize(
         102  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         103  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         104  +
        #[allow(unused_variables, unused_mut)]
         105  +
        let mut builder = Self::builder();
         106  +
        #[allow(
         107  +
            unused_variables,
         108  +
            unreachable_code,
         109  +
            clippy::single_match,
         110  +
            clippy::match_single_binding,
         111  +
            clippy::diverging_sub_expression
         112  +
        )]
         113  +
        deserializer.read_struct(&LISTCOMMANDSOUTPUT_SCHEMA, &mut |member, deser| {
         114  +
            match member.member_index() {
         115  +
                Some(0) => {
         116  +
                    if deser.is_null() {
         117  +
                        deser.read_null()?;
         118  +
                    } else {
         119  +
                        builder.commands = Some({
         120  +
                            let mut container = Vec::new();
         121  +
                            deser.read_list(member, &mut |deser| {
         122  +
                                container.push(crate::types::Command::deserialize(deser)?);
         123  +
                                Ok(())
         124  +
                            })?;
         125  +
                            container
         126  +
                        });
         127  +
                    }
         128  +
                }
         129  +
                Some(1) => {
         130  +
                    if deser.is_null() {
         131  +
                        deser.read_null()?;
         132  +
                    } else {
         133  +
                        builder.next_token = Some(deser.read_string(member)?);
         134  +
                    }
         135  +
                }
         136  +
                Some(2) => {
         137  +
                    builder._request_id = Some(deser.read_string(member)?);
         138  +
                }
         139  +
                _ => {}
         140  +
            }
         141  +
            Ok(())
         142  +
        })?;
         143  +
        Ok(builder.build())
         144  +
    }
         145  +
}
         146  +
impl ListCommandsOutput {
         147  +
    /// Deserializes this structure from a body deserializer and HTTP response headers.
         148  +
    /// Header-bound members are read directly from headers, avoiding runtime
         149  +
    /// member iteration overhead. Body members are read via the deserializer.
         150  +
    pub fn deserialize_with_response(
         151  +
        deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
         152  +
        headers: &::aws_smithy_runtime_api::http::Headers,
         153  +
        _status: u16,
         154  +
        _body: &[u8],
         155  +
    ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
         156  +
        #[allow(unused_variables, unused_mut)]
         157  +
        let mut builder = Self::builder();
         158  +
        if let Some(val) = headers.get("x-amzn-requestid") {
         159  +
            builder._request_id = Some(val.to_string());
         160  +
        }
         161  +
         162  +
        #[allow(
         163  +
            unused_variables,
         164  +
            unreachable_code,
         165  +
            clippy::single_match,
         166  +
            clippy::match_single_binding,
         167  +
            clippy::diverging_sub_expression
         168  +
        )]
         169  +
        deserializer.read_struct(&LISTCOMMANDSOUTPUT_SCHEMA, &mut |member, deser| {
         170  +
            match member.member_index() {
         171  +
                Some(0) => {
         172  +
                    builder.commands = Some({
         173  +
                        let mut container = Vec::new();
         174  +
                        deser.read_list(member, &mut |deser| {
         175  +
                            container.push(crate::types::Command::deserialize(deser)?);
         176  +
                            Ok(())
         177  +
                        })?;
         178  +
                        container
         179  +
                    });
         180  +
                }
         181  +
                Some(1) => {
         182  +
                    builder.next_token = Some(deser.read_string(member)?);
         183  +
                }
         184  +
                _ => {}
         185  +
            }
         186  +
            Ok(())
         187  +
        })?;
         188  +
        Ok(builder.build())
         189  +
    }
         190  +
}
         191  +
impl ::aws_types::request_id::RequestId for ListCommandsOutput {
         192  +
    fn request_id(&self) -> Option<&str> {
         193  +
        self._request_id.as_deref()
         194  +
    }
         195  +
}
         196  +
impl ListCommandsOutput {
         197  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         198  +
        self._request_id = request_id;
         199  +
        self
         200  +
    }
         201  +
}
         202  +
impl ListCommandsOutput {
         203  +
    /// Creates a new builder-style object to manufacture [`ListCommandsOutput`](crate::operation::list_commands::ListCommandsOutput).
         204  +
    pub fn builder() -> crate::operation::list_commands::builders::ListCommandsOutputBuilder {
         205  +
        crate::operation::list_commands::builders::ListCommandsOutputBuilder::default()
         206  +
    }
         207  +
}
         208  +
         209  +
/// A builder for [`ListCommandsOutput`](crate::operation::list_commands::ListCommandsOutput).
         210  +
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
         211  +
#[non_exhaustive]
         212  +
pub struct ListCommandsOutputBuilder {
         213  +
    pub(crate) commands: ::std::option::Option<::std::vec::Vec<crate::types::Command>>,
         214  +
    pub(crate) next_token: ::std::option::Option<::std::string::String>,
         215  +
    _request_id: Option<String>,
         216  +
}
         217  +
impl ListCommandsOutputBuilder {
         218  +
    /// Appends an item to `commands`.
         219  +
    ///
         220  +
    /// To override the contents of this collection use [`set_commands`](Self::set_commands).
         221  +
    ///
         222  +
    /// <p>(Optional) The list of commands requested by the user.</p>
         223  +
    pub fn commands(mut self, input: crate::types::Command) -> Self {
         224  +
        let mut v = self.commands.unwrap_or_default();
         225  +
        v.push(input);
         226  +
        self.commands = ::std::option::Option::Some(v);
         227  +
        self
         228  +
    }
         229  +
    /// <p>(Optional) The list of commands requested by the user.</p>
         230  +
    pub fn set_commands(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Command>>) -> Self {
         231  +
        self.commands = input;
         232  +
        self
         233  +
    }
         234  +
    /// <p>(Optional) The list of commands requested by the user.</p>
         235  +
    pub fn get_commands(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Command>> {
         236  +
        &self.commands
         237  +
    }
         238  +
    /// <p>(Optional) The token for the next set of items to return. (You received this token from a previous call.)</p>
         239  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         240  +
        self.next_token = ::std::option::Option::Some(input.into());
         241  +
        self
         242  +
    }
         243  +
    /// <p>(Optional) The token for the next set of items to return. (You received this token from a previous call.)</p>
         244  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         245  +
        self.next_token = input;
         246  +
        self
         247  +
    }
         248  +
    /// <p>(Optional) The token for the next set of items to return. (You received this token from a previous call.)</p>
         249  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         250  +
        &self.next_token
         251  +
    }
         252  +
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
         253  +
        self._request_id = Some(request_id.into());
         254  +
        self
         255  +
    }
         256  +
         257  +
    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
         258  +
        self._request_id = request_id;
         259  +
        self
         260  +
    }
         261  +
    /// Consumes the builder and constructs a [`ListCommandsOutput`](crate::operation::list_commands::ListCommandsOutput).
         262  +
    pub fn build(self) -> crate::operation::list_commands::ListCommandsOutput {
         263  +
        crate::operation::list_commands::ListCommandsOutput {
         264  +
            commands: self.commands,
         265  +
            next_token: self.next_token,
         266  +
            _request_id: self._request_id,
         267  +
        }
         268  +
    }
         269  +
}

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

@@ -0,1 +0,198 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::list_commands::_list_commands_input::ListCommandsInputBuilder;
           3  +
           4  +
pub use crate::operation::list_commands::_list_commands_output::ListCommandsOutputBuilder;
           5  +
           6  +
impl crate::operation::list_commands::builders::ListCommandsInputBuilder {
           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_commands::ListCommandsOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::list_commands::ListCommandsError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.list_commands();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `ListCommands`.
          24  +
///
          25  +
/// <p>Lists the commands requested by users of the Amazon Web Services account.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct ListCommandsFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::list_commands::builders::ListCommandsInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::list_commands::ListCommandsOutput,
          35  +
        crate::operation::list_commands::ListCommandsError,
          36  +
    > for ListCommandsFluentBuilder
          37  +
{
          38  +
    fn send(
          39  +
        self,
          40  +
        config_override: crate::config::Builder,
          41  +
    ) -> crate::client::customize::internal::BoxFuture<
          42  +
        crate::client::customize::internal::SendResult<
          43  +
            crate::operation::list_commands::ListCommandsOutput,
          44  +
            crate::operation::list_commands::ListCommandsError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl ListCommandsFluentBuilder {
          51  +
    /// Creates a new `ListCommandsFluentBuilder`.
          52  +
    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
          53  +
        Self {
          54  +
            handle,
          55  +
            inner: ::std::default::Default::default(),
          56  +
            config_override: ::std::option::Option::None,
          57  +
        }
          58  +
    }
          59  +
    /// Access the ListCommands as a reference.
          60  +
    pub fn as_input(&self) -> &crate::operation::list_commands::builders::ListCommandsInputBuilder {
          61  +
        &self.inner
          62  +
    }
          63  +
    /// Sends the request and returns the response.
          64  +
    ///
          65  +
    /// If an error occurs, an `SdkError` will be returned with additional details that
          66  +
    /// can be matched against.
          67  +
    ///
          68  +
    /// By default, any retryable failures will be retried twice. Retry behavior
          69  +
    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
          70  +
    /// set when configuring the client.
          71  +
    pub async fn send(
          72  +
        self,
          73  +
    ) -> ::std::result::Result<
          74  +
        crate::operation::list_commands::ListCommandsOutput,
          75  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          76  +
            crate::operation::list_commands::ListCommandsError,
          77  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          78  +
        >,
          79  +
    > {
          80  +
        let input = self
          81  +
            .inner
          82  +
            .build()
          83  +
            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
          84  +
        let runtime_plugins = crate::operation::list_commands::ListCommands::operation_runtime_plugins(
          85  +
            self.handle.runtime_plugins.clone(),
          86  +
            &self.handle.conf,
          87  +
            self.config_override,
          88  +
        );
          89  +
        crate::operation::list_commands::ListCommands::orchestrate(&runtime_plugins, input).await
          90  +
    }
          91  +
          92  +
    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
          93  +
    pub fn customize(
          94  +
        self,
          95  +
    ) -> crate::client::customize::CustomizableOperation<
          96  +
        crate::operation::list_commands::ListCommandsOutput,
          97  +
        crate::operation::list_commands::ListCommandsError,
          98  +
        Self,
          99  +
    > {
         100  +
        crate::client::customize::CustomizableOperation::new(self)
         101  +
    }
         102  +
    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
         103  +
        self.set_config_override(::std::option::Option::Some(config_override.into()));
         104  +
        self
         105  +
    }
         106  +
         107  +
    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
         108  +
        self.config_override = config_override;
         109  +
        self
         110  +
    }
         111  +
    /// Create a paginator for this request
         112  +
    ///
         113  +
    /// Paginators are used by calling [`send().await`](crate::operation::list_commands::paginator::ListCommandsPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
         114  +
    pub fn into_paginator(self) -> crate::operation::list_commands::paginator::ListCommandsPaginator {
         115  +
        crate::operation::list_commands::paginator::ListCommandsPaginator::new(self.handle, self.inner)
         116  +
    }
         117  +
    /// <p>(Optional) If provided, lists only the specified command.</p>
         118  +
    pub fn command_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         119  +
        self.inner = self.inner.command_id(input.into());
         120  +
        self
         121  +
    }
         122  +
    /// <p>(Optional) If provided, lists only the specified command.</p>
         123  +
    pub fn set_command_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         124  +
        self.inner = self.inner.set_command_id(input);
         125  +
        self
         126  +
    }
         127  +
    /// <p>(Optional) If provided, lists only the specified command.</p>
         128  +
    pub fn get_command_id(&self) -> &::std::option::Option<::std::string::String> {
         129  +
        self.inner.get_command_id()
         130  +
    }
         131  +
    /// <p>(Optional) Lists commands issued against this managed node ID.</p><note>
         132  +
    /// <p>You can't specify a managed node ID in the same command that you specify <code>Status</code> = <code>Pending</code>. This is because the command hasn't reached the managed node yet.</p>
         133  +
    /// </note>
         134  +
    pub fn instance_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         135  +
        self.inner = self.inner.instance_id(input.into());
         136  +
        self
         137  +
    }
         138  +
    /// <p>(Optional) Lists commands issued against this managed node ID.</p><note>
         139  +
    /// <p>You can't specify a managed node ID in the same command that you specify <code>Status</code> = <code>Pending</code>. This is because the command hasn't reached the managed node yet.</p>
         140  +
    /// </note>
         141  +
    pub fn set_instance_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         142  +
        self.inner = self.inner.set_instance_id(input);
         143  +
        self
         144  +
    }
         145  +
    /// <p>(Optional) Lists commands issued against this managed node ID.</p><note>
         146  +
    /// <p>You can't specify a managed node ID in the same command that you specify <code>Status</code> = <code>Pending</code>. This is because the command hasn't reached the managed node yet.</p>
         147  +
    /// </note>
         148  +
    pub fn get_instance_id(&self) -> &::std::option::Option<::std::string::String> {
         149  +
        self.inner.get_instance_id()
         150  +
    }
         151  +
    /// <p>(Optional) 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>
         152  +
    pub fn max_results(mut self, input: i32) -> Self {
         153  +
        self.inner = self.inner.max_results(input);
         154  +
        self
         155  +
    }
         156  +
    /// <p>(Optional) 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>
         157  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         158  +
        self.inner = self.inner.set_max_results(input);
         159  +
        self
         160  +
    }
         161  +
    /// <p>(Optional) 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>
         162  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         163  +
        self.inner.get_max_results()
         164  +
    }
         165  +
    /// <p>(Optional) The token for the next set of items to return. (You received this token from a previous call.)</p>
         166  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         167  +
        self.inner = self.inner.next_token(input.into());
         168  +
        self
         169  +
    }
         170  +
    /// <p>(Optional) The token for the next set of items to return. (You received this token from a previous call.)</p>
         171  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         172  +
        self.inner = self.inner.set_next_token(input);
         173  +
        self
         174  +
    }
         175  +
    /// <p>(Optional) The token for the next set of items to return. (You received this token from a previous call.)</p>
         176  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         177  +
        self.inner.get_next_token()
         178  +
    }
         179  +
    ///
         180  +
    /// Appends an item to `Filters`.
         181  +
    ///
         182  +
    /// To override the contents of this collection use [`set_filters`](Self::set_filters).
         183  +
    ///
         184  +
    /// <p>(Optional) One or more filters. Use a filter to return a more specific list of results.</p>
         185  +
    pub fn filters(mut self, input: crate::types::CommandFilter) -> Self {
         186  +
        self.inner = self.inner.filters(input);
         187  +
        self
         188  +
    }
         189  +
    /// <p>(Optional) One or more filters. Use a filter to return a more specific list of results.</p>
         190  +
    pub fn set_filters(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::CommandFilter>>) -> Self {
         191  +
        self.inner = self.inner.set_filters(input);
         192  +
        self
         193  +
    }
         194  +
    /// <p>(Optional) One or more filters. Use a filter to return a more specific list of results.</p>
         195  +
    pub fn get_filters(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::CommandFilter>> {
         196  +
        self.inner.get_filters()
         197  +
    }
         198  +
}

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

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

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

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