AWS SDK

AWS SDK

rev. a7fb2e3446d314cfbe48069306e4e0a389b39aeb (ignoring whitespace)

Files changed:

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

@@ -15,15 +55,57 @@
   35     35   
        output.build()
   36     36   
    })
   37     37   
}
   38     38   
   39     39   
pub fn ser_get_storage_lens_group_headers(
   40     40   
    input: &crate::operation::get_storage_lens_group::GetStorageLensGroupInput,
   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_list_access_grants.rs

@@ -8,8 +76,78 @@
   28     28   
        output.build()
   29     29   
    })
   30     30   
}
   31     31   
   32     32   
pub fn ser_list_access_grants_headers(
   33     33   
    input: &crate::operation::list_access_grants::ListAccessGrantsInput,
   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_list_access_grants(
   52     54   
    inp: &[u8],
   53     55   
    mut builder: crate::operation::list_access_grants::builders::ListAccessGrantsOutputBuilder,
   54     56   
) -> Result<crate::operation::list_access_grants::builders::ListAccessGrantsOutputBuilder, ::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_list_access_grants_instances.rs

@@ -16,16 +84,86 @@
   36     36   
        output.build()
   37     37   
    })
   38     38   
}
   39     39   
   40     40   
pub fn ser_list_access_grants_instances_headers(
   41     41   
    input: &crate::operation::list_access_grants_instances::ListAccessGrantsInstancesInput,
   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_list_access_grants_instances(
   60     62   
    inp: &[u8],
   61     63   
    mut builder: crate::operation::list_access_grants_instances::builders::ListAccessGrantsInstancesOutputBuilder,
   62     64   
) -> Result<crate::operation::list_access_grants_instances::builders::ListAccessGrantsInstancesOutputBuilder, ::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_list_access_grants_locations.rs

@@ -16,16 +84,86 @@
   36     36   
        output.build()
   37     37   
    })
   38     38   
}
   39     39   
   40     40   
pub fn ser_list_access_grants_locations_headers(
   41     41   
    input: &crate::operation::list_access_grants_locations::ListAccessGrantsLocationsInput,
   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_list_access_grants_locations(
   60     62   
    inp: &[u8],
   61     63   
    mut builder: crate::operation::list_access_grants_locations::builders::ListAccessGrantsLocationsOutputBuilder,
   62     64   
) -> Result<crate::operation::list_access_grants_locations::builders::ListAccessGrantsLocationsOutputBuilder, ::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_list_access_points.rs

@@ -8,8 +76,78 @@
   28     28   
        output.build()
   29     29   
    })
   30     30   
}
   31     31   
   32     32   
pub fn ser_list_access_points_headers(
   33     33   
    input: &crate::operation::list_access_points::ListAccessPointsInput,
   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_list_access_points(
   52     54   
    inp: &[u8],
   53     55   
    mut builder: crate::operation::list_access_points::builders::ListAccessPointsOutputBuilder,
   54     56   
) -> Result<crate::operation::list_access_points::builders::ListAccessPointsOutputBuilder, ::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_list_access_points_for_object_lambda.rs

@@ -14,14 +82,84 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_list_access_points_for_object_lambda_headers(
   39     39   
    input: &crate::operation::list_access_points_for_object_lambda::ListAccessPointsForObjectLambdaInput,
   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_list_access_points_for_object_lambda(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::list_access_points_for_object_lambda::builders::ListAccessPointsForObjectLambdaOutputBuilder,
   60     62   
) -> Result<
   61     63   
    crate::operation::list_access_points_for_object_lambda::builders::ListAccessPointsForObjectLambdaOutputBuilder,
   62     64   
    ::aws_smithy_xml::decode::XmlDecodeError,

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

@@ -61,61 +129,131 @@
   81     81   
        output.build()
   82     82   
    })
   83     83   
}
   84     84   
   85     85   
pub fn ser_list_jobs_headers(
   86     86   
    input: &crate::operation::list_jobs::ListJobsInput,
   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_list_jobs(
  105    107   
    inp: &[u8],
  106    108   
    mut builder: crate::operation::list_jobs::builders::ListJobsOutputBuilder,
  107    109   
) -> Result<crate::operation::list_jobs::builders::ListJobsOutputBuilder, ::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_list_multi_region_access_points.rs

@@ -14,14 +82,84 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_list_multi_region_access_points_headers(
   39     39   
    input: &crate::operation::list_multi_region_access_points::ListMultiRegionAccessPointsInput,
   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_list_multi_region_access_points(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::list_multi_region_access_points::builders::ListMultiRegionAccessPointsOutputBuilder,
   60     62   
) -> Result<
   61     63   
    crate::operation::list_multi_region_access_points::builders::ListMultiRegionAccessPointsOutputBuilder,
   62     64   
    ::aws_smithy_xml::decode::XmlDecodeError,

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

@@ -14,14 +93,97 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_list_regional_buckets_headers(
   39     39   
    input: &crate::operation::list_regional_buckets::ListRegionalBucketsInput,
   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   
    if let ::std::option::Option::Some(inner_3) = &input.outpost_id {
   54     56   
        let formatted_4 = inner_3.as_str();
          57  +
        if !formatted_4.is_empty() {
   55     58   
            let header_value = formatted_4;
   56     59   
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   57     60   
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
   58     61   
                    "outpost_id",
   59     62   
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
   60     63   
                )
   61     64   
            })?;
   62     65   
            builder = builder.header("x-amz-outpost-id", header_value);
   63     66   
        }
          67  +
    }
   64     68   
    Ok(builder)
   65     69   
}
   66     70   
   67     71   
#[allow(unused_mut)]
   68     72   
pub fn de_list_regional_buckets(
   69     73   
    inp: &[u8],
   70     74   
    mut builder: crate::operation::list_regional_buckets::builders::ListRegionalBucketsOutputBuilder,
   71     75   
) -> Result<crate::operation::list_regional_buckets::builders::ListRegionalBucketsOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
   72     76   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
   73     77   

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

@@ -14,14 +82,84 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_list_storage_lens_configurations_headers(
   39     39   
    input: &crate::operation::list_storage_lens_configurations::ListStorageLensConfigurationsInput,
   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_list_storage_lens_configurations(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::list_storage_lens_configurations::builders::ListStorageLensConfigurationsOutputBuilder,
   60     62   
) -> Result<
   61     63   
    crate::operation::list_storage_lens_configurations::builders::ListStorageLensConfigurationsOutputBuilder,
   62     64   
    ::aws_smithy_xml::decode::XmlDecodeError,

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

@@ -14,14 +82,84 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_list_storage_lens_groups_headers(
   39     39   
    input: &crate::operation::list_storage_lens_groups::ListStorageLensGroupsInput,
   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_list_storage_lens_groups(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::list_storage_lens_groups::builders::ListStorageLensGroupsOutputBuilder,
   60     62   
) -> Result<crate::operation::list_storage_lens_groups::builders::ListStorageLensGroupsOutputBuilder, ::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_list_tags_for_resource.rs

@@ -14,14 +82,84 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_list_tags_for_resource_headers(
   39     39   
    input: &crate::operation::list_tags_for_resource::ListTagsForResourceInput,
   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_list_tags_for_resource(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::list_tags_for_resource::builders::ListTagsForResourceOutputBuilder,
   60     62   
) -> Result<crate::operation::list_tags_for_resource::builders::ListTagsForResourceOutputBuilder, ::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_put_access_grants_instance_resource_policy.rs

@@ -18,18 +86,88 @@
   38     38   
        output.build()
   39     39   
    })
   40     40   
}
   41     41   
   42     42   
pub fn ser_put_access_grants_instance_resource_policy_headers(
   43     43   
    input: &crate::operation::put_access_grants_instance_resource_policy::PutAccessGrantsInstanceResourcePolicyInput,
   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   
pub fn ser_put_access_grants_instance_resource_policy_op_input(
   61     63   
    input: &crate::operation::put_access_grants_instance_resource_policy::PutAccessGrantsInstanceResourcePolicyInput,
   62     64   
) -> Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   63     65   
    let mut out = String::new();
   64     66   
    {
   65     67   
        let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);
   66     68   
        #[allow(unused_mut)]

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

@@ -12,12 +67,69 @@
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_put_access_point_configuration_for_object_lambda_headers(
   37     37   
    input: &crate::operation::put_access_point_configuration_for_object_lambda::PutAccessPointConfigurationForObjectLambdaInput,
   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_access_point_configuration_for_object_lambda_op_input(
   55     57   
    input: &crate::operation::put_access_point_configuration_for_object_lambda::PutAccessPointConfigurationForObjectLambdaInput,
   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_access_point_policy.rs

@@ -12,12 +67,69 @@
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_put_access_point_policy_headers(
   37     37   
    input: &crate::operation::put_access_point_policy::PutAccessPointPolicyInput,
   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_access_point_policy_op_input(
   55     57   
    input: &crate::operation::put_access_point_policy::PutAccessPointPolicyInput,
   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_access_point_policy_for_object_lambda.rs

@@ -13,13 +70,72 @@
   33     33   
        output.build()
   34     34   
    })
   35     35   
}
   36     36   
   37     37   
pub fn ser_put_access_point_policy_for_object_lambda_headers(
   38     38   
    input: &crate::operation::put_access_point_policy_for_object_lambda::PutAccessPointPolicyForObjectLambdaInput,
   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_access_point_policy_for_object_lambda_op_input(
   56     58   
    input: &crate::operation::put_access_point_policy_for_object_lambda::PutAccessPointPolicyForObjectLambdaInput,
   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)]