AWS SDK

AWS SDK

rev. 27102829f69b2cfe3a9ca9e69ae64d1ea40f9865 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/stop_configuration_recorder.rs

@@ -227,227 +288,290 @@
  247    247   
  248    248   
        let params = crate::config::endpoint::Params::builder()
  249    249   
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
  250    250   
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
  251    251   
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
  252    252   
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
  253    253   
            .build()
  254    254   
            .map_err(|err| {
  255    255   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  256    256   
            })?;
         257  +
  257    258   
        cfg.interceptor_state()
  258    259   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         260  +
  259    261   
        ::std::result::Result::Ok(())
  260    262   
    }
  261    263   
}
  262    264   
  263    265   
// The get_* functions below are generated from JMESPath expressions in the
  264    266   
// operationContextParams trait. They target the operation's input shape.
  265    267   
  266    268   
/// Error type for the `StopConfigurationRecorderError` operation.
  267    269   
#[non_exhaustive]
  268    270   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/tag_resource.rs

@@ -219,219 +280,282 @@
  239    239   
  240    240   
        let params = crate::config::endpoint::Params::builder()
  241    241   
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
  242    242   
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
  243    243   
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
  244    244   
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
  245    245   
            .build()
  246    246   
            .map_err(|err| {
  247    247   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  248    248   
            })?;
         249  +
  249    250   
        cfg.interceptor_state()
  250    251   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         252  +
  251    253   
        ::std::result::Result::Ok(())
  252    254   
    }
  253    255   
}
  254    256   
  255    257   
// The get_* functions below are generated from JMESPath expressions in the
  256    258   
// operationContextParams trait. They target the operation's input shape.
  257    259   
  258    260   
/// Error type for the `TagResourceError` operation.
  259    261   
#[non_exhaustive]
  260    262   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/config/src/operation/untag_resource.rs

@@ -219,219 +280,282 @@
  239    239   
  240    240   
        let params = crate::config::endpoint::Params::builder()
  241    241   
            .set_region(cfg.load::<::aws_types::region::Region>().map(|r| r.as_ref().to_owned()))
  242    242   
            .set_use_dual_stack(cfg.load::<::aws_types::endpoint_config::UseDualStack>().map(|ty| ty.0))
  243    243   
            .set_use_fips(cfg.load::<::aws_types::endpoint_config::UseFips>().map(|ty| ty.0))
  244    244   
            .set_endpoint(cfg.load::<::aws_types::endpoint_config::EndpointUrl>().map(|ty| ty.0.clone()))
  245    245   
            .build()
  246    246   
            .map_err(|err| {
  247    247   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  248    248   
            })?;
         249  +
  249    250   
        cfg.interceptor_state()
  250    251   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         252  +
  251    253   
        ::std::result::Result::Ok(())
  252    254   
    }
  253    255   
}
  254    256   
  255    257   
// The get_* functions below are generated from JMESPath expressions in the
  256    258   
// operationContextParams trait. They target the operation's input shape.
  257    259   
  258    260   
/// Error type for the `UntagResourceError` operation.
  259    261   
#[non_exhaustive]
  260    262   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/Cargo.toml

@@ -1,1 +114,114 @@
    9      9   
repository = "https://github.com/awslabs/aws-sdk-rust"
   10     10   
rust-version = "1.86.0"
   11     11   
readme = "README.md"
   12     12   
[package.metadata.smithy]
   13     13   
codegen-version = "ci"
   14     14   
[package.metadata.docs.rs]
   15     15   
all-features = true
   16     16   
targets = ["x86_64-unknown-linux-gnu"]
   17     17   
[dependencies.aws-credential-types]
   18     18   
path = "../aws-credential-types"
   19         -
version = "1.2.6"
          19  +
version = "1.2.7"
   20     20   
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23         -
version = "1.5.10"
          23  +
version = "1.5.11"
   24     24   
   25     25   
[dependencies.aws-smithy-async]
   26     26   
path = "../aws-smithy-async"
   27     27   
version = "1.2.5"
   28     28   
   29     29   
[dependencies.aws-smithy-http]
   30     30   
path = "../aws-smithy-http"
   31     31   
version = "0.62.3"
   32     32   
   33     33   
[dependencies.aws-smithy-json]
   34     34   
path = "../aws-smithy-json"
   35     35   
version = "0.61.5"
   36     36   
   37     37   
[dependencies.aws-smithy-runtime]
   38     38   
path = "../aws-smithy-runtime"
   39     39   
features = ["client"]
   40     40   
version = "1.9.2"
   41     41   
   42     42   
[dependencies.aws-smithy-runtime-api]
   43     43   
path = "../aws-smithy-runtime-api"
   44     44   
features = ["client", "http-02x"]
   45     45   
version = "1.9.0"
   46     46   
   47     47   
[dependencies.aws-smithy-types]
   48     48   
path = "../aws-smithy-types"
   49     49   
version = "1.3.2"
   50     50   
   51     51   
[dependencies.aws-types]
   52     52   
path = "../aws-types"
   53     53   
version = "1.3.8"
   54     54   
   55     55   
[dependencies.bytes]
   56     56   
version = "1.4.0"
   57     57   
   58     58   
[dependencies.fastrand]
   59     59   
version = "2.0.0"
   60     60   
   61     61   
[dependencies.http]
   62     62   
version = "0.2.9"
   63     63   
   64     64   
[dependencies.regex-lite]
   65     65   
version = "0.1.5"
   66     66   
   67     67   
[dependencies.tracing]
   68     68   
version = "0.1"
   69     69   
[dev-dependencies.approx]
   70     70   
version = "0.5.1"
   71     71   
   72     72   
[dev-dependencies.aws-config]
   73     73   
path = "../aws-config"
   74     74   
version = "1.8.7"
   75     75   
   76     76   
[dev-dependencies.aws-credential-types]
   77     77   
path = "../aws-credential-types"
   78     78   
features = ["test-util"]
   79         -
version = "1.2.6"
          79  +
version = "1.2.7"
   80     80   
   81     81   
[dev-dependencies.aws-runtime]
   82     82   
path = "../aws-runtime"
   83     83   
features = ["test-util"]
   84         -
version = "1.5.10"
          84  +
version = "1.5.11"
   85     85   
   86     86   
[dev-dependencies.aws-smithy-async]
   87     87   
path = "../aws-smithy-async"
   88     88   
features = ["test-util"]
   89     89   
version = "1.2.5"
   90     90   
   91     91   
[dev-dependencies.aws-smithy-http-client]
   92     92   
path = "../aws-smithy-http-client"
   93     93   
features = ["test-util", "wire-mock"]
   94     94   
version = "1.1.1"

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/batch_execute_statement.rs

@@ -227,227 +288,315 @@
  247    247   
            .set_account_id_endpoint_mode(::std::option::Option::Some(
  248    248   
                cfg.load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
  249    249   
                    .cloned()
  250    250   
                    .unwrap_or_default()
  251    251   
                    .to_string(),
  252    252   
            ))
  253    253   
            .build()
  254    254   
            .map_err(|err| {
  255    255   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  256    256   
            })?;
         257  +
         258  +
        match cfg
         259  +
            .load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
         260  +
            .cloned()
         261  +
            .unwrap_or_default()
         262  +
        {
         263  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Preferred => {
         264  +
                cfg.interceptor_state()
         265  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModePreferred);
         266  +
            }
         267  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Required => {
         268  +
                cfg.interceptor_state()
         269  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeRequired);
         270  +
            }
         271  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Disabled => {
         272  +
                cfg.interceptor_state()
         273  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeDisabled);
         274  +
            }
         275  +
            otherwise => {
         276  +
                ::tracing::warn!(
         277  +
                    "Attempted to track an SDK feature for `{otherwise:?}`, which is not recognized in the current version of the SDK. \
         278  +
                                            Consider upgrading to the latest version to ensure that it is properly tracked."
         279  +
                );
         280  +
            }
         281  +
        }
         282  +
  257    283   
        cfg.interceptor_state()
  258    284   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         285  +
  259    286   
        ::std::result::Result::Ok(())
  260    287   
    }
  261    288   
}
  262    289   
  263    290   
// The get_* functions below are generated from JMESPath expressions in the
  264    291   
// operationContextParams trait. They target the operation's input shape.
  265    292   
  266    293   
/// Error type for the `BatchExecuteStatementError` operation.
  267    294   
#[non_exhaustive]
  268    295   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/batch_get_item.rs

@@ -223,223 +284,311 @@
  243    243   
                cfg.load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
  244    244   
                    .cloned()
  245    245   
                    .unwrap_or_default()
  246    246   
                    .to_string(),
  247    247   
            ))
  248    248   
            .set_resource_arn_list(get_resource_arn_list(_input))
  249    249   
            .build()
  250    250   
            .map_err(|err| {
  251    251   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  252    252   
            })?;
         253  +
         254  +
        match cfg
         255  +
            .load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
         256  +
            .cloned()
         257  +
            .unwrap_or_default()
         258  +
        {
         259  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Preferred => {
         260  +
                cfg.interceptor_state()
         261  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModePreferred);
         262  +
            }
         263  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Required => {
         264  +
                cfg.interceptor_state()
         265  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeRequired);
         266  +
            }
         267  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Disabled => {
         268  +
                cfg.interceptor_state()
         269  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeDisabled);
         270  +
            }
         271  +
            otherwise => {
         272  +
                ::tracing::warn!(
         273  +
                    "Attempted to track an SDK feature for `{otherwise:?}`, which is not recognized in the current version of the SDK. \
         274  +
                                            Consider upgrading to the latest version to ensure that it is properly tracked."
         275  +
                );
         276  +
            }
         277  +
        }
         278  +
  253    279   
        cfg.interceptor_state()
  254    280   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         281  +
  255    282   
        ::std::result::Result::Ok(())
  256    283   
    }
  257    284   
}
  258    285   
  259    286   
// The get_* functions below are generated from JMESPath expressions in the
  260    287   
// operationContextParams trait. They target the operation's input shape.
  261    288   
  262    289   
// Generated from JMESPath Expression: keys(RequestItems)
  263    290   
fn get_resource_arn_list(input: &crate::operation::batch_get_item::BatchGetItemInput) -> Option<::std::vec::Vec<::std::string::String>> {
  264    291   
    let _fld_2 = input.request_items.as_ref()?;

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/batch_write_item.rs

@@ -226,226 +287,314 @@
  246    246   
                cfg.load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
  247    247   
                    .cloned()
  248    248   
                    .unwrap_or_default()
  249    249   
                    .to_string(),
  250    250   
            ))
  251    251   
            .set_resource_arn_list(get_resource_arn_list(_input))
  252    252   
            .build()
  253    253   
            .map_err(|err| {
  254    254   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  255    255   
            })?;
         256  +
         257  +
        match cfg
         258  +
            .load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
         259  +
            .cloned()
         260  +
            .unwrap_or_default()
         261  +
        {
         262  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Preferred => {
         263  +
                cfg.interceptor_state()
         264  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModePreferred);
         265  +
            }
         266  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Required => {
         267  +
                cfg.interceptor_state()
         268  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeRequired);
         269  +
            }
         270  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Disabled => {
         271  +
                cfg.interceptor_state()
         272  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeDisabled);
         273  +
            }
         274  +
            otherwise => {
         275  +
                ::tracing::warn!(
         276  +
                    "Attempted to track an SDK feature for `{otherwise:?}`, which is not recognized in the current version of the SDK. \
         277  +
                                            Consider upgrading to the latest version to ensure that it is properly tracked."
         278  +
                );
         279  +
            }
         280  +
        }
         281  +
  256    282   
        cfg.interceptor_state()
  257    283   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         284  +
  258    285   
        ::std::result::Result::Ok(())
  259    286   
    }
  260    287   
}
  261    288   
  262    289   
// The get_* functions below are generated from JMESPath expressions in the
  263    290   
// operationContextParams trait. They target the operation's input shape.
  264    291   
  265    292   
// Generated from JMESPath Expression: keys(RequestItems)
  266    293   
fn get_resource_arn_list(input: &crate::operation::batch_write_item::BatchWriteItemInput) -> Option<::std::vec::Vec<::std::string::String>> {
  267    294   
    let _fld_2 = input.request_items.as_ref()?;

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/create_backup.rs

@@ -229,229 +290,317 @@
  249    249   
                _input
  250    250   
                    .table_name
  251    251   
                    .clone()
  252    252   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  253    253   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("table_name", "A required field was not set"))?,
  254    254   
            ))
  255    255   
            .build()
  256    256   
            .map_err(|err| {
  257    257   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  258    258   
            })?;
         259  +
         260  +
        match cfg
         261  +
            .load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
         262  +
            .cloned()
         263  +
            .unwrap_or_default()
         264  +
        {
         265  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Preferred => {
         266  +
                cfg.interceptor_state()
         267  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModePreferred);
         268  +
            }
         269  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Required => {
         270  +
                cfg.interceptor_state()
         271  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeRequired);
         272  +
            }
         273  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Disabled => {
         274  +
                cfg.interceptor_state()
         275  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeDisabled);
         276  +
            }
         277  +
            otherwise => {
         278  +
                ::tracing::warn!(
         279  +
                    "Attempted to track an SDK feature for `{otherwise:?}`, which is not recognized in the current version of the SDK. \
         280  +
                                            Consider upgrading to the latest version to ensure that it is properly tracked."
         281  +
                );
         282  +
            }
         283  +
        }
         284  +
  259    285   
        cfg.interceptor_state()
  260    286   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         287  +
  261    288   
        ::std::result::Result::Ok(())
  262    289   
    }
  263    290   
}
  264    291   
  265    292   
// The get_* functions below are generated from JMESPath expressions in the
  266    293   
// operationContextParams trait. They target the operation's input shape.
  267    294   
  268    295   
/// Error type for the `CreateBackupError` operation.
  269    296   
#[non_exhaustive]
  270    297   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/create_global_table.rs

@@ -234,234 +295,322 @@
  254    254   
                    .clone()
  255    255   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  256    256   
                    .ok_or_else(|| {
  257    257   
                        ::aws_smithy_types::error::operation::BuildError::missing_field("global_table_name", "A required field was not set")
  258    258   
                    })?,
  259    259   
            ))
  260    260   
            .build()
  261    261   
            .map_err(|err| {
  262    262   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  263    263   
            })?;
         264  +
         265  +
        match cfg
         266  +
            .load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
         267  +
            .cloned()
         268  +
            .unwrap_or_default()
         269  +
        {
         270  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Preferred => {
         271  +
                cfg.interceptor_state()
         272  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModePreferred);
         273  +
            }
         274  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Required => {
         275  +
                cfg.interceptor_state()
         276  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeRequired);
         277  +
            }
         278  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Disabled => {
         279  +
                cfg.interceptor_state()
         280  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeDisabled);
         281  +
            }
         282  +
            otherwise => {
         283  +
                ::tracing::warn!(
         284  +
                    "Attempted to track an SDK feature for `{otherwise:?}`, which is not recognized in the current version of the SDK. \
         285  +
                                            Consider upgrading to the latest version to ensure that it is properly tracked."
         286  +
                );
         287  +
            }
         288  +
        }
         289  +
  264    290   
        cfg.interceptor_state()
  265    291   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         292  +
  266    293   
        ::std::result::Result::Ok(())
  267    294   
    }
  268    295   
}
  269    296   
  270    297   
// The get_* functions below are generated from JMESPath expressions in the
  271    298   
// operationContextParams trait. They target the operation's input shape.
  272    299   
  273    300   
/// Error type for the `CreateGlobalTableError` operation.
  274    301   
#[non_exhaustive]
  275    302   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/create_table.rs

@@ -229,229 +290,317 @@
  249    249   
                _input
  250    250   
                    .table_name
  251    251   
                    .clone()
  252    252   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  253    253   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("table_name", "A required field was not set"))?,
  254    254   
            ))
  255    255   
            .build()
  256    256   
            .map_err(|err| {
  257    257   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  258    258   
            })?;
         259  +
         260  +
        match cfg
         261  +
            .load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
         262  +
            .cloned()
         263  +
            .unwrap_or_default()
         264  +
        {
         265  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Preferred => {
         266  +
                cfg.interceptor_state()
         267  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModePreferred);
         268  +
            }
         269  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Required => {
         270  +
                cfg.interceptor_state()
         271  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeRequired);
         272  +
            }
         273  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Disabled => {
         274  +
                cfg.interceptor_state()
         275  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeDisabled);
         276  +
            }
         277  +
            otherwise => {
         278  +
                ::tracing::warn!(
         279  +
                    "Attempted to track an SDK feature for `{otherwise:?}`, which is not recognized in the current version of the SDK. \
         280  +
                                            Consider upgrading to the latest version to ensure that it is properly tracked."
         281  +
                );
         282  +
            }
         283  +
        }
         284  +
  259    285   
        cfg.interceptor_state()
  260    286   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         287  +
  261    288   
        ::std::result::Result::Ok(())
  262    289   
    }
  263    290   
}
  264    291   
  265    292   
// The get_* functions below are generated from JMESPath expressions in the
  266    293   
// operationContextParams trait. They target the operation's input shape.
  267    294   
  268    295   
/// Error type for the `CreateTableError` operation.
  269    296   
#[non_exhaustive]
  270    297   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/delete_backup.rs

@@ -229,229 +290,317 @@
  249    249   
                _input
  250    250   
                    .backup_arn
  251    251   
                    .clone()
  252    252   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  253    253   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("backup_arn", "A required field was not set"))?,
  254    254   
            ))
  255    255   
            .build()
  256    256   
            .map_err(|err| {
  257    257   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  258    258   
            })?;
         259  +
         260  +
        match cfg
         261  +
            .load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
         262  +
            .cloned()
         263  +
            .unwrap_or_default()
         264  +
        {
         265  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Preferred => {
         266  +
                cfg.interceptor_state()
         267  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModePreferred);
         268  +
            }
         269  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Required => {
         270  +
                cfg.interceptor_state()
         271  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeRequired);
         272  +
            }
         273  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Disabled => {
         274  +
                cfg.interceptor_state()
         275  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeDisabled);
         276  +
            }
         277  +
            otherwise => {
         278  +
                ::tracing::warn!(
         279  +
                    "Attempted to track an SDK feature for `{otherwise:?}`, which is not recognized in the current version of the SDK. \
         280  +
                                            Consider upgrading to the latest version to ensure that it is properly tracked."
         281  +
                );
         282  +
            }
         283  +
        }
         284  +
  259    285   
        cfg.interceptor_state()
  260    286   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         287  +
  261    288   
        ::std::result::Result::Ok(())
  262    289   
    }
  263    290   
}
  264    291   
  265    292   
// The get_* functions below are generated from JMESPath expressions in the
  266    293   
// operationContextParams trait. They target the operation's input shape.
  267    294   
  268    295   
/// Error type for the `DeleteBackupError` operation.
  269    296   
#[non_exhaustive]
  270    297   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/delete_item.rs

@@ -227,227 +288,315 @@
  247    247   
                _input
  248    248   
                    .table_name
  249    249   
                    .clone()
  250    250   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  251    251   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("table_name", "A required field was not set"))?,
  252    252   
            ))
  253    253   
            .build()
  254    254   
            .map_err(|err| {
  255    255   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  256    256   
            })?;
         257  +
         258  +
        match cfg
         259  +
            .load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
         260  +
            .cloned()
         261  +
            .unwrap_or_default()
         262  +
        {
         263  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Preferred => {
         264  +
                cfg.interceptor_state()
         265  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModePreferred);
         266  +
            }
         267  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Required => {
         268  +
                cfg.interceptor_state()
         269  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeRequired);
         270  +
            }
         271  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Disabled => {
         272  +
                cfg.interceptor_state()
         273  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeDisabled);
         274  +
            }
         275  +
            otherwise => {
         276  +
                ::tracing::warn!(
         277  +
                    "Attempted to track an SDK feature for `{otherwise:?}`, which is not recognized in the current version of the SDK. \
         278  +
                                            Consider upgrading to the latest version to ensure that it is properly tracked."
         279  +
                );
         280  +
            }
         281  +
        }
         282  +
  257    283   
        cfg.interceptor_state()
  258    284   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         285  +
  259    286   
        ::std::result::Result::Ok(())
  260    287   
    }
  261    288   
}
  262    289   
  263    290   
// The get_* functions below are generated from JMESPath expressions in the
  264    291   
// operationContextParams trait. They target the operation's input shape.
  265    292   
  266    293   
/// Error type for the `DeleteItemError` operation.
  267    294   
#[non_exhaustive]
  268    295   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/delete_resource_policy.rs

@@ -234,234 +295,322 @@
  254    254   
                _input
  255    255   
                    .resource_arn
  256    256   
                    .clone()
  257    257   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  258    258   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("resource_arn", "A required field was not set"))?,
  259    259   
            ))
  260    260   
            .build()
  261    261   
            .map_err(|err| {
  262    262   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  263    263   
            })?;
         264  +
         265  +
        match cfg
         266  +
            .load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
         267  +
            .cloned()
         268  +
            .unwrap_or_default()
         269  +
        {
         270  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Preferred => {
         271  +
                cfg.interceptor_state()
         272  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModePreferred);
         273  +
            }
         274  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Required => {
         275  +
                cfg.interceptor_state()
         276  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeRequired);
         277  +
            }
         278  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Disabled => {
         279  +
                cfg.interceptor_state()
         280  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeDisabled);
         281  +
            }
         282  +
            otherwise => {
         283  +
                ::tracing::warn!(
         284  +
                    "Attempted to track an SDK feature for `{otherwise:?}`, which is not recognized in the current version of the SDK. \
         285  +
                                            Consider upgrading to the latest version to ensure that it is properly tracked."
         286  +
                );
         287  +
            }
         288  +
        }
         289  +
  264    290   
        cfg.interceptor_state()
  265    291   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         292  +
  266    293   
        ::std::result::Result::Ok(())
  267    294   
    }
  268    295   
}
  269    296   
  270    297   
// The get_* functions below are generated from JMESPath expressions in the
  271    298   
// operationContextParams trait. They target the operation's input shape.
  272    299   
  273    300   
/// Error type for the `DeleteResourcePolicyError` operation.
  274    301   
#[non_exhaustive]
  275    302   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/delete_table.rs

@@ -229,229 +290,317 @@
  249    249   
                _input
  250    250   
                    .table_name
  251    251   
                    .clone()
  252    252   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  253    253   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("table_name", "A required field was not set"))?,
  254    254   
            ))
  255    255   
            .build()
  256    256   
            .map_err(|err| {
  257    257   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  258    258   
            })?;
         259  +
         260  +
        match cfg
         261  +
            .load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
         262  +
            .cloned()
         263  +
            .unwrap_or_default()
         264  +
        {
         265  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Preferred => {
         266  +
                cfg.interceptor_state()
         267  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModePreferred);
         268  +
            }
         269  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Required => {
         270  +
                cfg.interceptor_state()
         271  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeRequired);
         272  +
            }
         273  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Disabled => {
         274  +
                cfg.interceptor_state()
         275  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeDisabled);
         276  +
            }
         277  +
            otherwise => {
         278  +
                ::tracing::warn!(
         279  +
                    "Attempted to track an SDK feature for `{otherwise:?}`, which is not recognized in the current version of the SDK. \
         280  +
                                            Consider upgrading to the latest version to ensure that it is properly tracked."
         281  +
                );
         282  +
            }
         283  +
        }
         284  +
  259    285   
        cfg.interceptor_state()
  260    286   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         287  +
  261    288   
        ::std::result::Result::Ok(())
  262    289   
    }
  263    290   
}
  264    291   
  265    292   
// The get_* functions below are generated from JMESPath expressions in the
  266    293   
// operationContextParams trait. They target the operation's input shape.
  267    294   
  268    295   
/// Error type for the `DeleteTableError` operation.
  269    296   
#[non_exhaustive]
  270    297   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/describe_backup.rs

@@ -232,232 +293,320 @@
  252    252   
                _input
  253    253   
                    .backup_arn
  254    254   
                    .clone()
  255    255   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  256    256   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("backup_arn", "A required field was not set"))?,
  257    257   
            ))
  258    258   
            .build()
  259    259   
            .map_err(|err| {
  260    260   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  261    261   
            })?;
         262  +
         263  +
        match cfg
         264  +
            .load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
         265  +
            .cloned()
         266  +
            .unwrap_or_default()
         267  +
        {
         268  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Preferred => {
         269  +
                cfg.interceptor_state()
         270  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModePreferred);
         271  +
            }
         272  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Required => {
         273  +
                cfg.interceptor_state()
         274  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeRequired);
         275  +
            }
         276  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Disabled => {
         277  +
                cfg.interceptor_state()
         278  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeDisabled);
         279  +
            }
         280  +
            otherwise => {
         281  +
                ::tracing::warn!(
         282  +
                    "Attempted to track an SDK feature for `{otherwise:?}`, which is not recognized in the current version of the SDK. \
         283  +
                                            Consider upgrading to the latest version to ensure that it is properly tracked."
         284  +
                );
         285  +
            }
         286  +
        }
         287  +
  262    288   
        cfg.interceptor_state()
  263    289   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         290  +
  264    291   
        ::std::result::Result::Ok(())
  265    292   
    }
  266    293   
}
  267    294   
  268    295   
// The get_* functions below are generated from JMESPath expressions in the
  269    296   
// operationContextParams trait. They target the operation's input shape.
  270    297   
  271    298   
/// Error type for the `DescribeBackupError` operation.
  272    299   
#[non_exhaustive]
  273    300   
#[derive(::std::fmt::Debug)]

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/describe_continuous_backups.rs

@@ -240,240 +301,328 @@
  260    260   
                _input
  261    261   
                    .table_name
  262    262   
                    .clone()
  263    263   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  264    264   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("table_name", "A required field was not set"))?,
  265    265   
            ))
  266    266   
            .build()
  267    267   
            .map_err(|err| {
  268    268   
                ::aws_smithy_runtime_api::client::interceptors::error::ContextAttachedError::new("endpoint params could not be built", err)
  269    269   
            })?;
         270  +
         271  +
        match cfg
         272  +
            .load::<::aws_types::endpoint_config::AccountIdEndpointMode>()
         273  +
            .cloned()
         274  +
            .unwrap_or_default()
         275  +
        {
         276  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Preferred => {
         277  +
                cfg.interceptor_state()
         278  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModePreferred);
         279  +
            }
         280  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Required => {
         281  +
                cfg.interceptor_state()
         282  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeRequired);
         283  +
            }
         284  +
            ::aws_types::endpoint_config::AccountIdEndpointMode::Disabled => {
         285  +
                cfg.interceptor_state()
         286  +
                    .store_append(::aws_runtime::sdk_feature::AwsSdkFeature::AccountIdModeDisabled);
         287  +
            }
         288  +
            otherwise => {
         289  +
                ::tracing::warn!(
         290  +
                    "Attempted to track an SDK feature for `{otherwise:?}`, which is not recognized in the current version of the SDK. \
         291  +
                                            Consider upgrading to the latest version to ensure that it is properly tracked."
         292  +
                );
         293  +
            }
         294  +
        }
         295  +
  270    296   
        cfg.interceptor_state()
  271    297   
            .store_put(::aws_smithy_runtime_api::client::endpoint::EndpointResolverParams::new(params));
         298  +
  272    299   
        ::std::result::Result::Ok(())
  273    300   
    }
  274    301   
}
  275    302   
  276    303   
// The get_* functions below are generated from JMESPath expressions in the
  277    304   
// operationContextParams trait. They target the operation's input shape.
  278    305   
  279    306   
/// Error type for the `DescribeContinuousBackupsError` operation.
  280    307   
#[non_exhaustive]
  281    308   
#[derive(::std::fmt::Debug)]