AWS SDK

AWS SDK

rev. 000b37a512bd3be1a17b4f3d5bf60e5446dbc2dd (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3control/src/protocol_serde/shape_update_storage_lens_group.rs

@@ -12,12 +67,69 @@
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_update_storage_lens_group_headers(
   37     37   
    input: &crate::operation::update_storage_lens_group::UpdateStorageLensGroupInput,
   38     38   
    mut builder: ::http::request::Builder,
   39     39   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   40     40   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   41     41   
        let formatted_2 = inner_1.as_str();
          42  +
        if !formatted_2.is_empty() {
   42     43   
            let header_value = formatted_2;
   43     44   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   44     45   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   45     46   
                    "account_id",
   46     47   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   47     48   
                )
   48     49   
            })?;
   49     50   
            builder = builder.header("x-amz-account-id", header_value);
   50     51   
        }
          52  +
    }
   51     53   
    Ok(builder)
   52     54   
}
   53     55   
   54     56   
pub fn ser_update_storage_lens_group_op_input(
   55     57   
    input: &crate::operation::update_storage_lens_group::UpdateStorageLensGroupInput,
   56     58   
) -> Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   57     59   
    let mut out = String::new();
   58     60   
    {
   59     61   
        let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);
   60     62   
        #[allow(unused_mut)]

tmp-codegen-diff/aws-sdk/sdk/sso/src/protocol_serde/shape_get_role_credentials.rs

@@ -82,82 +150,152 @@
  102    102   
        output.build()
  103    103   
    })
  104    104   
}
  105    105   
  106    106   
pub fn ser_get_role_credentials_headers(
  107    107   
    input: &crate::operation::get_role_credentials::GetRoleCredentialsInput,
  108    108   
    mut builder: ::http::request::Builder,
  109    109   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  110    110   
    if let ::std::option::Option::Some(inner_1) = &input.access_token {
  111    111   
        let formatted_2 = inner_1.as_str();
         112  +
        if !formatted_2.is_empty() {
  112    113   
            let header_value = formatted_2;
  113    114   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  114    115   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  115    116   
                    "access_token",
  116    117   
                    format!("`{}` cannot be used as a header value: {}", &"*** Sensitive Data Redacted ***", err),
  117    118   
                )
  118    119   
            })?;
  119    120   
            builder = builder.header("x-amz-sso_bearer_token", header_value);
  120    121   
        }
         122  +
    }
  121    123   
    Ok(builder)
  122    124   
}
  123    125   
  124    126   
pub(crate) fn de_get_role_credentials(
  125    127   
    value: &[u8],
  126    128   
    mut builder: crate::operation::get_role_credentials::builders::GetRoleCredentialsOutputBuilder,
  127    129   
) -> Result<crate::operation::get_role_credentials::builders::GetRoleCredentialsOutputBuilder, ::aws_smithy_json::deserialize::error::DeserializeError>
  128    130   
{
  129    131   
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value)).peekable();
  130    132   
    let tokens = &mut tokens_owned;

tmp-codegen-diff/aws-sdk/sdk/sso/src/protocol_serde/shape_list_account_roles.rs

@@ -76,76 +144,146 @@
   96     96   
        output.build()
   97     97   
    })
   98     98   
}
   99     99   
  100    100   
pub fn ser_list_account_roles_headers(
  101    101   
    input: &crate::operation::list_account_roles::ListAccountRolesInput,
  102    102   
    mut builder: ::http::request::Builder,
  103    103   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  104    104   
    if let ::std::option::Option::Some(inner_1) = &input.access_token {
  105    105   
        let formatted_2 = inner_1.as_str();
         106  +
        if !formatted_2.is_empty() {
  106    107   
            let header_value = formatted_2;
  107    108   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  108    109   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  109    110   
                    "access_token",
  110    111   
                    format!("`{}` cannot be used as a header value: {}", &"*** Sensitive Data Redacted ***", err),
  111    112   
                )
  112    113   
            })?;
  113    114   
            builder = builder.header("x-amz-sso_bearer_token", header_value);
  114    115   
        }
         116  +
    }
  115    117   
    Ok(builder)
  116    118   
}
  117    119   
  118    120   
pub(crate) fn de_list_account_roles(
  119    121   
    value: &[u8],
  120    122   
    mut builder: crate::operation::list_account_roles::builders::ListAccountRolesOutputBuilder,
  121    123   
) -> Result<crate::operation::list_account_roles::builders::ListAccountRolesOutputBuilder, ::aws_smithy_json::deserialize::error::DeserializeError> {
  122    124   
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value)).peekable();
  123    125   
    let tokens = &mut tokens_owned;
  124    126   
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;

tmp-codegen-diff/aws-sdk/sdk/sso/src/protocol_serde/shape_list_accounts.rs

@@ -76,76 +144,146 @@
   96     96   
        output.build()
   97     97   
    })
   98     98   
}
   99     99   
  100    100   
pub fn ser_list_accounts_headers(
  101    101   
    input: &crate::operation::list_accounts::ListAccountsInput,
  102    102   
    mut builder: ::http::request::Builder,
  103    103   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  104    104   
    if let ::std::option::Option::Some(inner_1) = &input.access_token {
  105    105   
        let formatted_2 = inner_1.as_str();
         106  +
        if !formatted_2.is_empty() {
  106    107   
            let header_value = formatted_2;
  107    108   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  108    109   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  109    110   
                    "access_token",
  110    111   
                    format!("`{}` cannot be used as a header value: {}", &"*** Sensitive Data Redacted ***", err),
  111    112   
                )
  112    113   
            })?;
  113    114   
            builder = builder.header("x-amz-sso_bearer_token", header_value);
  114    115   
        }
         116  +
    }
  115    117   
    Ok(builder)
  116    118   
}
  117    119   
  118    120   
pub(crate) fn de_list_accounts(
  119    121   
    value: &[u8],
  120    122   
    mut builder: crate::operation::list_accounts::builders::ListAccountsOutputBuilder,
  121    123   
) -> Result<crate::operation::list_accounts::builders::ListAccountsOutputBuilder, ::aws_smithy_json::deserialize::error::DeserializeError> {
  122    124   
    let mut tokens_owned = ::aws_smithy_json::deserialize::json_token_iter(crate::protocol_serde::or_empty_doc(value)).peekable();
  123    125   
    let tokens = &mut tokens_owned;
  124    126   
    ::aws_smithy_json::deserialize::token::expect_start_object(tokens.next())?;

tmp-codegen-diff/aws-sdk/sdk/sso/src/protocol_serde/shape_logout.rs

@@ -59,59 +99,101 @@
   79     79   
        output.build()
   80     80   
    })
   81     81   
}
   82     82   
   83     83   
pub fn ser_logout_headers(
   84     84   
    input: &crate::operation::logout::LogoutInput,
   85     85   
    mut builder: ::http::request::Builder,
   86     86   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   87     87   
    if let ::std::option::Option::Some(inner_1) = &input.access_token {
   88     88   
        let formatted_2 = inner_1.as_str();
          89  +
        if !formatted_2.is_empty() {
   89     90   
            let header_value = formatted_2;
   90     91   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   91     92   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   92     93   
                    "access_token",
   93     94   
                    format!("`{}` cannot be used as a header value: {}", &"*** Sensitive Data Redacted ***", err),
   94     95   
                )
   95     96   
            })?;
   96     97   
            builder = builder.header("x-amz-sso_bearer_token", header_value);
   97     98   
        }
          99  +
    }
   98    100   
    Ok(builder)
   99    101   
}

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

@@ -48,48 +108,108 @@
   68     68   
version = "0.1.5"
   69     69   
   70     70   
[dependencies.tokio]
   71     71   
version = "1.23.1"
   72     72   
features = ["sync"]
   73     73   
   74     74   
[dependencies.tracing]
   75     75   
version = "0.1"
   76     76   
[dev-dependencies.aws-config]
   77     77   
path = "../aws-config"
   78         -
version = "1.5.9"
          78  +
version = "1.5.8"
   79     79   
   80     80   
[dev-dependencies.aws-credential-types]
   81     81   
path = "../aws-credential-types"
   82     82   
features = ["test-util"]
   83     83   
version = "1.2.1"
   84     84   
   85     85   
[dev-dependencies.aws-runtime]
   86     86   
path = "../aws-runtime"
   87     87   
features = ["test-util"]
   88     88   
version = "1.4.3"

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

@@ -48,48 +99,99 @@
   68     68   
version = "0.1.5"
   69     69   
   70     70   
[dependencies.tokio]
   71     71   
version = "1.23.1"
   72     72   
features = ["sync"]
   73     73   
   74     74   
[dependencies.tracing]
   75     75   
version = "0.1"
   76     76   
[dev-dependencies.aws-config]
   77     77   
path = "../aws-config"
   78         -
version = "1.5.9"
          78  +
version = "1.5.8"
   79     79   
   80     80   
[dev-dependencies.aws-credential-types]
   81     81   
path = "../aws-credential-types"
   82     82   
features = ["test-util"]
   83     83   
version = "1.2.1"
   84     84   
   85     85   
[dev-dependencies.aws-smithy-async]
   86     86   
path = "../aws-smithy-async"
   87     87   
features = ["test-util"]
   88     88   
version = "1.2.1"

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

@@ -1,1 +119,119 @@
   18     18   
path = "../aws-credential-types"
   19     19   
version = "1.2.1"
   20     20   
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23     23   
features = ["event-stream"]
   24     24   
version = "1.4.3"
   25     25   
   26     26   
[dependencies.aws-sigv4]
   27     27   
path = "../aws-sigv4"
   28         -
version = "1.2.5"
          28  +
version = "1.2.4"
   29     29   
   30     30   
[dependencies.aws-smithy-async]
   31     31   
path = "../aws-smithy-async"
   32     32   
version = "1.2.1"
   33     33   
   34     34   
[dependencies.aws-smithy-eventstream]
   35     35   
path = "../aws-smithy-eventstream"
   36     36   
version = "0.60.5"
   37     37   
   38     38   
[dependencies.aws-smithy-http]
   39     39   
path = "../aws-smithy-http"
   40     40   
features = ["event-stream"]
   41     41   
version = "0.60.11"
   42     42   
   43     43   
[dependencies.aws-smithy-json]
   44     44   
path = "../aws-smithy-json"
   45     45   
version = "0.60.7"
   46     46   
   47     47   
[dependencies.aws-smithy-runtime]
   48     48   
path = "../aws-smithy-runtime"
   49     49   
features = ["client"]
   50     50   
version = "1.7.3"
   51     51   
   52     52   
[dependencies.aws-smithy-runtime-api]
   53     53   
path = "../aws-smithy-runtime-api"
   54     54   
features = ["client", "http-02x"]
   55     55   
version = "1.7.2"
   56     56   
   57     57   
[dependencies.aws-smithy-types]
   58     58   
path = "../aws-smithy-types"
   59     59   
features = ["http-body-0-4-x"]
   60     60   
version = "1.2.8"
   61     61   
   62     62   
[dependencies.aws-types]
   63     63   
path = "../aws-types"
   64     64   
version = "1.3.3"
   65     65   
   66     66   
[dependencies.bytes]
   67     67   
version = "1.4.0"
   68     68   
   69     69   
[dependencies.http]
   70     70   
version = "0.2.9"
   71     71   
   72     72   
[dependencies.hyper]
   73     73   
version = "0.14.26"
   74     74   
features = ["stream"]
   75     75   
   76     76   
[dependencies.once_cell]
   77     77   
version = "1.16"
   78     78   
   79     79   
[dependencies.regex-lite]
   80     80   
version = "0.1.5"
   81     81   
   82     82   
[dependencies.tracing]
   83     83   
version = "0.1"
   84     84   
[dev-dependencies.async-stream]
   85     85   
version = "0.3.0"
   86     86   
   87     87   
[dev-dependencies.aws-config]
   88     88   
path = "../aws-config"
   89         -
version = "1.5.9"
          89  +
version = "1.5.8"
   90     90   
   91     91   
[dev-dependencies.aws-credential-types]
   92     92   
path = "../aws-credential-types"
   93     93   
features = ["test-util"]
   94     94   
version = "1.2.1"
   95     95   
   96     96   
[dev-dependencies.aws-runtime]
   97     97   
path = "../aws-runtime"
   98     98   
features = ["test-util"]
   99     99   
version = "1.4.3"

tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/src/protocol_serde/shape_start_call_analytics_stream_transcription.rs

@@ -245,245 +419,445 @@
  265    265   
        _ => crate::operation::start_call_analytics_stream_transcription::StartCallAnalyticsStreamTranscriptionError::generic(generic),
  266    266   
    })
  267    267   
}
  268    268   
  269    269   
pub fn ser_start_call_analytics_stream_transcription_headers(
  270    270   
    input: &crate::operation::start_call_analytics_stream_transcription::StartCallAnalyticsStreamTranscriptionInput,
  271    271   
    mut builder: ::http::request::Builder,
  272    272   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  273    273   
    if let ::std::option::Option::Some(inner_1) = &input.language_code {
  274    274   
        let formatted_2 = inner_1.as_str();
         275  +
        if !formatted_2.is_empty() {
  275    276   
            let header_value = formatted_2;
  276    277   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  277    278   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  278    279   
                    "language_code",
  279    280   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  280    281   
                )
  281    282   
            })?;
  282    283   
            builder = builder.header("x-amzn-transcribe-language-code", header_value);
  283    284   
        }
         285  +
    }
  284    286   
    if let ::std::option::Option::Some(inner_3) = &input.media_sample_rate_hertz {
  285    287   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_3);
  286    288   
        let formatted_4 = encoder.encode();
         289  +
        if !formatted_4.is_empty() {
  287    290   
            let header_value = formatted_4;
  288    291   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  289    292   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  290    293   
                    "media_sample_rate_hertz",
  291    294   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  292    295   
                )
  293    296   
            })?;
  294    297   
            builder = builder.header("x-amzn-transcribe-sample-rate", header_value);
  295    298   
        }
         299  +
    }
  296    300   
    if let ::std::option::Option::Some(inner_5) = &input.media_encoding {
  297    301   
        let formatted_6 = inner_5.as_str();
         302  +
        if !formatted_6.is_empty() {
  298    303   
            let header_value = formatted_6;
  299    304   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  300    305   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  301    306   
                    "media_encoding",
  302    307   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  303    308   
                )
  304    309   
            })?;
  305    310   
            builder = builder.header("x-amzn-transcribe-media-encoding", header_value);
  306    311   
        }
         312  +
    }
  307    313   
    if let ::std::option::Option::Some(inner_7) = &input.vocabulary_name {
  308    314   
        let formatted_8 = inner_7.as_str();
         315  +
        if !formatted_8.is_empty() {
  309    316   
            let header_value = formatted_8;
  310    317   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  311    318   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  312    319   
                    "vocabulary_name",
  313    320   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  314    321   
                )
  315    322   
            })?;
  316    323   
            builder = builder.header("x-amzn-transcribe-vocabulary-name", header_value);
  317    324   
        }
         325  +
    }
  318    326   
    if let ::std::option::Option::Some(inner_9) = &input.session_id {
  319    327   
        let formatted_10 = inner_9.as_str();
         328  +
        if !formatted_10.is_empty() {
  320    329   
            let header_value = formatted_10;
  321    330   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  322    331   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  323    332   
                    "session_id",
  324    333   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  325    334   
                )
  326    335   
            })?;
  327    336   
            builder = builder.header("x-amzn-transcribe-session-id", header_value);
  328    337   
        }
         338  +
    }
  329    339   
    if let ::std::option::Option::Some(inner_11) = &input.vocabulary_filter_name {
  330    340   
        let formatted_12 = inner_11.as_str();
         341  +
        if !formatted_12.is_empty() {
  331    342   
            let header_value = formatted_12;
  332    343   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  333    344   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  334    345   
                    "vocabulary_filter_name",
  335    346   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  336    347   
                )
  337    348   
            })?;
  338    349   
            builder = builder.header("x-amzn-transcribe-vocabulary-filter-name", header_value);
  339    350   
        }
         351  +
    }
  340    352   
    if let ::std::option::Option::Some(inner_13) = &input.vocabulary_filter_method {
  341    353   
        let formatted_14 = inner_13.as_str();
         354  +
        if !formatted_14.is_empty() {
  342    355   
            let header_value = formatted_14;
  343    356   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  344    357   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  345    358   
                    "vocabulary_filter_method",
  346    359   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  347    360   
                )
  348    361   
            })?;
  349    362   
            builder = builder.header("x-amzn-transcribe-vocabulary-filter-method", header_value);
  350    363   
        }
         364  +
    }
  351    365   
    if let ::std::option::Option::Some(inner_15) = &input.language_model_name {
  352    366   
        let formatted_16 = inner_15.as_str();
         367  +
        if !formatted_16.is_empty() {
  353    368   
            let header_value = formatted_16;
  354    369   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  355    370   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  356    371   
                    "language_model_name",
  357    372   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  358    373   
                )
  359    374   
            })?;
  360    375   
            builder = builder.header("x-amzn-transcribe-language-model-name", header_value);
  361    376   
        }
         377  +
    }
  362    378   
    if let ::std::option::Option::Some(inner_17) = &input.enable_partial_results_stabilization {
  363    379   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_17);
  364    380   
        let formatted_18 = encoder.encode();
         381  +
        if !formatted_18.is_empty() {
  365    382   
            let header_value = formatted_18;
  366    383   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  367    384   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  368    385   
                    "enable_partial_results_stabilization",
  369    386   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  370    387   
                )
  371    388   
            })?;
  372    389   
            builder = builder.header("x-amzn-transcribe-enable-partial-results-stabilization", header_value);
  373    390   
        }
         391  +
    }
  374    392   
    if let ::std::option::Option::Some(inner_19) = &input.partial_results_stability {
  375    393   
        let formatted_20 = inner_19.as_str();
         394  +
        if !formatted_20.is_empty() {
  376    395   
            let header_value = formatted_20;
  377    396   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  378    397   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  379    398   
                    "partial_results_stability",
  380    399   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  381    400   
                )
  382    401   
            })?;
  383    402   
            builder = builder.header("x-amzn-transcribe-partial-results-stability", header_value);
  384    403   
        }
         404  +
    }
  385    405   
    if let ::std::option::Option::Some(inner_21) = &input.content_identification_type {
  386    406   
        let formatted_22 = inner_21.as_str();
         407  +
        if !formatted_22.is_empty() {
  387    408   
            let header_value = formatted_22;
  388    409   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  389    410   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  390    411   
                    "content_identification_type",
  391    412   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  392    413   
                )
  393    414   
            })?;
  394    415   
            builder = builder.header("x-amzn-transcribe-content-identification-type", header_value);
  395    416   
        }
         417  +
    }
  396    418   
    if let ::std::option::Option::Some(inner_23) = &input.content_redaction_type {
  397    419   
        let formatted_24 = inner_23.as_str();
         420  +
        if !formatted_24.is_empty() {
  398    421   
            let header_value = formatted_24;
  399    422   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  400    423   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  401    424   
                    "content_redaction_type",
  402    425   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  403    426   
                )
  404    427   
            })?;
  405    428   
            builder = builder.header("x-amzn-transcribe-content-redaction-type", header_value);
  406    429   
        }
         430  +
    }
  407    431   
    if let ::std::option::Option::Some(inner_25) = &input.pii_entity_types {
  408    432   
        let formatted_26 = inner_25.as_str();
         433  +
        if !formatted_26.is_empty() {
  409    434   
            let header_value = formatted_26;
  410    435   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  411    436   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  412    437   
                    "pii_entity_types",
  413    438   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  414    439   
                )
  415    440   
            })?;
  416    441   
            builder = builder.header("x-amzn-transcribe-pii-entity-types", header_value);
  417    442   
        }
         443  +
    }
  418    444   
    Ok(builder)
  419    445   
}

tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/src/protocol_serde/shape_start_medical_stream_transcription.rs

@@ -203,203 +357,379 @@
  223    223   
        _ => crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionError::generic(generic),
  224    224   
    })
  225    225   
}
  226    226   
  227    227   
pub fn ser_start_medical_stream_transcription_headers(
  228    228   
    input: &crate::operation::start_medical_stream_transcription::StartMedicalStreamTranscriptionInput,
  229    229   
    mut builder: ::http::request::Builder,
  230    230   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  231    231   
    if let ::std::option::Option::Some(inner_1) = &input.language_code {
  232    232   
        let formatted_2 = inner_1.as_str();
         233  +
        if !formatted_2.is_empty() {
  233    234   
            let header_value = formatted_2;
  234    235   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  235    236   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  236    237   
                    "language_code",
  237    238   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  238    239   
                )
  239    240   
            })?;
  240    241   
            builder = builder.header("x-amzn-transcribe-language-code", header_value);
  241    242   
        }
         243  +
    }
  242    244   
    if let ::std::option::Option::Some(inner_3) = &input.media_sample_rate_hertz {
  243    245   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_3);
  244    246   
        let formatted_4 = encoder.encode();
         247  +
        if !formatted_4.is_empty() {
  245    248   
            let header_value = formatted_4;
  246    249   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  247    250   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  248    251   
                    "media_sample_rate_hertz",
  249    252   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  250    253   
                )
  251    254   
            })?;
  252    255   
            builder = builder.header("x-amzn-transcribe-sample-rate", header_value);
  253    256   
        }
         257  +
    }
  254    258   
    if let ::std::option::Option::Some(inner_5) = &input.media_encoding {
  255    259   
        let formatted_6 = inner_5.as_str();
         260  +
        if !formatted_6.is_empty() {
  256    261   
            let header_value = formatted_6;
  257    262   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  258    263   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  259    264   
                    "media_encoding",
  260    265   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  261    266   
                )
  262    267   
            })?;
  263    268   
            builder = builder.header("x-amzn-transcribe-media-encoding", header_value);
  264    269   
        }
         270  +
    }
  265    271   
    if let ::std::option::Option::Some(inner_7) = &input.vocabulary_name {
  266    272   
        let formatted_8 = inner_7.as_str();
         273  +
        if !formatted_8.is_empty() {
  267    274   
            let header_value = formatted_8;
  268    275   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  269    276   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  270    277   
                    "vocabulary_name",
  271    278   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  272    279   
                )
  273    280   
            })?;
  274    281   
            builder = builder.header("x-amzn-transcribe-vocabulary-name", header_value);
  275    282   
        }
         283  +
    }
  276    284   
    if let ::std::option::Option::Some(inner_9) = &input.specialty {
  277    285   
        let formatted_10 = inner_9.as_str();
         286  +
        if !formatted_10.is_empty() {
  278    287   
            let header_value = formatted_10;
  279    288   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  280    289   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  281    290   
                    "specialty",
  282    291   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  283    292   
                )
  284    293   
            })?;
  285    294   
            builder = builder.header("x-amzn-transcribe-specialty", header_value);
  286    295   
        }
         296  +
    }
  287    297   
    if let ::std::option::Option::Some(inner_11) = &input.r#type {
  288    298   
        let formatted_12 = inner_11.as_str();
         299  +
        if !formatted_12.is_empty() {
  289    300   
            let header_value = formatted_12;
  290    301   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  291    302   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  292    303   
                    "r#type",
  293    304   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  294    305   
                )
  295    306   
            })?;
  296    307   
            builder = builder.header("x-amzn-transcribe-type", header_value);
  297    308   
        }
         309  +
    }
  298    310   
    if let ::std::option::Option::Some(inner_13) = &input.show_speaker_label {
  299    311   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_13);
  300    312   
        let formatted_14 = encoder.encode();
         313  +
        if !formatted_14.is_empty() {
  301    314   
            let header_value = formatted_14;
  302    315   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  303    316   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  304    317   
                    "show_speaker_label",
  305    318   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  306    319   
                )
  307    320   
            })?;
  308    321   
            builder = builder.header("x-amzn-transcribe-show-speaker-label", header_value);
  309    322   
        }
         323  +
    }
  310    324   
    if let ::std::option::Option::Some(inner_15) = &input.session_id {
  311    325   
        let formatted_16 = inner_15.as_str();
         326  +
        if !formatted_16.is_empty() {
  312    327   
            let header_value = formatted_16;
  313    328   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  314    329   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  315    330   
                    "session_id",
  316    331   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  317    332   
                )
  318    333   
            })?;
  319    334   
            builder = builder.header("x-amzn-transcribe-session-id", header_value);
  320    335   
        }
         336  +
    }
  321    337   
    if let ::std::option::Option::Some(inner_17) = &input.enable_channel_identification {
  322    338   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_17);
  323    339   
        let formatted_18 = encoder.encode();
         340  +
        if !formatted_18.is_empty() {
  324    341   
            let header_value = formatted_18;
  325    342   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  326    343   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  327    344   
                    "enable_channel_identification",
  328    345   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  329    346   
                )
  330    347   
            })?;
  331    348   
            builder = builder.header("x-amzn-transcribe-enable-channel-identification", header_value);
  332    349   
        }
         350  +
    }
  333    351   
    if let ::std::option::Option::Some(inner_19) = &input.number_of_channels {
  334    352   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_19);
  335    353   
        let formatted_20 = encoder.encode();
         354  +
        if !formatted_20.is_empty() {
  336    355   
            let header_value = formatted_20;
  337    356   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  338    357   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  339    358   
                    "number_of_channels",
  340    359   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  341    360   
                )
  342    361   
            })?;
  343    362   
            builder = builder.header("x-amzn-transcribe-number-of-channels", header_value);
  344    363   
        }
         364  +
    }
  345    365   
    if let ::std::option::Option::Some(inner_21) = &input.content_identification_type {
  346    366   
        let formatted_22 = inner_21.as_str();
         367  +
        if !formatted_22.is_empty() {
  347    368   
            let header_value = formatted_22;
  348    369   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  349    370   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  350    371   
                    "content_identification_type",
  351    372   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  352    373   
                )
  353    374   
            })?;
  354    375   
            builder = builder.header("x-amzn-transcribe-content-identification-type", header_value);
  355    376   
        }
         377  +
    }
  356    378   
    Ok(builder)
  357    379   
}

tmp-codegen-diff/aws-sdk/sdk/transcribestreaming/src/protocol_serde/shape_start_stream_transcription.rs

@@ -277,277 +555,599 @@
  297    297   
        _ => crate::operation::start_stream_transcription::StartStreamTranscriptionError::generic(generic),
  298    298   
    })
  299    299   
}
  300    300   
  301    301   
pub fn ser_start_stream_transcription_headers(
  302    302   
    input: &crate::operation::start_stream_transcription::StartStreamTranscriptionInput,
  303    303   
    mut builder: ::http::request::Builder,
  304    304   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  305    305   
    if let ::std::option::Option::Some(inner_1) = &input.language_code {
  306    306   
        let formatted_2 = inner_1.as_str();
         307  +
        if !formatted_2.is_empty() {
  307    308   
            let header_value = formatted_2;
  308    309   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  309    310   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  310    311   
                    "language_code",
  311    312   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  312    313   
                )
  313    314   
            })?;
  314    315   
            builder = builder.header("x-amzn-transcribe-language-code", header_value);
  315    316   
        }
         317  +
    }
  316    318   
    if let ::std::option::Option::Some(inner_3) = &input.media_sample_rate_hertz {
  317    319   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_3);
  318    320   
        let formatted_4 = encoder.encode();
         321  +
        if !formatted_4.is_empty() {
  319    322   
            let header_value = formatted_4;
  320    323   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  321    324   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  322    325   
                    "media_sample_rate_hertz",
  323    326   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  324    327   
                )
  325    328   
            })?;
  326    329   
            builder = builder.header("x-amzn-transcribe-sample-rate", header_value);
  327    330   
        }
         331  +
    }
  328    332   
    if let ::std::option::Option::Some(inner_5) = &input.media_encoding {
  329    333   
        let formatted_6 = inner_5.as_str();
         334  +
        if !formatted_6.is_empty() {
  330    335   
            let header_value = formatted_6;
  331    336   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  332    337   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  333    338   
                    "media_encoding",
  334    339   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  335    340   
                )
  336    341   
            })?;
  337    342   
            builder = builder.header("x-amzn-transcribe-media-encoding", header_value);
  338    343   
        }
         344  +
    }
  339    345   
    if let ::std::option::Option::Some(inner_7) = &input.vocabulary_name {
  340    346   
        let formatted_8 = inner_7.as_str();
         347  +
        if !formatted_8.is_empty() {
  341    348   
            let header_value = formatted_8;
  342    349   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  343    350   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  344    351   
                    "vocabulary_name",
  345    352   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  346    353   
                )
  347    354   
            })?;
  348    355   
            builder = builder.header("x-amzn-transcribe-vocabulary-name", header_value);
  349    356   
        }
         357  +
    }
  350    358   
    if let ::std::option::Option::Some(inner_9) = &input.session_id {
  351    359   
        let formatted_10 = inner_9.as_str();
         360  +
        if !formatted_10.is_empty() {
  352    361   
            let header_value = formatted_10;
  353    362   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  354    363   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  355    364   
                    "session_id",
  356    365   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  357    366   
                )
  358    367   
            })?;
  359    368   
            builder = builder.header("x-amzn-transcribe-session-id", header_value);
  360    369   
        }
         370  +
    }
  361    371   
    if let ::std::option::Option::Some(inner_11) = &input.vocabulary_filter_name {
  362    372   
        let formatted_12 = inner_11.as_str();
         373  +
        if !formatted_12.is_empty() {
  363    374   
            let header_value = formatted_12;
  364    375   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  365    376   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  366    377   
                    "vocabulary_filter_name",
  367    378   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  368    379   
                )
  369    380   
            })?;
  370    381   
            builder = builder.header("x-amzn-transcribe-vocabulary-filter-name", header_value);
  371    382   
        }
         383  +
    }
  372    384   
    if let ::std::option::Option::Some(inner_13) = &input.vocabulary_filter_method {
  373    385   
        let formatted_14 = inner_13.as_str();
         386  +
        if !formatted_14.is_empty() {
  374    387   
            let header_value = formatted_14;
  375    388   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  376    389   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  377    390   
                    "vocabulary_filter_method",
  378    391   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  379    392   
                )
  380    393   
            })?;
  381    394   
            builder = builder.header("x-amzn-transcribe-vocabulary-filter-method", header_value);
  382    395   
        }
         396  +
    }
  383    397   
    if let ::std::option::Option::Some(inner_15) = &input.show_speaker_label {
  384    398   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_15);
  385    399   
        let formatted_16 = encoder.encode();
         400  +
        if !formatted_16.is_empty() {
  386    401   
            let header_value = formatted_16;
  387    402   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  388    403   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  389    404   
                    "show_speaker_label",
  390    405   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  391    406   
                )
  392    407   
            })?;
  393    408   
            builder = builder.header("x-amzn-transcribe-show-speaker-label", header_value);
  394    409   
        }
         410  +
    }
  395    411   
    if let ::std::option::Option::Some(inner_17) = &input.enable_channel_identification {
  396    412   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_17);
  397    413   
        let formatted_18 = encoder.encode();
         414  +
        if !formatted_18.is_empty() {
  398    415   
            let header_value = formatted_18;
  399    416   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  400    417   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  401    418   
                    "enable_channel_identification",
  402    419   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  403    420   
                )
  404    421   
            })?;
  405    422   
            builder = builder.header("x-amzn-transcribe-enable-channel-identification", header_value);
  406    423   
        }
         424  +
    }
  407    425   
    if let ::std::option::Option::Some(inner_19) = &input.number_of_channels {
  408    426   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_19);
  409    427   
        let formatted_20 = encoder.encode();
         428  +
        if !formatted_20.is_empty() {
  410    429   
            let header_value = formatted_20;
  411    430   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  412    431   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  413    432   
                    "number_of_channels",
  414    433   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  415    434   
                )
  416    435   
            })?;
  417    436   
            builder = builder.header("x-amzn-transcribe-number-of-channels", header_value);
  418    437   
        }
         438  +
    }
  419    439   
    if let ::std::option::Option::Some(inner_21) = &input.enable_partial_results_stabilization {
  420    440   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_21);
  421    441   
        let formatted_22 = encoder.encode();
         442  +
        if !formatted_22.is_empty() {
  422    443   
            let header_value = formatted_22;
  423    444   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  424    445   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  425    446   
                    "enable_partial_results_stabilization",
  426    447   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  427    448   
                )
  428    449   
            })?;
  429    450   
            builder = builder.header("x-amzn-transcribe-enable-partial-results-stabilization", header_value);
  430    451   
        }
         452  +
    }
  431    453   
    if let ::std::option::Option::Some(inner_23) = &input.partial_results_stability {
  432    454   
        let formatted_24 = inner_23.as_str();
         455  +
        if !formatted_24.is_empty() {
  433    456   
            let header_value = formatted_24;
  434    457   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  435    458   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  436    459   
                    "partial_results_stability",
  437    460   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  438    461   
                )
  439    462   
            })?;
  440    463   
            builder = builder.header("x-amzn-transcribe-partial-results-stability", header_value);
  441    464   
        }
         465  +
    }
  442    466   
    if let ::std::option::Option::Some(inner_25) = &input.content_identification_type {
  443    467   
        let formatted_26 = inner_25.as_str();
         468  +
        if !formatted_26.is_empty() {
  444    469   
            let header_value = formatted_26;
  445    470   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  446    471   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  447    472   
                    "content_identification_type",
  448    473   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  449    474   
                )
  450    475   
            })?;
  451    476   
            builder = builder.header("x-amzn-transcribe-content-identification-type", header_value);
  452    477   
        }
         478  +
    }
  453    479   
    if let ::std::option::Option::Some(inner_27) = &input.content_redaction_type {
  454    480   
        let formatted_28 = inner_27.as_str();
         481  +
        if !formatted_28.is_empty() {
  455    482   
            let header_value = formatted_28;
  456    483   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  457    484   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  458    485   
                    "content_redaction_type",
  459    486   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  460    487   
                )
  461    488   
            })?;
  462    489   
            builder = builder.header("x-amzn-transcribe-content-redaction-type", header_value);
  463    490   
        }
         491  +
    }
  464    492   
    if let ::std::option::Option::Some(inner_29) = &input.pii_entity_types {
  465    493   
        let formatted_30 = inner_29.as_str();
         494  +
        if !formatted_30.is_empty() {
  466    495   
            let header_value = formatted_30;
  467    496   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  468    497   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  469    498   
                    "pii_entity_types",
  470    499   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  471    500   
                )
  472    501   
            })?;
  473    502   
            builder = builder.header("x-amzn-transcribe-pii-entity-types", header_value);
  474    503   
        }
         504  +
    }
  475    505   
    if let ::std::option::Option::Some(inner_31) = &input.language_model_name {
  476    506   
        let formatted_32 = inner_31.as_str();
         507  +
        if !formatted_32.is_empty() {
  477    508   
            let header_value = formatted_32;
  478    509   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  479    510   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  480    511   
                    "language_model_name",
  481    512   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  482    513   
                )
  483    514   
            })?;
  484    515   
            builder = builder.header("x-amzn-transcribe-language-model-name", header_value);
  485    516   
        }
         517  +
    }
  486    518   
    if let ::std::option::Option::Some(inner_33) = &input.identify_language {
  487    519   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_33);
  488    520   
        let formatted_34 = encoder.encode();
         521  +
        if !formatted_34.is_empty() {
  489    522   
            let header_value = formatted_34;
  490    523   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  491    524   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  492    525   
                    "identify_language",
  493    526   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  494    527   
                )
  495    528   
            })?;
  496    529   
            builder = builder.header("x-amzn-transcribe-identify-language", header_value);
  497    530   
        }
         531  +
    }
  498    532   
    if let ::std::option::Option::Some(inner_35) = &input.language_options {
  499    533   
        let formatted_36 = inner_35.as_str();
         534  +
        if !formatted_36.is_empty() {
  500    535   
            let header_value = formatted_36;
  501    536   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  502    537   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  503    538   
                    "language_options",
  504    539   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  505    540   
                )
  506    541   
            })?;
  507    542   
            builder = builder.header("x-amzn-transcribe-language-options", header_value);
  508    543   
        }
         544  +
    }
  509    545   
    if let ::std::option::Option::Some(inner_37) = &input.preferred_language {
  510    546   
        let formatted_38 = inner_37.as_str();
         547  +
        if !formatted_38.is_empty() {
  511    548   
            let header_value = formatted_38;
  512    549   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  513    550   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  514    551   
                    "preferred_language",
  515    552   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  516    553   
                )
  517    554   
            })?;
  518    555   
            builder = builder.header("x-amzn-transcribe-preferred-language", header_value);
  519    556   
        }
         557  +
    }
  520    558   
    if let ::std::option::Option::Some(inner_39) = &input.identify_multiple_languages {
  521    559   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_39);
  522    560   
        let formatted_40 = encoder.encode();
         561  +
        if !formatted_40.is_empty() {
  523    562   
            let header_value = formatted_40;
  524    563   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  525    564   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  526    565   
                    "identify_multiple_languages",
  527    566   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  528    567   
                )
  529    568   
            })?;
  530    569   
            builder = builder.header("x-amzn-transcribe-identify-multiple-languages", header_value);
  531    570   
        }
         571  +
    }
  532    572   
    if let ::std::option::Option::Some(inner_41) = &input.vocabulary_names {
  533    573   
        let formatted_42 = inner_41.as_str();
         574  +
        if !formatted_42.is_empty() {
  534    575   
            let header_value = formatted_42;
  535    576   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  536    577   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  537    578   
                    "vocabulary_names",
  538    579   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  539    580   
                )
  540    581   
            })?;
  541    582   
            builder = builder.header("x-amzn-transcribe-vocabulary-names", header_value);
  542    583   
        }
         584  +
    }
  543    585   
    if let ::std::option::Option::Some(inner_43) = &input.vocabulary_filter_names {
  544    586   
        let formatted_44 = inner_43.as_str();
         587  +
        if !formatted_44.is_empty() {
  545    588   
            let header_value = formatted_44;
  546    589   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  547    590   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  548    591   
                    "vocabulary_filter_names",
  549    592   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  550    593   
                )
  551    594   
            })?;
  552    595   
            builder = builder.header("x-amzn-transcribe-vocabulary-filter-names", header_value);
  553    596   
        }
         597  +
    }
  554    598   
    Ok(builder)
  555    599   
}

tmp-codegen-diff/aws-sdk/tests/no-default-features/Cargo.toml

@@ -1,1 +46,46 @@
    9      9   
repository = "https://github.com/smithy-lang/smithy-rs"
   10     10   
publish = false
   11     11   
   12     12   
[dev-dependencies]
   13     13   
futures = "0.3.25"
   14     14   
http = "0.2.9"
   15     15   
   16     16   
[dev-dependencies.aws-config]
   17     17   
path = "../../sdk/aws-config"
   18     18   
default-features = false
   19         -
version = "1.5.9"
          19  +
version = "1.5.8"
   20     20   
   21     21   
[dev-dependencies.aws-sdk-s3]
   22     22   
path = "../../sdk/s3"
   23     23   
default-features = false
   24     24   
version = "0.0.0-local"
   25     25   
   26     26   
[dev-dependencies.aws-smithy-async]
   27     27   
path = "../../sdk/aws-smithy-async"
   28     28   
version = "1.2.1"
   29     29