AWS SDK

AWS SDK

rev. 645b1734ce74ebbc529fecda676baac60fe4d581

Files changed:

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

@@ -223,223 +284,311 @@
  243    243   
                _input
  244    244   
                    .table_name
  245    245   
                    .clone()
  246    246   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  247    247   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("table_name", "A required field was not set"))?,
  248    248   
            ))
  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   
/// Error type for the `GetItemError` operation.
  263    290   
#[non_exhaustive]
  264    291   
#[derive(::std::fmt::Debug)]

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

@@ -232,232 +293,320 @@
  252    252   
                _input
  253    253   
                    .resource_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("resource_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 `GetResourcePolicyError` operation.
  272    299   
#[non_exhaustive]
  273    300   
#[derive(::std::fmt::Debug)]

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

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

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/list_backups.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(_input.table_name.clone())
  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   
/// Error type for the `ListBackupsError` operation.
  263    290   
#[non_exhaustive]
  264    291   
#[derive(::std::fmt::Debug)]

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

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

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/list_exports.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(_input.table_arn.clone())
  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   
/// Error type for the `ListExportsError` operation.
  263    290   
#[non_exhaustive]
  264    291   
#[derive(::std::fmt::Debug)]

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

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

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/list_imports.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(_input.table_arn.clone())
  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   
/// Error type for the `ListImportsError` operation.
  263    290   
#[non_exhaustive]
  264    291   
#[derive(::std::fmt::Debug)]

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

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

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/operation/list_tags_of_resource.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 `ListTagsOfResourceError` operation.
  274    301   
#[non_exhaustive]
  275    302   
#[derive(::std::fmt::Debug)]

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

@@ -223,223 +284,311 @@
  243    243   
                _input
  244    244   
                    .table_name
  245    245   
                    .clone()
  246    246   
                    .filter(|f| !AsRef::<str>::as_ref(f).trim().is_empty())
  247    247   
                    .ok_or_else(|| ::aws_smithy_types::error::operation::BuildError::missing_field("table_name", "A required field was not set"))?,
  248    248   
            ))
  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   
/// Error type for the `PutItemError` operation.
  263    290   
#[non_exhaustive]
  264    291   
#[derive(::std::fmt::Debug)]

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

@@ -232,232 +293,320 @@
  252    252   
                _input
  253    253   
                    .resource_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("resource_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 `PutResourcePolicyError` operation.
  272    299   
#[non_exhaustive]
  273    300   
#[derive(::std::fmt::Debug)]

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

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

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

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

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

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

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

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