Client Test

Client Test

rev. 645b1734ce74ebbc529fecda676baac60fe4d581 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_global_table.rs

@@ -201,201 +262,264 @@
  221    221   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  222    222   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  223    223   
        let _input = context
  224    224   
            .input()
  225    225   
            .downcast_ref::<DescribeGlobalTableInput>()
  226    226   
            .ok_or("failed to downcast to DescribeGlobalTableInput")?;
  227    227   
  228    228   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  229    229   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  230    230   
        })?;
         231  +
  231    232   
        cfg.interceptor_state()
  232    233   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         234  +
  233    235   
        ::std::result::Result::Ok(())
  234    236   
    }
  235    237   
}
  236    238   
  237    239   
// The get_* functions below are generated from JMESPath expressions in the
  238    240   
// operationContextParams trait. They target the operation's input shape.
  239    241   
  240    242   
/// Error type for the `DescribeGlobalTableError` operation.
  241    243   
#[non_exhaustive]
  242    244   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_global_table_settings.rs

@@ -207,207 +268,270 @@
  227    227   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  228    228   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  229    229   
        let _input = context
  230    230   
            .input()
  231    231   
            .downcast_ref::<DescribeGlobalTableSettingsInput>()
  232    232   
            .ok_or("failed to downcast to DescribeGlobalTableSettingsInput")?;
  233    233   
  234    234   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  235    235   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  236    236   
        })?;
         237  +
  237    238   
        cfg.interceptor_state()
  238    239   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         240  +
  239    241   
        ::std::result::Result::Ok(())
  240    242   
    }
  241    243   
}
  242    244   
  243    245   
// The get_* functions below are generated from JMESPath expressions in the
  244    246   
// operationContextParams trait. They target the operation's input shape.
  245    247   
  246    248   
/// Error type for the `DescribeGlobalTableSettingsError` operation.
  247    249   
#[non_exhaustive]
  248    250   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_kinesis_streaming_destination.rs

@@ -211,211 +272,274 @@
  231    231   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  232    232   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  233    233   
        let _input = context
  234    234   
            .input()
  235    235   
            .downcast_ref::<DescribeKinesisStreamingDestinationInput>()
  236    236   
            .ok_or("failed to downcast to DescribeKinesisStreamingDestinationInput")?;
  237    237   
  238    238   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  239    239   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  240    240   
        })?;
         241  +
  241    242   
        cfg.interceptor_state()
  242    243   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         244  +
  243    245   
        ::std::result::Result::Ok(())
  244    246   
    }
  245    247   
}
  246    248   
  247    249   
// The get_* functions below are generated from JMESPath expressions in the
  248    250   
// operationContextParams trait. They target the operation's input shape.
  249    251   
  250    252   
/// Error type for the `DescribeKinesisStreamingDestinationError` operation.
  251    253   
#[non_exhaustive]
  252    254   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_limits.rs

@@ -196,196 +257,259 @@
  216    216   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  217    217   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  218    218   
        let _input = context
  219    219   
            .input()
  220    220   
            .downcast_ref::<DescribeLimitsInput>()
  221    221   
            .ok_or("failed to downcast to DescribeLimitsInput")?;
  222    222   
  223    223   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  224    224   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  225    225   
        })?;
         226  +
  226    227   
        cfg.interceptor_state()
  227    228   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         229  +
  228    230   
        ::std::result::Result::Ok(())
  229    231   
    }
  230    232   
}
  231    233   
  232    234   
// The get_* functions below are generated from JMESPath expressions in the
  233    235   
// operationContextParams trait. They target the operation's input shape.
  234    236   
  235    237   
/// Error type for the `DescribeLimitsError` operation.
  236    238   
#[non_exhaustive]
  237    239   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_table.rs

@@ -196,196 +257,259 @@
  216    216   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  217    217   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  218    218   
        let _input = context
  219    219   
            .input()
  220    220   
            .downcast_ref::<DescribeTableInput>()
  221    221   
            .ok_or("failed to downcast to DescribeTableInput")?;
  222    222   
  223    223   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  224    224   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  225    225   
        })?;
         226  +
  226    227   
        cfg.interceptor_state()
  227    228   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         229  +
  228    230   
        ::std::result::Result::Ok(())
  229    231   
    }
  230    232   
}
  231    233   
  232    234   
// The get_* functions below are generated from JMESPath expressions in the
  233    235   
// operationContextParams trait. They target the operation's input shape.
  234    236   
  235    237   
/// Error type for the `DescribeTableError` operation.
  236    238   
#[non_exhaustive]
  237    239   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_table_replica_auto_scaling.rs

@@ -209,209 +270,272 @@
  229    229   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  230    230   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  231    231   
        let _input = context
  232    232   
            .input()
  233    233   
            .downcast_ref::<DescribeTableReplicaAutoScalingInput>()
  234    234   
            .ok_or("failed to downcast to DescribeTableReplicaAutoScalingInput")?;
  235    235   
  236    236   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  237    237   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  238    238   
        })?;
         239  +
  239    240   
        cfg.interceptor_state()
  240    241   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         242  +
  241    243   
        ::std::result::Result::Ok(())
  242    244   
    }
  243    245   
}
  244    246   
  245    247   
// The get_* functions below are generated from JMESPath expressions in the
  246    248   
// operationContextParams trait. They target the operation's input shape.
  247    249   
  248    250   
/// Error type for the `DescribeTableReplicaAutoScalingError` operation.
  249    251   
#[non_exhaustive]
  250    252   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/describe_time_to_live.rs

@@ -201,201 +262,264 @@
  221    221   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  222    222   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  223    223   
        let _input = context
  224    224   
            .input()
  225    225   
            .downcast_ref::<DescribeTimeToLiveInput>()
  226    226   
            .ok_or("failed to downcast to DescribeTimeToLiveInput")?;
  227    227   
  228    228   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  229    229   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  230    230   
        })?;
         231  +
  231    232   
        cfg.interceptor_state()
  232    233   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         234  +
  233    235   
        ::std::result::Result::Ok(())
  234    236   
    }
  235    237   
}
  236    238   
  237    239   
// The get_* functions below are generated from JMESPath expressions in the
  238    240   
// operationContextParams trait. They target the operation's input shape.
  239    241   
  240    242   
/// Error type for the `DescribeTimeToLiveError` operation.
  241    243   
#[non_exhaustive]
  242    244   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/disable_kinesis_streaming_destination.rs

@@ -211,211 +272,274 @@
  231    231   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  232    232   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  233    233   
        let _input = context
  234    234   
            .input()
  235    235   
            .downcast_ref::<DisableKinesisStreamingDestinationInput>()
  236    236   
            .ok_or("failed to downcast to DisableKinesisStreamingDestinationInput")?;
  237    237   
  238    238   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  239    239   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  240    240   
        })?;
         241  +
  241    242   
        cfg.interceptor_state()
  242    243   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         244  +
  243    245   
        ::std::result::Result::Ok(())
  244    246   
    }
  245    247   
}
  246    248   
  247    249   
// The get_* functions below are generated from JMESPath expressions in the
  248    250   
// operationContextParams trait. They target the operation's input shape.
  249    251   
  250    252   
/// Error type for the `DisableKinesisStreamingDestinationError` operation.
  251    253   
#[non_exhaustive]
  252    254   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/enable_kinesis_streaming_destination.rs

@@ -211,211 +272,274 @@
  231    231   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  232    232   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  233    233   
        let _input = context
  234    234   
            .input()
  235    235   
            .downcast_ref::<EnableKinesisStreamingDestinationInput>()
  236    236   
            .ok_or("failed to downcast to EnableKinesisStreamingDestinationInput")?;
  237    237   
  238    238   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  239    239   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  240    240   
        })?;
         241  +
  241    242   
        cfg.interceptor_state()
  242    243   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         244  +
  243    245   
        ::std::result::Result::Ok(())
  244    246   
    }
  245    247   
}
  246    248   
  247    249   
// The get_* functions below are generated from JMESPath expressions in the
  248    250   
// operationContextParams trait. They target the operation's input shape.
  249    251   
  250    252   
/// Error type for the `EnableKinesisStreamingDestinationError` operation.
  251    253   
#[non_exhaustive]
  252    254   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/execute_statement.rs

@@ -199,199 +260,262 @@
  219    219   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  220    220   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  221    221   
        let _input = context
  222    222   
            .input()
  223    223   
            .downcast_ref::<ExecuteStatementInput>()
  224    224   
            .ok_or("failed to downcast to ExecuteStatementInput")?;
  225    225   
  226    226   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  227    227   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  228    228   
        })?;
         229  +
  229    230   
        cfg.interceptor_state()
  230    231   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         232  +
  231    233   
        ::std::result::Result::Ok(())
  232    234   
    }
  233    235   
}
  234    236   
  235    237   
// The get_* functions below are generated from JMESPath expressions in the
  236    238   
// operationContextParams trait. They target the operation's input shape.
  237    239   
  238    240   
/// Error type for the `ExecuteStatementError` operation.
  239    241   
#[non_exhaustive]
  240    242   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/execute_transaction.rs

@@ -206,206 +267,269 @@
  226    226   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  227    227   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  228    228   
        let _input = context
  229    229   
            .input()
  230    230   
            .downcast_ref::<ExecuteTransactionInput>()
  231    231   
            .ok_or("failed to downcast to ExecuteTransactionInput")?;
  232    232   
  233    233   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  234    234   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  235    235   
        })?;
         236  +
  236    237   
        cfg.interceptor_state()
  237    238   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         239  +
  238    240   
        ::std::result::Result::Ok(())
  239    241   
    }
  240    242   
}
  241    243   
  242    244   
// The get_* functions below are generated from JMESPath expressions in the
  243    245   
// operationContextParams trait. They target the operation's input shape.
  244    246   
  245    247   
/// Error type for the `ExecuteTransactionError` operation.
  246    248   
#[non_exhaustive]
  247    249   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/export_table_to_point_in_time.rs

@@ -209,209 +270,272 @@
  229    229   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  230    230   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  231    231   
        let _input = context
  232    232   
            .input()
  233    233   
            .downcast_ref::<ExportTableToPointInTimeInput>()
  234    234   
            .ok_or("failed to downcast to ExportTableToPointInTimeInput")?;
  235    235   
  236    236   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  237    237   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  238    238   
        })?;
         239  +
  239    240   
        cfg.interceptor_state()
  240    241   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         242  +
  241    243   
        ::std::result::Result::Ok(())
  242    244   
    }
  243    245   
}
  244    246   
  245    247   
// The get_* functions below are generated from JMESPath expressions in the
  246    248   
// operationContextParams trait. They target the operation's input shape.
  247    249   
  248    250   
/// Error type for the `ExportTableToPointInTimeError` operation.
  249    251   
#[non_exhaustive]
  250    252   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/get_item.rs

@@ -190,190 +251,253 @@
  210    210   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  211    211   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  212    212   
        let _input = context
  213    213   
            .input()
  214    214   
            .downcast_ref::<GetItemInput>()
  215    215   
            .ok_or("failed to downcast to GetItemInput")?;
  216    216   
  217    217   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  218    218   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  219    219   
        })?;
         220  +
  220    221   
        cfg.interceptor_state()
  221    222   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         223  +
  222    224   
        ::std::result::Result::Ok(())
  223    225   
    }
  224    226   
}
  225    227   
  226    228   
// The get_* functions below are generated from JMESPath expressions in the
  227    229   
// operationContextParams trait. They target the operation's input shape.
  228    230   
  229    231   
/// Error type for the `GetItemError` operation.
  230    232   
#[non_exhaustive]
  231    233   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_backups.rs

@@ -196,196 +257,259 @@
  216    216   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  217    217   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  218    218   
        let _input = context
  219    219   
            .input()
  220    220   
            .downcast_ref::<ListBackupsInput>()
  221    221   
            .ok_or("failed to downcast to ListBackupsInput")?;
  222    222   
  223    223   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  224    224   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  225    225   
        })?;
         226  +
  226    227   
        cfg.interceptor_state()
  227    228   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         229  +
  228    230   
        ::std::result::Result::Ok(())
  229    231   
    }
  230    232   
}
  231    233   
  232    234   
// The get_* functions below are generated from JMESPath expressions in the
  233    235   
// operationContextParams trait. They target the operation's input shape.
  234    236   
  235    237   
/// Error type for the `ListBackupsError` operation.
  236    238   
#[non_exhaustive]
  237    239   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_contributor_insights.rs

@@ -201,201 +262,264 @@
  221    221   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  222    222   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  223    223   
        let _input = context
  224    224   
            .input()
  225    225   
            .downcast_ref::<ListContributorInsightsInput>()
  226    226   
            .ok_or("failed to downcast to ListContributorInsightsInput")?;
  227    227   
  228    228   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  229    229   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  230    230   
        })?;
         231  +
  231    232   
        cfg.interceptor_state()
  232    233   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         234  +
  233    235   
        ::std::result::Result::Ok(())
  234    236   
    }
  235    237   
}
  236    238   
  237    239   
// The get_* functions below are generated from JMESPath expressions in the
  238    240   
// operationContextParams trait. They target the operation's input shape.
  239    241   
  240    242   
/// Error type for the `ListContributorInsightsError` operation.
  241    243   
#[non_exhaustive]
  242    244   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_exports.rs

@@ -196,196 +257,259 @@
  216    216   
        cfg: &mut ::aws_smithy_types::config_bag::ConfigBag,
  217    217   
    ) -> ::std::result::Result<(), ::aws_smithy_runtime_api::box_error::BoxError> {
  218    218   
        let _input = context
  219    219   
            .input()
  220    220   
            .downcast_ref::<ListExportsInput>()
  221    221   
            .ok_or("failed to downcast to ListExportsInput")?;
  222    222   
  223    223   
        let params = crate::config::endpoint::Params::builder().build().map_err(|err| {
  224    224   
            ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  225    225   
        })?;
         226  +
  226    227   
        cfg.interceptor_state()
  227    228   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         229  +
  228    230   
        ::std::result::Result::Ok(())
  229    231   
    }
  230    232   
}
  231    233   
  232    234   
// The get_* functions below are generated from JMESPath expressions in the
  233    235   
// operationContextParams trait. They target the operation's input shape.
  234    236   
  235    237   
/// Error type for the `ListExportsError` operation.
  236    238   
#[non_exhaustive]
  237    239   
#[derive(::std::fmt::Debug)]