AWS SDK

AWS SDK

rev. 000b37a512bd3be1a17b4f3d5bf60e5446dbc2dd (ignoring whitespace)

Files changed:

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

@@ -17,17 +85,87 @@
   37     37   
        output.build()
   38     38   
    })
   39     39   
}
   40     40   
   41     41   
pub fn ser_get_access_point_policy_status_for_object_lambda_headers(
   42     42   
    input: &crate::operation::get_access_point_policy_status_for_object_lambda::GetAccessPointPolicyStatusForObjectLambdaInput,
   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.account_id {
   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   
                    "account_id",
   51     52   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   52     53   
                )
   53     54   
            })?;
   54     55   
            builder = builder.header("x-amz-account-id", header_value);
   55     56   
        }
          57  +
    }
   56     58   
    Ok(builder)
   57     59   
}
   58     60   
   59     61   
#[allow(unused_mut)]
   60     62   
pub fn de_get_access_point_policy_status_for_object_lambda(
   61     63   
    inp: &[u8],
   62     64   
    mut builder: crate::operation::get_access_point_policy_status_for_object_lambda::builders::GetAccessPointPolicyStatusForObjectLambdaOutputBuilder,
   63     65   
) -> Result<
   64     66   
    crate::operation::get_access_point_policy_status_for_object_lambda::builders::GetAccessPointPolicyStatusForObjectLambdaOutputBuilder,
   65     67   
    ::aws_smithy_xml::decode::XmlDecodeError,

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

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

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

@@ -14,14 +82,84 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_get_bucket_lifecycle_configuration_headers(
   39     39   
    input: &crate::operation::get_bucket_lifecycle_configuration::GetBucketLifecycleConfigurationInput,
   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   
#[allow(unused_mut)]
   57     59   
pub fn de_get_bucket_lifecycle_configuration(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::get_bucket_lifecycle_configuration::builders::GetBucketLifecycleConfigurationOutputBuilder,
   60     62   
) -> Result<
   61     63   
    crate::operation::get_bucket_lifecycle_configuration::builders::GetBucketLifecycleConfigurationOutputBuilder,
   62     64   
    ::aws_smithy_xml::decode::XmlDecodeError,

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

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

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

@@ -14,14 +82,84 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_get_bucket_replication_headers(
   39     39   
    input: &crate::operation::get_bucket_replication::GetBucketReplicationInput,
   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   
#[allow(unused_mut)]
   57     59   
pub fn de_get_bucket_replication(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::get_bucket_replication::builders::GetBucketReplicationOutputBuilder,
   60     62   
) -> Result<crate::operation::get_bucket_replication::builders::GetBucketReplicationOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
   61     63   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   62     64   

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

@@ -10,10 +78,80 @@
   30     30   
            .map_err(crate::operation::get_bucket_tagging::GetBucketTaggingError::unhandled)?
   31     31   
    })
   32     32   
}
   33     33   
   34     34   
pub fn ser_get_bucket_tagging_headers(
   35     35   
    input: &crate::operation::get_bucket_tagging::GetBucketTaggingInput,
   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.account_id {
   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   
                    "account_id",
   44     45   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   45     46   
                )
   46     47   
            })?;
   47     48   
            builder = builder.header("x-amz-account-id", 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_tagging(
   54     56   
    inp: &[u8],
   55     57   
    mut builder: crate::operation::get_bucket_tagging::builders::GetBucketTaggingOutputBuilder,
   56     58   
) -> Result<crate::operation::get_bucket_tagging::builders::GetBucketTaggingOutputBuilder, ::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/s3control/src/protocol_serde/shape_get_bucket_versioning.rs

@@ -14,14 +82,84 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_get_bucket_versioning_headers(
   39     39   
    input: &crate::operation::get_bucket_versioning::GetBucketVersioningInput,
   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   
#[allow(unused_mut)]
   57     59   
pub fn de_get_bucket_versioning(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::get_bucket_versioning::builders::GetBucketVersioningOutputBuilder,
   60     62   
) -> Result<crate::operation::get_bucket_versioning::builders::GetBucketVersioningOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
   61     63   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   62     64   

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

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

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

@@ -61,61 +129,131 @@
   81     81   
        output.build()
   82     82   
    })
   83     83   
}
   84     84   
   85     85   
pub fn ser_get_job_tagging_headers(
   86     86   
    input: &crate::operation::get_job_tagging::GetJobTaggingInput,
   87     87   
    mut builder: ::http::request::Builder,
   88     88   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   89     89   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   90     90   
        let formatted_2 = inner_1.as_str();
          91  +
        if !formatted_2.is_empty() {
   91     92   
            let header_value = formatted_2;
   92     93   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   93     94   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   94     95   
                    "account_id",
   95     96   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   96     97   
                )
   97     98   
            })?;
   98     99   
            builder = builder.header("x-amz-account-id", header_value);
   99    100   
        }
         101  +
    }
  100    102   
    Ok(builder)
  101    103   
}
  102    104   
  103    105   
#[allow(unused_mut)]
  104    106   
pub fn de_get_job_tagging(
  105    107   
    inp: &[u8],
  106    108   
    mut builder: crate::operation::get_job_tagging::builders::GetJobTaggingOutputBuilder,
  107    109   
) -> Result<crate::operation::get_job_tagging::builders::GetJobTaggingOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
  108    110   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
  109    111   

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

@@ -16,16 +84,86 @@
   36     36   
        output.build()
   37     37   
    })
   38     38   
}
   39     39   
   40     40   
pub fn ser_get_multi_region_access_point_headers(
   41     41   
    input: &crate::operation::get_multi_region_access_point::GetMultiRegionAccessPointInput,
   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   
#[allow(unused_mut)]
   59     61   
pub fn de_get_multi_region_access_point(
   60     62   
    inp: &[u8],
   61     63   
    mut builder: crate::operation::get_multi_region_access_point::builders::GetMultiRegionAccessPointOutputBuilder,
   62     64   
) -> Result<crate::operation::get_multi_region_access_point::builders::GetMultiRegionAccessPointOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError>
   63     65   
{
   64     66   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;

tmp-codegen-diff/aws-sdk/sdk/s3control/src/protocol_serde/shape_get_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_get_multi_region_access_point_policy_headers(
   39     39   
    input: &crate::operation::get_multi_region_access_point_policy::GetMultiRegionAccessPointPolicyInput,
   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   
#[allow(unused_mut)]
   57     59   
pub fn de_get_multi_region_access_point_policy(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::get_multi_region_access_point_policy::builders::GetMultiRegionAccessPointPolicyOutputBuilder,
   60     62   
) -> Result<
   61     63   
    crate::operation::get_multi_region_access_point_policy::builders::GetMultiRegionAccessPointPolicyOutputBuilder,
   62     64   
    ::aws_smithy_xml::decode::XmlDecodeError,

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

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

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

@@ -14,14 +82,84 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_get_multi_region_access_point_routes_headers(
   39     39   
    input: &crate::operation::get_multi_region_access_point_routes::GetMultiRegionAccessPointRoutesInput,
   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   
#[allow(unused_mut)]
   57     59   
pub fn de_get_multi_region_access_point_routes(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::get_multi_region_access_point_routes::builders::GetMultiRegionAccessPointRoutesOutputBuilder,
   60     62   
) -> Result<
   61     63   
    crate::operation::get_multi_region_access_point_routes::builders::GetMultiRegionAccessPointRoutesOutputBuilder,
   62     64   
    ::aws_smithy_xml::decode::XmlDecodeError,

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

@@ -44,44 +84,86 @@
   64     64   
        output.build()
   65     65   
    })
   66     66   
}
   67     67   
   68     68   
pub fn ser_get_public_access_block_headers(
   69     69   
    input: &crate::operation::get_public_access_block::GetPublicAccessBlockInput,
   70     70   
    mut builder: ::http::request::Builder,
   71     71   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   72     72   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   73     73   
        let formatted_2 = inner_1.as_str();
          74  +
        if !formatted_2.is_empty() {
   74     75   
            let header_value = formatted_2;
   75     76   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   76     77   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   77     78   
                    "account_id",
   78     79   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   79     80   
                )
   80     81   
            })?;
   81     82   
            builder = builder.header("x-amz-account-id", header_value);
   82     83   
        }
          84  +
    }
   83     85   
    Ok(builder)
   84     86   
}

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

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

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

@@ -16,16 +84,86 @@
   36     36   
        output.build()
   37     37   
    })
   38     38   
}
   39     39   
   40     40   
pub fn ser_get_storage_lens_configuration_tagging_headers(
   41     41   
    input: &crate::operation::get_storage_lens_configuration_tagging::GetStorageLensConfigurationTaggingInput,
   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   
#[allow(unused_mut)]
   59     61   
pub fn de_get_storage_lens_configuration_tagging(
   60     62   
    inp: &[u8],
   61     63   
    mut builder: crate::operation::get_storage_lens_configuration_tagging::builders::GetStorageLensConfigurationTaggingOutputBuilder,
   62     64   
) -> Result<
   63     65   
    crate::operation::get_storage_lens_configuration_tagging::builders::GetStorageLensConfigurationTaggingOutputBuilder,
   64     66   
    ::aws_smithy_xml::decode::XmlDecodeError,