AWS SDK

AWS SDK

rev. a25ccedd311e7562a03a1cd07d728cef10c9474c (ignoring whitespace)

Files changed:

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

@@ -12,12 +52,54 @@
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_put_bucket_lifecycle_configuration_headers(
   37     37   
    input: &crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationInput,
   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   
}

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

@@ -6,6 +73,77 @@
   26     26   
        output.build()
   27     27   
    })
   28     28   
}
   29     29   
   30     30   
pub fn ser_put_bucket_policy_headers(
   31     31   
    input: &crate::operation::put_bucket_policy::PutBucketPolicyInput,
   32     32   
    mut builder: ::http::request::Builder,
   33     33   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   34     34   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   35     35   
        let formatted_2 = inner_1.as_str();
          36  +
        if !formatted_2.is_empty() {
   36     37   
            let header_value = formatted_2;
   37     38   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   38     39   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   39     40   
                    "account_id",
   40     41   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   41     42   
                )
   42     43   
            })?;
   43     44   
            builder = builder.header("x-amz-account-id", header_value);
   44     45   
        }
          46  +
    }
   45     47   
    if let ::std::option::Option::Some(inner_3) = &input.confirm_remove_self_bucket_access {
   46     48   
        let mut encoder = ::aws_smithy_types::primitive::Encoder::from(*inner_3);
   47     49   
        let formatted_4 = encoder.encode();
          50  +
        if !formatted_4.is_empty() {
   48     51   
            let header_value = formatted_4;
   49     52   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   50     53   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   51     54   
                    "confirm_remove_self_bucket_access",
   52     55   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   53     56   
                )
   54     57   
            })?;
   55     58   
            builder = builder.header("x-amz-confirm-remove-self-bucket-access", header_value);
   56     59   
        }
          60  +
    }
   57     61   
    Ok(builder)
   58     62   
}
   59     63   
   60     64   
pub fn ser_put_bucket_policy_op_input(
   61     65   
    input: &crate::operation::put_bucket_policy::PutBucketPolicyInput,
   62     66   
) -> Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   63     67   
    let mut out = String::new();
   64     68   
    {
   65     69   
        let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);
   66     70   
        #[allow(unused_mut)]

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

@@ -12,12 +52,54 @@
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_put_bucket_replication_headers(
   37     37   
    input: &crate::operation::put_bucket_replication::PutBucketReplicationInput,
   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   
}

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

@@ -6,6 +46,48 @@
   26     26   
        output.build()
   27     27   
    })
   28     28   
}
   29     29   
   30     30   
pub fn ser_put_bucket_tagging_headers(
   31     31   
    input: &crate::operation::put_bucket_tagging::PutBucketTaggingInput,
   32     32   
    mut builder: ::http::request::Builder,
   33     33   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   34     34   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   35     35   
        let formatted_2 = inner_1.as_str();
          36  +
        if !formatted_2.is_empty() {
   36     37   
            let header_value = formatted_2;
   37     38   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   38     39   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   39     40   
                    "account_id",
   40     41   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   41     42   
                )
   42     43   
            })?;
   43     44   
            builder = builder.header("x-amz-account-id", header_value);
   44     45   
        }
          46  +
    }
   45     47   
    Ok(builder)
   46     48   
}

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

@@ -12,12 +63,67 @@
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_put_bucket_versioning_headers(
   37     37   
    input: &crate::operation::put_bucket_versioning::PutBucketVersioningInput,
   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   
    if let ::std::option::Option::Some(inner_3) = &input.mfa {
   52     54   
        let formatted_4 = inner_3.as_str();
          55  +
        if !formatted_4.is_empty() {
   53     56   
            let header_value = formatted_4;
   54     57   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   55     58   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   56     59   
                    "mfa",
   57     60   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   58     61   
                )
   59     62   
            })?;
   60     63   
            builder = builder.header("x-amz-mfa", header_value);
   61     64   
        }
          65  +
    }
   62     66   
    Ok(builder)
   63     67   
}

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

@@ -74,74 +129,131 @@
   94     94   
        output.build()
   95     95   
    })
   96     96   
}
   97     97   
   98     98   
pub fn ser_put_job_tagging_headers(
   99     99   
    input: &crate::operation::put_job_tagging::PutJobTaggingInput,
  100    100   
    mut builder: ::http::request::Builder,
  101    101   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  102    102   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
  103    103   
        let formatted_2 = inner_1.as_str();
         104  +
        if !formatted_2.is_empty() {
  104    105   
            let header_value = formatted_2;
  105    106   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  106    107   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  107    108   
                    "account_id",
  108    109   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  109    110   
                )
  110    111   
            })?;
  111    112   
            builder = builder.header("x-amz-account-id", header_value);
  112    113   
        }
         114  +
    }
  113    115   
    Ok(builder)
  114    116   
}
  115    117   
  116    118   
pub fn ser_put_job_tagging_op_input(
  117    119   
    input: &crate::operation::put_job_tagging::PutJobTaggingInput,
  118    120   
) -> Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
  119    121   
    let mut out = String::new();
  120    122   
    {
  121    123   
        let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);
  122    124   
        #[allow(unused_mut)]

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

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

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

@@ -12,12 +52,54 @@
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_put_public_access_block_headers(
   37     37   
    input: &crate::operation::put_public_access_block::PutPublicAccessBlockInput,
   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   
}

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

@@ -12,12 +67,69 @@
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_put_storage_lens_configuration_headers(
   37     37   
    input: &crate::operation::put_storage_lens_configuration::PutStorageLensConfigurationInput,
   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_put_storage_lens_configuration_op_input(
   55     57   
    input: &crate::operation::put_storage_lens_configuration::PutStorageLensConfigurationInput,
   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/s3control/src/protocol_serde/shape_put_storage_lens_configuration_tagging.rs

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

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

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

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

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

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

@@ -6,6 +46,48 @@
   26     26   
        output.build()
   27     27   
    })
   28     28   
}
   29     29   
   30     30   
pub fn ser_untag_resource_headers(
   31     31   
    input: &crate::operation::untag_resource::UntagResourceInput,
   32     32   
    mut builder: ::http::request::Builder,
   33     33   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   34     34   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   35     35   
        let formatted_2 = inner_1.as_str();
          36  +
        if !formatted_2.is_empty() {
   36     37   
            let header_value = formatted_2;
   37     38   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   38     39   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   39     40   
                    "account_id",
   40     41   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   41     42   
                )
   42     43   
            })?;
   43     44   
            builder = builder.header("x-amz-account-id", header_value);
   44     45   
        }
          46  +
    }
   45     47   
    Ok(builder)
   46     48   
}

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

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

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

@@ -80,80 +148,150 @@
  100    100   
            .map_err(crate::operation::update_job_priority::UpdateJobPriorityError::unhandled)?
  101    101   
    })
  102    102   
}
  103    103   
  104    104   
pub fn ser_update_job_priority_headers(
  105    105   
    input: &crate::operation::update_job_priority::UpdateJobPriorityInput,
  106    106   
    mut builder: ::http::request::Builder,
  107    107   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  108    108   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
  109    109   
        let formatted_2 = inner_1.as_str();
         110  +
        if !formatted_2.is_empty() {
  110    111   
            let header_value = formatted_2;
  111    112   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  112    113   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  113    114   
                    "account_id",
  114    115   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  115    116   
                )
  116    117   
            })?;
  117    118   
            builder = builder.header("x-amz-account-id", header_value);
  118    119   
        }
         120  +
    }
  119    121   
    Ok(builder)
  120    122   
}
  121    123   
  122    124   
#[allow(unused_mut)]
  123    125   
pub fn de_update_job_priority(
  124    126   
    inp: &[u8],
  125    127   
    mut builder: crate::operation::update_job_priority::builders::UpdateJobPriorityOutputBuilder,
  126    128   
) -> Result<crate::operation::update_job_priority::builders::UpdateJobPriorityOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
  127    129   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
  128    130   

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

@@ -91,91 +159,161 @@
  111    111   
        output.build()
  112    112   
    })
  113    113   
}
  114    114   
  115    115   
pub fn ser_update_job_status_headers(
  116    116   
    input: &crate::operation::update_job_status::UpdateJobStatusInput,
  117    117   
    mut builder: ::http::request::Builder,
  118    118   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  119    119   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
  120    120   
        let formatted_2 = inner_1.as_str();
         121  +
        if !formatted_2.is_empty() {
  121    122   
            let header_value = formatted_2;
  122    123   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  123    124   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
  124    125   
                    "account_id",
  125    126   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
  126    127   
                )
  127    128   
            })?;
  128    129   
            builder = builder.header("x-amz-account-id", header_value);
  129    130   
        }
         131  +
    }
  130    132   
    Ok(builder)
  131    133   
}
  132    134   
  133    135   
#[allow(unused_mut)]
  134    136   
pub fn de_update_job_status(
  135    137   
    inp: &[u8],
  136    138   
    mut builder: crate::operation::update_job_status::builders::UpdateJobStatusOutputBuilder,
  137    139   
) -> Result<crate::operation::update_job_status::builders::UpdateJobStatusOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
  138    140   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
  139    141