Client Test

Client Test

rev. dfb5149b65b7bcc09edd15b8e071ad43b5ac5943 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/client/xml_int_enums.rs

@@ -1,1 +17,21 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`XmlIntEnums`](crate::operation::xml_int_enums::builders::XmlIntEnumsFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder takes no input, just [`send`](crate::operation::xml_int_enums::builders::XmlIntEnumsFluentBuilder::send) it.
    6      8   
    /// - On success, responds with [`XmlIntEnumsOutput`](crate::operation::xml_int_enums::XmlIntEnumsOutput) with field(s):
    7      9   
    ///   - [`int_enum1(Option<i32>)`](crate::operation::xml_int_enums::XmlIntEnumsOutput::int_enum1): (undocumented)
    8     10   
    ///   - [`int_enum2(Option<i32>)`](crate::operation::xml_int_enums::XmlIntEnumsOutput::int_enum2): (undocumented)
    9     11   
    ///   - [`int_enum3(Option<i32>)`](crate::operation::xml_int_enums::XmlIntEnumsOutput::int_enum3): (undocumented)
   10     12   
    ///   - [`int_enum_list(Option<Vec::<i32>>)`](crate::operation::xml_int_enums::XmlIntEnumsOutput::int_enum_list): (undocumented)
   11     13   
    ///   - [`int_enum_set(Option<Vec::<i32>>)`](crate::operation::xml_int_enums::XmlIntEnumsOutput::int_enum_set): (undocumented)
   12     14   
    ///   - [`int_enum_map(Option<HashMap::<String, i32>>)`](crate::operation::xml_int_enums::XmlIntEnumsOutput::int_enum_map): (undocumented)
   13     15   
    /// - On failure, responds with [`SdkError<XmlIntEnumsError>`](crate::operation::xml_int_enums::XmlIntEnumsError)
          16  +
    /* FluentClientGenerator.kt:234 */
   14     17   
    pub fn xml_int_enums(&self) -> crate::operation::xml_int_enums::builders::XmlIntEnumsFluentBuilder {
   15     18   
        crate::operation::xml_int_enums::builders::XmlIntEnumsFluentBuilder::new(self.handle.clone())
   16     19   
    }
          20  +
    /* FluentClientGenerator.kt:187 */
   17     21   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/client/xml_lists.rs

@@ -1,1 +25,29 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`XmlLists`](crate::operation::xml_lists::builders::XmlListsFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder takes no input, just [`send`](crate::operation::xml_lists::builders::XmlListsFluentBuilder::send) it.
    6      8   
    /// - On success, responds with [`XmlListsOutput`](crate::operation::xml_lists::XmlListsOutput) with field(s):
    7      9   
    ///   - [`string_list(Option<Vec::<String>>)`](crate::operation::xml_lists::XmlListsOutput::string_list): (undocumented)
    8     10   
    ///   - [`string_set(Option<Vec::<String>>)`](crate::operation::xml_lists::XmlListsOutput::string_set): (undocumented)
    9     11   
    ///   - [`integer_list(Option<Vec::<i32>>)`](crate::operation::xml_lists::XmlListsOutput::integer_list): (undocumented)
   10     12   
    ///   - [`boolean_list(Option<Vec::<bool>>)`](crate::operation::xml_lists::XmlListsOutput::boolean_list): (undocumented)
   11     13   
    ///   - [`timestamp_list(Option<Vec::<DateTime>>)`](crate::operation::xml_lists::XmlListsOutput::timestamp_list): (undocumented)
   12     14   
    ///   - [`enum_list(Option<Vec::<FooEnum>>)`](crate::operation::xml_lists::XmlListsOutput::enum_list): (undocumented)
   13     15   
    ///   - [`int_enum_list(Option<Vec::<i32>>)`](crate::operation::xml_lists::XmlListsOutput::int_enum_list): (undocumented)
   14     16   
    ///   - [`nested_string_list(Option<Vec::<Vec::<String>>>)`](crate::operation::xml_lists::XmlListsOutput::nested_string_list): A list of lists of strings.
   15     17   
    ///   - [`renamed_list_members(Option<Vec::<String>>)`](crate::operation::xml_lists::XmlListsOutput::renamed_list_members): (undocumented)
   16     18   
    ///   - [`flattened_list(Option<Vec::<String>>)`](crate::operation::xml_lists::XmlListsOutput::flattened_list): (undocumented)
   17     19   
    ///   - [`flattened_list2(Option<Vec::<String>>)`](crate::operation::xml_lists::XmlListsOutput::flattened_list2): (undocumented)
   18     20   
    ///   - [`flattened_list_with_member_namespace(Option<Vec::<String>>)`](crate::operation::xml_lists::XmlListsOutput::flattened_list_with_member_namespace): (undocumented)
   19     21   
    ///   - [`flattened_list_with_namespace(Option<Vec::<String>>)`](crate::operation::xml_lists::XmlListsOutput::flattened_list_with_namespace): (undocumented)
   20     22   
    ///   - [`structure_list(Option<Vec::<StructureListMember>>)`](crate::operation::xml_lists::XmlListsOutput::structure_list): (undocumented)
   21     23   
    /// - On failure, responds with [`SdkError<XmlListsError>`](crate::operation::xml_lists::XmlListsError)
          24  +
    /* FluentClientGenerator.kt:234 */
   22     25   
    pub fn xml_lists(&self) -> crate::operation::xml_lists::builders::XmlListsFluentBuilder {
   23     26   
        crate::operation::xml_lists::builders::XmlListsFluentBuilder::new(self.handle.clone())
   24     27   
    }
          28  +
    /* FluentClientGenerator.kt:187 */
   25     29   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/client/xml_maps.rs

@@ -1,1 +12,16 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`XmlMaps`](crate::operation::xml_maps::builders::XmlMapsFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder takes no input, just [`send`](crate::operation::xml_maps::builders::XmlMapsFluentBuilder::send) it.
    6      8   
    /// - On success, responds with [`XmlMapsOutput`](crate::operation::xml_maps::XmlMapsOutput) with field(s):
    7      9   
    ///   - [`my_map(Option<HashMap::<String, GreetingStruct>>)`](crate::operation::xml_maps::XmlMapsOutput::my_map): (undocumented)
    8     10   
    /// - On failure, responds with [`SdkError<XmlMapsError>`](crate::operation::xml_maps::XmlMapsError)
          11  +
    /* FluentClientGenerator.kt:234 */
    9     12   
    pub fn xml_maps(&self) -> crate::operation::xml_maps::builders::XmlMapsFluentBuilder {
   10     13   
        crate::operation::xml_maps::builders::XmlMapsFluentBuilder::new(self.handle.clone())
   11     14   
    }
          15  +
    /* FluentClientGenerator.kt:187 */
   12     16   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/client/xml_maps_xml_name.rs

@@ -1,1 +12,16 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`XmlMapsXmlName`](crate::operation::xml_maps_xml_name::builders::XmlMapsXmlNameFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder takes no input, just [`send`](crate::operation::xml_maps_xml_name::builders::XmlMapsXmlNameFluentBuilder::send) it.
    6      8   
    /// - On success, responds with [`XmlMapsXmlNameOutput`](crate::operation::xml_maps_xml_name::XmlMapsXmlNameOutput) with field(s):
    7      9   
    ///   - [`my_map(Option<HashMap::<String, GreetingStruct>>)`](crate::operation::xml_maps_xml_name::XmlMapsXmlNameOutput::my_map): (undocumented)
    8     10   
    /// - On failure, responds with [`SdkError<XmlMapsXmlNameError>`](crate::operation::xml_maps_xml_name::XmlMapsXmlNameError)
          11  +
    /* FluentClientGenerator.kt:234 */
    9     12   
    pub fn xml_maps_xml_name(&self) -> crate::operation::xml_maps_xml_name::builders::XmlMapsXmlNameFluentBuilder {
   10     13   
        crate::operation::xml_maps_xml_name::builders::XmlMapsXmlNameFluentBuilder::new(self.handle.clone())
   11     14   
    }
          15  +
    /* FluentClientGenerator.kt:187 */
   12     16   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/client/xml_namespaces.rs

@@ -1,1 +12,16 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`XmlNamespaces`](crate::operation::xml_namespaces::builders::XmlNamespacesFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder takes no input, just [`send`](crate::operation::xml_namespaces::builders::XmlNamespacesFluentBuilder::send) it.
    6      8   
    /// - On success, responds with [`XmlNamespacesOutput`](crate::operation::xml_namespaces::XmlNamespacesOutput) with field(s):
    7      9   
    ///   - [`nested(Option<XmlNamespaceNested>)`](crate::operation::xml_namespaces::XmlNamespacesOutput::nested): (undocumented)
    8     10   
    /// - On failure, responds with [`SdkError<XmlNamespacesError>`](crate::operation::xml_namespaces::XmlNamespacesError)
          11  +
    /* FluentClientGenerator.kt:234 */
    9     12   
    pub fn xml_namespaces(&self) -> crate::operation::xml_namespaces::builders::XmlNamespacesFluentBuilder {
   10     13   
        crate::operation::xml_namespaces::builders::XmlNamespacesFluentBuilder::new(self.handle.clone())
   11     14   
    }
          15  +
    /* FluentClientGenerator.kt:187 */
   12     16   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/client/xml_timestamps.rs

@@ -1,1 +18,22 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* FluentClientGenerator.kt:187 */
    2      3   
impl super::Client {
           4  +
    /* FluentClientGenerator.kt:221 */
    3      5   
    /// Constructs a fluent builder for the [`XmlTimestamps`](crate::operation::xml_timestamps::builders::XmlTimestampsFluentBuilder) operation.
    4      6   
    ///
    5      7   
    /// - The fluent builder takes no input, just [`send`](crate::operation::xml_timestamps::builders::XmlTimestampsFluentBuilder::send) it.
    6      8   
    /// - On success, responds with [`XmlTimestampsOutput`](crate::operation::xml_timestamps::XmlTimestampsOutput) with field(s):
    7      9   
    ///   - [`normal(Option<DateTime>)`](crate::operation::xml_timestamps::XmlTimestampsOutput::normal): (undocumented)
    8     10   
    ///   - [`date_time(Option<DateTime>)`](crate::operation::xml_timestamps::XmlTimestampsOutput::date_time): (undocumented)
    9     11   
    ///   - [`date_time_on_target(Option<DateTime>)`](crate::operation::xml_timestamps::XmlTimestampsOutput::date_time_on_target): (undocumented)
   10     12   
    ///   - [`epoch_seconds(Option<DateTime>)`](crate::operation::xml_timestamps::XmlTimestampsOutput::epoch_seconds): (undocumented)
   11     13   
    ///   - [`epoch_seconds_on_target(Option<DateTime>)`](crate::operation::xml_timestamps::XmlTimestampsOutput::epoch_seconds_on_target): (undocumented)
   12     14   
    ///   - [`http_date(Option<DateTime>)`](crate::operation::xml_timestamps::XmlTimestampsOutput::http_date): (undocumented)
   13     15   
    ///   - [`http_date_on_target(Option<DateTime>)`](crate::operation::xml_timestamps::XmlTimestampsOutput::http_date_on_target): (undocumented)
   14     16   
    /// - On failure, responds with [`SdkError<XmlTimestampsError>`](crate::operation::xml_timestamps::XmlTimestampsError)
          17  +
    /* FluentClientGenerator.kt:234 */
   15     18   
    pub fn xml_timestamps(&self) -> crate::operation::xml_timestamps::builders::XmlTimestampsFluentBuilder {
   16     19   
        crate::operation::xml_timestamps::builders::XmlTimestampsFluentBuilder::new(self.handle.clone())
   17     20   
    }
          21  +
    /* FluentClientGenerator.kt:187 */
   18     22   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/config.rs

@@ -1,1 +187,227 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// Configuration for a aws_query service client.
           2  +
/* ServiceConfigGenerator.kt:409 */
           3  +
/// /* ServiceConfigGenerator.kt:409 */Configuration for a aws_query service client.
    4      4   
///
           5  +
/* RustType.kt:516 */
    5      6   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
           7  +
/* ServiceConfigGenerator.kt:414 */
    6      8   
pub struct Config {
    7         -
    // Both `config` and `cloneable` are the same config, but the cloneable one
           9  +
    /* ServiceConfigGenerator.kt:415 */// Both `config` and `cloneable` are the same config, but the cloneable one
    8     10   
    // is kept around so that it is possible to convert back into a builder. This can be
    9     11   
    // optimized in the future.
   10     12   
    pub(crate) config: crate::config::FrozenLayer,
   11     13   
    cloneable: ::aws_smithy_types::config_bag::CloneableLayer,
   12     14   
    pub(crate) runtime_components: crate::config::RuntimeComponentsBuilder,
   13     15   
    pub(crate) runtime_plugins: ::std::vec::Vec<crate::config::SharedRuntimePlugin>,
   14     16   
    pub(crate) behavior_version: ::std::option::Option<crate::config::BehaviorVersion>,
          17  +
    /* ServiceConfigGenerator.kt:414 */
   15     18   
}
          19  +
/* ServiceConfigGenerator.kt:433 */
   16     20   
impl Config {
   17         -
    ///
          21  +
    /// /* ServiceConfigGenerator.kt:434 */
   18     22   
    /// Constructs a config builder.
   19     23   
    /// <div class="warning">
   20     24   
    /// Note that a config created from this builder will not have the same safe defaults as one created by
   21     25   
    /// the <a href="https://crates.io/crates/aws-config" target="_blank">aws-config</a> crate.
   22     26   
    /// </div>
   23     27   
    ///
          28  +
    /* ServiceConfigGenerator.kt:435 */
   24     29   
    pub fn builder() -> Builder {
   25     30   
        Builder::default()
   26     31   
    }
          32  +
    /* ServiceConfigGenerator.kt:440 */
   27     33   
    /// Converts this config back into a builder so that it can be tweaked.
   28     34   
    pub fn to_builder(&self) -> Builder {
   29     35   
        Builder {
   30     36   
            config: self.cloneable.clone(),
   31     37   
            runtime_components: self.runtime_components.clone(),
   32     38   
            runtime_plugins: self.runtime_plugins.clone(),
   33     39   
            behavior_version: self.behavior_version,
   34     40   
        }
   35     41   
    }
          42  +
    /* StalledStreamProtectionConfigCustomization.kt:57 */
   36     43   
    /// Return a reference to the stalled stream protection configuration contained in this config, if any.
   37     44   
    pub fn stalled_stream_protection(&self) -> ::std::option::Option<&crate::config::StalledStreamProtectionConfig> {
   38     45   
        self.config.load::<crate::config::StalledStreamProtectionConfig>()
   39     46   
    }
          47  +
    /* HttpConnectorConfigDecorator.kt:52 */
   40     48   
    /// Return the [`SharedHttpClient`](crate::config::SharedHttpClient) to use when making requests, if any.
   41     49   
    pub fn http_client(&self) -> Option<crate::config::SharedHttpClient> {
   42     50   
        self.runtime_components.http_client()
   43     51   
    }
          52  +
    /* EndpointConfigCustomization.kt:47 */
   44     53   
    /// Returns the endpoint resolver.
   45     54   
    pub fn endpoint_resolver(&self) -> ::aws_smithy_runtime_api::client::endpoint::SharedEndpointResolver {
   46     55   
        self.runtime_components.endpoint_resolver().expect("resolver defaulted if not set")
   47     56   
    }
          57  +
    /* ResiliencyConfigCustomization.kt:51 */
   48     58   
    /// Return a reference to the retry configuration contained in this config, if any.
   49     59   
    pub fn retry_config(&self) -> ::std::option::Option<&::aws_smithy_types::retry::RetryConfig> {
   50     60   
        self.config.load::<::aws_smithy_types::retry::RetryConfig>()
   51     61   
    }
   52     62   
   53     63   
    /// Return a cloned shared async sleep implementation from this config, if any.
   54     64   
    pub fn sleep_impl(&self) -> ::std::option::Option<crate::config::SharedAsyncSleep> {
   55     65   
        self.runtime_components.sleep_impl()
   56     66   
    }
   57     67   
   58     68   
    /// Return a reference to the timeout configuration contained in this config, if any.
   59     69   
    pub fn timeout_config(&self) -> ::std::option::Option<&::aws_smithy_types::timeout::TimeoutConfig> {
   60     70   
        self.config.load::<::aws_smithy_types::timeout::TimeoutConfig>()
   61     71   
    }
   62     72   
   63     73   
    /// Returns a reference to the retry partition contained in this config, if any.
   64     74   
    ///
   65     75   
    /// WARNING: This method is unstable and may be removed at any time. Do not rely on this
   66     76   
    /// method for anything!
   67     77   
    pub fn retry_partition(&self) -> ::std::option::Option<&::aws_smithy_runtime::client::retries::RetryPartition> {
   68     78   
        self.config.load::<::aws_smithy_runtime::client::retries::RetryPartition>()
   69     79   
    }
          80  +
    /* IdentityCacheDecorator.kt:96 */
   70     81   
    /// Returns the configured identity cache for auth.
   71     82   
    pub fn identity_cache(&self) -> ::std::option::Option<crate::config::SharedIdentityCache> {
   72     83   
        self.runtime_components.identity_cache()
   73     84   
    }
          85  +
    /* InterceptorConfigCustomization.kt:30 */
   74     86   
    /// Returns interceptors currently registered by the user.
   75     87   
    pub fn interceptors(&self) -> impl Iterator<Item = crate::config::SharedInterceptor> + '_ {
   76     88   
        self.runtime_components.interceptors()
   77     89   
    }
          90  +
    /* TimeSourceCustomization.kt:34 */
   78     91   
    /// Return time source used for this service.
          92  +
    /* TimeSourceCustomization.kt:35 */
   79     93   
    pub fn time_source(&self) -> ::std::option::Option<::aws_smithy_async::time::SharedTimeSource> {
          94  +
        /* TimeSourceCustomization.kt:39 */
   80     95   
        self.runtime_components.time_source()
          96  +
        /* TimeSourceCustomization.kt:35 */
   81     97   
    }
          98  +
    /* RetryClassifierConfigCustomization.kt:39 */
   82     99   
    /// Returns retry classifiers currently registered by the user.
   83    100   
    pub fn retry_classifiers(&self) -> impl Iterator<Item = ::aws_smithy_runtime_api::client::retries::classifiers::SharedRetryClassifier> + '_ {
   84    101   
        self.runtime_components.retry_classifiers()
   85    102   
    }
         103  +
    /* ServiceConfigGenerator.kt:433 */
   86    104   
}
   87         -
/// Builder for creating a `Config`.
         105  +
/// /* ServiceConfigGenerator.kt:458 */Builder for creating a `Config`.
         106  +
/* RustType.kt:516 */
   88    107   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
         108  +
/* ServiceConfigGenerator.kt:460 */
   89    109   
pub struct Builder {
   90         -
    pub(crate) config: ::aws_smithy_types::config_bag::CloneableLayer,
         110  +
    /* ServiceConfigGenerator.kt:461 */ pub(crate) config: ::aws_smithy_types::config_bag::CloneableLayer,
   91    111   
    pub(crate) runtime_components: crate::config::RuntimeComponentsBuilder,
   92    112   
    pub(crate) runtime_plugins: ::std::vec::Vec<crate::config::SharedRuntimePlugin>,
   93    113   
    pub(crate) behavior_version: ::std::option::Option<crate::config::BehaviorVersion>,
         114  +
    /* ServiceConfigGenerator.kt:460 */
   94    115   
}
         116  +
/* ServiceConfigGenerator.kt:476 */
   95    117   
impl ::std::default::Default for Builder {
         118  +
    /* ServiceConfigGenerator.kt:477 */
   96    119   
    fn default() -> Self {
   97    120   
        Self {
   98    121   
            config: ::std::default::Default::default(),
   99    122   
            runtime_components: crate::config::RuntimeComponentsBuilder::new("service config"),
  100    123   
            runtime_plugins: ::std::default::Default::default(),
  101    124   
            behavior_version: ::std::default::Default::default(),
  102    125   
        }
  103    126   
    }
         127  +
    /* ServiceConfigGenerator.kt:476 */
  104    128   
}
         129  +
/* ServiceConfigGenerator.kt:492 */
  105    130   
impl Builder {
  106         -
    ///
         131  +
    /// /* ServiceConfigGenerator.kt:493 */
  107    132   
    /// Constructs a config builder.
  108    133   
    /// <div class="warning">
  109    134   
    /// Note that a config created from this builder will not have the same safe defaults as one created by
  110    135   
    /// the <a href="https://crates.io/crates/aws-config" target="_blank">aws-config</a> crate.
  111    136   
    /// </div>
  112    137   
    ///
         138  +
    /* ServiceConfigGenerator.kt:494 */
  113    139   
    pub fn new() -> Self {
  114    140   
        Self::default()
  115    141   
    }
  116         -
    /// Constructs a config builder from the given `config_bag`, setting only fields stored in the config bag,
  117         -
    /// but not those in runtime components.
         142  +
    /// /* ServiceConfigGenerator.kt:327 */Constructs a config builder from the given `config_bag`, setting only fields stored in the config bag,
         143  +
    /// /* ServiceConfigGenerator.kt:328 */but not those in runtime components.
         144  +
    /* RustType.kt:516 */
  118    145   
    #[allow(unused)]
         146  +
    /* ServiceConfigGenerator.kt:330 */
  119    147   
    pub(crate) fn from_config_bag(config_bag: &::aws_smithy_types::config_bag::ConfigBag) -> Self {
         148  +
        /* ServiceConfigGenerator.kt:334 */
  120    149   
        let mut builder = Self::new();
         150  +
        /* StalledStreamProtectionConfigCustomization.kt:102 */
  121    151   
        builder.set_stalled_stream_protection(config_bag.load::<crate::config::StalledStreamProtectionConfig>().cloned());
         152  +
        /* ResiliencyConfigCustomization.kt:294 */
  122    153   
        builder.set_retry_config(config_bag.load::<::aws_smithy_types::retry::RetryConfig>().cloned());
         154  +
        /* ResiliencyConfigCustomization.kt:298 */
  123    155   
        builder.set_timeout_config(config_bag.load::<::aws_smithy_types::timeout::TimeoutConfig>().cloned());
         156  +
        /* ResiliencyConfigCustomization.kt:302 */
  124    157   
        builder.set_retry_partition(config_bag.load::<::aws_smithy_runtime::client::retries::RetryPartition>().cloned());
         158  +
        /* ServiceConfigGenerator.kt:338 */
  125    159   
        builder
         160  +
        /* ServiceConfigGenerator.kt:330 */
  126    161   
    }
         162  +
    /* StalledStreamProtectionConfigCustomization.kt:69 */
  127    163   
    /// Set the [`StalledStreamProtectionConfig`](crate::config::StalledStreamProtectionConfig)
  128    164   
    /// to configure protection for stalled streams.
  129    165   
    pub fn stalled_stream_protection(mut self, stalled_stream_protection_config: crate::config::StalledStreamProtectionConfig) -> Self {
  130    166   
        self.set_stalled_stream_protection(::std::option::Option::Some(stalled_stream_protection_config));
  131    167   
        self
  132    168   
    }
         169  +
    /* StalledStreamProtectionConfigCustomization.kt:84 */
  133    170   
    /// Set the [`StalledStreamProtectionConfig`](crate::config::StalledStreamProtectionConfig)
  134    171   
    /// to configure protection for stalled streams.
  135    172   
    pub fn set_stalled_stream_protection(
  136    173   
        &mut self,
  137    174   
        stalled_stream_protection_config: ::std::option::Option<crate::config::StalledStreamProtectionConfig>,
  138    175   
    ) -> &mut Self {
  139    176   
        self.config.store_or_unset(stalled_stream_protection_config);
  140    177   
        self
  141    178   
    }
         179  +
    /* IdempotencyTokenProviderCustomization.kt:32 */
  142    180   
    /// Sets the idempotency token provider to use for service calls that require tokens.
  143    181   
    pub fn idempotency_token_provider(
  144    182   
        mut self,
  145    183   
        idempotency_token_provider: impl ::std::convert::Into<crate::idempotency_token::IdempotencyTokenProvider>,
  146    184   
    ) -> Self {
  147    185   
        self.set_idempotency_token_provider(::std::option::Option::Some(idempotency_token_provider.into()));
  148    186   
        self
  149    187   
    }
         188  +
    /* IdempotencyTokenProviderCustomization.kt:43 */
  150    189   
    /// Sets the idempotency token provider to use for service calls that require tokens.
  151    190   
    pub fn set_idempotency_token_provider(
  152    191   
        &mut self,
  153    192   
        idempotency_token_provider: ::std::option::Option<crate::idempotency_token::IdempotencyTokenProvider>,
  154    193   
    ) -> &mut Self {
  155    194   
        self.config.store_or_unset(idempotency_token_provider);
  156    195   
        self
  157    196   
    }
         197  +
    /* HttpConnectorConfigDecorator.kt:65 */
  158    198   
    /// Sets the HTTP client to use when making requests.
  159    199   
    ///
  160    200   
    /// # Examples
  161    201   
    /// ```no_run
  162    202   
    /// # #[cfg(test)]
  163    203   
    /// # mod tests {
  164    204   
    /// # #[test]
  165    205   
    /// # fn example() {
  166    206   
    /// use std::time::Duration;
  167    207   
    /// use aws_query::config::Config;
@@ -195,235 +477,529 @@
  215    255   
    /// let mut builder = aws_query::Config::builder();
  216    256   
    /// override_http_client(&mut builder);
  217    257   
    /// let config = builder.build();
  218    258   
    /// # }
  219    259   
    /// # }
  220    260   
    /// ```
  221    261   
    pub fn set_http_client(&mut self, http_client: Option<crate::config::SharedHttpClient>) -> &mut Self {
  222    262   
        self.runtime_components.set_http_client(http_client);
  223    263   
        self
  224    264   
    }
         265  +
    /* EndpointConfigCustomization.kt:73 */
  225    266   
    /// Set the endpoint URL to use when making requests.
  226    267   
    ///
  227    268   
    /// Note: setting an endpoint URL will replace any endpoint resolver that has been set.
  228    269   
    ///
  229    270   
    /// # Panics
  230    271   
    /// Panics if an invalid URL is given.
  231    272   
    pub fn endpoint_url(mut self, endpoint_url: impl ::std::convert::Into<::std::string::String>) -> Self {
  232    273   
        self.set_endpoint_url(::std::option::Option::Some(endpoint_url.into()));
  233    274   
        self
  234    275   
    }
  235    276   
  236    277   
    /// Set the endpoint URL to use when making requests.
  237    278   
    ///
  238    279   
    /// Note: setting an endpoint URL will replace any endpoint resolver that has been set.
  239    280   
    ///
  240    281   
    /// # Panics
  241    282   
    /// Panics if an invalid URL is given.
  242    283   
    pub fn set_endpoint_url(&mut self, endpoint_url: ::std::option::Option<::std::string::String>) -> &mut Self {
  243    284   
        #[allow(deprecated)]
  244    285   
        self.set_endpoint_resolver(endpoint_url.map(|url| {
  245    286   
            ::aws_smithy_runtime_api::shared::IntoShared::into_shared(
  246    287   
                ::aws_smithy_runtime::client::orchestrator::endpoints::StaticUriEndpointResolver::uri(url),
  247    288   
            )
  248    289   
        }));
  249    290   
        self
  250    291   
    }
         292  +
    /* EndpointConfigCustomization.kt:105 */
  251    293   
    /// Sets the endpoint resolver to use when making requests.
  252    294   
    ///
  253    295   
    /// This service does not define a default endpoint resolver.
  254    296   
    ///
  255    297   
    /// Note: setting an endpoint resolver will replace any endpoint URL that has been set.
  256    298   
    /// This method accepts an endpoint resolver [specific to this service](crate::config::endpoint::ResolveEndpoint). If you want to
  257    299   
    /// provide a shared endpoint resolver, use [`Self::set_endpoint_resolver`].
  258    300   
    ///
  259    301   
    /// # Examples
  260    302   
    /// Create a custom endpoint resolver that resolves a different endpoing per-stage, e.g. staging vs. production.
  261    303   
    /// ```no_run
  262    304   
    /// use aws_query::config::endpoint::{ResolveEndpoint, EndpointFuture, Params, Endpoint};
  263    305   
    /// #[derive(Debug)]
  264    306   
    /// struct StageResolver { stage: String }
  265    307   
    /// impl ResolveEndpoint for StageResolver {
  266    308   
    ///     fn resolve_endpoint(&self, params: &Params) -> EndpointFuture<'_> {
  267    309   
    ///         let stage = &self.stage;
  268    310   
    ///         EndpointFuture::ready(Ok(Endpoint::builder().url(format!("{stage}.myservice.com")).build()))
  269    311   
    ///     }
  270    312   
    /// }
  271    313   
    /// let resolver = StageResolver { stage: std::env::var("STAGE").unwrap() };
  272    314   
    /// let config = aws_query::Config::builder().endpoint_resolver(resolver).build();
  273    315   
    /// let client = aws_query::Client::from_conf(config);
  274    316   
    /// ```
  275    317   
    pub fn endpoint_resolver(mut self, endpoint_resolver: impl crate::config::endpoint::ResolveEndpoint + 'static) -> Self {
  276    318   
        self.set_endpoint_resolver(::std::option::Option::Some(endpoint_resolver.into_shared_resolver()));
  277    319   
        self
  278    320   
    }
  279    321   
  280    322   
    /// Sets the endpoint resolver to use when making requests.
  281    323   
    ///
  282    324   
    /// This service does not define a default endpoint resolver.
         325  +
    /* EndpointConfigCustomization.kt:143 */
  283    326   
    pub fn set_endpoint_resolver(
  284    327   
        &mut self,
  285    328   
        endpoint_resolver: ::std::option::Option<::aws_smithy_runtime_api::client::endpoint::SharedEndpointResolver>,
  286    329   
    ) -> &mut Self {
  287    330   
        self.runtime_components.set_endpoint_resolver(endpoint_resolver);
  288    331   
        self
  289    332   
    }
         333  +
    /* ResiliencyConfigCustomization.kt:81 */
  290    334   
    /// Set the retry_config for the builder
  291    335   
    ///
  292    336   
    /// # Examples
  293    337   
    /// ```no_run
  294    338   
    /// use aws_query::config::Config;
  295    339   
    /// use aws_query::config::retry::RetryConfig;
  296    340   
    ///
  297    341   
    /// let retry_config = RetryConfig::standard().with_max_attempts(5);
  298    342   
    /// let config = Config::builder().retry_config(retry_config).build();
  299    343   
    /// ```
  300    344   
    pub fn retry_config(mut self, retry_config: ::aws_smithy_types::retry::RetryConfig) -> Self {
  301    345   
        self.set_retry_config(Some(retry_config));
  302    346   
        self
  303    347   
    }
  304    348   
  305    349   
    /// Set the retry_config for the builder
  306    350   
    ///
  307    351   
    /// # Examples
  308    352   
    /// ```no_run
  309    353   
    /// use aws_query::config::{Builder, Config};
  310    354   
    /// use aws_query::config::retry::RetryConfig;
  311    355   
    ///
  312    356   
    /// fn disable_retries(builder: &mut Builder) {
  313    357   
    ///     let retry_config = RetryConfig::standard().with_max_attempts(1);
  314    358   
    ///     builder.set_retry_config(Some(retry_config));
  315    359   
    /// }
  316    360   
    ///
  317    361   
    /// let mut builder = Config::builder();
  318    362   
    /// disable_retries(&mut builder);
  319    363   
    /// let config = builder.build();
  320    364   
    /// ```
         365  +
    /* ResiliencyConfigCustomization.kt:118 */
  321    366   
    pub fn set_retry_config(&mut self, retry_config: ::std::option::Option<::aws_smithy_types::retry::RetryConfig>) -> &mut Self {
  322    367   
        retry_config.map(|r| self.config.store_put(r));
  323    368   
        self
  324    369   
    }
         370  +
    /* ResiliencyConfigCustomization.kt:128 */
  325    371   
    /// Set the sleep_impl for the builder
  326    372   
    ///
  327    373   
    /// # Examples
  328    374   
    ///
  329    375   
    /// ```no_run
  330    376   
    /// use aws_query::config::{AsyncSleep, Config, SharedAsyncSleep, Sleep};
  331    377   
    ///
  332    378   
    /// #[derive(Debug)]
  333    379   
    /// pub struct ForeverSleep;
  334    380   
    ///
  335    381   
    /// impl AsyncSleep for ForeverSleep {
  336    382   
    ///     fn sleep(&self, duration: std::time::Duration) -> Sleep {
  337    383   
    ///         Sleep::new(std::future::pending())
  338    384   
    ///     }
  339    385   
    /// }
  340    386   
    ///
  341    387   
    /// let sleep_impl = SharedAsyncSleep::new(ForeverSleep);
  342    388   
    /// let config = Config::builder().sleep_impl(sleep_impl).build();
  343    389   
    /// ```
  344    390   
    pub fn sleep_impl(mut self, sleep_impl: impl crate::config::AsyncSleep + 'static) -> Self {
  345    391   
        self.set_sleep_impl(Some(::aws_smithy_runtime_api::shared::IntoShared::into_shared(sleep_impl)));
  346    392   
        self
  347    393   
    }
  348    394   
  349    395   
    /// Set the sleep_impl for the builder
  350    396   
    ///
  351    397   
    /// # Examples
  352    398   
    ///
  353    399   
    /// ```no_run
  354    400   
    /// use aws_query::config::{AsyncSleep, Builder, Config, SharedAsyncSleep, Sleep};
  355    401   
    ///
  356    402   
    /// #[derive(Debug)]
  357    403   
    /// pub struct ForeverSleep;
  358    404   
    ///
  359    405   
    /// impl AsyncSleep for ForeverSleep {
  360    406   
    ///     fn sleep(&self, duration: std::time::Duration) -> Sleep {
  361    407   
    ///         Sleep::new(std::future::pending())
  362    408   
    ///     }
  363    409   
    /// }
  364    410   
    ///
  365    411   
    /// fn set_never_ending_sleep_impl(builder: &mut Builder) {
  366    412   
    ///     let sleep_impl = SharedAsyncSleep::new(ForeverSleep);
  367    413   
    ///     builder.set_sleep_impl(Some(sleep_impl));
  368    414   
    /// }
  369    415   
    ///
  370    416   
    /// let mut builder = Config::builder();
  371    417   
    /// set_never_ending_sleep_impl(&mut builder);
  372    418   
    /// let config = builder.build();
  373    419   
    /// ```
         420  +
    /* ResiliencyConfigCustomization.kt:184 */
  374    421   
    pub fn set_sleep_impl(&mut self, sleep_impl: ::std::option::Option<crate::config::SharedAsyncSleep>) -> &mut Self {
  375    422   
        self.runtime_components.set_sleep_impl(sleep_impl);
  376    423   
        self
  377    424   
    }
         425  +
    /* ResiliencyConfigCustomization.kt:194 */
  378    426   
    /// Set the timeout_config for the builder
  379    427   
    ///
  380    428   
    /// # Examples
  381    429   
    ///
  382    430   
    /// ```no_run
  383    431   
    /// # use std::time::Duration;
  384    432   
    /// use aws_query::config::Config;
  385    433   
    /// use aws_query::config::timeout::TimeoutConfig;
  386    434   
    ///
  387    435   
    /// let timeout_config = TimeoutConfig::builder()
  388    436   
    ///     .operation_attempt_timeout(Duration::from_secs(1))
  389    437   
    ///     .build();
  390    438   
    /// let config = Config::builder().timeout_config(timeout_config).build();
  391    439   
    /// ```
  392    440   
    pub fn timeout_config(mut self, timeout_config: ::aws_smithy_types::timeout::TimeoutConfig) -> Self {
  393    441   
        self.set_timeout_config(Some(timeout_config));
  394    442   
        self
  395    443   
    }
  396    444   
  397    445   
    /// Set the timeout_config for the builder.
  398    446   
    ///
  399    447   
    /// Setting this to `None` has no effect if another source of configuration has set timeouts. If you
  400    448   
    /// are attempting to disable timeouts, use [`TimeoutConfig::disabled`](::aws_smithy_types::timeout::TimeoutConfig::disabled)
  401    449   
    ///
  402    450   
    ///
  403    451   
    /// # Examples
  404    452   
    ///
  405    453   
    /// ```no_run
  406    454   
    /// # use std::time::Duration;
  407    455   
    /// use aws_query::config::{Builder, Config};
  408    456   
    /// use aws_query::config::timeout::TimeoutConfig;
  409    457   
    ///
  410    458   
    /// fn set_request_timeout(builder: &mut Builder) {
  411    459   
    ///     let timeout_config = TimeoutConfig::builder()
  412    460   
    ///         .operation_attempt_timeout(Duration::from_secs(1))
  413    461   
    ///         .build();
  414    462   
    ///     builder.set_timeout_config(Some(timeout_config));
  415    463   
    /// }
  416    464   
    ///
  417    465   
    /// let mut builder = Config::builder();
  418    466   
    /// set_request_timeout(&mut builder);
  419    467   
    /// let config = builder.build();
  420    468   
    /// ```
         469  +
    /* ResiliencyConfigCustomization.kt:248 */
  421    470   
    pub fn set_timeout_config(&mut self, timeout_config: ::std::option::Option<::aws_smithy_types::timeout::TimeoutConfig>) -> &mut Self {
  422    471   
        // passing None has no impact.
  423    472   
        let Some(mut timeout_config) = timeout_config else { return self };
  424    473   
  425    474   
        if let Some(base) = self.config.load::<::aws_smithy_types::timeout::TimeoutConfig>() {
  426    475   
            timeout_config.take_defaults_from(base);
  427    476   
        }
  428    477   
        self.config.store_put(timeout_config);
  429    478   
        self
  430    479   
    }
         480  +
    /* ResiliencyConfigCustomization.kt:266 */
  431    481   
    /// Set the partition for retry-related state. When clients share a retry partition, they will
  432    482   
    /// also share things like token buckets and client rate limiters. By default, all clients
  433    483   
    /// for the same service will share a partition.
  434    484   
    pub fn retry_partition(mut self, retry_partition: ::aws_smithy_runtime::client::retries::RetryPartition) -> Self {
  435    485   
        self.set_retry_partition(Some(retry_partition));
  436    486   
        self
  437    487   
    }
         488  +
    /* ResiliencyConfigCustomization.kt:279 */
  438    489   
    /// Set the partition for retry-related state. When clients share a retry partition, they will
  439    490   
    /// also share things like token buckets and client rate limiters. By default, all clients
  440    491   
    /// for the same service will share a partition.
  441    492   
    pub fn set_retry_partition(
  442    493   
        &mut self,
  443    494   
        retry_partition: ::std::option::Option<::aws_smithy_runtime::client::retries::RetryPartition>,
  444    495   
    ) -> &mut Self {
  445    496   
        retry_partition.map(|r| self.config.store_put(r));
  446    497   
        self
  447    498   
    }
         499  +
    /* IdentityCacheDecorator.kt:77 */
  448    500   
    /// Set the identity cache for auth.
  449    501   
    ///
  450    502   
    /// The identity cache defaults to a lazy caching implementation that will resolve
  451    503   
    /// an identity when it is requested, and place it in the cache thereafter. Subsequent
  452    504   
    /// requests will take the value from the cache while it is still valid. Once it expires,
  453    505   
    /// the next request will result in refreshing the identity.
  454    506   
    ///
  455    507   
    /// This configuration allows you to disable or change the default caching mechanism.
  456    508   
    /// To use a custom caching mechanism, implement the [`ResolveCachedIdentity`](crate::config::ResolveCachedIdentity)
  457    509   
    /// trait and pass that implementation into this function.
@@ -509,561 +568,621 @@
  529    581   
    ///     )
  530    582   
    ///     // ...
  531    583   
    ///     .build();
  532    584   
    /// let client = aws_query::Client::from_conf(config);
  533    585   
    /// ```
  534    586   
  535    587   
    pub fn set_identity_cache(&mut self, identity_cache: impl crate::config::ResolveCachedIdentity + 'static) -> &mut Self {
  536    588   
        self.runtime_components.set_identity_cache(::std::option::Option::Some(identity_cache));
  537    589   
        self
  538    590   
    }
         591  +
    /* InterceptorConfigCustomization.kt:41 */
  539    592   
    /// Add an [interceptor](crate::config::Intercept) that runs at specific stages of the request execution pipeline.
  540    593   
    ///
  541    594   
    /// Interceptors targeted at a certain stage are executed according to the pre-defined priority.
  542    595   
    /// The SDK provides a default set of interceptors. An interceptor configured by this method
  543    596   
    /// will run after those default interceptors.
  544    597   
    ///
  545    598   
    /// # Examples
  546    599   
    /// ```no_run
  547    600   
    /// # #[cfg(test)]
  548    601   
    /// # mod tests {
@@ -615,668 +686,742 @@
  635    688   
    pub fn push_interceptor(&mut self, interceptor: crate::config::SharedInterceptor) -> &mut Self {
  636    689   
        self.runtime_components.push_interceptor(interceptor);
  637    690   
        self
  638    691   
    }
  639    692   
  640    693   
    /// Set [`SharedInterceptor`](crate::config::SharedInterceptor)s for the builder.
  641    694   
    pub fn set_interceptors(&mut self, interceptors: impl IntoIterator<Item = crate::config::SharedInterceptor>) -> &mut Self {
  642    695   
        self.runtime_components.set_interceptors(interceptors.into_iter());
  643    696   
        self
  644    697   
    }
         698  +
    /* TimeSourceCustomization.kt:47 */
  645    699   
    /// Sets the time source used for this service
  646    700   
    pub fn time_source(mut self, time_source: impl ::aws_smithy_async::time::TimeSource + 'static) -> Self {
  647    701   
        self.set_time_source(::std::option::Option::Some(::aws_smithy_runtime_api::shared::IntoShared::into_shared(
  648    702   
            time_source,
  649    703   
        )));
  650    704   
        self
  651    705   
    }
         706  +
    /* TimeSourceCustomization.kt:61 */
  652    707   
    /// Sets the time source used for this service
  653    708   
    pub fn set_time_source(&mut self, time_source: ::std::option::Option<::aws_smithy_async::time::SharedTimeSource>) -> &mut Self {
  654    709   
        self.runtime_components.set_time_source(time_source);
  655    710   
        self
  656    711   
    }
         712  +
    /* RetryClassifierConfigCustomization.kt:50 */
  657    713   
    /// Add type implementing [`ClassifyRetry`](::aws_smithy_runtime_api::client::retries::classifiers::ClassifyRetry) that will be used by the
  658    714   
    /// [`RetryStrategy`](::aws_smithy_runtime_api::client::retries::RetryStrategy) to determine what responses should be retried.
  659    715   
    ///
  660    716   
    /// A retry classifier configured by this method will run according to its [priority](::aws_smithy_runtime_api::client::retries::classifiers::RetryClassifierPriority).
  661    717   
    ///
  662    718   
    /// # Examples
  663    719   
    /// ```no_run
  664    720   
    /// # #[cfg(test)]
  665    721   
    /// # mod tests {
  666    722   
    /// # #[test]
@@ -821,877 +880,937 @@
  841    897   
  842    898   
    /// Set [`SharedRetryClassifier`](::aws_smithy_runtime_api::client::retries::classifiers::SharedRetryClassifier)s for the builder, replacing any that
  843    899   
    /// were previously set.
  844    900   
    pub fn set_retry_classifiers(
  845    901   
        &mut self,
  846    902   
        retry_classifiers: impl IntoIterator<Item = ::aws_smithy_runtime_api::client::retries::classifiers::SharedRetryClassifier>,
  847    903   
    ) -> &mut Self {
  848    904   
        self.runtime_components.set_retry_classifiers(retry_classifiers.into_iter());
  849    905   
        self
  850    906   
    }
         907  +
    /* ServiceConfigGenerator.kt:375 */
  851    908   
    /// Sets the [`behavior major version`](crate::config::BehaviorVersion).
  852    909   
    ///
  853    910   
    /// Over time, new best-practice behaviors are introduced. However, these behaviors might not be backwards
  854    911   
    /// compatible. For example, a change which introduces new default timeouts or a new retry-mode for
  855    912   
    /// all operations might be the ideal behavior but could break existing applications.
  856    913   
    ///
  857    914   
    /// # Examples
  858    915   
    ///
  859    916   
    /// Set the behavior major version to `latest`. This is equivalent to enabling the `behavior-version-latest` cargo feature.
  860    917   
    /// ```no_run
@@ -898,955 +1155,1257 @@
  918    975   
        self
  919    976   
    }
  920    977   
  921    978   
    /// Convenience method to set the latest behavior major version
  922    979   
    ///
  923    980   
    /// This is equivalent to enabling the `behavior-version-latest` Cargo feature
  924    981   
    pub fn behavior_version_latest(mut self) -> Self {
  925    982   
        self.set_behavior_version(Some(crate::config::BehaviorVersion::latest()));
  926    983   
        self
  927    984   
    }
  928         -
    /// Adds a runtime plugin to the config.
         985  +
    /// /* ServiceConfigGenerator.kt:509 */Adds a runtime plugin to the config.
         986  +
    /* ServiceConfigGenerator.kt:513 */
  929    987   
    pub fn runtime_plugin(mut self, plugin: impl crate::config::RuntimePlugin + 'static) -> Self {
  930    988   
        self.push_runtime_plugin(crate::config::SharedRuntimePlugin::new(plugin));
  931    989   
        self
  932    990   
    }
  933         -
    /// Adds a runtime plugin to the config.
         991  +
    /// /* ServiceConfigGenerator.kt:522 */Adds a runtime plugin to the config.
         992  +
    /* ServiceConfigGenerator.kt:526 */
  934    993   
    pub fn push_runtime_plugin(&mut self, plugin: crate::config::SharedRuntimePlugin) -> &mut Self {
  935    994   
        self.runtime_plugins.push(plugin);
  936    995   
        self
  937    996   
    }
         997  +
    /* RustType.kt:516 */
  938    998   
    #[cfg(any(feature = "test-util", test))]
         999  +
    /* RustType.kt:516 */
  939   1000   
    #[allow(unused_mut)]
  940         -
    /// Apply test defaults to the builder
        1001  +
    /// /* ServiceConfigGenerator.kt:541 */Apply test defaults to the builder
        1002  +
    /* ServiceConfigGenerator.kt:542 */
  941   1003   
    pub fn apply_test_defaults(&mut self) -> &mut Self {
        1004  +
        /* IdempotencyTokenProviderCustomization.kt:57 */
  942   1005   
        self.set_idempotency_token_provider(Some("00000000-0000-4000-8000-000000000000".into()));
        1006  +
        /* TimeSourceCustomization.kt:88 */
  943   1007   
        self.set_time_source(::std::option::Option::Some(::aws_smithy_async::time::SharedTimeSource::new(
  944   1008   
            ::aws_smithy_async::time::StaticTimeSource::new(::std::time::UNIX_EPOCH + ::std::time::Duration::from_secs(1234567890)),
  945   1009   
        )));
        1010  +
        /* ServiceConfigGenerator.kt:544 */
  946   1011   
        self.behavior_version = ::std::option::Option::Some(crate::config::BehaviorVersion::latest());
        1012  +
        /* ServiceConfigGenerator.kt:545 */
  947   1013   
        self
        1014  +
        /* ServiceConfigGenerator.kt:542 */
  948   1015   
    }
        1016  +
    /* RustType.kt:516 */
  949   1017   
    #[cfg(any(feature = "test-util", test))]
        1018  +
    /* RustType.kt:516 */
  950   1019   
    #[allow(unused_mut)]
  951         -
    /// Apply test defaults to the builder
        1020  +
    /// /* ServiceConfigGenerator.kt:550 */Apply test defaults to the builder
        1021  +
    /* ServiceConfigGenerator.kt:551 */
  952   1022   
    pub fn with_test_defaults(mut self) -> Self {
        1023  +
        /* ServiceConfigGenerator.kt:552 */
  953   1024   
        self.apply_test_defaults();
  954   1025   
        self
        1026  +
        /* ServiceConfigGenerator.kt:551 */
  955   1027   
    }
  956         -
    /// Builds a [`Config`].
        1028  +
    /// /* ServiceConfigGenerator.kt:555 */Builds a [`Config`].
        1029  +
    /* ServiceConfigGenerator.kt:556 */
  957   1030   
    #[allow(unused_mut)]
        1031  +
    /* ServiceConfigGenerator.kt:557 */
  958   1032   
    pub fn build(mut self) -> Config {
        1033  +
        /* ServiceConfigGenerator.kt:558 */
  959   1034   
        let mut layer = self.config;
        1035  +
        /* TimeSourceCustomization.kt:77 */
  960   1036   
        if self.runtime_components.time_source().is_none() {
  961   1037   
            self.runtime_components
  962   1038   
                .set_time_source(::std::option::Option::Some(::std::default::Default::default()));
  963   1039   
        }
        1040  +
        /* ServiceConfigGenerator.kt:567 */
  964   1041   
        Config {
        1042  +
            /* ServiceConfigGenerator.kt:568 */
  965   1043   
            config: crate::config::Layer::from(layer.clone()).with_name("aws_query::config::Config").freeze(),
  966   1044   
            cloneable: layer,
  967   1045   
            runtime_components: self.runtime_components,
  968   1046   
            runtime_plugins: self.runtime_plugins,
  969   1047   
            behavior_version: self.behavior_version,
        1048  +
            /* ServiceConfigGenerator.kt:567 */
  970   1049   
        }
        1050  +
        /* ServiceConfigGenerator.kt:557 */
  971   1051   
    }
        1052  +
    /* ServiceConfigGenerator.kt:492 */
  972   1053   
}
        1054  +
/* ServiceRuntimePluginGenerator.kt:116 */
  973   1055   
#[derive(::std::fmt::Debug)]
  974   1056   
pub(crate) struct ServiceRuntimePlugin {
  975   1057   
    config: ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer>,
  976   1058   
    runtime_components: ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
  977   1059   
}
  978   1060   
  979   1061   
impl ServiceRuntimePlugin {
  980   1062   
    pub fn new(_service_config: crate::config::Config) -> Self {
  981   1063   
        let config = {
  982   1064   
            let mut cfg = ::aws_smithy_types::config_bag::Layer::new("AwsQuery");
  983   1065   
            cfg.store_put(crate::idempotency_token::default_provider());
  984   1066   
            cfg.store_put(::aws_smithy_runtime::client::orchestrator::AuthSchemeAndEndpointOrchestrationV2);
  985   1067   
            ::std::option::Option::Some(cfg.freeze())
  986   1068   
        };
  987   1069   
        let mut runtime_components = ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder::new("ServiceRuntimePlugin");
  988   1070   
        runtime_components.push_interceptor(::aws_smithy_runtime::client::http::connection_poisoning::ConnectionPoisoningInterceptor::new());
  989   1071   
        runtime_components.push_retry_classifier(::aws_smithy_runtime::client::retries::classifiers::HttpStatusCodeClassifier::default());
  990   1072   
        runtime_components.push_interceptor(crate::sdk_feature_tracker::retry_mode::RetryModeFeatureTrackerInterceptor::new());
  991   1073   
        Self { config, runtime_components }
  992   1074   
    }
  993   1075   
}
  994   1076   
  995   1077   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ServiceRuntimePlugin {
  996   1078   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
  997   1079   
        self.config.clone()
  998   1080   
    }
  999   1081   
 1000   1082   
    fn order(&self) -> ::aws_smithy_runtime_api::client::runtime_plugin::Order {
 1001   1083   
        ::aws_smithy_runtime_api::client::runtime_plugin::Order::Defaults
 1002   1084   
    }
 1003   1085   
 1004   1086   
    fn runtime_components(
 1005   1087   
        &self,
 1006   1088   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
 1007   1089   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
 1008   1090   
        ::std::borrow::Cow::Borrowed(&self.runtime_components)
 1009   1091   
    }
 1010   1092   
}
 1011   1093   
 1012   1094   
/// Cross-operation shared-state singletons
 1013   1095   
        1096  +
/* ConfigOverrideRuntimePluginGenerator.kt:42 */
 1014   1097   
/// A plugin that enables configuration for a single operation invocation
 1015   1098   
///
 1016   1099   
/// The `config` method will return a `FrozenLayer` by storing values from `config_override`.
 1017   1100   
/// In the case of default values requested, they will be obtained from `client_config`.
 1018   1101   
#[derive(Debug)]
 1019   1102   
pub(crate) struct ConfigOverrideRuntimePlugin {
 1020   1103   
    pub(crate) config: ::aws_smithy_types::config_bag::FrozenLayer,
 1021   1104   
    pub(crate) components: ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
 1022   1105   
}
 1023   1106   
 1024   1107   
impl ConfigOverrideRuntimePlugin {
 1025   1108   
    #[allow(dead_code)] // unused when a service does not provide any operations
 1026   1109   
    pub(crate) fn new(
 1027   1110   
        config_override: Builder,
 1028   1111   
        initial_config: ::aws_smithy_types::config_bag::FrozenLayer,
 1029   1112   
        initial_components: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
 1030   1113   
    ) -> Self {
 1031   1114   
        let mut layer = config_override.config;
 1032   1115   
        let mut components = config_override.runtime_components;
 1033   1116   
        #[allow(unused_mut)]
 1034   1117   
        let mut resolver =
 1035   1118   
            ::aws_smithy_runtime::client::config_override::Resolver::overrid(initial_config, initial_components, &mut layer, &mut components);
 1036   1119   
 1037   1120   
        let _ = resolver;
 1038   1121   
        Self {
 1039   1122   
            config: ::aws_smithy_types::config_bag::Layer::from(layer)
 1040   1123   
                .with_name("aws_query::config::ConfigOverrideRuntimePlugin")
 1041   1124   
                .freeze(),
 1042   1125   
            components,
 1043   1126   
        }
 1044   1127   
    }
 1045   1128   
}
 1046   1129   
 1047   1130   
impl ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin for ConfigOverrideRuntimePlugin {
 1048   1131   
    fn config(&self) -> ::std::option::Option<::aws_smithy_types::config_bag::FrozenLayer> {
 1049   1132   
        Some(self.config.clone())
 1050   1133   
    }
 1051   1134   
 1052   1135   
    fn runtime_components(
 1053   1136   
        &self,
 1054   1137   
        _: &::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder,
 1055   1138   
    ) -> ::std::borrow::Cow<'_, ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder> {
 1056   1139   
        ::std::borrow::Cow::Borrowed(&self.components)
 1057   1140   
    }
 1058   1141   
}
 1059   1142   
        1143  +
/* ClientRuntimeTypesReExportGenerator.kt:24 */
 1060   1144   
pub use ::aws_smithy_runtime::client::identity::IdentityCache;
 1061   1145   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
 1062   1146   
pub use ::aws_smithy_types::config_bag::ConfigBag;
 1063   1147   
        1148  +
/* ResiliencyConfigCustomization.kt:318 */
 1064   1149   
pub use ::aws_smithy_async::rt::sleep::Sleep;
 1065   1150   
        1151  +
/* FluentClientGenerator.kt:261 */
 1066   1152   
pub(crate) fn base_client_runtime_plugins(mut config: crate::Config) -> ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins {
 1067   1153   
    let mut configured_plugins = ::std::vec::Vec::new();
 1068   1154   
    ::std::mem::swap(&mut config.runtime_plugins, &mut configured_plugins);
 1069   1155   
    #[cfg(feature = "behavior-version-latest")]
 1070   1156   
    {
 1071   1157   
        if config.behavior_version.is_none() {
 1072   1158   
            config.behavior_version = Some(::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion::latest());
 1073   1159   
        }
 1074   1160   
    }
 1075   1161   
 1076   1162   
    let default_retry_partition = "queryprotocol";
 1077   1163   
 1078   1164   
    let scope = "aws_query";
 1079   1165   
 1080   1166   
    let mut plugins = ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugins::new()
 1081   1167   
                        // defaults
 1082   1168   
                        .with_client_plugins(::aws_smithy_runtime::client::defaults::default_plugins(
 1083   1169   
                            ::aws_smithy_runtime::client::defaults::DefaultPluginParams::new()
 1084   1170   
                                .with_retry_partition_name(default_retry_partition)
 1085   1171   
                                .with_behavior_version(config.behavior_version.expect("Invalid client configuration: A behavior major version must be set when sending a request or constructing a client. You must set it during client construction or by enabling the `behavior-version-latest` cargo feature."))
 1086   1172   
                        ))
 1087   1173   
                        // user config
 1088   1174   
                        .with_client_plugin(
 1089   1175   
                            ::aws_smithy_runtime_api::client::runtime_plugin::StaticRuntimePlugin::new()
 1090   1176   
                                .with_config(config.config.clone())
 1091   1177   
                                .with_runtime_components(config.runtime_components.clone())
 1092   1178   
                        )
 1093   1179   
                        // codegen config
 1094   1180   
                        .with_client_plugin(crate::config::ServiceRuntimePlugin::new(config.clone()))
 1095   1181   
                        .with_client_plugin(::aws_smithy_runtime::client::auth::no_auth::NoAuthRuntimePlugin::new())
 1096   1182   
                        .with_client_plugin(
 1097   1183   
                            ::aws_smithy_runtime::client::metrics::MetricsRuntimePlugin::builder()
 1098   1184   
                                .with_scope(scope)
 1099   1185   
                                .with_time_source(config.runtime_components.time_source().unwrap_or_default())
 1100   1186   
                                .build()
 1101   1187   
                                .expect("All required fields have been set")
 1102   1188   
                        );
 1103   1189   
 1104   1190   
    for plugin in configured_plugins {
 1105   1191   
        plugins = plugins.with_client_plugin(plugin);
 1106   1192   
    }
 1107   1193   
    plugins
 1108   1194   
}
 1109   1195   
        1196  +
/* ClientReExports.kt:17 */
 1110   1197   
pub use ::aws_smithy_types::config_bag::FrozenLayer;
 1111   1198   
        1199  +
/* ClientReExports.kt:17 */
 1112   1200   
pub use ::aws_smithy_runtime_api::client::runtime_components::RuntimeComponentsBuilder;
 1113   1201   
        1202  +
/* ClientReExports.kt:17 */
 1114   1203   
pub use ::aws_smithy_runtime_api::client::runtime_plugin::SharedRuntimePlugin;
 1115   1204   
        1205  +
/* ClientReExports.kt:17 */
 1116   1206   
pub use ::aws_smithy_runtime_api::client::behavior_version::BehaviorVersion;
 1117   1207   
        1208  +
/* ClientReExports.kt:17 */
 1118   1209   
pub use ::aws_smithy_runtime_api::client::stalled_stream_protection::StalledStreamProtectionConfig;
 1119   1210   
        1211  +
/* ClientReExports.kt:17 */
 1120   1212   
pub use ::aws_smithy_runtime_api::client::http::SharedHttpClient;
 1121   1213   
        1214  +
/* ClientReExports.kt:17 */
 1122   1215   
pub use ::aws_smithy_async::rt::sleep::SharedAsyncSleep;
 1123   1216   
        1217  +
/* ClientReExports.kt:17 */
 1124   1218   
pub use ::aws_smithy_runtime_api::client::identity::SharedIdentityCache;
 1125   1219   
        1220  +
/* ClientReExports.kt:17 */
 1126   1221   
pub use ::aws_smithy_runtime_api::client::interceptors::SharedInterceptor;
 1127   1222   
        1223  +
/* ClientReExports.kt:17 */
 1128   1224   
pub use ::aws_smithy_runtime_api::client::http::HttpClient;
 1129   1225   
        1226  +
/* ClientReExports.kt:17 */
 1130   1227   
pub use ::aws_smithy_runtime_api::shared::IntoShared;
 1131   1228   
        1229  +
/* ClientReExports.kt:17 */
 1132   1230   
pub use ::aws_smithy_async::rt::sleep::AsyncSleep;
 1133   1231   
        1232  +
/* ClientReExports.kt:17 */
 1134   1233   
pub use ::aws_smithy_runtime_api::client::identity::ResolveCachedIdentity;
 1135   1234   
        1235  +
/* ClientReExports.kt:17 */
 1136   1236   
pub use ::aws_smithy_runtime_api::client::interceptors::Intercept;
 1137   1237   
        1238  +
/* ClientReExports.kt:17 */
 1138   1239   
pub use ::aws_smithy_runtime_api::client::runtime_plugin::RuntimePlugin;
 1139   1240   
        1241  +
/* ClientReExports.kt:17 */
 1140   1242   
pub use ::aws_smithy_types::config_bag::Layer;
 1141   1243   
 1142         -
/// Types needed to configure endpoint resolution.
        1244  +
/// /* ClientRustModule.kt:121 */Types needed to configure endpoint resolution.
 1143   1245   
pub mod endpoint;
 1144   1246   
 1145         -
/// HTTP request and response types.
        1247  +
/// /* ClientRustModule.kt:121 */HTTP request and response types.
 1146   1248   
pub mod http;
 1147   1249   
 1148         -
/// Types needed to implement [`Intercept`](crate::config::Intercept).
        1250  +
/// /* ClientRustModule.kt:121 */Types needed to implement [`Intercept`](crate::config::Intercept).
 1149   1251   
pub mod interceptors;
 1150   1252   
 1151         -
/// Retry configuration.
        1253  +
/// /* ClientRustModule.kt:121 */Retry configuration.
 1152   1254   
pub mod retry;
 1153   1255   
 1154         -
/// Timeout configuration.
        1256  +
/// /* ClientRustModule.kt:121 */Timeout configuration.
 1155   1257   
pub mod timeout;

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/config/endpoint.rs

@@ -1,1 +86,107 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ClientRuntimeTypesReExportGenerator.kt:38 */
    2      3   
pub use ::aws_smithy_runtime_api::client::endpoint::EndpointFuture;
    3      4   
pub use ::aws_smithy_runtime_api::client::endpoint::SharedEndpointResolver;
    4      5   
pub use ::aws_smithy_types::endpoint::Endpoint;
    5      6   
           7  +
/* RustType.kt:516 */
    6      8   
#[cfg(test)]
    7         -
mod test {}
           9  +
/* EndpointsDecorator.kt:175 */
          10  +
mod test {
    8     11   
          12  +
    /* EndpointsDecorator.kt:175 */
          13  +
}
          14  +
          15  +
/* EndpointResolverGenerator.kt:416 */
    9     16   
/// Endpoint resolver trait specific to Sample Query Protocol Service
   10     17   
pub trait ResolveEndpoint: ::std::marker::Send + ::std::marker::Sync + ::std::fmt::Debug {
   11     18   
    /// Resolve an endpoint with the given parameters
   12     19   
    fn resolve_endpoint<'a>(&'a self, params: &'a crate::config::endpoint::Params) -> ::aws_smithy_runtime_api::client::endpoint::EndpointFuture<'a>;
   13     20   
   14     21   
    /// Convert this service-specific resolver into a `SharedEndpointResolver`
   15     22   
    ///
   16     23   
    /// The resulting resolver will downcast `EndpointResolverParams` into `crate::config::endpoint::Params`.
   17     24   
    fn into_shared_resolver(self) -> ::aws_smithy_runtime_api::client::endpoint::SharedEndpointResolver
   18     25   
    where
   19     26   
        Self: Sized + 'static,
   20     27   
    {
   21     28   
        ::aws_smithy_runtime_api::client::endpoint::SharedEndpointResolver::new(DowncastParams(self))
   22     29   
    }
   23     30   
}
   24     31   
   25     32   
#[derive(Debug)]
   26     33   
struct DowncastParams<T>(T);
   27     34   
impl<T> ::aws_smithy_runtime_api::client::endpoint::ResolveEndpoint for DowncastParams<T>
   28     35   
where
   29     36   
    T: ResolveEndpoint,
   30     37   
{
   31     38   
    fn resolve_endpoint<'a>(
   32     39   
        &'a self,
   33     40   
        params: &'a ::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams,
   34     41   
    ) -> ::aws_smithy_runtime_api::client::endpoint::EndpointFuture<'a> {
   35     42   
        let ep = match params.get::<crate::config::endpoint::Params>() {
   36     43   
            Some(params) => self.0.resolve_endpoint(params),
   37     44   
            None => ::aws_smithy_runtime_api::client::endpoint::EndpointFuture::ready(Err("params of expected type was not present".into())),
   38     45   
        };
   39     46   
        ep
   40     47   
    }
   41     48   
}
   42     49   
          50  +
/* RustType.kt:516 */
   43     51   
#[non_exhaustive]
          52  +
/* RustType.kt:516 */
   44     53   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
   45         -
/// Configuration parameters for resolving the correct endpoint
   46         -
pub struct Params {}
          54  +
/// /* EndpointParamsGenerator.kt:178 */Configuration parameters for resolving the correct endpoint
          55  +
/* EndpointParamsGenerator.kt:179 */
          56  +
pub struct Params {/* EndpointParamsGenerator.kt:179 */}
          57  +
/* EndpointParamsGenerator.kt:188 */
   47     58   
impl Params {
          59  +
    /* EndpointParamsGenerator.kt:189 */
   48     60   
    /// Create a builder for [`Params`]
   49     61   
    pub fn builder() -> crate::config::endpoint::ParamsBuilder {
   50     62   
        crate::config::endpoint::ParamsBuilder::default()
   51     63   
    }
          64  +
    /* EndpointParamsGenerator.kt:188 */
   52     65   
}
   53     66   
   54         -
/// Builder for [`Params`]
          67  +
/// /* EndpointParamsGenerator.kt:234 */Builder for [`Params`]
          68  +
/* RustType.kt:516 */
   55     69   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   56         -
pub struct ParamsBuilder {}
          70  +
/* EndpointParamsGenerator.kt:238 */
          71  +
pub struct ParamsBuilder {/* EndpointParamsGenerator.kt:238 */}
          72  +
/* EndpointParamsGenerator.kt:246 */
   57     73   
impl ParamsBuilder {
   58         -
    /// Consume this builder, creating [`Params`].
          74  +
    /// /* EndpointParamsGenerator.kt:247 */Consume this builder, creating [`Params`].
          75  +
    /* EndpointParamsGenerator.kt:248 */
   59     76   
    pub fn build(self) -> ::std::result::Result<crate::config::endpoint::Params, crate::config::endpoint::InvalidParams> {
          77  +
        /* EndpointParamsGenerator.kt:272 */
   60     78   
        Ok(
   61     79   
            #[allow(clippy::unnecessary_lazy_evaluations)]
   62     80   
            crate::config::endpoint::Params {},
   63     81   
        )
          82  +
        /* EndpointParamsGenerator.kt:248 */
   64     83   
    }
          84  +
    /* EndpointParamsGenerator.kt:246 */
   65     85   
}
   66     86   
          87  +
/* EndpointParamsGenerator.kt:139 */
   67     88   
/// An error that occurred during endpoint resolution
   68     89   
#[derive(Debug)]
   69     90   
pub struct InvalidParams {
   70     91   
    field: std::borrow::Cow<'static, str>,
   71     92   
}
   72     93   
   73     94   
impl InvalidParams {
   74     95   
    #[allow(dead_code)]
   75     96   
    fn missing(field: &'static str) -> Self {
   76     97   
        Self { field: field.into() }

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/config/http.rs

@@ -1,1 +3,4 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ClientRuntimeTypesReExportGenerator.kt:60 */
    2      3   
pub use ::aws_smithy_runtime_api::client::orchestrator::HttpRequest;
    3      4   
pub use ::aws_smithy_runtime_api::client::orchestrator::HttpResponse;

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/config/interceptors.rs

@@ -1,1 +11,12 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ClientRuntimeTypesReExportGenerator.kt:70 */
    2      3   
pub use ::aws_smithy_runtime_api::client::interceptors::context::AfterDeserializationInterceptorContextRef;
    3      4   
pub use ::aws_smithy_runtime_api::client::interceptors::context::BeforeDeserializationInterceptorContextMut;
    4      5   
pub use ::aws_smithy_runtime_api::client::interceptors::context::BeforeDeserializationInterceptorContextRef;
    5      6   
pub use ::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextMut;
    6      7   
pub use ::aws_smithy_runtime_api::client::interceptors::context::BeforeSerializationInterceptorContextRef;
    7      8   
pub use ::aws_smithy_runtime_api::client::interceptors::context::BeforeTransmitInterceptorContextMut;
    8      9   
pub use ::aws_smithy_runtime_api::client::interceptors::context::BeforeTransmitInterceptorContextRef;
    9     10   
pub use ::aws_smithy_runtime_api::client::interceptors::context::FinalizerInterceptorContextMut;
   10     11   
pub use ::aws_smithy_runtime_api::client::interceptors::context::FinalizerInterceptorContextRef;
   11     12   
pub use ::aws_smithy_runtime_api::client::interceptors::context::InterceptorContext;

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/config/retry.rs

@@ -1,1 +7,9 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ClientRuntimeTypesReExportGenerator.kt:48 */
    2      3   
pub use ::aws_smithy_runtime_api::client::retries::classifiers::ClassifyRetry;
    3      4   
pub use ::aws_smithy_runtime_api::client::retries::classifiers::RetryAction;
    4      5   
pub use ::aws_smithy_runtime_api::client::retries::ShouldAttempt;
    5      6   
    6         -
pub use ::aws_smithy_runtime::client::retries::RetryPartition;
           7  +
/* ResiliencyConfigCustomization.kt:324 */
           8  +
/* ResiliencyConfigCustomization.kt:329 */ pub use ::aws_smithy_runtime::client::retries::RetryPartition;
    7      9   
pub use ::aws_smithy_types::retry::{ReconnectMode, RetryConfig, RetryConfigBuilder, RetryMode};

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/config/timeout.rs

@@ -1,1 +2,3 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ResiliencyConfigCustomization.kt:335 */
    2      3   
pub use ::aws_smithy_types::timeout::{TimeoutConfig, TimeoutConfigBuilder};

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/error.rs

@@ -1,1 +30,33 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ClientRuntimeTypesReExportGenerator.kt:96 */
    2      3   
pub use ::aws_smithy_runtime_api::box_error::BoxError;
    3      4   
           5  +
/* RequiredCustomizations.kt:104 */
    4      6   
/// Error type returned by the client.
    5      7   
pub type SdkError<E, R = ::aws_smithy_runtime_api::client::orchestrator::HttpResponse> = ::aws_smithy_runtime_api::client::result::SdkError<E, R>;
    6      8   
pub use ::aws_smithy_runtime_api::client::result::ConnectorError;
    7      9   
pub use ::aws_smithy_types::error::operation::BuildError;
    8     10   
    9     11   
pub use ::aws_smithy_types::error::display::DisplayErrorContext;
   10     12   
pub use ::aws_smithy_types::error::metadata::ErrorMetadata;
   11     13   
pub use ::aws_smithy_types::error::metadata::ProvideErrorMetadata;
   12     14   
          15  +
/* ClientEnumGenerator.kt:302 */
   13     16   
/// The given enum value failed to parse since it is not a known value.
   14     17   
#[derive(Debug)]
   15     18   
pub struct UnknownVariantError {
   16     19   
    value: ::std::string::String,
   17     20   
}
   18     21   
impl UnknownVariantError {
   19     22   
    pub(crate) fn new(value: impl ::std::convert::Into<::std::string::String>) -> Self {
   20     23   
        Self { value: value.into() }
   21     24   
    }
   22     25   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/error/sealed_unhandled.rs

@@ -1,1 +20,21 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ServiceErrorGenerator.kt:277 */
    2      3   
/// This struct is not intended to be used.
    3      4   
///
    4      5   
/// This struct holds information about an unhandled error,
    5      6   
/// but that information should be obtained by using the
    6      7   
/// [`ProvideErrorMetadata`](::aws_smithy_types::error::metadata::ProvideErrorMetadata) trait
    7      8   
/// on the error type.
    8      9   
///
    9     10   
/// This struct intentionally doesn't yield any useful information itself.
   10     11   
#[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
   11     12   
variable wildcard pattern and check `.code()`:

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/error_meta.rs

@@ -1,1 +814,1335 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
           2  +
/* ServiceErrorGenerator.kt:252 */
    2      3   
/// All possible error types for this service.
           4  +
/* RustType.kt:516 */
    3      5   
#[non_exhaustive]
           6  +
/* RustType.kt:516 */
    4      7   
#[derive(::std::fmt::Debug)]
    5         -
pub enum Error {
    6         -
    /// This error is thrown when a request is invalid.
           8  +
pub /* ServiceErrorGenerator.kt:257 */ enum Error {
           9  +
    /// /* ServiceErrorGenerator.kt:259 */This error is thrown when a request is invalid.
          10  +
    /* ServiceErrorGenerator.kt:262 */
    7     11   
    ComplexError(crate::types::error::ComplexError),
          12  +
    /* ServiceErrorGenerator.kt:259 */
    8     13   
    #[allow(missing_docs)] // documentation missing in model
          14  +
    /* ServiceErrorGenerator.kt:262 */
    9     15   
    CustomCodeError(crate::types::error::CustomCodeError),
   10         -
    /// This error is thrown when an invalid greeting value is provided.
          16  +
    /// /* ServiceErrorGenerator.kt:259 */This error is thrown when an invalid greeting value is provided.
          17  +
    /* ServiceErrorGenerator.kt:262 */
   11     18   
    InvalidGreeting(crate::types::error::InvalidGreeting),
   12         -
    /// An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
          19  +
    /// /* ServiceErrorGenerator.kt:264 */An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
          20  +
    /* ServiceErrorGenerator.kt:320 */
   13     21   
    #[deprecated(note = "Matching `Unhandled` directly is not forwards compatible. Instead, match using a \
   14     22   
    variable wildcard pattern and check `.code()`:
   15     23   
     \
   16     24   
    &nbsp;&nbsp;&nbsp;`err if err.code() == Some(\"SpecificExceptionCode\") => { /* handle the error */ }`
   17     25   
     \
   18     26   
    See [`ProvideErrorMetadata`](#impl-ProvideErrorMetadata-for-Error) for what information is available for the error.")]
   19         -
    Unhandled(crate::error::sealed_unhandled::Unhandled),
          27  +
    /* ServiceErrorGenerator.kt:266 */
          28  +
    Unhandled(crate::error::sealed_unhandled::Unhandled), /* ServiceErrorGenerator.kt:257 */
   20     29   
}
          30  +
/* ServiceErrorGenerator.kt:131 */
   21     31   
impl ::std::fmt::Display for Error {
          32  +
    /* ServiceErrorGenerator.kt:132 */
   22     33   
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
          34  +
        /* ServiceErrorGenerator.kt:133 */
   23     35   
        match self {
   24         -
            Error::ComplexError(inner) => inner.fmt(f),
   25         -
            Error::CustomCodeError(inner) => inner.fmt(f),
   26         -
            Error::InvalidGreeting(inner) => inner.fmt(f),
          36  +
            /* ServiceErrorGenerator.kt:135 */ Error::ComplexError(inner) => inner.fmt(f),
          37  +
            /* ServiceErrorGenerator.kt:135 */ Error::CustomCodeError(inner) => inner.fmt(f),
          38  +
            /* ServiceErrorGenerator.kt:135 */ Error::InvalidGreeting(inner) => inner.fmt(f),
          39  +
            /* ServiceErrorGenerator.kt:137 */
   27     40   
            Error::Unhandled(_) => {
   28     41   
                if let ::std::option::Option::Some(code) = ::aws_smithy_types::error::metadata::ProvideErrorMetadata::code(self) {
   29     42   
                    write!(f, "unhandled error ({code})")
   30     43   
                } else {
   31     44   
                    f.write_str("unhandled error")
   32     45   
                }
          46  +
            } /* ServiceErrorGenerator.kt:133 */
   33     47   
        }
          48  +
        /* ServiceErrorGenerator.kt:132 */
   34     49   
    }
   35         -
    }
          50  +
    /* ServiceErrorGenerator.kt:131 */
   36     51   
}
          52  +
/* ServiceErrorGenerator.kt:154 */
   37     53   
impl From<::aws_smithy_types::error::operation::BuildError> for Error {
   38     54   
    fn from(value: ::aws_smithy_types::error::operation::BuildError) -> Self {
   39     55   
        Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
   40     56   
            source: value.into(),
   41     57   
            meta: ::std::default::Default::default(),
   42     58   
        })
   43     59   
    }
   44     60   
}
          61  +
/* ServiceErrorGenerator.kt:223 */
   45     62   
impl ::aws_smithy_types::error::metadata::ProvideErrorMetadata for Error {
   46     63   
    fn meta(&self) -> &::aws_smithy_types::error::metadata::ErrorMetadata {
   47     64   
        match self {
   48     65   
            Self::ComplexError(inner) => inner.meta(),
   49     66   
            Self::CustomCodeError(inner) => inner.meta(),
   50     67   
            Self::InvalidGreeting(inner) => inner.meta(),
   51     68   
            Self::Unhandled(inner) => &inner.meta,
   52     69   
        }
   53     70   
    }
   54     71   
}
          72  +
/* ServiceErrorGenerator.kt:174 */
   55     73   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::datetime_offsets::DatetimeOffsetsError, R>> for Error
   56     74   
where
   57     75   
    R: Send + Sync + std::fmt::Debug + 'static,
   58     76   
{
          77  +
    /* ServiceErrorGenerator.kt:179 */
   59     78   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::datetime_offsets::DatetimeOffsetsError, R>) -> Self {
          79  +
        /* ServiceErrorGenerator.kt:184 */
   60     80   
        match err {
          81  +
            /* ServiceErrorGenerator.kt:185 */
   61     82   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
          83  +
            /* ServiceErrorGenerator.kt:186 */
   62     84   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
   63     85   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
   64     86   
                source: err.into(),
   65     87   
            }),
          88  +
            /* ServiceErrorGenerator.kt:184 */
   66     89   
        }
          90  +
        /* ServiceErrorGenerator.kt:179 */
   67     91   
    }
          92  +
    /* ServiceErrorGenerator.kt:174 */
   68     93   
}
          94  +
/* ServiceErrorGenerator.kt:202 */
   69     95   
impl From<crate::operation::datetime_offsets::DatetimeOffsetsError> for Error {
          96  +
    /* ServiceErrorGenerator.kt:203 */
   70     97   
    fn from(err: crate::operation::datetime_offsets::DatetimeOffsetsError) -> Self {
          98  +
        /* ServiceErrorGenerator.kt:204 */
   71     99   
        match err {
         100  +
            /* ServiceErrorGenerator.kt:212 */
   72    101   
            crate::operation::datetime_offsets::DatetimeOffsetsError::Unhandled(inner) => Error::Unhandled(inner),
         102  +
            /* ServiceErrorGenerator.kt:204 */
   73    103   
        }
         104  +
        /* ServiceErrorGenerator.kt:203 */
   74    105   
    }
         106  +
    /* ServiceErrorGenerator.kt:202 */
   75    107   
}
         108  +
/* ServiceErrorGenerator.kt:174 */
   76    109   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError, R>>
   77    110   
    for Error
   78    111   
where
   79    112   
    R: Send + Sync + std::fmt::Debug + 'static,
   80    113   
{
         114  +
    /* ServiceErrorGenerator.kt:179 */
   81    115   
    fn from(
   82    116   
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError, R>,
   83    117   
    ) -> Self {
         118  +
        /* ServiceErrorGenerator.kt:184 */
   84    119   
        match err {
         120  +
            /* ServiceErrorGenerator.kt:185 */
   85    121   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         122  +
            /* ServiceErrorGenerator.kt:186 */
   86    123   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
   87    124   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
   88    125   
                source: err.into(),
   89    126   
            }),
         127  +
            /* ServiceErrorGenerator.kt:184 */
   90    128   
        }
         129  +
        /* ServiceErrorGenerator.kt:179 */
   91    130   
    }
         131  +
    /* ServiceErrorGenerator.kt:174 */
   92    132   
}
         133  +
/* ServiceErrorGenerator.kt:202 */
   93    134   
impl From<crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError> for Error {
         135  +
    /* ServiceErrorGenerator.kt:203 */
   94    136   
    fn from(err: crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError) -> Self {
         137  +
        /* ServiceErrorGenerator.kt:204 */
   95    138   
        match err {
         139  +
            /* ServiceErrorGenerator.kt:212 */
   96    140   
            crate::operation::empty_input_and_empty_output::EmptyInputAndEmptyOutputError::Unhandled(inner) => Error::Unhandled(inner),
         141  +
            /* ServiceErrorGenerator.kt:204 */
   97    142   
        }
         143  +
        /* ServiceErrorGenerator.kt:203 */
   98    144   
    }
         145  +
    /* ServiceErrorGenerator.kt:202 */
   99    146   
}
         147  +
/* ServiceErrorGenerator.kt:174 */
  100    148   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::endpoint_operation::EndpointOperationError, R>> for Error
  101    149   
where
  102    150   
    R: Send + Sync + std::fmt::Debug + 'static,
  103    151   
{
         152  +
    /* ServiceErrorGenerator.kt:179 */
  104    153   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::endpoint_operation::EndpointOperationError, R>) -> Self {
         154  +
        /* ServiceErrorGenerator.kt:184 */
  105    155   
        match err {
         156  +
            /* ServiceErrorGenerator.kt:185 */
  106    157   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         158  +
            /* ServiceErrorGenerator.kt:186 */
  107    159   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  108    160   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  109    161   
                source: err.into(),
  110    162   
            }),
         163  +
            /* ServiceErrorGenerator.kt:184 */
  111    164   
        }
         165  +
        /* ServiceErrorGenerator.kt:179 */
  112    166   
    }
         167  +
    /* ServiceErrorGenerator.kt:174 */
  113    168   
}
         169  +
/* ServiceErrorGenerator.kt:202 */
  114    170   
impl From<crate::operation::endpoint_operation::EndpointOperationError> for Error {
         171  +
    /* ServiceErrorGenerator.kt:203 */
  115    172   
    fn from(err: crate::operation::endpoint_operation::EndpointOperationError) -> Self {
         173  +
        /* ServiceErrorGenerator.kt:204 */
  116    174   
        match err {
         175  +
            /* ServiceErrorGenerator.kt:212 */
  117    176   
            crate::operation::endpoint_operation::EndpointOperationError::Unhandled(inner) => Error::Unhandled(inner),
         177  +
            /* ServiceErrorGenerator.kt:204 */
  118    178   
        }
         179  +
        /* ServiceErrorGenerator.kt:203 */
  119    180   
    }
         181  +
    /* ServiceErrorGenerator.kt:202 */
  120    182   
}
         183  +
/* ServiceErrorGenerator.kt:174 */
  121    184   
impl<R>
  122    185   
    From<
  123    186   
        ::aws_smithy_runtime_api::client::result::SdkError<
  124    187   
            crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError,
  125    188   
            R,
  126    189   
        >,
  127    190   
    > for Error
  128    191   
where
  129    192   
    R: Send + Sync + std::fmt::Debug + 'static,
  130    193   
{
         194  +
    /* ServiceErrorGenerator.kt:179 */
  131    195   
    fn from(
  132    196   
        err: ::aws_smithy_runtime_api::client::result::SdkError<
  133    197   
            crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError,
  134    198   
            R,
  135    199   
        >,
  136    200   
    ) -> Self {
         201  +
        /* ServiceErrorGenerator.kt:184 */
  137    202   
        match err {
         203  +
            /* ServiceErrorGenerator.kt:185 */
  138    204   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         205  +
            /* ServiceErrorGenerator.kt:186 */
  139    206   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  140    207   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  141    208   
                source: err.into(),
  142    209   
            }),
         210  +
            /* ServiceErrorGenerator.kt:184 */
  143    211   
        }
         212  +
        /* ServiceErrorGenerator.kt:179 */
  144    213   
    }
         214  +
    /* ServiceErrorGenerator.kt:174 */
  145    215   
}
         216  +
/* ServiceErrorGenerator.kt:202 */
  146    217   
impl From<crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError> for Error {
         218  +
    /* ServiceErrorGenerator.kt:203 */
  147    219   
    fn from(err: crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError) -> Self {
         220  +
        /* ServiceErrorGenerator.kt:204 */
  148    221   
        match err {
         222  +
            /* ServiceErrorGenerator.kt:212 */
  149    223   
            crate::operation::endpoint_with_host_label_operation::EndpointWithHostLabelOperationError::Unhandled(inner) => Error::Unhandled(inner),
         224  +
            /* ServiceErrorGenerator.kt:204 */
  150    225   
        }
         226  +
        /* ServiceErrorGenerator.kt:203 */
  151    227   
    }
         228  +
    /* ServiceErrorGenerator.kt:202 */
  152    229   
}
         230  +
/* ServiceErrorGenerator.kt:174 */
  153    231   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::flattened_xml_map::FlattenedXmlMapError, R>> for Error
  154    232   
where
  155    233   
    R: Send + Sync + std::fmt::Debug + 'static,
  156    234   
{
         235  +
    /* ServiceErrorGenerator.kt:179 */
  157    236   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::flattened_xml_map::FlattenedXmlMapError, R>) -> Self {
         237  +
        /* ServiceErrorGenerator.kt:184 */
  158    238   
        match err {
         239  +
            /* ServiceErrorGenerator.kt:185 */
  159    240   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         241  +
            /* ServiceErrorGenerator.kt:186 */
  160    242   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  161    243   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  162    244   
                source: err.into(),
  163    245   
            }),
         246  +
            /* ServiceErrorGenerator.kt:184 */
  164    247   
        }
         248  +
        /* ServiceErrorGenerator.kt:179 */
  165    249   
    }
         250  +
    /* ServiceErrorGenerator.kt:174 */
  166    251   
}
         252  +
/* ServiceErrorGenerator.kt:202 */
  167    253   
impl From<crate::operation::flattened_xml_map::FlattenedXmlMapError> for Error {
         254  +
    /* ServiceErrorGenerator.kt:203 */
  168    255   
    fn from(err: crate::operation::flattened_xml_map::FlattenedXmlMapError) -> Self {
         256  +
        /* ServiceErrorGenerator.kt:204 */
  169    257   
        match err {
         258  +
            /* ServiceErrorGenerator.kt:212 */
  170    259   
            crate::operation::flattened_xml_map::FlattenedXmlMapError::Unhandled(inner) => Error::Unhandled(inner),
         260  +
            /* ServiceErrorGenerator.kt:204 */
  171    261   
        }
         262  +
        /* ServiceErrorGenerator.kt:203 */
  172    263   
    }
         264  +
    /* ServiceErrorGenerator.kt:202 */
  173    265   
}
         266  +
/* ServiceErrorGenerator.kt:174 */
  174    267   
impl<R>
  175    268   
    From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::flattened_xml_map_with_xml_name::FlattenedXmlMapWithXmlNameError, R>>
  176    269   
    for Error
  177    270   
where
  178    271   
    R: Send + Sync + std::fmt::Debug + 'static,
  179    272   
{
         273  +
    /* ServiceErrorGenerator.kt:179 */
  180    274   
    fn from(
  181    275   
        err: ::aws_smithy_runtime_api::client::result::SdkError<
  182    276   
            crate::operation::flattened_xml_map_with_xml_name::FlattenedXmlMapWithXmlNameError,
  183    277   
            R,
  184    278   
        >,
  185    279   
    ) -> Self {
         280  +
        /* ServiceErrorGenerator.kt:184 */
  186    281   
        match err {
         282  +
            /* ServiceErrorGenerator.kt:185 */
  187    283   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         284  +
            /* ServiceErrorGenerator.kt:186 */
  188    285   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  189    286   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  190    287   
                source: err.into(),
  191    288   
            }),
         289  +
            /* ServiceErrorGenerator.kt:184 */
  192    290   
        }
         291  +
        /* ServiceErrorGenerator.kt:179 */
  193    292   
    }
         293  +
    /* ServiceErrorGenerator.kt:174 */
  194    294   
}
         295  +
/* ServiceErrorGenerator.kt:202 */
  195    296   
impl From<crate::operation::flattened_xml_map_with_xml_name::FlattenedXmlMapWithXmlNameError> for Error {
         297  +
    /* ServiceErrorGenerator.kt:203 */
  196    298   
    fn from(err: crate::operation::flattened_xml_map_with_xml_name::FlattenedXmlMapWithXmlNameError) -> Self {
         299  +
        /* ServiceErrorGenerator.kt:204 */
  197    300   
        match err {
         301  +
            /* ServiceErrorGenerator.kt:212 */
  198    302   
            crate::operation::flattened_xml_map_with_xml_name::FlattenedXmlMapWithXmlNameError::Unhandled(inner) => Error::Unhandled(inner),
         303  +
            /* ServiceErrorGenerator.kt:204 */
  199    304   
        }
         305  +
        /* ServiceErrorGenerator.kt:203 */
  200    306   
    }
         307  +
    /* ServiceErrorGenerator.kt:202 */
  201    308   
}
         309  +
/* ServiceErrorGenerator.kt:174 */
  202    310   
impl<R>
  203    311   
    From<
  204    312   
        ::aws_smithy_runtime_api::client::result::SdkError<
  205    313   
            crate::operation::flattened_xml_map_with_xml_namespace::FlattenedXmlMapWithXmlNamespaceError,
  206    314   
            R,
  207    315   
        >,
  208    316   
    > for Error
  209    317   
where
  210    318   
    R: Send + Sync + std::fmt::Debug + 'static,
  211    319   
{
         320  +
    /* ServiceErrorGenerator.kt:179 */
  212    321   
    fn from(
  213    322   
        err: ::aws_smithy_runtime_api::client::result::SdkError<
  214    323   
            crate::operation::flattened_xml_map_with_xml_namespace::FlattenedXmlMapWithXmlNamespaceError,
  215    324   
            R,
  216    325   
        >,
  217    326   
    ) -> Self {
         327  +
        /* ServiceErrorGenerator.kt:184 */
  218    328   
        match err {
         329  +
            /* ServiceErrorGenerator.kt:185 */
  219    330   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         331  +
            /* ServiceErrorGenerator.kt:186 */
  220    332   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  221    333   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  222    334   
                source: err.into(),
  223    335   
            }),
         336  +
            /* ServiceErrorGenerator.kt:184 */
  224    337   
        }
         338  +
        /* ServiceErrorGenerator.kt:179 */
  225    339   
    }
         340  +
    /* ServiceErrorGenerator.kt:174 */
  226    341   
}
         342  +
/* ServiceErrorGenerator.kt:202 */
  227    343   
impl From<crate::operation::flattened_xml_map_with_xml_namespace::FlattenedXmlMapWithXmlNamespaceError> for Error {
         344  +
    /* ServiceErrorGenerator.kt:203 */
  228    345   
    fn from(err: crate::operation::flattened_xml_map_with_xml_namespace::FlattenedXmlMapWithXmlNamespaceError) -> Self {
         346  +
        /* ServiceErrorGenerator.kt:204 */
  229    347   
        match err {
         348  +
            /* ServiceErrorGenerator.kt:212 */
  230    349   
            crate::operation::flattened_xml_map_with_xml_namespace::FlattenedXmlMapWithXmlNamespaceError::Unhandled(inner) => Error::Unhandled(inner),
         350  +
            /* ServiceErrorGenerator.kt:204 */
  231    351   
        }
         352  +
        /* ServiceErrorGenerator.kt:203 */
  232    353   
    }
         354  +
    /* ServiceErrorGenerator.kt:202 */
  233    355   
}
         356  +
/* ServiceErrorGenerator.kt:174 */
  234    357   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::fractional_seconds::FractionalSecondsError, R>> for Error
  235    358   
where
  236    359   
    R: Send + Sync + std::fmt::Debug + 'static,
  237    360   
{
         361  +
    /* ServiceErrorGenerator.kt:179 */
  238    362   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::fractional_seconds::FractionalSecondsError, R>) -> Self {
         363  +
        /* ServiceErrorGenerator.kt:184 */
  239    364   
        match err {
         365  +
            /* ServiceErrorGenerator.kt:185 */
  240    366   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         367  +
            /* ServiceErrorGenerator.kt:186 */
  241    368   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  242    369   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  243    370   
                source: err.into(),
  244    371   
            }),
         372  +
            /* ServiceErrorGenerator.kt:184 */
  245    373   
        }
         374  +
        /* ServiceErrorGenerator.kt:179 */
  246    375   
    }
         376  +
    /* ServiceErrorGenerator.kt:174 */
  247    377   
}
         378  +
/* ServiceErrorGenerator.kt:202 */
  248    379   
impl From<crate::operation::fractional_seconds::FractionalSecondsError> for Error {
         380  +
    /* ServiceErrorGenerator.kt:203 */
  249    381   
    fn from(err: crate::operation::fractional_seconds::FractionalSecondsError) -> Self {
         382  +
        /* ServiceErrorGenerator.kt:204 */
  250    383   
        match err {
         384  +
            /* ServiceErrorGenerator.kt:212 */
  251    385   
            crate::operation::fractional_seconds::FractionalSecondsError::Unhandled(inner) => Error::Unhandled(inner),
         386  +
            /* ServiceErrorGenerator.kt:204 */
  252    387   
        }
         388  +
        /* ServiceErrorGenerator.kt:203 */
  253    389   
    }
         390  +
    /* ServiceErrorGenerator.kt:202 */
  254    391   
}
         392  +
/* ServiceErrorGenerator.kt:174 */
  255    393   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::greeting_with_errors::GreetingWithErrorsError, R>> for Error
  256    394   
where
  257    395   
    R: Send + Sync + std::fmt::Debug + 'static,
  258    396   
{
         397  +
    /* ServiceErrorGenerator.kt:179 */
  259    398   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::greeting_with_errors::GreetingWithErrorsError, R>) -> Self {
         399  +
        /* ServiceErrorGenerator.kt:184 */
  260    400   
        match err {
         401  +
            /* ServiceErrorGenerator.kt:185 */
  261    402   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         403  +
            /* ServiceErrorGenerator.kt:186 */
  262    404   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  263    405   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  264    406   
                source: err.into(),
  265    407   
            }),
         408  +
            /* ServiceErrorGenerator.kt:184 */
  266    409   
        }
         410  +
        /* ServiceErrorGenerator.kt:179 */
  267    411   
    }
         412  +
    /* ServiceErrorGenerator.kt:174 */
  268    413   
}
         414  +
/* ServiceErrorGenerator.kt:202 */
  269    415   
impl From<crate::operation::greeting_with_errors::GreetingWithErrorsError> for Error {
         416  +
    /* ServiceErrorGenerator.kt:203 */
  270    417   
    fn from(err: crate::operation::greeting_with_errors::GreetingWithErrorsError) -> Self {
         418  +
        /* ServiceErrorGenerator.kt:204 */
  271    419   
        match err {
         420  +
            /* ServiceErrorGenerator.kt:207 */
  272    421   
            crate::operation::greeting_with_errors::GreetingWithErrorsError::InvalidGreeting(inner) => Error::InvalidGreeting(inner),
         422  +
            /* ServiceErrorGenerator.kt:207 */
  273    423   
            crate::operation::greeting_with_errors::GreetingWithErrorsError::ComplexError(inner) => Error::ComplexError(inner),
         424  +
            /* ServiceErrorGenerator.kt:207 */
  274    425   
            crate::operation::greeting_with_errors::GreetingWithErrorsError::CustomCodeError(inner) => Error::CustomCodeError(inner),
         426  +
            /* ServiceErrorGenerator.kt:212 */
  275    427   
            crate::operation::greeting_with_errors::GreetingWithErrorsError::Unhandled(inner) => Error::Unhandled(inner),
         428  +
            /* ServiceErrorGenerator.kt:204 */
  276    429   
        }
         430  +
        /* ServiceErrorGenerator.kt:203 */
  277    431   
    }
         432  +
    /* ServiceErrorGenerator.kt:202 */
  278    433   
}
         434  +
/* ServiceErrorGenerator.kt:174 */
  279    435   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::host_with_path_operation::HostWithPathOperationError, R>> for Error
  280    436   
where
  281    437   
    R: Send + Sync + std::fmt::Debug + 'static,
  282    438   
{
         439  +
    /* ServiceErrorGenerator.kt:179 */
  283    440   
    fn from(
  284    441   
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::host_with_path_operation::HostWithPathOperationError, R>,
  285    442   
    ) -> Self {
         443  +
        /* ServiceErrorGenerator.kt:184 */
  286    444   
        match err {
         445  +
            /* ServiceErrorGenerator.kt:185 */
  287    446   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         447  +
            /* ServiceErrorGenerator.kt:186 */
  288    448   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  289    449   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  290    450   
                source: err.into(),
  291    451   
            }),
         452  +
            /* ServiceErrorGenerator.kt:184 */
  292    453   
        }
         454  +
        /* ServiceErrorGenerator.kt:179 */
  293    455   
    }
         456  +
    /* ServiceErrorGenerator.kt:174 */
  294    457   
}
         458  +
/* ServiceErrorGenerator.kt:202 */
  295    459   
impl From<crate::operation::host_with_path_operation::HostWithPathOperationError> for Error {
         460  +
    /* ServiceErrorGenerator.kt:203 */
  296    461   
    fn from(err: crate::operation::host_with_path_operation::HostWithPathOperationError) -> Self {
         462  +
        /* ServiceErrorGenerator.kt:204 */
  297    463   
        match err {
         464  +
            /* ServiceErrorGenerator.kt:212 */
  298    465   
            crate::operation::host_with_path_operation::HostWithPathOperationError::Unhandled(inner) => Error::Unhandled(inner),
         466  +
            /* ServiceErrorGenerator.kt:204 */
  299    467   
        }
         468  +
        /* ServiceErrorGenerator.kt:203 */
  300    469   
    }
         470  +
    /* ServiceErrorGenerator.kt:202 */
  301    471   
}
         472  +
/* ServiceErrorGenerator.kt:174 */
  302    473   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError, R>>
  303    474   
    for Error
  304    475   
where
  305    476   
    R: Send + Sync + std::fmt::Debug + 'static,
  306    477   
{
         478  +
    /* ServiceErrorGenerator.kt:179 */
  307    479   
    fn from(
  308    480   
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError, R>,
  309    481   
    ) -> Self {
         482  +
        /* ServiceErrorGenerator.kt:184 */
  310    483   
        match err {
         484  +
            /* ServiceErrorGenerator.kt:185 */
  311    485   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         486  +
            /* ServiceErrorGenerator.kt:186 */
  312    487   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  313    488   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  314    489   
                source: err.into(),
  315    490   
            }),
         491  +
            /* ServiceErrorGenerator.kt:184 */
  316    492   
        }
         493  +
        /* ServiceErrorGenerator.kt:179 */
  317    494   
    }
         495  +
    /* ServiceErrorGenerator.kt:174 */
  318    496   
}
         497  +
/* ServiceErrorGenerator.kt:202 */
  319    498   
impl From<crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError> for Error {
         499  +
    /* ServiceErrorGenerator.kt:203 */
  320    500   
    fn from(err: crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError) -> Self {
         501  +
        /* ServiceErrorGenerator.kt:204 */
  321    502   
        match err {
         503  +
            /* ServiceErrorGenerator.kt:212 */
  322    504   
            crate::operation::ignores_wrapping_xml_name::IgnoresWrappingXmlNameError::Unhandled(inner) => Error::Unhandled(inner),
         505  +
            /* ServiceErrorGenerator.kt:204 */
  323    506   
        }
         507  +
        /* ServiceErrorGenerator.kt:203 */
  324    508   
    }
         509  +
    /* ServiceErrorGenerator.kt:202 */
  325    510   
}
         511  +
/* ServiceErrorGenerator.kt:174 */
  326    512   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::nested_structures::NestedStructuresError, R>> for Error
  327    513   
where
  328    514   
    R: Send + Sync + std::fmt::Debug + 'static,
  329    515   
{
         516  +
    /* ServiceErrorGenerator.kt:179 */
  330    517   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::nested_structures::NestedStructuresError, R>) -> Self {
         518  +
        /* ServiceErrorGenerator.kt:184 */
  331    519   
        match err {
         520  +
            /* ServiceErrorGenerator.kt:185 */
  332    521   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         522  +
            /* ServiceErrorGenerator.kt:186 */
  333    523   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  334    524   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  335    525   
                source: err.into(),
  336    526   
            }),
         527  +
            /* ServiceErrorGenerator.kt:184 */
  337    528   
        }
         529  +
        /* ServiceErrorGenerator.kt:179 */
  338    530   
    }
         531  +
    /* ServiceErrorGenerator.kt:174 */
  339    532   
}
         533  +
/* ServiceErrorGenerator.kt:202 */
  340    534   
impl From<crate::operation::nested_structures::NestedStructuresError> for Error {
         535  +
    /* ServiceErrorGenerator.kt:203 */
  341    536   
    fn from(err: crate::operation::nested_structures::NestedStructuresError) -> Self {
         537  +
        /* ServiceErrorGenerator.kt:204 */
  342    538   
        match err {
         539  +
            /* ServiceErrorGenerator.kt:212 */
  343    540   
            crate::operation::nested_structures::NestedStructuresError::Unhandled(inner) => Error::Unhandled(inner),
         541  +
            /* ServiceErrorGenerator.kt:204 */
  344    542   
        }
         543  +
        /* ServiceErrorGenerator.kt:203 */
  345    544   
    }
         545  +
    /* ServiceErrorGenerator.kt:202 */
  346    546   
}
         547  +
/* ServiceErrorGenerator.kt:174 */
  347    548   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::no_input_and_no_output::NoInputAndNoOutputError, R>> for Error
  348    549   
where
  349    550   
    R: Send + Sync + std::fmt::Debug + 'static,
  350    551   
{
         552  +
    /* ServiceErrorGenerator.kt:179 */
  351    553   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::no_input_and_no_output::NoInputAndNoOutputError, R>) -> Self {
         554  +
        /* ServiceErrorGenerator.kt:184 */
  352    555   
        match err {
         556  +
            /* ServiceErrorGenerator.kt:185 */
  353    557   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         558  +
            /* ServiceErrorGenerator.kt:186 */
  354    559   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  355    560   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  356    561   
                source: err.into(),
  357    562   
            }),
         563  +
            /* ServiceErrorGenerator.kt:184 */
  358    564   
        }
         565  +
        /* ServiceErrorGenerator.kt:179 */
  359    566   
    }
         567  +
    /* ServiceErrorGenerator.kt:174 */
  360    568   
}
         569  +
/* ServiceErrorGenerator.kt:202 */
  361    570   
impl From<crate::operation::no_input_and_no_output::NoInputAndNoOutputError> for Error {
         571  +
    /* ServiceErrorGenerator.kt:203 */
  362    572   
    fn from(err: crate::operation::no_input_and_no_output::NoInputAndNoOutputError) -> Self {
         573  +
        /* ServiceErrorGenerator.kt:204 */
  363    574   
        match err {
         575  +
            /* ServiceErrorGenerator.kt:212 */
  364    576   
            crate::operation::no_input_and_no_output::NoInputAndNoOutputError::Unhandled(inner) => Error::Unhandled(inner),
         577  +
            /* ServiceErrorGenerator.kt:204 */
  365    578   
        }
         579  +
        /* ServiceErrorGenerator.kt:203 */
  366    580   
    }
         581  +
    /* ServiceErrorGenerator.kt:202 */
  367    582   
}
         583  +
/* ServiceErrorGenerator.kt:174 */
  368    584   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::no_input_and_output::NoInputAndOutputError, R>> for Error
  369    585   
where
  370    586   
    R: Send + Sync + std::fmt::Debug + 'static,
  371    587   
{
         588  +
    /* ServiceErrorGenerator.kt:179 */
  372    589   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::no_input_and_output::NoInputAndOutputError, R>) -> Self {
         590  +
        /* ServiceErrorGenerator.kt:184 */
  373    591   
        match err {
         592  +
            /* ServiceErrorGenerator.kt:185 */
  374    593   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         594  +
            /* ServiceErrorGenerator.kt:186 */
  375    595   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  376    596   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  377    597   
                source: err.into(),
  378    598   
            }),
         599  +
            /* ServiceErrorGenerator.kt:184 */
  379    600   
        }
         601  +
        /* ServiceErrorGenerator.kt:179 */
  380    602   
    }
         603  +
    /* ServiceErrorGenerator.kt:174 */
  381    604   
}
         605  +
/* ServiceErrorGenerator.kt:202 */
  382    606   
impl From<crate::operation::no_input_and_output::NoInputAndOutputError> for Error {
         607  +
    /* ServiceErrorGenerator.kt:203 */
  383    608   
    fn from(err: crate::operation::no_input_and_output::NoInputAndOutputError) -> Self {
         609  +
        /* ServiceErrorGenerator.kt:204 */
  384    610   
        match err {
         611  +
            /* ServiceErrorGenerator.kt:212 */
  385    612   
            crate::operation::no_input_and_output::NoInputAndOutputError::Unhandled(inner) => Error::Unhandled(inner),
         613  +
            /* ServiceErrorGenerator.kt:204 */
  386    614   
        }
         615  +
        /* ServiceErrorGenerator.kt:203 */
  387    616   
    }
         617  +
    /* ServiceErrorGenerator.kt:202 */
  388    618   
}
         619  +
/* ServiceErrorGenerator.kt:174 */
  389    620   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_with_content_encoding::PutWithContentEncodingError, R>>
  390    621   
    for Error
  391    622   
where
  392    623   
    R: Send + Sync + std::fmt::Debug + 'static,
  393    624   
{
         625  +
    /* ServiceErrorGenerator.kt:179 */
  394    626   
    fn from(
  395    627   
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::put_with_content_encoding::PutWithContentEncodingError, R>,
  396    628   
    ) -> Self {
         629  +
        /* ServiceErrorGenerator.kt:184 */
  397    630   
        match err {
         631  +
            /* ServiceErrorGenerator.kt:185 */
  398    632   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         633  +
            /* ServiceErrorGenerator.kt:186 */
  399    634   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  400    635   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  401    636   
                source: err.into(),
  402    637   
            }),
         638  +
            /* ServiceErrorGenerator.kt:184 */
  403    639   
        }
         640  +
        /* ServiceErrorGenerator.kt:179 */
  404    641   
    }
         642  +
    /* ServiceErrorGenerator.kt:174 */
  405    643   
}
         644  +
/* ServiceErrorGenerator.kt:202 */
  406    645   
impl From<crate::operation::put_with_content_encoding::PutWithContentEncodingError> for Error {
         646  +
    /* ServiceErrorGenerator.kt:203 */
  407    647   
    fn from(err: crate::operation::put_with_content_encoding::PutWithContentEncodingError) -> Self {
         648  +
        /* ServiceErrorGenerator.kt:204 */
  408    649   
        match err {
         650  +
            /* ServiceErrorGenerator.kt:212 */
  409    651   
            crate::operation::put_with_content_encoding::PutWithContentEncodingError::Unhandled(inner) => Error::Unhandled(inner),
         652  +
            /* ServiceErrorGenerator.kt:204 */
  410    653   
        }
         654  +
        /* ServiceErrorGenerator.kt:203 */
  411    655   
    }
         656  +
    /* ServiceErrorGenerator.kt:202 */
  412    657   
}
         658  +
/* ServiceErrorGenerator.kt:174 */
  413    659   
impl<R>
  414    660   
    From<
  415    661   
        ::aws_smithy_runtime_api::client::result::SdkError<
  416    662   
            crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError,
  417    663   
            R,
  418    664   
        >,
  419    665   
    > for Error
  420    666   
where
  421    667   
    R: Send + Sync + std::fmt::Debug + 'static,
  422    668   
{
         669  +
    /* ServiceErrorGenerator.kt:179 */
  423    670   
    fn from(
  424    671   
        err: ::aws_smithy_runtime_api::client::result::SdkError<
  425    672   
            crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError,
  426    673   
            R,
  427    674   
        >,
  428    675   
    ) -> Self {
         676  +
        /* ServiceErrorGenerator.kt:184 */
  429    677   
        match err {
         678  +
            /* ServiceErrorGenerator.kt:185 */
  430    679   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         680  +
            /* ServiceErrorGenerator.kt:186 */
  431    681   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  432    682   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  433    683   
                source: err.into(),
  434    684   
            }),
         685  +
            /* ServiceErrorGenerator.kt:184 */
  435    686   
        }
         687  +
        /* ServiceErrorGenerator.kt:179 */
  436    688   
    }
         689  +
    /* ServiceErrorGenerator.kt:174 */
  437    690   
}
         691  +
/* ServiceErrorGenerator.kt:202 */
  438    692   
impl From<crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError> for Error {
         693  +
    /* ServiceErrorGenerator.kt:203 */
  439    694   
    fn from(err: crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError) -> Self {
         695  +
        /* ServiceErrorGenerator.kt:204 */
  440    696   
        match err {
         697  +
            /* ServiceErrorGenerator.kt:212 */
  441    698   
            crate::operation::query_idempotency_token_auto_fill::QueryIdempotencyTokenAutoFillError::Unhandled(inner) => Error::Unhandled(inner),
         699  +
            /* ServiceErrorGenerator.kt:204 */
  442    700   
        }
         701  +
        /* ServiceErrorGenerator.kt:203 */
  443    702   
    }
         703  +
    /* ServiceErrorGenerator.kt:202 */
  444    704   
}
         705  +
/* ServiceErrorGenerator.kt:174 */
  445    706   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lists::QueryListsError, R>> for Error
  446    707   
where
  447    708   
    R: Send + Sync + std::fmt::Debug + 'static,
  448    709   
{
         710  +
    /* ServiceErrorGenerator.kt:179 */
  449    711   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_lists::QueryListsError, R>) -> Self {
         712  +
        /* ServiceErrorGenerator.kt:184 */
  450    713   
        match err {
         714  +
            /* ServiceErrorGenerator.kt:185 */
  451    715   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         716  +
            /* ServiceErrorGenerator.kt:186 */
  452    717   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  453    718   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  454    719   
                source: err.into(),
  455    720   
            }),
         721  +
            /* ServiceErrorGenerator.kt:184 */
  456    722   
        }
         723  +
        /* ServiceErrorGenerator.kt:179 */
  457    724   
    }
         725  +
    /* ServiceErrorGenerator.kt:174 */
  458    726   
}
         727  +
/* ServiceErrorGenerator.kt:202 */
  459    728   
impl From<crate::operation::query_lists::QueryListsError> for Error {
         729  +
    /* ServiceErrorGenerator.kt:203 */
  460    730   
    fn from(err: crate::operation::query_lists::QueryListsError) -> Self {
         731  +
        /* ServiceErrorGenerator.kt:204 */
  461    732   
        match err {
         733  +
            /* ServiceErrorGenerator.kt:212 */
  462    734   
            crate::operation::query_lists::QueryListsError::Unhandled(inner) => Error::Unhandled(inner),
         735  +
            /* ServiceErrorGenerator.kt:204 */
  463    736   
        }
         737  +
        /* ServiceErrorGenerator.kt:203 */
  464    738   
    }
         739  +
    /* ServiceErrorGenerator.kt:202 */
  465    740   
}
         741  +
/* ServiceErrorGenerator.kt:174 */
  466    742   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_maps::QueryMapsError, R>> for Error
  467    743   
where
  468    744   
    R: Send + Sync + std::fmt::Debug + 'static,
  469    745   
{
         746  +
    /* ServiceErrorGenerator.kt:179 */
  470    747   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_maps::QueryMapsError, R>) -> Self {
         748  +
        /* ServiceErrorGenerator.kt:184 */
  471    749   
        match err {
         750  +
            /* ServiceErrorGenerator.kt:185 */
  472    751   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         752  +
            /* ServiceErrorGenerator.kt:186 */
  473    753   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  474    754   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  475    755   
                source: err.into(),
  476    756   
            }),
         757  +
            /* ServiceErrorGenerator.kt:184 */
  477    758   
        }
         759  +
        /* ServiceErrorGenerator.kt:179 */
  478    760   
    }
         761  +
    /* ServiceErrorGenerator.kt:174 */
  479    762   
}
         763  +
/* ServiceErrorGenerator.kt:202 */
  480    764   
impl From<crate::operation::query_maps::QueryMapsError> for Error {
         765  +
    /* ServiceErrorGenerator.kt:203 */
  481    766   
    fn from(err: crate::operation::query_maps::QueryMapsError) -> Self {
         767  +
        /* ServiceErrorGenerator.kt:204 */
  482    768   
        match err {
         769  +
            /* ServiceErrorGenerator.kt:212 */
  483    770   
            crate::operation::query_maps::QueryMapsError::Unhandled(inner) => Error::Unhandled(inner),
         771  +
            /* ServiceErrorGenerator.kt:204 */
  484    772   
        }
         773  +
        /* ServiceErrorGenerator.kt:203 */
  485    774   
    }
         775  +
    /* ServiceErrorGenerator.kt:202 */
  486    776   
}
         777  +
/* ServiceErrorGenerator.kt:174 */
  487    778   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_timestamps::QueryTimestampsError, R>> for Error
  488    779   
where
  489    780   
    R: Send + Sync + std::fmt::Debug + 'static,
  490    781   
{
         782  +
    /* ServiceErrorGenerator.kt:179 */
  491    783   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::query_timestamps::QueryTimestampsError, R>) -> Self {
         784  +
        /* ServiceErrorGenerator.kt:184 */
  492    785   
        match err {
         786  +
            /* ServiceErrorGenerator.kt:185 */
  493    787   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         788  +
            /* ServiceErrorGenerator.kt:186 */
  494    789   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  495    790   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  496    791   
                source: err.into(),
  497    792   
            }),
         793  +
            /* ServiceErrorGenerator.kt:184 */
  498    794   
        }
         795  +
        /* ServiceErrorGenerator.kt:179 */
  499    796   
    }
         797  +
    /* ServiceErrorGenerator.kt:174 */
  500    798   
}
         799  +
/* ServiceErrorGenerator.kt:202 */
  501    800   
impl From<crate::operation::query_timestamps::QueryTimestampsError> for Error {
         801  +
    /* ServiceErrorGenerator.kt:203 */
  502    802   
    fn from(err: crate::operation::query_timestamps::QueryTimestampsError) -> Self {
         803  +
        /* ServiceErrorGenerator.kt:204 */
  503    804   
        match err {
         805  +
            /* ServiceErrorGenerator.kt:212 */
  504    806   
            crate::operation::query_timestamps::QueryTimestampsError::Unhandled(inner) => Error::Unhandled(inner),
         807  +
            /* ServiceErrorGenerator.kt:204 */
  505    808   
        }
         809  +
        /* ServiceErrorGenerator.kt:203 */
  506    810   
    }
         811  +
    /* ServiceErrorGenerator.kt:202 */
  507    812   
}
         813  +
/* ServiceErrorGenerator.kt:174 */
  508    814   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::recursive_xml_shapes::RecursiveXmlShapesError, R>> for Error
  509    815   
where
  510    816   
    R: Send + Sync + std::fmt::Debug + 'static,
  511    817   
{
         818  +
    /* ServiceErrorGenerator.kt:179 */
  512    819   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::recursive_xml_shapes::RecursiveXmlShapesError, R>) -> Self {
         820  +
        /* ServiceErrorGenerator.kt:184 */
  513    821   
        match err {
         822  +
            /* ServiceErrorGenerator.kt:185 */
  514    823   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         824  +
            /* ServiceErrorGenerator.kt:186 */
  515    825   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  516    826   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  517    827   
                source: err.into(),
  518    828   
            }),
         829  +
            /* ServiceErrorGenerator.kt:184 */
  519    830   
        }
         831  +
        /* ServiceErrorGenerator.kt:179 */
  520    832   
    }
         833  +
    /* ServiceErrorGenerator.kt:174 */
  521    834   
}
         835  +
/* ServiceErrorGenerator.kt:202 */
  522    836   
impl From<crate::operation::recursive_xml_shapes::RecursiveXmlShapesError> for Error {
         837  +
    /* ServiceErrorGenerator.kt:203 */
  523    838   
    fn from(err: crate::operation::recursive_xml_shapes::RecursiveXmlShapesError) -> Self {
         839  +
        /* ServiceErrorGenerator.kt:204 */
  524    840   
        match err {
         841  +
            /* ServiceErrorGenerator.kt:212 */
  525    842   
            crate::operation::recursive_xml_shapes::RecursiveXmlShapesError::Unhandled(inner) => Error::Unhandled(inner),
         843  +
            /* ServiceErrorGenerator.kt:204 */
  526    844   
        }
         845  +
        /* ServiceErrorGenerator.kt:203 */
  527    846   
    }
         847  +
    /* ServiceErrorGenerator.kt:202 */
  528    848   
}
         849  +
/* ServiceErrorGenerator.kt:174 */
  529    850   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_input_params::SimpleInputParamsError, R>> for Error
  530    851   
where
  531    852   
    R: Send + Sync + std::fmt::Debug + 'static,
  532    853   
{
         854  +
    /* ServiceErrorGenerator.kt:179 */
  533    855   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_input_params::SimpleInputParamsError, R>) -> Self {
         856  +
        /* ServiceErrorGenerator.kt:184 */
  534    857   
        match err {
         858  +
            /* ServiceErrorGenerator.kt:185 */
  535    859   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         860  +
            /* ServiceErrorGenerator.kt:186 */
  536    861   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  537    862   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  538    863   
                source: err.into(),
  539    864   
            }),
         865  +
            /* ServiceErrorGenerator.kt:184 */
  540    866   
        }
         867  +
        /* ServiceErrorGenerator.kt:179 */
  541    868   
    }
         869  +
    /* ServiceErrorGenerator.kt:174 */
  542    870   
}
         871  +
/* ServiceErrorGenerator.kt:202 */
  543    872   
impl From<crate::operation::simple_input_params::SimpleInputParamsError> for Error {
         873  +
    /* ServiceErrorGenerator.kt:203 */
  544    874   
    fn from(err: crate::operation::simple_input_params::SimpleInputParamsError) -> Self {
         875  +
        /* ServiceErrorGenerator.kt:204 */
  545    876   
        match err {
         877  +
            /* ServiceErrorGenerator.kt:212 */
  546    878   
            crate::operation::simple_input_params::SimpleInputParamsError::Unhandled(inner) => Error::Unhandled(inner),
         879  +
            /* ServiceErrorGenerator.kt:204 */
  547    880   
        }
         881  +
        /* ServiceErrorGenerator.kt:203 */
  548    882   
    }
         883  +
    /* ServiceErrorGenerator.kt:202 */
  549    884   
}
         885  +
/* ServiceErrorGenerator.kt:174 */
  550    886   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError, R>>
  551    887   
    for Error
  552    888   
where
  553    889   
    R: Send + Sync + std::fmt::Debug + 'static,
  554    890   
{
         891  +
    /* ServiceErrorGenerator.kt:179 */
  555    892   
    fn from(
  556    893   
        err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError, R>,
  557    894   
    ) -> Self {
         895  +
        /* ServiceErrorGenerator.kt:184 */
  558    896   
        match err {
         897  +
            /* ServiceErrorGenerator.kt:185 */
  559    898   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         899  +
            /* ServiceErrorGenerator.kt:186 */
  560    900   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  561    901   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  562    902   
                source: err.into(),
  563    903   
            }),
         904  +
            /* ServiceErrorGenerator.kt:184 */
  564    905   
        }
         906  +
        /* ServiceErrorGenerator.kt:179 */
  565    907   
    }
         908  +
    /* ServiceErrorGenerator.kt:174 */
  566    909   
}
         910  +
/* ServiceErrorGenerator.kt:202 */
  567    911   
impl From<crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError> for Error {
         912  +
    /* ServiceErrorGenerator.kt:203 */
  568    913   
    fn from(err: crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError) -> Self {
         914  +
        /* ServiceErrorGenerator.kt:204 */
  569    915   
        match err {
         916  +
            /* ServiceErrorGenerator.kt:212 */
  570    917   
            crate::operation::simple_scalar_xml_properties::SimpleScalarXmlPropertiesError::Unhandled(inner) => Error::Unhandled(inner),
         918  +
            /* ServiceErrorGenerator.kt:204 */
  571    919   
        }
         920  +
        /* ServiceErrorGenerator.kt:203 */
  572    921   
    }
         922  +
    /* ServiceErrorGenerator.kt:202 */
  573    923   
}
         924  +
/* ServiceErrorGenerator.kt:174 */
  574    925   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_blobs::XmlBlobsError, R>> for Error
  575    926   
where
  576    927   
    R: Send + Sync + std::fmt::Debug + 'static,
  577    928   
{
         929  +
    /* ServiceErrorGenerator.kt:179 */
  578    930   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_blobs::XmlBlobsError, R>) -> Self {
         931  +
        /* ServiceErrorGenerator.kt:184 */
  579    932   
        match err {
         933  +
            /* ServiceErrorGenerator.kt:185 */
  580    934   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         935  +
            /* ServiceErrorGenerator.kt:186 */
  581    936   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  582    937   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  583    938   
                source: err.into(),
  584    939   
            }),
         940  +
            /* ServiceErrorGenerator.kt:184 */
  585    941   
        }
         942  +
        /* ServiceErrorGenerator.kt:179 */
  586    943   
    }
         944  +
    /* ServiceErrorGenerator.kt:174 */
  587    945   
}
         946  +
/* ServiceErrorGenerator.kt:202 */
  588    947   
impl From<crate::operation::xml_blobs::XmlBlobsError> for Error {
         948  +
    /* ServiceErrorGenerator.kt:203 */
  589    949   
    fn from(err: crate::operation::xml_blobs::XmlBlobsError) -> Self {
         950  +
        /* ServiceErrorGenerator.kt:204 */
  590    951   
        match err {
         952  +
            /* ServiceErrorGenerator.kt:212 */
  591    953   
            crate::operation::xml_blobs::XmlBlobsError::Unhandled(inner) => Error::Unhandled(inner),
         954  +
            /* ServiceErrorGenerator.kt:204 */
  592    955   
        }
         956  +
        /* ServiceErrorGenerator.kt:203 */
  593    957   
    }
         958  +
    /* ServiceErrorGenerator.kt:202 */
  594    959   
}
         960  +
/* ServiceErrorGenerator.kt:174 */
  595    961   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_empty_blobs::XmlEmptyBlobsError, R>> for Error
  596    962   
where
  597    963   
    R: Send + Sync + std::fmt::Debug + 'static,
  598    964   
{
         965  +
    /* ServiceErrorGenerator.kt:179 */
  599    966   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_empty_blobs::XmlEmptyBlobsError, R>) -> Self {
         967  +
        /* ServiceErrorGenerator.kt:184 */
  600    968   
        match err {
         969  +
            /* ServiceErrorGenerator.kt:185 */
  601    970   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
         971  +
            /* ServiceErrorGenerator.kt:186 */
  602    972   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  603    973   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  604    974   
                source: err.into(),
  605    975   
            }),
         976  +
            /* ServiceErrorGenerator.kt:184 */
  606    977   
        }
         978  +
        /* ServiceErrorGenerator.kt:179 */
  607    979   
    }
         980  +
    /* ServiceErrorGenerator.kt:174 */
  608    981   
}
         982  +
/* ServiceErrorGenerator.kt:202 */
  609    983   
impl From<crate::operation::xml_empty_blobs::XmlEmptyBlobsError> for Error {
         984  +
    /* ServiceErrorGenerator.kt:203 */
  610    985   
    fn from(err: crate::operation::xml_empty_blobs::XmlEmptyBlobsError) -> Self {
         986  +
        /* ServiceErrorGenerator.kt:204 */
  611    987   
        match err {
         988  +
            /* ServiceErrorGenerator.kt:212 */
  612    989   
            crate::operation::xml_empty_blobs::XmlEmptyBlobsError::Unhandled(inner) => Error::Unhandled(inner),
         990  +
            /* ServiceErrorGenerator.kt:204 */
  613    991   
        }
         992  +
        /* ServiceErrorGenerator.kt:203 */
  614    993   
    }
         994  +
    /* ServiceErrorGenerator.kt:202 */
  615    995   
}
         996  +
/* ServiceErrorGenerator.kt:174 */
  616    997   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_empty_lists::XmlEmptyListsError, R>> for Error
  617    998   
where
  618    999   
    R: Send + Sync + std::fmt::Debug + 'static,
  619   1000   
{
        1001  +
    /* ServiceErrorGenerator.kt:179 */
  620   1002   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_empty_lists::XmlEmptyListsError, R>) -> Self {
        1003  +
        /* ServiceErrorGenerator.kt:184 */
  621   1004   
        match err {
        1005  +
            /* ServiceErrorGenerator.kt:185 */
  622   1006   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
        1007  +
            /* ServiceErrorGenerator.kt:186 */
  623   1008   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  624   1009   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  625   1010   
                source: err.into(),
  626   1011   
            }),
        1012  +
            /* ServiceErrorGenerator.kt:184 */
  627   1013   
        }
        1014  +
        /* ServiceErrorGenerator.kt:179 */
  628   1015   
    }
        1016  +
    /* ServiceErrorGenerator.kt:174 */
  629   1017   
}
        1018  +
/* ServiceErrorGenerator.kt:202 */
  630   1019   
impl From<crate::operation::xml_empty_lists::XmlEmptyListsError> for Error {
        1020  +
    /* ServiceErrorGenerator.kt:203 */
  631   1021   
    fn from(err: crate::operation::xml_empty_lists::XmlEmptyListsError) -> Self {
        1022  +
        /* ServiceErrorGenerator.kt:204 */
  632   1023   
        match err {
        1024  +
            /* ServiceErrorGenerator.kt:212 */
  633   1025   
            crate::operation::xml_empty_lists::XmlEmptyListsError::Unhandled(inner) => Error::Unhandled(inner),
        1026  +
            /* ServiceErrorGenerator.kt:204 */
  634   1027   
        }
        1028  +
        /* ServiceErrorGenerator.kt:203 */
  635   1029   
    }
        1030  +
    /* ServiceErrorGenerator.kt:202 */
  636   1031   
}
        1032  +
/* ServiceErrorGenerator.kt:174 */
  637   1033   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_empty_maps::XmlEmptyMapsError, R>> for Error
  638   1034   
where
  639   1035   
    R: Send + Sync + std::fmt::Debug + 'static,
  640   1036   
{
        1037  +
    /* ServiceErrorGenerator.kt:179 */
  641   1038   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_empty_maps::XmlEmptyMapsError, R>) -> Self {
        1039  +
        /* ServiceErrorGenerator.kt:184 */
  642   1040   
        match err {
        1041  +
            /* ServiceErrorGenerator.kt:185 */
  643   1042   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
        1043  +
            /* ServiceErrorGenerator.kt:186 */
  644   1044   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  645   1045   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  646   1046   
                source: err.into(),
  647   1047   
            }),
        1048  +
            /* ServiceErrorGenerator.kt:184 */
  648   1049   
        }
        1050  +
        /* ServiceErrorGenerator.kt:179 */
  649   1051   
    }
        1052  +
    /* ServiceErrorGenerator.kt:174 */
  650   1053   
}
        1054  +
/* ServiceErrorGenerator.kt:202 */
  651   1055   
impl From<crate::operation::xml_empty_maps::XmlEmptyMapsError> for Error {
        1056  +
    /* ServiceErrorGenerator.kt:203 */
  652   1057   
    fn from(err: crate::operation::xml_empty_maps::XmlEmptyMapsError) -> Self {
        1058  +
        /* ServiceErrorGenerator.kt:204 */
  653   1059   
        match err {
        1060  +
            /* ServiceErrorGenerator.kt:212 */
  654   1061   
            crate::operation::xml_empty_maps::XmlEmptyMapsError::Unhandled(inner) => Error::Unhandled(inner),
        1062  +
            /* ServiceErrorGenerator.kt:204 */
  655   1063   
        }
        1064  +
        /* ServiceErrorGenerator.kt:203 */
  656   1065   
    }
        1066  +
    /* ServiceErrorGenerator.kt:202 */
  657   1067   
}
        1068  +
/* ServiceErrorGenerator.kt:174 */
  658   1069   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_enums::XmlEnumsError, R>> for Error
  659   1070   
where
  660   1071   
    R: Send + Sync + std::fmt::Debug + 'static,
  661   1072   
{
        1073  +
    /* ServiceErrorGenerator.kt:179 */
  662   1074   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_enums::XmlEnumsError, R>) -> Self {
        1075  +
        /* ServiceErrorGenerator.kt:184 */
  663   1076   
        match err {
        1077  +
            /* ServiceErrorGenerator.kt:185 */
  664   1078   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
        1079  +
            /* ServiceErrorGenerator.kt:186 */
  665   1080   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  666   1081   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  667   1082   
                source: err.into(),
  668   1083   
            }),
        1084  +
            /* ServiceErrorGenerator.kt:184 */
  669   1085   
        }
        1086  +
        /* ServiceErrorGenerator.kt:179 */
  670   1087   
    }
        1088  +
    /* ServiceErrorGenerator.kt:174 */
  671   1089   
}
        1090  +
/* ServiceErrorGenerator.kt:202 */
  672   1091   
impl From<crate::operation::xml_enums::XmlEnumsError> for Error {
        1092  +
    /* ServiceErrorGenerator.kt:203 */
  673   1093   
    fn from(err: crate::operation::xml_enums::XmlEnumsError) -> Self {
        1094  +
        /* ServiceErrorGenerator.kt:204 */
  674   1095   
        match err {
        1096  +
            /* ServiceErrorGenerator.kt:212 */
  675   1097   
            crate::operation::xml_enums::XmlEnumsError::Unhandled(inner) => Error::Unhandled(inner),
        1098  +
            /* ServiceErrorGenerator.kt:204 */
  676   1099   
        }
        1100  +
        /* ServiceErrorGenerator.kt:203 */
  677   1101   
    }
        1102  +
    /* ServiceErrorGenerator.kt:202 */
  678   1103   
}
        1104  +
/* ServiceErrorGenerator.kt:174 */
  679   1105   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_int_enums::XmlIntEnumsError, R>> for Error
  680   1106   
where
  681   1107   
    R: Send + Sync + std::fmt::Debug + 'static,
  682   1108   
{
        1109  +
    /* ServiceErrorGenerator.kt:179 */
  683   1110   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_int_enums::XmlIntEnumsError, R>) -> Self {
        1111  +
        /* ServiceErrorGenerator.kt:184 */
  684   1112   
        match err {
        1113  +
            /* ServiceErrorGenerator.kt:185 */
  685   1114   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
        1115  +
            /* ServiceErrorGenerator.kt:186 */
  686   1116   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  687   1117   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  688   1118   
                source: err.into(),
  689   1119   
            }),
        1120  +
            /* ServiceErrorGenerator.kt:184 */
  690   1121   
        }
        1122  +
        /* ServiceErrorGenerator.kt:179 */
  691   1123   
    }
        1124  +
    /* ServiceErrorGenerator.kt:174 */
  692   1125   
}
        1126  +
/* ServiceErrorGenerator.kt:202 */
  693   1127   
impl From<crate::operation::xml_int_enums::XmlIntEnumsError> for Error {
        1128  +
    /* ServiceErrorGenerator.kt:203 */
  694   1129   
    fn from(err: crate::operation::xml_int_enums::XmlIntEnumsError) -> Self {
        1130  +
        /* ServiceErrorGenerator.kt:204 */
  695   1131   
        match err {
        1132  +
            /* ServiceErrorGenerator.kt:212 */
  696   1133   
            crate::operation::xml_int_enums::XmlIntEnumsError::Unhandled(inner) => Error::Unhandled(inner),
        1134  +
            /* ServiceErrorGenerator.kt:204 */
  697   1135   
        }
        1136  +
        /* ServiceErrorGenerator.kt:203 */
  698   1137   
    }
        1138  +
    /* ServiceErrorGenerator.kt:202 */
  699   1139   
}
        1140  +
/* ServiceErrorGenerator.kt:174 */
  700   1141   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_lists::XmlListsError, R>> for Error
  701   1142   
where
  702   1143   
    R: Send + Sync + std::fmt::Debug + 'static,
  703   1144   
{
        1145  +
    /* ServiceErrorGenerator.kt:179 */
  704   1146   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_lists::XmlListsError, R>) -> Self {
        1147  +
        /* ServiceErrorGenerator.kt:184 */
  705   1148   
        match err {
        1149  +
            /* ServiceErrorGenerator.kt:185 */
  706   1150   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
        1151  +
            /* ServiceErrorGenerator.kt:186 */
  707   1152   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  708   1153   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  709   1154   
                source: err.into(),
  710   1155   
            }),
        1156  +
            /* ServiceErrorGenerator.kt:184 */
  711   1157   
        }
        1158  +
        /* ServiceErrorGenerator.kt:179 */
  712   1159   
    }
        1160  +
    /* ServiceErrorGenerator.kt:174 */
  713   1161   
}
        1162  +
/* ServiceErrorGenerator.kt:202 */
  714   1163   
impl From<crate::operation::xml_lists::XmlListsError> for Error {
        1164  +
    /* ServiceErrorGenerator.kt:203 */
  715   1165   
    fn from(err: crate::operation::xml_lists::XmlListsError) -> Self {
        1166  +
        /* ServiceErrorGenerator.kt:204 */
  716   1167   
        match err {
        1168  +
            /* ServiceErrorGenerator.kt:212 */
  717   1169   
            crate::operation::xml_lists::XmlListsError::Unhandled(inner) => Error::Unhandled(inner),
        1170  +
            /* ServiceErrorGenerator.kt:204 */
  718   1171   
        }
        1172  +
        /* ServiceErrorGenerator.kt:203 */
  719   1173   
    }
        1174  +
    /* ServiceErrorGenerator.kt:202 */
  720   1175   
}
        1176  +
/* ServiceErrorGenerator.kt:174 */
  721   1177   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_maps::XmlMapsError, R>> for Error
  722   1178   
where
  723   1179   
    R: Send + Sync + std::fmt::Debug + 'static,
  724   1180   
{
        1181  +
    /* ServiceErrorGenerator.kt:179 */
  725   1182   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_maps::XmlMapsError, R>) -> Self {
        1183  +
        /* ServiceErrorGenerator.kt:184 */
  726   1184   
        match err {
        1185  +
            /* ServiceErrorGenerator.kt:185 */
  727   1186   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
        1187  +
            /* ServiceErrorGenerator.kt:186 */
  728   1188   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  729   1189   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  730   1190   
                source: err.into(),
  731   1191   
            }),
        1192  +
            /* ServiceErrorGenerator.kt:184 */
  732   1193   
        }
        1194  +
        /* ServiceErrorGenerator.kt:179 */
  733   1195   
    }
        1196  +
    /* ServiceErrorGenerator.kt:174 */
  734   1197   
}
        1198  +
/* ServiceErrorGenerator.kt:202 */
  735   1199   
impl From<crate::operation::xml_maps::XmlMapsError> for Error {
        1200  +
    /* ServiceErrorGenerator.kt:203 */
  736   1201   
    fn from(err: crate::operation::xml_maps::XmlMapsError) -> Self {
        1202  +
        /* ServiceErrorGenerator.kt:204 */
  737   1203   
        match err {
        1204  +
            /* ServiceErrorGenerator.kt:212 */
  738   1205   
            crate::operation::xml_maps::XmlMapsError::Unhandled(inner) => Error::Unhandled(inner),
        1206  +
            /* ServiceErrorGenerator.kt:204 */
  739   1207   
        }
        1208  +
        /* ServiceErrorGenerator.kt:203 */
  740   1209   
    }
        1210  +
    /* ServiceErrorGenerator.kt:202 */
  741   1211   
}
        1212  +
/* ServiceErrorGenerator.kt:174 */
  742   1213   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_maps_xml_name::XmlMapsXmlNameError, R>> for Error
  743   1214   
where
  744   1215   
    R: Send + Sync + std::fmt::Debug + 'static,
  745   1216   
{
        1217  +
    /* ServiceErrorGenerator.kt:179 */
  746   1218   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_maps_xml_name::XmlMapsXmlNameError, R>) -> Self {
        1219  +
        /* ServiceErrorGenerator.kt:184 */
  747   1220   
        match err {
        1221  +
            /* ServiceErrorGenerator.kt:185 */
  748   1222   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
        1223  +
            /* ServiceErrorGenerator.kt:186 */
  749   1224   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  750   1225   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  751   1226   
                source: err.into(),
  752   1227   
            }),
        1228  +
            /* ServiceErrorGenerator.kt:184 */
  753   1229   
        }
        1230  +
        /* ServiceErrorGenerator.kt:179 */
  754   1231   
    }
        1232  +
    /* ServiceErrorGenerator.kt:174 */
  755   1233   
}
        1234  +
/* ServiceErrorGenerator.kt:202 */
  756   1235   
impl From<crate::operation::xml_maps_xml_name::XmlMapsXmlNameError> for Error {
        1236  +
    /* ServiceErrorGenerator.kt:203 */
  757   1237   
    fn from(err: crate::operation::xml_maps_xml_name::XmlMapsXmlNameError) -> Self {
        1238  +
        /* ServiceErrorGenerator.kt:204 */
  758   1239   
        match err {
        1240  +
            /* ServiceErrorGenerator.kt:212 */
  759   1241   
            crate::operation::xml_maps_xml_name::XmlMapsXmlNameError::Unhandled(inner) => Error::Unhandled(inner),
        1242  +
            /* ServiceErrorGenerator.kt:204 */
  760   1243   
        }
        1244  +
        /* ServiceErrorGenerator.kt:203 */
  761   1245   
    }
        1246  +
    /* ServiceErrorGenerator.kt:202 */
  762   1247   
}
        1248  +
/* ServiceErrorGenerator.kt:174 */
  763   1249   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_namespaces::XmlNamespacesError, R>> for Error
  764   1250   
where
  765   1251   
    R: Send + Sync + std::fmt::Debug + 'static,
  766   1252   
{
        1253  +
    /* ServiceErrorGenerator.kt:179 */
  767   1254   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_namespaces::XmlNamespacesError, R>) -> Self {
        1255  +
        /* ServiceErrorGenerator.kt:184 */
  768   1256   
        match err {
        1257  +
            /* ServiceErrorGenerator.kt:185 */
  769   1258   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
        1259  +
            /* ServiceErrorGenerator.kt:186 */
  770   1260   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  771   1261   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  772   1262   
                source: err.into(),
  773   1263   
            }),
        1264  +
            /* ServiceErrorGenerator.kt:184 */
  774   1265   
        }
        1266  +
        /* ServiceErrorGenerator.kt:179 */
  775   1267   
    }
        1268  +
    /* ServiceErrorGenerator.kt:174 */
  776   1269   
}
        1270  +
/* ServiceErrorGenerator.kt:202 */
  777   1271   
impl From<crate::operation::xml_namespaces::XmlNamespacesError> for Error {
        1272  +
    /* ServiceErrorGenerator.kt:203 */
  778   1273   
    fn from(err: crate::operation::xml_namespaces::XmlNamespacesError) -> Self {
        1274  +
        /* ServiceErrorGenerator.kt:204 */
  779   1275   
        match err {
        1276  +
            /* ServiceErrorGenerator.kt:212 */
  780   1277   
            crate::operation::xml_namespaces::XmlNamespacesError::Unhandled(inner) => Error::Unhandled(inner),
        1278  +
            /* ServiceErrorGenerator.kt:204 */
  781   1279   
        }
        1280  +
        /* ServiceErrorGenerator.kt:203 */
  782   1281   
    }
        1282  +
    /* ServiceErrorGenerator.kt:202 */
  783   1283   
}
        1284  +
/* ServiceErrorGenerator.kt:174 */
  784   1285   
impl<R> From<::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_timestamps::XmlTimestampsError, R>> for Error
  785   1286   
where
  786   1287   
    R: Send + Sync + std::fmt::Debug + 'static,
  787   1288   
{
        1289  +
    /* ServiceErrorGenerator.kt:179 */
  788   1290   
    fn from(err: ::aws_smithy_runtime_api::client::result::SdkError<crate::operation::xml_timestamps::XmlTimestampsError, R>) -> Self {
        1291  +
        /* ServiceErrorGenerator.kt:184 */
  789   1292   
        match err {
        1293  +
            /* ServiceErrorGenerator.kt:185 */
  790   1294   
            ::aws_smithy_runtime_api::client::result::SdkError::ServiceError(context) => Self::from(context.into_err()),
        1295  +
            /* ServiceErrorGenerator.kt:186 */
  791   1296   
            _ => Error::Unhandled(crate::error::sealed_unhandled::Unhandled {
  792   1297   
                meta: ::aws_smithy_types::error::metadata::ProvideErrorMetadata::meta(&err).clone(),
  793   1298   
                source: err.into(),
  794   1299   
            }),
        1300  +
            /* ServiceErrorGenerator.kt:184 */
  795   1301   
        }
        1302  +
        /* ServiceErrorGenerator.kt:179 */
  796   1303   
    }
        1304  +
    /* ServiceErrorGenerator.kt:174 */
  797   1305   
}
        1306  +
/* ServiceErrorGenerator.kt:202 */
  798   1307   
impl From<crate::operation::xml_timestamps::XmlTimestampsError> for Error {
        1308  +
    /* ServiceErrorGenerator.kt:203 */
  799   1309   
    fn from(err: crate::operation::xml_timestamps::XmlTimestampsError) -> Self {
        1310  +
        /* ServiceErrorGenerator.kt:204 */
  800   1311   
        match err {
        1312  +
            /* ServiceErrorGenerator.kt:212 */
  801   1313   
            crate::operation::xml_timestamps::XmlTimestampsError::Unhandled(inner) => Error::Unhandled(inner),
        1314  +
            /* ServiceErrorGenerator.kt:204 */
  802   1315   
        }
        1316  +
        /* ServiceErrorGenerator.kt:203 */
  803   1317   
    }
        1318  +
    /* ServiceErrorGenerator.kt:202 */
  804   1319   
}
        1320  +
/* ServiceErrorGenerator.kt:115 */
  805   1321   
impl ::std::error::Error for Error {
        1322  +
    /* ServiceErrorGenerator.kt:116 */
  806   1323   
    fn source(&self) -> std::option::Option<&(dyn ::std::error::Error + 'static)> {
        1324  +
        /* ServiceErrorGenerator.kt:117 */
  807   1325   
        match self {
  808         -
            Error::ComplexError(inner) => inner.source(),
  809         -
            Error::CustomCodeError(inner) => inner.source(),
  810         -
            Error::InvalidGreeting(inner) => inner.source(),
  811         -
            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source),
        1326  +
            /* ServiceErrorGenerator.kt:119 */ Error::ComplexError(inner) => inner.source(),
        1327  +
            /* ServiceErrorGenerator.kt:119 */ Error::CustomCodeError(inner) => inner.source(),
        1328  +
            /* ServiceErrorGenerator.kt:119 */ Error::InvalidGreeting(inner) => inner.source(),
        1329  +
            /* ServiceErrorGenerator.kt:121 */
        1330  +
            Error::Unhandled(inner) => ::std::option::Option::Some(&*inner.source), /* ServiceErrorGenerator.kt:117 */
  812   1331   
        }
        1332  +
        /* ServiceErrorGenerator.kt:116 */
  813   1333   
    }
        1334  +
    /* ServiceErrorGenerator.kt:115 */
  814   1335   
}

tmp-codegen-diff/codegen-client-test/aws_query/rust-client-codegen/src/lib.rs

@@ -18,18 +136,147 @@
   38     38   
//! The [`operation`](crate::operation) module has a submodule for every API, and in each submodule
   39     39   
//! is the input, output, and error type for that API, as well as builders to construct each of those.
   40     40   
//!
   41     41   
//! There is a top-level [`Error`](crate::Error) type that encompasses all the errors that the
   42     42   
//! client can return. Any other error type can be converted to this `Error` type via the
   43     43   
//! [`From`](std::convert::From) trait.
   44     44   
//!
   45     45   
//! The other modules within this crate are not required for normal usage.
   46     46   
   47     47   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
          48  +
/* ServiceErrorGenerator.kt:127 */
   48     49   
pub use error_meta::Error;
   49     50   
          51  +
/* RustType.kt:516 */
   50     52   
#[doc(inline)]
          53  +
/* ServiceGenerator.kt:63 */
   51     54   
pub use config::Config;
   52     55   
   53         -
/// Client for calling Sample Query Protocol Service.
          56  +
/// /* FluentClientDocs.kt:24 */Client for calling Sample Query Protocol Service.
   54     57   
///
   55     58   
/// ## Constructing a `Client`
   56     59   
///
   57     60   
/// A `Client` requires a config in order to be constructed. With the default set of Cargo features,
   58     61   
/// this config will only require an endpoint to produce a functioning client. However, some Smithy
   59     62   
/// features will require additional configuration. For example, `@auth` requires some kind of identity
   60     63   
/// or identity resolver to be configured. The config is used to customize various aspects of the client,
   61     64   
/// such as:
   62     65   
///
   63     66   
///   - [The underlying HTTP client](crate::config::Builder::http_client)
   64     67   
///   - [Retries](crate::config::Builder::retry_config)
   65     68   
///   - [Timeouts](crate::config::Builder::timeout_config)
   66     69   
///   - [... and more](crate::config::Builder)
   67     70   
///
   68     71   
/// Below is a minimal example of how to create a client:
   69     72   
///
   70     73   
/// ```rust,no_run
   71     74   
/// let config = aws_query::Config::builder()
   72     75   
///     .endpoint_url("http://localhost:1234")
   73     76   
///     .build();
   74     77   
/// let client = aws_query::Client::from_conf(config);
   75     78   
/// ```
   76     79   
///
   77     80   
/// _Note:_ Client construction is expensive due to connection thread pool initialization, and should be done
   78     81   
/// once at application start-up. Cloning a client is cheap (it's just an [`Arc`](std::sync::Arc) under the hood),
   79     82   
/// so creating it once at start-up and cloning it around the application as needed is recommended.
   80         -
/// # Using the `Client`
          83  +
/// /* FluentClientDocs.kt:79 */# Using the `Client`
   81     84   
///
   82     85   
/// A client has a function for every operation that can be performed by the service.
   83     86   
/// For example, the [`EndpointWithHostLabelOperation`](crate::operation::endpoint_with_host_label_operation) operation has
   84     87   
/// a [`Client::endpoint_with_host_label_operation`], function which returns a builder for that operation.
   85     88   
/// The fluent builder ultimately has a `send()` function that returns an async future that
   86     89   
/// returns a result, as illustrated below:
   87     90   
///
   88     91   
/// ```rust,ignore
   89     92   
/// let result = client.endpoint_with_host_label_operation()
   90     93   
///     .label("example")
   91     94   
///     .send()
   92     95   
///     .await;
   93     96   
/// ```
   94     97   
///
   95     98   
/// The underlying HTTP requests that get made by this can be modified with the `customize_operation`
   96     99   
/// function on the fluent builder. See the [`customize`](crate::client::customize) module for more
   97    100   
/// information.
   98    101   
pub mod client;
   99    102   
  100         -
/// Configuration for Sample Query Protocol Service.
         103  +
/// /* ClientRustModule.kt:121 */Configuration for Sample Query Protocol Service.
  101    104   
pub mod config;
  102    105   
  103         -
/// Common errors and error handling utilities.
         106  +
/// /* ClientRustModule.kt:121 */Common errors and error handling utilities.
  104    107   
pub mod error;
  105    108   
         109  +
/* RustModule.kt:172 */
  106    110   
mod error_meta;
  107    111   
  108         -
/// Information about this crate.
         112  +
/// /* ClientRustModule.kt:121 */Information about this crate.
  109    113   
pub mod meta;
  110    114   
  111         -
/// Primitives such as `Blob` or `DateTime` used by other types.
         115  +
/// /* ClientRustModule.kt:121 */Primitives such as `Blob` or `DateTime` used by other types.
  112    116   
pub mod primitives;
  113    117   
  114         -
/// Data structures used by operation inputs/outputs.
         118  +
/// /* ClientRustModule.kt:121 */Data structures used by operation inputs/outputs.
  115    119   
pub mod types;
  116    120   
         121  +
/* RustModule.kt:172 */
  117    122   
mod auth_plugin;
  118    123   
  119    124   
pub(crate) mod client_idempotency_token;
  120    125   
         126  +
/* RustModule.kt:172 */
  121    127   
mod client_request_compression;
  122    128   
         129  +
/* RustModule.kt:172 */
  123    130   
mod idempotency_token;
  124    131   
  125         -
/// All operations that this crate can perform.
         132  +
/// /* ClientRustModule.kt:121 */All operations that this crate can perform.
  126    133   
pub mod operation;
  127    134   
  128    135   
pub(crate) mod protocol_serde;
  129    136   
         137  +
/* RustModule.kt:172 */
  130    138   
mod sdk_feature_tracker;
  131    139   
         140  +
/* RustModule.kt:172 */
  132    141   
mod serialization_settings;
  133    142   
         143  +
/* RustModule.kt:172 */
  134    144   
mod rest_xml_wrapped_errors;
  135    145   
         146  +
/* FluentClientDecorator.kt:76 */
  136    147   
pub use client::Client;