AWS SDK

AWS SDK

rev. 97ba95e6039d206ffea5b866ddc214d34f7f88c3 (ignoring whitespace)

Files changed:

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

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

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

@@ -0,1 +0,183 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
pub use crate::operation::describe_instance_properties::_describe_instance_properties_input::DescribeInstancePropertiesInputBuilder;
           3  +
           4  +
pub use crate::operation::describe_instance_properties::_describe_instance_properties_output::DescribeInstancePropertiesOutputBuilder;
           5  +
           6  +
impl crate::operation::describe_instance_properties::builders::DescribeInstancePropertiesInputBuilder {
           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::describe_instance_properties::DescribeInstancePropertiesOutput,
          13  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          14  +
            crate::operation::describe_instance_properties::DescribeInstancePropertiesError,
          15  +
            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
          16  +
        >,
          17  +
    > {
          18  +
        let mut fluent_builder = client.describe_instance_properties();
          19  +
        fluent_builder.inner = self;
          20  +
        fluent_builder.send().await
          21  +
    }
          22  +
}
          23  +
/// Fluent builder constructing a request to `DescribeInstanceProperties`.
          24  +
///
          25  +
/// <p>An API operation used by the Systems Manager console to display information about Systems Manager managed nodes.</p>
          26  +
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
          27  +
pub struct DescribeInstancePropertiesFluentBuilder {
          28  +
    handle: ::std::sync::Arc<crate::client::Handle>,
          29  +
    inner: crate::operation::describe_instance_properties::builders::DescribeInstancePropertiesInputBuilder,
          30  +
    config_override: ::std::option::Option<crate::config::Builder>,
          31  +
}
          32  +
impl
          33  +
    crate::client::customize::internal::CustomizableSend<
          34  +
        crate::operation::describe_instance_properties::DescribeInstancePropertiesOutput,
          35  +
        crate::operation::describe_instance_properties::DescribeInstancePropertiesError,
          36  +
    > for DescribeInstancePropertiesFluentBuilder
          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::describe_instance_properties::DescribeInstancePropertiesOutput,
          44  +
            crate::operation::describe_instance_properties::DescribeInstancePropertiesError,
          45  +
        >,
          46  +
    > {
          47  +
        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
          48  +
    }
          49  +
}
          50  +
impl DescribeInstancePropertiesFluentBuilder {
          51  +
    /// Creates a new `DescribeInstancePropertiesFluentBuilder`.
          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 DescribeInstanceProperties as a reference.
          60  +
    pub fn as_input(&self) -> &crate::operation::describe_instance_properties::builders::DescribeInstancePropertiesInputBuilder {
          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::describe_instance_properties::DescribeInstancePropertiesOutput,
          75  +
        ::aws_smithy_runtime_api::client::result::SdkError<
          76  +
            crate::operation::describe_instance_properties::DescribeInstancePropertiesError,
          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::describe_instance_properties::DescribeInstanceProperties::operation_runtime_plugins(
          85  +
            self.handle.runtime_plugins.clone(),
          86  +
            &self.handle.conf,
          87  +
            self.config_override,
          88  +
        );
          89  +
        crate::operation::describe_instance_properties::DescribeInstanceProperties::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::describe_instance_properties::DescribeInstancePropertiesOutput,
          97  +
        crate::operation::describe_instance_properties::DescribeInstancePropertiesError,
          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::describe_instance_properties::paginator::DescribeInstancePropertiesPaginator::send) which returns a [`PaginationStream`](aws_smithy_async::future::pagination_stream::PaginationStream).
         114  +
    pub fn into_paginator(self) -> crate::operation::describe_instance_properties::paginator::DescribeInstancePropertiesPaginator {
         115  +
        crate::operation::describe_instance_properties::paginator::DescribeInstancePropertiesPaginator::new(self.handle, self.inner)
         116  +
    }
         117  +
    ///
         118  +
    /// Appends an item to `InstancePropertyFilterList`.
         119  +
    ///
         120  +
    /// To override the contents of this collection use [`set_instance_property_filter_list`](Self::set_instance_property_filter_list).
         121  +
    ///
         122  +
    /// <p>An array of instance property filters.</p>
         123  +
    pub fn instance_property_filter_list(mut self, input: crate::types::InstancePropertyFilter) -> Self {
         124  +
        self.inner = self.inner.instance_property_filter_list(input);
         125  +
        self
         126  +
    }
         127  +
    /// <p>An array of instance property filters.</p>
         128  +
    pub fn set_instance_property_filter_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::InstancePropertyFilter>>) -> Self {
         129  +
        self.inner = self.inner.set_instance_property_filter_list(input);
         130  +
        self
         131  +
    }
         132  +
    /// <p>An array of instance property filters.</p>
         133  +
    pub fn get_instance_property_filter_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::InstancePropertyFilter>> {
         134  +
        self.inner.get_instance_property_filter_list()
         135  +
    }
         136  +
    ///
         137  +
    /// Appends an item to `FiltersWithOperator`.
         138  +
    ///
         139  +
    /// To override the contents of this collection use [`set_filters_with_operator`](Self::set_filters_with_operator).
         140  +
    ///
         141  +
    /// <p>The request filters to use with the operator.</p>
         142  +
    pub fn filters_with_operator(mut self, input: crate::types::InstancePropertyStringFilter) -> Self {
         143  +
        self.inner = self.inner.filters_with_operator(input);
         144  +
        self
         145  +
    }
         146  +
    /// <p>The request filters to use with the operator.</p>
         147  +
    pub fn set_filters_with_operator(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::InstancePropertyStringFilter>>) -> Self {
         148  +
        self.inner = self.inner.set_filters_with_operator(input);
         149  +
        self
         150  +
    }
         151  +
    /// <p>The request filters to use with the operator.</p>
         152  +
    pub fn get_filters_with_operator(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::InstancePropertyStringFilter>> {
         153  +
        self.inner.get_filters_with_operator()
         154  +
    }
         155  +
    /// <p>The maximum number of items to return for the call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         156  +
    pub fn max_results(mut self, input: i32) -> Self {
         157  +
        self.inner = self.inner.max_results(input);
         158  +
        self
         159  +
    }
         160  +
    /// <p>The maximum number of items to return for the call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         161  +
    pub fn set_max_results(mut self, input: ::std::option::Option<i32>) -> Self {
         162  +
        self.inner = self.inner.set_max_results(input);
         163  +
        self
         164  +
    }
         165  +
    /// <p>The maximum number of items to return for the call. The call also returns a token that you can specify in a subsequent call to get the next set of results.</p>
         166  +
    pub fn get_max_results(&self) -> &::std::option::Option<i32> {
         167  +
        self.inner.get_max_results()
         168  +
    }
         169  +
    /// <p>The token provided by a previous request to use to return the next set of properties.</p>
         170  +
    pub fn next_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
         171  +
        self.inner = self.inner.next_token(input.into());
         172  +
        self
         173  +
    }
         174  +
    /// <p>The token provided by a previous request to use to return the next set of properties.</p>
         175  +
    pub fn set_next_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
         176  +
        self.inner = self.inner.set_next_token(input);
         177  +
        self
         178  +
    }
         179  +
    /// <p>The token provided by a previous request to use to return the next set of properties.</p>
         180  +
    pub fn get_next_token(&self) -> &::std::option::Option<::std::string::String> {
         181  +
        self.inner.get_next_token()
         182  +
    }
         183  +
}

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

@@ -0,1 +0,150 @@
           1  +
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/// Paginator for [`DescribeInstanceProperties`](crate::operation::describe_instance_properties::DescribeInstanceProperties)
           3  +
pub struct DescribeInstancePropertiesPaginator {
           4  +
    handle: std::sync::Arc<crate::client::Handle>,
           5  +
    builder: crate::operation::describe_instance_properties::builders::DescribeInstancePropertiesInputBuilder,
           6  +
    stop_on_duplicate_token: bool,
           7  +
}
           8  +
           9  +
impl DescribeInstancePropertiesPaginator {
          10  +
    /// Create a new paginator-wrapper
          11  +
    pub(crate) fn new(
          12  +
        handle: std::sync::Arc<crate::client::Handle>,
          13  +
        builder: crate::operation::describe_instance_properties::builders::DescribeInstancePropertiesInputBuilder,
          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 `instance_properties`. Queries to the underlying service
          33  +
    /// are dispatched lazily.
          34  +
    pub fn items(self) -> crate::operation::describe_instance_properties::paginator::DescribeInstancePropertiesPaginatorItems {
          35  +
        crate::operation::describe_instance_properties::paginator::DescribeInstancePropertiesPaginatorItems(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::describe_instance_properties::DescribeInstancePropertiesOutput,
          59  +
            ::aws_smithy_runtime_api::client::result::SdkError<
          60  +
                crate::operation::describe_instance_properties::DescribeInstancePropertiesError,
          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::describe_instance_properties::DescribeInstanceProperties::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 =
          90  +
                            crate::operation::describe_instance_properties::DescribeInstanceProperties::orchestrate(&runtime_plugins, input.clone())
          91  +
                                .await;
          92  +
                        // If the input member is None or it was an error
          93  +
                        let done = match resp {
          94  +
                            ::std::result::Result::Ok(ref resp) => {
          95  +
                                let new_token = crate::lens::reflens_describe_instance_properties_output_output_next_token(resp);
          96  +
                                // Pagination is exhausted when the next token is an empty string
          97  +
                                let is_empty = new_token.map(|token| token.is_empty()).unwrap_or(true);
          98  +
                                if !is_empty && new_token == input.next_token.as_ref() && self.stop_on_duplicate_token {
          99  +
                                    true
         100  +
                                } else {
         101  +
                                    input.next_token = new_token.cloned();
         102  +
                                    is_empty
         103  +
                                }
         104  +
                            }
         105  +
                            ::std::result::Result::Err(_) => true,
         106  +
                        };
         107  +
                        if tx.send(resp).await.is_err() {
         108  +
                            // receiving end was dropped
         109  +
                            return;
         110  +
                        }
         111  +
                        if done {
         112  +
                            return;
         113  +
                        }
         114  +
                    }
         115  +
                })
         116  +
            },
         117  +
        ))
         118  +
    }
         119  +
}
         120  +
         121  +
/// Flattened paginator for `DescribeInstancePropertiesPaginator`
         122  +
///
         123  +
/// This is created with [`.items()`](DescribeInstancePropertiesPaginator::items)
         124  +
pub struct DescribeInstancePropertiesPaginatorItems(DescribeInstancePropertiesPaginator);
         125  +
         126  +
impl DescribeInstancePropertiesPaginatorItems {
         127  +
    /// Create the pagination stream
         128  +
    ///
         129  +
    /// _Note_: No requests will be dispatched until the stream is used
         130  +
    /// (e.g. with the [`.next().await`](aws_smithy_async::future::pagination_stream::PaginationStream::next) method).
         131  +
    ///
         132  +
    /// To read the entirety of the paginator, use [`.collect::<Result<Vec<_>, _>()`](aws_smithy_async::future::pagination_stream::PaginationStream::collect).
         133  +
    pub fn send(
         134  +
        self,
         135  +
    ) -> ::aws_smithy_async::future::pagination_stream::PaginationStream<
         136  +
        ::std::result::Result<
         137  +
            crate::types::InstanceProperty,
         138  +
            ::aws_smithy_runtime_api::client::result::SdkError<
         139  +
                crate::operation::describe_instance_properties::DescribeInstancePropertiesError,
         140  +
                ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
         141  +
            >,
         142  +
        >,
         143  +
    > {
         144  +
        ::aws_smithy_async::future::pagination_stream::TryFlatMap::new(self.0.send()).flat_map(|page| {
         145  +
            crate::lens::lens_describe_instance_properties_output_output_instance_properties(page)
         146  +
                .unwrap_or_default()
         147  +
                .into_iter()
         148  +
        })
         149  +
    }
         150  +
}

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

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