AWS SDK

AWS SDK

rev. a7fb2e3446d314cfbe48069306e4e0a389b39aeb

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         -
        let header_value = formatted_2;
   43         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   44         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   45         -
                "account_id",
   46         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   47         -
            )
   48         -
        })?;
   49         -
        builder = builder.header("x-amz-account-id", header_value);
          42  +
        if !formatted_2.is_empty() {
          43  +
            let header_value = formatted_2;
          44  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          45  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          46  +
                    "account_id",
          47  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          48  +
                )
          49  +
            })?;
          50  +
            builder = builder.header("x-amz-account-id", header_value);
          51  +
        }
   50     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);

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

@@ -82,82 +149,151 @@
  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         -
        let header_value = formatted_2;
  113         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  114         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  115         -
                "access_token",
  116         -
                format!("`{}` cannot be used as a header value: {}", &"*** Sensitive Data Redacted ***", err),
  117         -
            )
  118         -
        })?;
  119         -
        builder = builder.header("x-amz-sso_bearer_token", header_value);
         112  +
        if !formatted_2.is_empty() {
         113  +
            let header_value = formatted_2;
         114  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         115  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         116  +
                    "access_token",
         117  +
                    format!("`{}` cannot be used as a header value: {}", &"*** Sensitive Data Redacted ***", err),
         118  +
                )
         119  +
            })?;
         120  +
            builder = builder.header("x-amz-sso_bearer_token", header_value);
         121  +
        }
  120    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();

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

@@ -76,76 +143,145 @@
   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         -
        let header_value = formatted_2;
  107         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  108         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  109         -
                "access_token",
  110         -
                format!("`{}` cannot be used as a header value: {}", &"*** Sensitive Data Redacted ***", err),
  111         -
            )
  112         -
        })?;
  113         -
        builder = builder.header("x-amz-sso_bearer_token", header_value);
         106  +
        if !formatted_2.is_empty() {
         107  +
            let header_value = formatted_2;
         108  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         109  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         110  +
                    "access_token",
         111  +
                    format!("`{}` cannot be used as a header value: {}", &"*** Sensitive Data Redacted ***", err),
         112  +
                )
         113  +
            })?;
         114  +
            builder = builder.header("x-amz-sso_bearer_token", header_value);
         115  +
        }
  114    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;

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

@@ -76,76 +143,145 @@
   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         -
        let header_value = formatted_2;
  107         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  108         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  109         -
                "access_token",
  110         -
                format!("`{}` cannot be used as a header value: {}", &"*** Sensitive Data Redacted ***", err),
  111         -
            )
  112         -
        })?;
  113         -
        builder = builder.header("x-amz-sso_bearer_token", header_value);
         106  +
        if !formatted_2.is_empty() {
         107  +
            let header_value = formatted_2;
         108  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         109  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         110  +
                    "access_token",
         111  +
                    format!("`{}` cannot be used as a header value: {}", &"*** Sensitive Data Redacted ***", err),
         112  +
                )
         113  +
            })?;
         114  +
            builder = builder.header("x-amz-sso_bearer_token", header_value);
         115  +
        }
  114    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;

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         -
        let header_value = formatted_2;
   90         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   91         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   92         -
                "access_token",
   93         -
                format!("`{}` cannot be used as a header value: {}", &"*** Sensitive Data Redacted ***", err),
   94         -
            )
   95         -
        })?;
   96         -
        builder = builder.header("x-amz-sso_bearer_token", header_value);
          89  +
        if !formatted_2.is_empty() {
          90  +
            let header_value = formatted_2;
          91  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          92  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          93  +
                    "access_token",
          94  +
                    format!("`{}` cannot be used as a header value: {}", &"*** Sensitive Data Redacted ***", err),
          95  +
                )
          96  +
            })?;
          97  +
            builder = builder.header("x-amz-sso_bearer_token", header_value);
          98  +
        }
   97     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         -
        let header_value = formatted_2;
  276         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  277         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  278         -
                "language_code",
  279         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  280         -
            )
  281         -
        })?;
  282         -
        builder = builder.header("x-amzn-transcribe-language-code", header_value);
         275  +
        if !formatted_2.is_empty() {
         276  +
            let header_value = formatted_2;
         277  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         278  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         279  +
                    "language_code",
         280  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         281  +
                )
         282  +
            })?;
         283  +
            builder = builder.header("x-amzn-transcribe-language-code", header_value);
         284  +
        }
  283    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();
  287         -
        let header_value = formatted_4;
  288         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  289         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  290         -
                "media_sample_rate_hertz",
  291         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  292         -
            )
  293         -
        })?;
  294         -
        builder = builder.header("x-amzn-transcribe-sample-rate", header_value);
         289  +
        if !formatted_4.is_empty() {
         290  +
            let header_value = formatted_4;
         291  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         292  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         293  +
                    "media_sample_rate_hertz",
         294  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         295  +
                )
         296  +
            })?;
         297  +
            builder = builder.header("x-amzn-transcribe-sample-rate", header_value);
         298  +
        }
  295    299   
    }
  296    300   
    if let ::std::option::Option::Some(inner_5) = &input.media_encoding {
  297    301   
        let formatted_6 = inner_5.as_str();
  298         -
        let header_value = formatted_6;
  299         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  300         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  301         -
                "media_encoding",
  302         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  303         -
            )
  304         -
        })?;
  305         -
        builder = builder.header("x-amzn-transcribe-media-encoding", header_value);
         302  +
        if !formatted_6.is_empty() {
         303  +
            let header_value = formatted_6;
         304  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         305  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         306  +
                    "media_encoding",
         307  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         308  +
                )
         309  +
            })?;
         310  +
            builder = builder.header("x-amzn-transcribe-media-encoding", header_value);
         311  +
        }
  306    312   
    }
  307    313   
    if let ::std::option::Option::Some(inner_7) = &input.vocabulary_name {
  308    314   
        let formatted_8 = inner_7.as_str();
  309         -
        let header_value = formatted_8;
  310         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  311         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  312         -
                "vocabulary_name",
  313         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  314         -
            )
  315         -
        })?;
  316         -
        builder = builder.header("x-amzn-transcribe-vocabulary-name", header_value);
         315  +
        if !formatted_8.is_empty() {
         316  +
            let header_value = formatted_8;
         317  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         318  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         319  +
                    "vocabulary_name",
         320  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         321  +
                )
         322  +
            })?;
         323  +
            builder = builder.header("x-amzn-transcribe-vocabulary-name", header_value);
         324  +
        }
  317    325   
    }
  318    326   
    if let ::std::option::Option::Some(inner_9) = &input.session_id {
  319    327   
        let formatted_10 = inner_9.as_str();
  320         -
        let header_value = formatted_10;
  321         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  322         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  323         -
                "session_id",
  324         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  325         -
            )
  326         -
        })?;
  327         -
        builder = builder.header("x-amzn-transcribe-session-id", header_value);
         328  +
        if !formatted_10.is_empty() {
         329  +
            let header_value = formatted_10;
         330  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         331  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         332  +
                    "session_id",
         333  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         334  +
                )
         335  +
            })?;
         336  +
            builder = builder.header("x-amzn-transcribe-session-id", header_value);
         337  +
        }
  328    338   
    }
  329    339   
    if let ::std::option::Option::Some(inner_11) = &input.vocabulary_filter_name {
  330    340   
        let formatted_12 = inner_11.as_str();
  331         -
        let header_value = formatted_12;
  332         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  333         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  334         -
                "vocabulary_filter_name",
  335         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  336         -
            )
  337         -
        })?;
  338         -
        builder = builder.header("x-amzn-transcribe-vocabulary-filter-name", header_value);
         341  +
        if !formatted_12.is_empty() {
         342  +
            let header_value = formatted_12;
         343  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         344  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         345  +
                    "vocabulary_filter_name",
         346  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         347  +
                )
         348  +
            })?;
         349  +
            builder = builder.header("x-amzn-transcribe-vocabulary-filter-name", header_value);
         350  +
        }
  339    351   
    }
  340    352   
    if let ::std::option::Option::Some(inner_13) = &input.vocabulary_filter_method {
  341    353   
        let formatted_14 = inner_13.as_str();
  342         -
        let header_value = formatted_14;
  343         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  344         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  345         -
                "vocabulary_filter_method",
  346         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  347         -
            )
  348         -
        })?;
  349         -
        builder = builder.header("x-amzn-transcribe-vocabulary-filter-method", header_value);
         354  +
        if !formatted_14.is_empty() {
         355  +
            let header_value = formatted_14;
         356  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         357  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         358  +
                    "vocabulary_filter_method",
         359  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         360  +
                )
         361  +
            })?;
         362  +
            builder = builder.header("x-amzn-transcribe-vocabulary-filter-method", header_value);
         363  +
        }
  350    364   
    }
  351    365   
    if let ::std::option::Option::Some(inner_15) = &input.language_model_name {
  352    366   
        let formatted_16 = inner_15.as_str();
  353         -
        let header_value = formatted_16;
  354         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  355         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  356         -
                "language_model_name",
  357         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  358         -
            )
  359         -
        })?;
  360         -
        builder = builder.header("x-amzn-transcribe-language-model-name", header_value);
         367  +
        if !formatted_16.is_empty() {
         368  +
            let header_value = formatted_16;
         369  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         370  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         371  +
                    "language_model_name",
         372  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         373  +
                )
         374  +
            })?;
         375  +
            builder = builder.header("x-amzn-transcribe-language-model-name", header_value);
         376  +
        }
  361    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();
  365         -
        let header_value = formatted_18;
  366         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  367         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  368         -
                "enable_partial_results_stabilization",
  369         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  370         -
            )
  371         -
        })?;
  372         -
        builder = builder.header("x-amzn-transcribe-enable-partial-results-stabilization", header_value);
         381  +
        if !formatted_18.is_empty() {
         382  +
            let header_value = formatted_18;
         383  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         384  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         385  +
                    "enable_partial_results_stabilization",
         386  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         387  +
                )
         388  +
            })?;
         389  +
            builder = builder.header("x-amzn-transcribe-enable-partial-results-stabilization", header_value);
         390  +
        }
  373    391   
    }
  374    392   
    if let ::std::option::Option::Some(inner_19) = &input.partial_results_stability {
  375    393   
        let formatted_20 = inner_19.as_str();
  376         -
        let header_value = formatted_20;
  377         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  378         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  379         -
                "partial_results_stability",
  380         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  381         -
            )
  382         -
        })?;
  383         -
        builder = builder.header("x-amzn-transcribe-partial-results-stability", header_value);
         394  +
        if !formatted_20.is_empty() {
         395  +
            let header_value = formatted_20;
         396  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         397  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         398  +
                    "partial_results_stability",
         399  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         400  +
                )
         401  +
            })?;
         402  +
            builder = builder.header("x-amzn-transcribe-partial-results-stability", header_value);
         403  +
        }
  384    404   
    }
  385    405   
    if let ::std::option::Option::Some(inner_21) = &input.content_identification_type {
  386    406   
        let formatted_22 = inner_21.as_str();
  387         -
        let header_value = formatted_22;
  388         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  389         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  390         -
                "content_identification_type",
  391         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  392         -
            )
  393         -
        })?;
  394         -
        builder = builder.header("x-amzn-transcribe-content-identification-type", header_value);
         407  +
        if !formatted_22.is_empty() {
         408  +
            let header_value = formatted_22;
         409  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         410  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         411  +
                    "content_identification_type",
         412  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         413  +
                )
         414  +
            })?;
         415  +
            builder = builder.header("x-amzn-transcribe-content-identification-type", header_value);
         416  +
        }
  395    417   
    }
  396    418   
    if let ::std::option::Option::Some(inner_23) = &input.content_redaction_type {
  397    419   
        let formatted_24 = inner_23.as_str();
  398         -
        let header_value = formatted_24;
  399         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  400         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  401         -
                "content_redaction_type",
  402         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  403         -
            )
  404         -
        })?;
  405         -
        builder = builder.header("x-amzn-transcribe-content-redaction-type", header_value);
         420  +
        if !formatted_24.is_empty() {
         421  +
            let header_value = formatted_24;
         422  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         423  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         424  +
                    "content_redaction_type",
         425  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         426  +
                )
         427  +
            })?;
         428  +
            builder = builder.header("x-amzn-transcribe-content-redaction-type", header_value);
         429  +
        }
  406    430   
    }
  407    431   
    if let ::std::option::Option::Some(inner_25) = &input.pii_entity_types {
  408    432   
        let formatted_26 = inner_25.as_str();
  409         -
        let header_value = formatted_26;
  410         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  411         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  412         -
                "pii_entity_types",
  413         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  414         -
            )
  415         -
        })?;
  416         -
        builder = builder.header("x-amzn-transcribe-pii-entity-types", header_value);
         433  +
        if !formatted_26.is_empty() {
         434  +
            let header_value = formatted_26;
         435  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         436  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         437  +
                    "pii_entity_types",
         438  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         439  +
                )
         440  +
            })?;
         441  +
            builder = builder.header("x-amzn-transcribe-pii-entity-types", header_value);
         442  +
        }
  417    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         -
        let header_value = formatted_2;
  234         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  235         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  236         -
                "language_code",
  237         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  238         -
            )
  239         -
        })?;
  240         -
        builder = builder.header("x-amzn-transcribe-language-code", header_value);
         233  +
        if !formatted_2.is_empty() {
         234  +
            let header_value = formatted_2;
         235  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         236  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         237  +
                    "language_code",
         238  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         239  +
                )
         240  +
            })?;
         241  +
            builder = builder.header("x-amzn-transcribe-language-code", header_value);
         242  +
        }
  241    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();
  245         -
        let header_value = formatted_4;
  246         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  247         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  248         -
                "media_sample_rate_hertz",
  249         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  250         -
            )
  251         -
        })?;
  252         -
        builder = builder.header("x-amzn-transcribe-sample-rate", header_value);
         247  +
        if !formatted_4.is_empty() {
         248  +
            let header_value = formatted_4;
         249  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         250  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         251  +
                    "media_sample_rate_hertz",
         252  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         253  +
                )
         254  +
            })?;
         255  +
            builder = builder.header("x-amzn-transcribe-sample-rate", header_value);
         256  +
        }
  253    257   
    }
  254    258   
    if let ::std::option::Option::Some(inner_5) = &input.media_encoding {
  255    259   
        let formatted_6 = inner_5.as_str();
  256         -
        let header_value = formatted_6;
  257         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  258         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  259         -
                "media_encoding",
  260         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  261         -
            )
  262         -
        })?;
  263         -
        builder = builder.header("x-amzn-transcribe-media-encoding", header_value);
         260  +
        if !formatted_6.is_empty() {
         261  +
            let header_value = formatted_6;
         262  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         263  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         264  +
                    "media_encoding",
         265  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         266  +
                )
         267  +
            })?;
         268  +
            builder = builder.header("x-amzn-transcribe-media-encoding", header_value);
         269  +
        }
  264    270   
    }
  265    271   
    if let ::std::option::Option::Some(inner_7) = &input.vocabulary_name {
  266    272   
        let formatted_8 = inner_7.as_str();
  267         -
        let header_value = formatted_8;
  268         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  269         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  270         -
                "vocabulary_name",
  271         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  272         -
            )
  273         -
        })?;
  274         -
        builder = builder.header("x-amzn-transcribe-vocabulary-name", header_value);
         273  +
        if !formatted_8.is_empty() {
         274  +
            let header_value = formatted_8;
         275  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         276  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         277  +
                    "vocabulary_name",
         278  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         279  +
                )
         280  +
            })?;
         281  +
            builder = builder.header("x-amzn-transcribe-vocabulary-name", header_value);
         282  +
        }
  275    283   
    }
  276    284   
    if let ::std::option::Option::Some(inner_9) = &input.specialty {
  277    285   
        let formatted_10 = inner_9.as_str();
  278         -
        let header_value = formatted_10;
  279         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  280         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  281         -
                "specialty",
  282         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  283         -
            )
  284         -
        })?;
  285         -
        builder = builder.header("x-amzn-transcribe-specialty", header_value);
         286  +
        if !formatted_10.is_empty() {
         287  +
            let header_value = formatted_10;
         288  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         289  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         290  +
                    "specialty",
         291  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         292  +
                )
         293  +
            })?;
         294  +
            builder = builder.header("x-amzn-transcribe-specialty", header_value);
         295  +
        }
  286    296   
    }
  287    297   
    if let ::std::option::Option::Some(inner_11) = &input.r#type {
  288    298   
        let formatted_12 = inner_11.as_str();
  289         -
        let header_value = formatted_12;
  290         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  291         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  292         -
                "r#type",
  293         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  294         -
            )
  295         -
        })?;
  296         -
        builder = builder.header("x-amzn-transcribe-type", header_value);
         299  +
        if !formatted_12.is_empty() {
         300  +
            let header_value = formatted_12;
         301  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         302  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         303  +
                    "r#type",
         304  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         305  +
                )
         306  +
            })?;
         307  +
            builder = builder.header("x-amzn-transcribe-type", header_value);
         308  +
        }
  297    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();
  301         -
        let header_value = formatted_14;
  302         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  303         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  304         -
                "show_speaker_label",
  305         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  306         -
            )
  307         -
        })?;
  308         -
        builder = builder.header("x-amzn-transcribe-show-speaker-label", header_value);
         313  +
        if !formatted_14.is_empty() {
         314  +
            let header_value = formatted_14;
         315  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         316  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         317  +
                    "show_speaker_label",
         318  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         319  +
                )
         320  +
            })?;
         321  +
            builder = builder.header("x-amzn-transcribe-show-speaker-label", header_value);
         322  +
        }
  309    323   
    }
  310    324   
    if let ::std::option::Option::Some(inner_15) = &input.session_id {
  311    325   
        let formatted_16 = inner_15.as_str();
  312         -
        let header_value = formatted_16;
  313         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  314         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  315         -
                "session_id",
  316         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  317         -
            )
  318         -
        })?;
  319         -
        builder = builder.header("x-amzn-transcribe-session-id", header_value);
         326  +
        if !formatted_16.is_empty() {
         327  +
            let header_value = formatted_16;
         328  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         329  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         330  +
                    "session_id",
         331  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         332  +
                )
         333  +
            })?;
         334  +
            builder = builder.header("x-amzn-transcribe-session-id", header_value);
         335  +
        }
  320    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();
  324         -
        let header_value = formatted_18;
  325         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  326         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  327         -
                "enable_channel_identification",
  328         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  329         -
            )
  330         -
        })?;
  331         -
        builder = builder.header("x-amzn-transcribe-enable-channel-identification", header_value);
         340  +
        if !formatted_18.is_empty() {
         341  +
            let header_value = formatted_18;
         342  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         343  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         344  +
                    "enable_channel_identification",
         345  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         346  +
                )
         347  +
            })?;
         348  +
            builder = builder.header("x-amzn-transcribe-enable-channel-identification", header_value);
         349  +
        }
  332    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();
  336         -
        let header_value = formatted_20;
  337         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  338         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  339         -
                "number_of_channels",
  340         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  341         -
            )
  342         -
        })?;
  343         -
        builder = builder.header("x-amzn-transcribe-number-of-channels", header_value);
         354  +
        if !formatted_20.is_empty() {
         355  +
            let header_value = formatted_20;
         356  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         357  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         358  +
                    "number_of_channels",
         359  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         360  +
                )
         361  +
            })?;
         362  +
            builder = builder.header("x-amzn-transcribe-number-of-channels", header_value);
         363  +
        }
  344    364   
    }
  345    365   
    if let ::std::option::Option::Some(inner_21) = &input.content_identification_type {
  346    366   
        let formatted_22 = inner_21.as_str();
  347         -
        let header_value = formatted_22;
  348         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  349         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  350         -
                "content_identification_type",
  351         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  352         -
            )
  353         -
        })?;
  354         -
        builder = builder.header("x-amzn-transcribe-content-identification-type", header_value);
         367  +
        if !formatted_22.is_empty() {
         368  +
            let header_value = formatted_22;
         369  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         370  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         371  +
                    "content_identification_type",
         372  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         373  +
                )
         374  +
            })?;
         375  +
            builder = builder.header("x-amzn-transcribe-content-identification-type", header_value);
         376  +
        }
  355    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         -
        let header_value = formatted_2;
  308         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  309         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  310         -
                "language_code",
  311         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  312         -
            )
  313         -
        })?;
  314         -
        builder = builder.header("x-amzn-transcribe-language-code", header_value);
         307  +
        if !formatted_2.is_empty() {
         308  +
            let header_value = formatted_2;
         309  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         310  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         311  +
                    "language_code",
         312  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         313  +
                )
         314  +
            })?;
         315  +
            builder = builder.header("x-amzn-transcribe-language-code", header_value);
         316  +
        }
  315    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();
  319         -
        let header_value = formatted_4;
  320         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  321         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  322         -
                "media_sample_rate_hertz",
  323         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  324         -
            )
  325         -
        })?;
  326         -
        builder = builder.header("x-amzn-transcribe-sample-rate", header_value);
         321  +
        if !formatted_4.is_empty() {
         322  +
            let header_value = formatted_4;
         323  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         324  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         325  +
                    "media_sample_rate_hertz",
         326  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         327  +
                )
         328  +
            })?;
         329  +
            builder = builder.header("x-amzn-transcribe-sample-rate", header_value);
         330  +
        }
  327    331   
    }
  328    332   
    if let ::std::option::Option::Some(inner_5) = &input.media_encoding {
  329    333   
        let formatted_6 = inner_5.as_str();
  330         -
        let header_value = formatted_6;
  331         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  332         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  333         -
                "media_encoding",
  334         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  335         -
            )
  336         -
        })?;
  337         -
        builder = builder.header("x-amzn-transcribe-media-encoding", header_value);
         334  +
        if !formatted_6.is_empty() {
         335  +
            let header_value = formatted_6;
         336  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         337  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         338  +
                    "media_encoding",
         339  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         340  +
                )
         341  +
            })?;
         342  +
            builder = builder.header("x-amzn-transcribe-media-encoding", header_value);
         343  +
        }
  338    344   
    }
  339    345   
    if let ::std::option::Option::Some(inner_7) = &input.vocabulary_name {
  340    346   
        let formatted_8 = inner_7.as_str();
  341         -
        let header_value = formatted_8;
  342         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  343         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  344         -
                "vocabulary_name",
  345         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  346         -
            )
  347         -
        })?;
  348         -
        builder = builder.header("x-amzn-transcribe-vocabulary-name", header_value);
         347  +
        if !formatted_8.is_empty() {
         348  +
            let header_value = formatted_8;
         349  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         350  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         351  +
                    "vocabulary_name",
         352  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         353  +
                )
         354  +
            })?;
         355  +
            builder = builder.header("x-amzn-transcribe-vocabulary-name", header_value);
         356  +
        }
  349    357   
    }
  350    358   
    if let ::std::option::Option::Some(inner_9) = &input.session_id {
  351    359   
        let formatted_10 = inner_9.as_str();
  352         -
        let header_value = formatted_10;
  353         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  354         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  355         -
                "session_id",
  356         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  357         -
            )
  358         -
        })?;
  359         -
        builder = builder.header("x-amzn-transcribe-session-id", header_value);
         360  +
        if !formatted_10.is_empty() {
         361  +
            let header_value = formatted_10;
         362  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         363  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         364  +
                    "session_id",
         365  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         366  +
                )
         367  +
            })?;
         368  +
            builder = builder.header("x-amzn-transcribe-session-id", header_value);
         369  +
        }
  360    370   
    }
  361    371   
    if let ::std::option::Option::Some(inner_11) = &input.vocabulary_filter_name {
  362    372   
        let formatted_12 = inner_11.as_str();
  363         -
        let header_value = formatted_12;
  364         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  365         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  366         -
                "vocabulary_filter_name",
  367         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  368         -
            )
  369         -
        })?;
  370         -
        builder = builder.header("x-amzn-transcribe-vocabulary-filter-name", header_value);
         373  +
        if !formatted_12.is_empty() {
         374  +
            let header_value = formatted_12;
         375  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         376  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         377  +
                    "vocabulary_filter_name",
         378  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         379  +
                )
         380  +
            })?;
         381  +
            builder = builder.header("x-amzn-transcribe-vocabulary-filter-name", header_value);
         382  +
        }
  371    383   
    }
  372    384   
    if let ::std::option::Option::Some(inner_13) = &input.vocabulary_filter_method {
  373    385   
        let formatted_14 = inner_13.as_str();
  374         -
        let header_value = formatted_14;
  375         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  376         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  377         -
                "vocabulary_filter_method",
  378         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  379         -
            )
  380         -
        })?;
  381         -
        builder = builder.header("x-amzn-transcribe-vocabulary-filter-method", header_value);
         386  +
        if !formatted_14.is_empty() {
         387  +
            let header_value = formatted_14;
         388  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         389  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         390  +
                    "vocabulary_filter_method",
         391  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         392  +
                )
         393  +
            })?;
         394  +
            builder = builder.header("x-amzn-transcribe-vocabulary-filter-method", header_value);
         395  +
        }
  382    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();
  386         -
        let header_value = formatted_16;
  387         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  388         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  389         -
                "show_speaker_label",
  390         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  391         -
            )
  392         -
        })?;
  393         -
        builder = builder.header("x-amzn-transcribe-show-speaker-label", header_value);
         400  +
        if !formatted_16.is_empty() {
         401  +
            let header_value = formatted_16;
         402  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         403  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         404  +
                    "show_speaker_label",
         405  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         406  +
                )
         407  +
            })?;
         408  +
            builder = builder.header("x-amzn-transcribe-show-speaker-label", header_value);
         409  +
        }
  394    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();
  398         -
        let header_value = formatted_18;
  399         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  400         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  401         -
                "enable_channel_identification",
  402         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  403         -
            )
  404         -
        })?;
  405         -
        builder = builder.header("x-amzn-transcribe-enable-channel-identification", header_value);
         414  +
        if !formatted_18.is_empty() {
         415  +
            let header_value = formatted_18;
         416  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         417  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         418  +
                    "enable_channel_identification",
         419  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         420  +
                )
         421  +
            })?;
         422  +
            builder = builder.header("x-amzn-transcribe-enable-channel-identification", header_value);
         423  +
        }
  406    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();
  410         -
        let header_value = formatted_20;
  411         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  412         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  413         -
                "number_of_channels",
  414         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  415         -
            )
  416         -
        })?;
  417         -
        builder = builder.header("x-amzn-transcribe-number-of-channels", header_value);
         428  +
        if !formatted_20.is_empty() {
         429  +
            let header_value = formatted_20;
         430  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         431  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         432  +
                    "number_of_channels",
         433  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         434  +
                )
         435  +
            })?;
         436  +
            builder = builder.header("x-amzn-transcribe-number-of-channels", header_value);
         437  +
        }
  418    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();
  422         -
        let header_value = formatted_22;
  423         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  424         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  425         -
                "enable_partial_results_stabilization",
  426         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  427         -
            )
  428         -
        })?;
  429         -
        builder = builder.header("x-amzn-transcribe-enable-partial-results-stabilization", header_value);
         442  +
        if !formatted_22.is_empty() {
         443  +
            let header_value = formatted_22;
         444  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         445  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         446  +
                    "enable_partial_results_stabilization",
         447  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         448  +
                )
         449  +
            })?;
         450  +
            builder = builder.header("x-amzn-transcribe-enable-partial-results-stabilization", header_value);
         451  +
        }
  430    452   
    }
  431    453   
    if let ::std::option::Option::Some(inner_23) = &input.partial_results_stability {
  432    454   
        let formatted_24 = inner_23.as_str();
  433         -
        let header_value = formatted_24;
  434         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  435         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  436         -
                "partial_results_stability",
  437         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  438         -
            )
  439         -
        })?;
  440         -
        builder = builder.header("x-amzn-transcribe-partial-results-stability", header_value);
         455  +
        if !formatted_24.is_empty() {
         456  +
            let header_value = formatted_24;
         457  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         458  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         459  +
                    "partial_results_stability",
         460  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         461  +
                )
         462  +
            })?;
         463  +
            builder = builder.header("x-amzn-transcribe-partial-results-stability", header_value);
         464  +
        }
  441    465   
    }
  442    466   
    if let ::std::option::Option::Some(inner_25) = &input.content_identification_type {
  443    467   
        let formatted_26 = inner_25.as_str();
  444         -
        let header_value = formatted_26;
  445         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  446         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  447         -
                "content_identification_type",
  448         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  449         -
            )
  450         -
        })?;
  451         -
        builder = builder.header("x-amzn-transcribe-content-identification-type", header_value);
         468  +
        if !formatted_26.is_empty() {
         469  +
            let header_value = formatted_26;
         470  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         471  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         472  +
                    "content_identification_type",
         473  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         474  +
                )
         475  +
            })?;
         476  +
            builder = builder.header("x-amzn-transcribe-content-identification-type", header_value);
         477  +
        }
  452    478   
    }
  453    479   
    if let ::std::option::Option::Some(inner_27) = &input.content_redaction_type {
  454    480   
        let formatted_28 = inner_27.as_str();
  455         -
        let header_value = formatted_28;
  456         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  457         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  458         -
                "content_redaction_type",
  459         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  460         -
            )
  461         -
        })?;
  462         -
        builder = builder.header("x-amzn-transcribe-content-redaction-type", header_value);
         481  +
        if !formatted_28.is_empty() {
         482  +
            let header_value = formatted_28;
         483  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         484  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         485  +
                    "content_redaction_type",
         486  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         487  +
                )
         488  +
            })?;
         489  +
            builder = builder.header("x-amzn-transcribe-content-redaction-type", header_value);
         490  +
        }
  463    491   
    }
  464    492   
    if let ::std::option::Option::Some(inner_29) = &input.pii_entity_types {
  465    493   
        let formatted_30 = inner_29.as_str();
  466         -
        let header_value = formatted_30;
  467         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  468         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  469         -
                "pii_entity_types",
  470         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  471         -
            )
  472         -
        })?;
  473         -
        builder = builder.header("x-amzn-transcribe-pii-entity-types", header_value);
         494  +
        if !formatted_30.is_empty() {
         495  +
            let header_value = formatted_30;
         496  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         497  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         498  +
                    "pii_entity_types",
         499  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         500  +
                )
         501  +
            })?;
         502  +
            builder = builder.header("x-amzn-transcribe-pii-entity-types", header_value);
         503  +
        }
  474    504   
    }
  475    505   
    if let ::std::option::Option::Some(inner_31) = &input.language_model_name {
  476    506   
        let formatted_32 = inner_31.as_str();
  477         -
        let header_value = formatted_32;
  478         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  479         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  480         -
                "language_model_name",
  481         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  482         -
            )
  483         -
        })?;
  484         -
        builder = builder.header("x-amzn-transcribe-language-model-name", header_value);
         507  +
        if !formatted_32.is_empty() {
         508  +
            let header_value = formatted_32;
         509  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         510  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         511  +
                    "language_model_name",
         512  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         513  +
                )
         514  +
            })?;
         515  +
            builder = builder.header("x-amzn-transcribe-language-model-name", header_value);
         516  +
        }
  485    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();
  489         -
        let header_value = formatted_34;
  490         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  491         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  492         -
                "identify_language",
  493         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  494         -
            )
  495         -
        })?;
  496         -
        builder = builder.header("x-amzn-transcribe-identify-language", header_value);
         521  +
        if !formatted_34.is_empty() {
         522  +
            let header_value = formatted_34;
         523  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         524  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         525  +
                    "identify_language",
         526  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         527  +
                )
         528  +
            })?;
         529  +
            builder = builder.header("x-amzn-transcribe-identify-language", header_value);
         530  +
        }
  497    531   
    }
  498    532   
    if let ::std::option::Option::Some(inner_35) = &input.language_options {
  499    533   
        let formatted_36 = inner_35.as_str();
  500         -
        let header_value = formatted_36;
  501         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  502         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  503         -
                "language_options",
  504         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  505         -
            )
  506         -
        })?;
  507         -
        builder = builder.header("x-amzn-transcribe-language-options", header_value);
         534  +
        if !formatted_36.is_empty() {
         535  +
            let header_value = formatted_36;
         536  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         537  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         538  +
                    "language_options",
         539  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         540  +
                )
         541  +
            })?;
         542  +
            builder = builder.header("x-amzn-transcribe-language-options", header_value);
         543  +
        }
  508    544   
    }
  509    545   
    if let ::std::option::Option::Some(inner_37) = &input.preferred_language {
  510    546   
        let formatted_38 = inner_37.as_str();
  511         -
        let header_value = formatted_38;
  512         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  513         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  514         -
                "preferred_language",
  515         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  516         -
            )
  517         -
        })?;
  518         -
        builder = builder.header("x-amzn-transcribe-preferred-language", header_value);
         547  +
        if !formatted_38.is_empty() {
         548  +
            let header_value = formatted_38;
         549  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         550  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         551  +
                    "preferred_language",
         552  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         553  +
                )
         554  +
            })?;
         555  +
            builder = builder.header("x-amzn-transcribe-preferred-language", header_value);
         556  +
        }
  519    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();
  523         -
        let header_value = formatted_40;
  524         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  525         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  526         -
                "identify_multiple_languages",
  527         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  528         -
            )
  529         -
        })?;
  530         -
        builder = builder.header("x-amzn-transcribe-identify-multiple-languages", header_value);
         561  +
        if !formatted_40.is_empty() {
         562  +
            let header_value = formatted_40;
         563  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         564  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         565  +
                    "identify_multiple_languages",
         566  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         567  +
                )
         568  +
            })?;
         569  +
            builder = builder.header("x-amzn-transcribe-identify-multiple-languages", header_value);
         570  +
        }
  531    571   
    }
  532    572   
    if let ::std::option::Option::Some(inner_41) = &input.vocabulary_names {
  533    573   
        let formatted_42 = inner_41.as_str();
  534         -
        let header_value = formatted_42;
  535         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  536         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  537         -
                "vocabulary_names",
  538         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  539         -
            )
  540         -
        })?;
  541         -
        builder = builder.header("x-amzn-transcribe-vocabulary-names", header_value);
         574  +
        if !formatted_42.is_empty() {
         575  +
            let header_value = formatted_42;
         576  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         577  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         578  +
                    "vocabulary_names",
         579  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         580  +
                )
         581  +
            })?;
         582  +
            builder = builder.header("x-amzn-transcribe-vocabulary-names", header_value);
         583  +
        }
  542    584   
    }
  543    585   
    if let ::std::option::Option::Some(inner_43) = &input.vocabulary_filter_names {
  544    586   
        let formatted_44 = inner_43.as_str();
  545         -
        let header_value = formatted_44;
  546         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  547         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  548         -
                "vocabulary_filter_names",
  549         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  550         -
            )
  551         -
        })?;
  552         -
        builder = builder.header("x-amzn-transcribe-vocabulary-filter-names", header_value);
         587  +
        if !formatted_44.is_empty() {
         588  +
            let header_value = formatted_44;
         589  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         590  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         591  +
                    "vocabulary_filter_names",
         592  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         593  +
                )
         594  +
            })?;
         595  +
            builder = builder.header("x-amzn-transcribe-vocabulary-filter-names", header_value);
         596  +
        }
  553    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