AWS SDK

AWS SDK

rev. 000b37a512bd3be1a17b4f3d5bf60e5446dbc2dd (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_delete_public_access_block.rs

@@ -16,16 +56,58 @@
   36     36   
        output.build()
   37     37   
    })
   38     38   
}
   39     39   
   40     40   
pub fn ser_delete_public_access_block_headers(
   41     41   
    input: &crate::operation::delete_public_access_block::DeletePublicAccessBlockInput,
   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.expected_bucket_owner {
   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   
                    "expected_bucket_owner",
   50     51   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   51     52   
                )
   52     53   
            })?;
   53     54   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   54     55   
        }
          56  +
    }
   55     57   
    Ok(builder)
   56     58   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_accelerate_configuration.rs

@@ -23,23 +102,106 @@
   43     43   
        output.build()
   44     44   
    })
   45     45   
}
   46     46   
   47     47   
pub fn ser_get_bucket_accelerate_configuration_headers(
   48     48   
    input: &crate::operation::get_bucket_accelerate_configuration::GetBucketAccelerateConfigurationInput,
   49     49   
    mut builder: ::http::request::Builder,
   50     50   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   51     51   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   52     52   
        let formatted_2 = inner_1.as_str();
          53  +
        if !formatted_2.is_empty() {
   53     54   
            let header_value = formatted_2;
   54     55   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   55     56   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   56     57   
                    "expected_bucket_owner",
   57     58   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   58     59   
                )
   59     60   
            })?;
   60     61   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   61     62   
        }
          63  +
    }
   62     64   
    if let ::std::option::Option::Some(inner_3) = &input.request_payer {
   63     65   
        let formatted_4 = inner_3.as_str();
          66  +
        if !formatted_4.is_empty() {
   64     67   
            let header_value = formatted_4;
   65     68   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   66     69   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   67     70   
                    "request_payer",
   68     71   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   69     72   
                )
   70     73   
            })?;
   71     74   
            builder = builder.header("x-amz-request-payer", header_value);
   72     75   
        }
          76  +
    }
   73     77   
    Ok(builder)
   74     78   
}
   75     79   
   76     80   
#[allow(unused_mut)]
   77     81   
pub fn de_get_bucket_accelerate_configuration(
   78     82   
    inp: &[u8],
   79     83   
    mut builder: crate::operation::get_bucket_accelerate_configuration::builders::GetBucketAccelerateConfigurationOutputBuilder,
   80     84   
) -> Result<
   81     85   
    crate::operation::get_bucket_accelerate_configuration::builders::GetBucketAccelerateConfigurationOutputBuilder,
   82     86   
    ::aws_smithy_xml::decode::XmlDecodeError,

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_acl.rs

@@ -10,10 +78,80 @@
   30     30   
        output.build()
   31     31   
    })
   32     32   
}
   33     33   
   34     34   
pub fn ser_get_bucket_acl_headers(
   35     35   
    input: &crate::operation::get_bucket_acl::GetBucketAclInput,
   36     36   
    mut builder: ::http::request::Builder,
   37     37   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   38     38   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   39     39   
        let formatted_2 = inner_1.as_str();
          40  +
        if !formatted_2.is_empty() {
   40     41   
            let header_value = formatted_2;
   41     42   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   42     43   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   43     44   
                    "expected_bucket_owner",
   44     45   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   45     46   
                )
   46     47   
            })?;
   47     48   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   48     49   
        }
          50  +
    }
   49     51   
    Ok(builder)
   50     52   
}
   51     53   
   52     54   
#[allow(unused_mut)]
   53     55   
pub fn de_get_bucket_acl(
   54     56   
    inp: &[u8],
   55     57   
    mut builder: crate::operation::get_bucket_acl::builders::GetBucketAclOutputBuilder,
   56     58   
) -> Result<crate::operation::get_bucket_acl::builders::GetBucketAclOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
   57     59   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   58     60   

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_analytics_configuration.rs

@@ -17,17 +57,59 @@
   37     37   
        output.build()
   38     38   
    })
   39     39   
}
   40     40   
   41     41   
pub fn ser_get_bucket_analytics_configuration_headers(
   42     42   
    input: &crate::operation::get_bucket_analytics_configuration::GetBucketAnalyticsConfigurationInput,
   43     43   
    mut builder: ::http::request::Builder,
   44     44   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   45     45   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   46     46   
        let formatted_2 = inner_1.as_str();
          47  +
        if !formatted_2.is_empty() {
   47     48   
            let header_value = formatted_2;
   48     49   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   49     50   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   50     51   
                    "expected_bucket_owner",
   51     52   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   52     53   
                )
   53     54   
            })?;
   54     55   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   55     56   
        }
          57  +
    }
   56     58   
    Ok(builder)
   57     59   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_cors.rs

@@ -10,10 +78,80 @@
   30     30   
        output.build()
   31     31   
    })
   32     32   
}
   33     33   
   34     34   
pub fn ser_get_bucket_cors_headers(
   35     35   
    input: &crate::operation::get_bucket_cors::GetBucketCorsInput,
   36     36   
    mut builder: ::http::request::Builder,
   37     37   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   38     38   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   39     39   
        let formatted_2 = inner_1.as_str();
          40  +
        if !formatted_2.is_empty() {
   40     41   
            let header_value = formatted_2;
   41     42   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   42     43   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   43     44   
                    "expected_bucket_owner",
   44     45   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   45     46   
                )
   46     47   
            })?;
   47     48   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   48     49   
        }
          50  +
    }
   49     51   
    Ok(builder)
   50     52   
}
   51     53   
   52     54   
#[allow(unused_mut)]
   53     55   
pub fn de_get_bucket_cors(
   54     56   
    inp: &[u8],
   55     57   
    mut builder: crate::operation::get_bucket_cors::builders::GetBucketCorsOutputBuilder,
   56     58   
) -> Result<crate::operation::get_bucket_cors::builders::GetBucketCorsOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
   57     59   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   58     60   

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_encryption.rs

@@ -17,17 +57,59 @@
   37     37   
        output.build()
   38     38   
    })
   39     39   
}
   40     40   
   41     41   
pub fn ser_get_bucket_encryption_headers(
   42     42   
    input: &crate::operation::get_bucket_encryption::GetBucketEncryptionInput,
   43     43   
    mut builder: ::http::request::Builder,
   44     44   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   45     45   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   46     46   
        let formatted_2 = inner_1.as_str();
          47  +
        if !formatted_2.is_empty() {
   47     48   
            let header_value = formatted_2;
   48     49   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   49     50   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   50     51   
                    "expected_bucket_owner",
   51     52   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   52     53   
                )
   53     54   
            })?;
   54     55   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   55     56   
        }
          57  +
    }
   56     58   
    Ok(builder)
   57     59   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_inventory_configuration.rs

@@ -17,17 +57,59 @@
   37     37   
        output.build()
   38     38   
    })
   39     39   
}
   40     40   
   41     41   
pub fn ser_get_bucket_inventory_configuration_headers(
   42     42   
    input: &crate::operation::get_bucket_inventory_configuration::GetBucketInventoryConfigurationInput,
   43     43   
    mut builder: ::http::request::Builder,
   44     44   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   45     45   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   46     46   
        let formatted_2 = inner_1.as_str();
          47  +
        if !formatted_2.is_empty() {
   47     48   
            let header_value = formatted_2;
   48     49   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   49     50   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   50     51   
                    "expected_bucket_owner",
   51     52   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   52     53   
                )
   53     54   
            })?;
   54     55   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   55     56   
        }
          57  +
    }
   56     58   
    Ok(builder)
   57     59   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_lifecycle_configuration.rs

@@ -16,16 +84,86 @@
   36     36   
        output.build()
   37     37   
    })
   38     38   
}
   39     39   
   40     40   
pub fn ser_get_bucket_lifecycle_configuration_headers(
   41     41   
    input: &crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationInput,
   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.expected_bucket_owner {
   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   
                    "expected_bucket_owner",
   50     51   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   51     52   
                )
   52     53   
            })?;
   53     54   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   54     55   
        }
          56  +
    }
   55     57   
    Ok(builder)
   56     58   
}
   57     59   
   58     60   
#[allow(unused_mut)]
   59     61   
pub fn de_get_bucket_lifecycle_configuration(
   60     62   
    inp: &[u8],
   61     63   
    mut builder: crate::operation::get_bucket_lifecycle_configuration::builders::GetBucketLifecycleConfigurationOutputBuilder,
   62     64   
) -> Result<
   63     65   
    crate::operation::get_bucket_lifecycle_configuration::builders::GetBucketLifecycleConfigurationOutputBuilder,
   64     66   
    ::aws_smithy_xml::decode::XmlDecodeError,

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_location.rs

@@ -12,12 +80,82 @@
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_get_bucket_location_headers(
   37     37   
    input: &crate::operation::get_bucket_location::GetBucketLocationInput,
   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.expected_bucket_owner {
   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   
                    "expected_bucket_owner",
   46     47   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   47     48   
                )
   48     49   
            })?;
   49     50   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   50     51   
        }
          52  +
    }
   51     53   
    Ok(builder)
   52     54   
}
   53     55   
   54     56   
#[allow(unused_mut)]
   55     57   
pub fn de_get_bucket_location(
   56     58   
    inp: &[u8],
   57     59   
    mut builder: crate::operation::get_bucket_location::builders::GetBucketLocationOutputBuilder,
   58     60   
) -> Result<crate::operation::get_bucket_location::builders::GetBucketLocationOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
   59     61   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   60     62   

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_logging.rs

@@ -10,10 +78,80 @@
   30     30   
        output.build()
   31     31   
    })
   32     32   
}
   33     33   
   34     34   
pub fn ser_get_bucket_logging_headers(
   35     35   
    input: &crate::operation::get_bucket_logging::GetBucketLoggingInput,
   36     36   
    mut builder: ::http::request::Builder,
   37     37   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   38     38   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   39     39   
        let formatted_2 = inner_1.as_str();
          40  +
        if !formatted_2.is_empty() {
   40     41   
            let header_value = formatted_2;
   41     42   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   42     43   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   43     44   
                    "expected_bucket_owner",
   44     45   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   45     46   
                )
   46     47   
            })?;
   47     48   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   48     49   
        }
          50  +
    }
   49     51   
    Ok(builder)
   50     52   
}
   51     53   
   52     54   
#[allow(unused_mut)]
   53     55   
pub fn de_get_bucket_logging(
   54     56   
    inp: &[u8],
   55     57   
    mut builder: crate::operation::get_bucket_logging::builders::GetBucketLoggingOutputBuilder,
   56     58   
) -> Result<crate::operation::get_bucket_logging::builders::GetBucketLoggingOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
   57     59   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   58     60   

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_metrics_configuration.rs

@@ -17,17 +57,59 @@
   37     37   
        output.build()
   38     38   
    })
   39     39   
}
   40     40   
   41     41   
pub fn ser_get_bucket_metrics_configuration_headers(
   42     42   
    input: &crate::operation::get_bucket_metrics_configuration::GetBucketMetricsConfigurationInput,
   43     43   
    mut builder: ::http::request::Builder,
   44     44   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   45     45   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   46     46   
        let formatted_2 = inner_1.as_str();
          47  +
        if !formatted_2.is_empty() {
   47     48   
            let header_value = formatted_2;
   48     49   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   49     50   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   50     51   
                    "expected_bucket_owner",
   51     52   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   52     53   
                )
   53     54   
            })?;
   54     55   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   55     56   
        }
          57  +
    }
   56     58   
    Ok(builder)
   57     59   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_notification_configuration.rs

@@ -17,17 +85,87 @@
   37     37   
        output.build()
   38     38   
    })
   39     39   
}
   40     40   
   41     41   
pub fn ser_get_bucket_notification_configuration_headers(
   42     42   
    input: &crate::operation::get_bucket_notification_configuration::GetBucketNotificationConfigurationInput,
   43     43   
    mut builder: ::http::request::Builder,
   44     44   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   45     45   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   46     46   
        let formatted_2 = inner_1.as_str();
          47  +
        if !formatted_2.is_empty() {
   47     48   
            let header_value = formatted_2;
   48     49   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   49     50   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   50     51   
                    "expected_bucket_owner",
   51     52   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   52     53   
                )
   53     54   
            })?;
   54     55   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   55     56   
        }
          57  +
    }
   56     58   
    Ok(builder)
   57     59   
}
   58     60   
   59     61   
#[allow(unused_mut)]
   60     62   
pub fn de_get_bucket_notification_configuration(
   61     63   
    inp: &[u8],
   62     64   
    mut builder: crate::operation::get_bucket_notification_configuration::builders::GetBucketNotificationConfigurationOutputBuilder,
   63     65   
) -> Result<
   64     66   
    crate::operation::get_bucket_notification_configuration::builders::GetBucketNotificationConfigurationOutputBuilder,
   65     67   
    ::aws_smithy_xml::decode::XmlDecodeError,

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_ownership_controls.rs

@@ -19,19 +59,61 @@
   39     39   
        output.build()
   40     40   
    })
   41     41   
}
   42     42   
   43     43   
pub fn ser_get_bucket_ownership_controls_headers(
   44     44   
    input: &crate::operation::get_bucket_ownership_controls::GetBucketOwnershipControlsInput,
   45     45   
    mut builder: ::http::request::Builder,
   46     46   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   47     47   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   48     48   
        let formatted_2 = inner_1.as_str();
          49  +
        if !formatted_2.is_empty() {
   49     50   
            let header_value = formatted_2;
   50     51   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   51     52   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   52     53   
                    "expected_bucket_owner",
   53     54   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   54     55   
                )
   55     56   
            })?;
   56     57   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   57     58   
        }
          59  +
    }
   58     60   
    Ok(builder)
   59     61   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_policy.rs

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

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_policy_status.rs

@@ -17,17 +57,59 @@
   37     37   
        output.build()
   38     38   
    })
   39     39   
}
   40     40   
   41     41   
pub fn ser_get_bucket_policy_status_headers(
   42     42   
    input: &crate::operation::get_bucket_policy_status::GetBucketPolicyStatusInput,
   43     43   
    mut builder: ::http::request::Builder,
   44     44   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   45     45   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   46     46   
        let formatted_2 = inner_1.as_str();
          47  +
        if !formatted_2.is_empty() {
   47     48   
            let header_value = formatted_2;
   48     49   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   49     50   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   50     51   
                    "expected_bucket_owner",
   51     52   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   52     53   
                )
   53     54   
            })?;
   54     55   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   55     56   
        }
          57  +
    }
   56     58   
    Ok(builder)
   57     59   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/protocol_serde/shape_get_bucket_replication.rs

@@ -17,17 +57,59 @@
   37     37   
        output.build()
   38     38   
    })
   39     39   
}
   40     40   
   41     41   
pub fn ser_get_bucket_replication_headers(
   42     42   
    input: &crate::operation::get_bucket_replication::GetBucketReplicationInput,
   43     43   
    mut builder: ::http::request::Builder,
   44     44   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   45     45   
    if let ::std::option::Option::Some(inner_1) = &input.expected_bucket_owner {
   46     46   
        let formatted_2 = inner_1.as_str();
          47  +
        if !formatted_2.is_empty() {
   47     48   
            let header_value = formatted_2;
   48     49   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   49     50   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   50     51   
                    "expected_bucket_owner",
   51     52   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   52     53   
                )
   53     54   
            })?;
   54     55   
            builder = builder.header("x-amz-expected-bucket-owner", header_value);
   55     56   
        }
          57  +
    }
   56     58   
    Ok(builder)
   57     59   
}