Client Test

Client Test

rev. 645b1734ce74ebbc529fecda676baac60fe4d581 (ignoring whitespace)

Files changed:

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_global_tables.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::<ListGlobalTablesInput>()
  224    224   
            .ok_or("failed to downcast to ListGlobalTablesInput")?;
  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 `ListGlobalTablesError` operation.
  239    241   
#[non_exhaustive]
  240    242   
#[derive(::std::fmt::Debug)]

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

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

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/list_tags_of_resource.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::<ListTagsOfResourceInput>()
  226    226   
            .ok_or("failed to downcast to ListTagsOfResourceInput")?;
  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 `ListTagsOfResourceError` operation.
  241    243   
#[non_exhaustive]
  242    244   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/put_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::<PutItemInput>()
  215    215   
            .ok_or("failed to downcast to PutItemInput")?;
  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 `PutItemError` operation.
  230    232   
#[non_exhaustive]
  231    233   
#[derive(::std::fmt::Debug)]

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

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

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/restore_table_from_backup.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::<RestoreTableFromBackupInput>()
  226    226   
            .ok_or("failed to downcast to RestoreTableFromBackupInput")?;
  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 `RestoreTableFromBackupError` operation.
  241    243   
#[non_exhaustive]
  242    244   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/restore_table_to_point_in_time.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::<RestoreTableToPointInTimeInput>()
  232    232   
            .ok_or("failed to downcast to RestoreTableToPointInTimeInput")?;
  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 `RestoreTableToPointInTimeError` operation.
  247    249   
#[non_exhaustive]
  248    250   
#[derive(::std::fmt::Debug)]

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

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

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/tag_resource.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::<TagResourceInput>()
  221    221   
            .ok_or("failed to downcast to TagResourceInput")?;
  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 `TagResourceError` operation.
  236    238   
#[non_exhaustive]
  237    239   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/transact_get_items.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::<TransactGetItemsInput>()
  224    224   
            .ok_or("failed to downcast to TransactGetItemsInput")?;
  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 `TransactGetItemsError` operation.
  239    241   
#[non_exhaustive]
  240    242   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/transact_write_items.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::<TransactWriteItemsInput>()
  232    232   
            .ok_or("failed to downcast to TransactWriteItemsInput")?;
  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 `TransactWriteItemsError` operation.
  247    249   
#[non_exhaustive]
  248    250   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/untag_resource.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::<UntagResourceInput>()
  221    221   
            .ok_or("failed to downcast to UntagResourceInput")?;
  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 `UntagResourceError` operation.
  236    238   
#[non_exhaustive]
  237    239   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/update_continuous_backups.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::<UpdateContinuousBackupsInput>()
  226    226   
            .ok_or("failed to downcast to UpdateContinuousBackupsInput")?;
  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 `UpdateContinuousBackupsError` operation.
  241    243   
#[non_exhaustive]
  242    244   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/update_contributor_insights.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::<UpdateContributorInsightsInput>()
  232    232   
            .ok_or("failed to downcast to UpdateContributorInsightsInput")?;
  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 `UpdateContributorInsightsError` operation.
  247    249   
#[non_exhaustive]
  248    250   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/update_global_table.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::<UpdateGlobalTableInput>()
  224    224   
            .ok_or("failed to downcast to UpdateGlobalTableInput")?;
  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 `UpdateGlobalTableError` operation.
  239    241   
#[non_exhaustive]
  240    242   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/codegen-client-test/dynamo/rust-client-codegen/src/operation/update_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::<UpdateGlobalTableSettingsInput>()
  232    232   
            .ok_or("failed to downcast to UpdateGlobalTableSettingsInput")?;
  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 `UpdateGlobalTableSettingsError` operation.
  247    249   
#[non_exhaustive]
  248    250   
#[derive(::std::fmt::Debug)]