AWS SDK

AWS SDK

rev. a25ccedd311e7562a03a1cd07d728cef10c9474c

Files changed:

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

@@ -13,13 +53,55 @@
   33     33   
        output.build()
   34     34   
    })
   35     35   
}
   36     36   
   37     37   
pub fn ser_delete_storage_lens_configuration_tagging_headers(
   38     38   
    input: &crate::operation::delete_storage_lens_configuration_tagging::DeleteStorageLensConfigurationTaggingInput,
   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         -
        let header_value = formatted_2;
   44         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   45         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   46         -
                "account_id",
   47         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   48         -
            )
   49         -
        })?;
   50         -
        builder = builder.header("x-amz-account-id", header_value);
          43  +
        if !formatted_2.is_empty() {
          44  +
            let header_value = formatted_2;
          45  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          46  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          47  +
                    "account_id",
          48  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          49  +
                )
          50  +
            })?;
          51  +
            builder = builder.header("x-amz-account-id", header_value);
          52  +
        }
   51     53   
    }
   52     54   
    Ok(builder)
   53     55   
}

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

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

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

@@ -76,76 +143,145 @@
   96     96   
        output.build()
   97     97   
    })
   98     98   
}
   99     99   
  100    100   
pub fn ser_describe_job_headers(
  101    101   
    input: &crate::operation::describe_job::DescribeJobInput,
  102    102   
    mut builder: ::http::request::Builder,
  103    103   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
  104    104   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
  105    105   
        let formatted_2 = inner_1.as_str();
  106         -
        let header_value = formatted_2;
  107         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
  108         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
  109         -
                "account_id",
  110         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
  111         -
            )
  112         -
        })?;
  113         -
        builder = builder.header("x-amz-account-id", header_value);
         106  +
        if !formatted_2.is_empty() {
         107  +
            let header_value = formatted_2;
         108  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
         109  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
         110  +
                    "account_id",
         111  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
         112  +
                )
         113  +
            })?;
         114  +
            builder = builder.header("x-amz-account-id", header_value);
         115  +
        }
  114    116   
    }
  115    117   
    Ok(builder)
  116    118   
}
  117    119   
  118    120   
#[allow(unused_mut)]
  119    121   
pub fn de_describe_job(
  120    122   
    inp: &[u8],
  121    123   
    mut builder: crate::operation::describe_job::builders::DescribeJobOutputBuilder,
  122    124   
) -> Result<crate::operation::describe_job::builders::DescribeJobOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
  123    125   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;

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

@@ -18,18 +85,87 @@
   38     38   
        output.build()
   39     39   
    })
   40     40   
}
   41     41   
   42     42   
pub fn ser_describe_multi_region_access_point_operation_headers(
   43     43   
    input: &crate::operation::describe_multi_region_access_point_operation::DescribeMultiRegionAccessPointOperationInput,
   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         -
        let header_value = formatted_2;
   49         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   50         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   51         -
                "account_id",
   52         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   53         -
            )
   54         -
        })?;
   55         -
        builder = builder.header("x-amz-account-id", header_value);
          48  +
        if !formatted_2.is_empty() {
          49  +
            let header_value = formatted_2;
          50  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          51  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          52  +
                    "account_id",
          53  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          54  +
                )
          55  +
            })?;
          56  +
            builder = builder.header("x-amz-account-id", header_value);
          57  +
        }
   56     58   
    }
   57     59   
    Ok(builder)
   58     60   
}
   59     61   
   60     62   
#[allow(unused_mut)]
   61     63   
pub fn de_describe_multi_region_access_point_operation(
   62     64   
    inp: &[u8],
   63     65   
    mut builder: crate::operation::describe_multi_region_access_point_operation::builders::DescribeMultiRegionAccessPointOperationOutputBuilder,
   64     66   
) -> Result<
   65     67   
    crate::operation::describe_multi_region_access_point_operation::builders::DescribeMultiRegionAccessPointOperationOutputBuilder,

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

@@ -13,13 +53,55 @@
   33     33   
        output.build()
   34     34   
    })
   35     35   
}
   36     36   
   37     37   
pub fn ser_dissociate_access_grants_identity_center_headers(
   38     38   
    input: &crate::operation::dissociate_access_grants_identity_center::DissociateAccessGrantsIdentityCenterInput,
   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         -
        let header_value = formatted_2;
   44         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   45         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   46         -
                "account_id",
   47         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   48         -
            )
   49         -
        })?;
   50         -
        builder = builder.header("x-amz-account-id", header_value);
          43  +
        if !formatted_2.is_empty() {
          44  +
            let header_value = formatted_2;
          45  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          46  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          47  +
                    "account_id",
          48  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          49  +
                )
          50  +
            })?;
          51  +
            builder = builder.header("x-amz-account-id", header_value);
          52  +
        }
   51     53   
    }
   52     54   
    Ok(builder)
   53     55   
}

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

@@ -8,8 +75,77 @@
   28     28   
        output.build()
   29     29   
    })
   30     30   
}
   31     31   
   32     32   
pub fn ser_get_access_grant_headers(
   33     33   
    input: &crate::operation::get_access_grant::GetAccessGrantInput,
   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         -
        let header_value = formatted_2;
   39         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   40         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   41         -
                "account_id",
   42         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   43         -
            )
   44         -
        })?;
   45         -
        builder = builder.header("x-amz-account-id", header_value);
          38  +
        if !formatted_2.is_empty() {
          39  +
            let header_value = formatted_2;
          40  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          41  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          42  +
                    "account_id",
          43  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          44  +
                )
          45  +
            })?;
          46  +
            builder = builder.header("x-amz-account-id", header_value);
          47  +
        }
   46     48   
    }
   47     49   
    Ok(builder)
   48     50   
}
   49     51   
   50     52   
#[allow(unused_mut)]
   51     53   
pub fn de_get_access_grant(
   52     54   
    inp: &[u8],
   53     55   
    mut builder: crate::operation::get_access_grant::builders::GetAccessGrantOutputBuilder,
   54     56   
) -> Result<crate::operation::get_access_grant::builders::GetAccessGrantOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
   55     57   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;

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

@@ -16,16 +83,85 @@
   36     36   
        output.build()
   37     37   
    })
   38     38   
}
   39     39   
   40     40   
pub fn ser_get_access_grants_instance_headers(
   41     41   
    input: &crate::operation::get_access_grants_instance::GetAccessGrantsInstanceInput,
   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         -
        let header_value = formatted_2;
   47         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   48         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   49         -
                "account_id",
   50         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   51         -
            )
   52         -
        })?;
   53         -
        builder = builder.header("x-amz-account-id", header_value);
          46  +
        if !formatted_2.is_empty() {
          47  +
            let header_value = formatted_2;
          48  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          49  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          50  +
                    "account_id",
          51  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          52  +
                )
          53  +
            })?;
          54  +
            builder = builder.header("x-amz-account-id", header_value);
          55  +
        }
   54     56   
    }
   55     57   
    Ok(builder)
   56     58   
}
   57     59   
   58     60   
#[allow(unused_mut)]
   59     61   
pub fn de_get_access_grants_instance(
   60     62   
    inp: &[u8],
   61     63   
    mut builder: crate::operation::get_access_grants_instance::builders::GetAccessGrantsInstanceOutputBuilder,
   62     64   
) -> Result<crate::operation::get_access_grants_instance::builders::GetAccessGrantsInstanceOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
   63     65   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;

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

@@ -14,14 +81,83 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_get_access_grants_instance_for_prefix_headers(
   39     39   
    input: &crate::operation::get_access_grants_instance_for_prefix::GetAccessGrantsInstanceForPrefixInput,
   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         -
        let header_value = formatted_2;
   45         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47         -
                "account_id",
   48         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49         -
            )
   50         -
        })?;
   51         -
        builder = builder.header("x-amz-account-id", header_value);
          44  +
        if !formatted_2.is_empty() {
          45  +
            let header_value = formatted_2;
          46  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          47  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          48  +
                    "account_id",
          49  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          50  +
                )
          51  +
            })?;
          52  +
            builder = builder.header("x-amz-account-id", header_value);
          53  +
        }
   52     54   
    }
   53     55   
    Ok(builder)
   54     56   
}
   55     57   
   56     58   
#[allow(unused_mut)]
   57     59   
pub fn de_get_access_grants_instance_for_prefix(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::get_access_grants_instance_for_prefix::builders::GetAccessGrantsInstanceForPrefixOutputBuilder,
   60     62   
) -> Result<
   61     63   
    crate::operation::get_access_grants_instance_for_prefix::builders::GetAccessGrantsInstanceForPrefixOutputBuilder,

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

@@ -18,18 +85,87 @@
   38     38   
        output.build()
   39     39   
    })
   40     40   
}
   41     41   
   42     42   
pub fn ser_get_access_grants_instance_resource_policy_headers(
   43     43   
    input: &crate::operation::get_access_grants_instance_resource_policy::GetAccessGrantsInstanceResourcePolicyInput,
   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         -
        let header_value = formatted_2;
   49         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   50         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   51         -
                "account_id",
   52         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   53         -
            )
   54         -
        })?;
   55         -
        builder = builder.header("x-amz-account-id", header_value);
          48  +
        if !formatted_2.is_empty() {
          49  +
            let header_value = formatted_2;
          50  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          51  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          52  +
                    "account_id",
          53  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          54  +
                )
          55  +
            })?;
          56  +
            builder = builder.header("x-amz-account-id", header_value);
          57  +
        }
   56     58   
    }
   57     59   
    Ok(builder)
   58     60   
}
   59     61   
   60     62   
#[allow(unused_mut)]
   61     63   
pub fn de_get_access_grants_instance_resource_policy(
   62     64   
    inp: &[u8],
   63     65   
    mut builder: crate::operation::get_access_grants_instance_resource_policy::builders::GetAccessGrantsInstanceResourcePolicyOutputBuilder,
   64     66   
) -> Result<
   65     67   
    crate::operation::get_access_grants_instance_resource_policy::builders::GetAccessGrantsInstanceResourcePolicyOutputBuilder,

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

@@ -16,16 +83,85 @@
   36     36   
        output.build()
   37     37   
    })
   38     38   
}
   39     39   
   40     40   
pub fn ser_get_access_grants_location_headers(
   41     41   
    input: &crate::operation::get_access_grants_location::GetAccessGrantsLocationInput,
   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         -
        let header_value = formatted_2;
   47         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   48         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   49         -
                "account_id",
   50         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   51         -
            )
   52         -
        })?;
   53         -
        builder = builder.header("x-amz-account-id", header_value);
          46  +
        if !formatted_2.is_empty() {
          47  +
            let header_value = formatted_2;
          48  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          49  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          50  +
                    "account_id",
          51  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          52  +
                )
          53  +
            })?;
          54  +
            builder = builder.header("x-amz-account-id", header_value);
          55  +
        }
   54     56   
    }
   55     57   
    Ok(builder)
   56     58   
}
   57     59   
   58     60   
#[allow(unused_mut)]
   59     61   
pub fn de_get_access_grants_location(
   60     62   
    inp: &[u8],
   61     63   
    mut builder: crate::operation::get_access_grants_location::builders::GetAccessGrantsLocationOutputBuilder,
   62     64   
) -> Result<crate::operation::get_access_grants_location::builders::GetAccessGrantsLocationOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
   63     65   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;

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

@@ -8,8 +75,77 @@
   28     28   
        output.build()
   29     29   
    })
   30     30   
}
   31     31   
   32     32   
pub fn ser_get_access_point_headers(
   33     33   
    input: &crate::operation::get_access_point::GetAccessPointInput,
   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         -
        let header_value = formatted_2;
   39         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   40         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   41         -
                "account_id",
   42         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   43         -
            )
   44         -
        })?;
   45         -
        builder = builder.header("x-amz-account-id", header_value);
          38  +
        if !formatted_2.is_empty() {
          39  +
            let header_value = formatted_2;
          40  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          41  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          42  +
                    "account_id",
          43  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          44  +
                )
          45  +
            })?;
          46  +
            builder = builder.header("x-amz-account-id", header_value);
          47  +
        }
   46     48   
    }
   47     49   
    Ok(builder)
   48     50   
}
   49     51   
   50     52   
#[allow(unused_mut)]
   51     53   
pub fn de_get_access_point(
   52     54   
    inp: &[u8],
   53     55   
    mut builder: crate::operation::get_access_point::builders::GetAccessPointOutputBuilder,
   54     56   
) -> Result<crate::operation::get_access_point::builders::GetAccessPointOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
   55     57   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;

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

@@ -17,17 +84,86 @@
   37     37   
        output.build()
   38     38   
    })
   39     39   
}
   40     40   
   41     41   
pub fn ser_get_access_point_configuration_for_object_lambda_headers(
   42     42   
    input: &crate::operation::get_access_point_configuration_for_object_lambda::GetAccessPointConfigurationForObjectLambdaInput,
   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         -
        let header_value = formatted_2;
   48         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   49         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   50         -
                "account_id",
   51         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   52         -
            )
   53         -
        })?;
   54         -
        builder = builder.header("x-amz-account-id", header_value);
          47  +
        if !formatted_2.is_empty() {
          48  +
            let header_value = formatted_2;
          49  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          50  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          51  +
                    "account_id",
          52  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          53  +
                )
          54  +
            })?;
          55  +
            builder = builder.header("x-amz-account-id", header_value);
          56  +
        }
   55     57   
    }
   56     58   
    Ok(builder)
   57     59   
}
   58     60   
   59     61   
#[allow(unused_mut)]
   60     62   
pub fn de_get_access_point_configuration_for_object_lambda(
   61     63   
    inp: &[u8],
   62     64   
    mut builder: crate::operation::get_access_point_configuration_for_object_lambda::builders::GetAccessPointConfigurationForObjectLambdaOutputBuilder,
   63     65   
) -> Result<
   64     66   
    crate::operation::get_access_point_configuration_for_object_lambda::builders::GetAccessPointConfigurationForObjectLambdaOutputBuilder,

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

@@ -14,14 +81,83 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_get_access_point_for_object_lambda_headers(
   39     39   
    input: &crate::operation::get_access_point_for_object_lambda::GetAccessPointForObjectLambdaInput,
   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         -
        let header_value = formatted_2;
   45         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47         -
                "account_id",
   48         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49         -
            )
   50         -
        })?;
   51         -
        builder = builder.header("x-amz-account-id", header_value);
          44  +
        if !formatted_2.is_empty() {
          45  +
            let header_value = formatted_2;
          46  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          47  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          48  +
                    "account_id",
          49  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          50  +
                )
          51  +
            })?;
          52  +
            builder = builder.header("x-amz-account-id", header_value);
          53  +
        }
   52     54   
    }
   53     55   
    Ok(builder)
   54     56   
}
   55     57   
   56     58   
#[allow(unused_mut)]
   57     59   
pub fn de_get_access_point_for_object_lambda(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::get_access_point_for_object_lambda::builders::GetAccessPointForObjectLambdaOutputBuilder,
   60     62   
) -> Result<
   61     63   
    crate::operation::get_access_point_for_object_lambda::builders::GetAccessPointForObjectLambdaOutputBuilder,

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

@@ -14,14 +81,83 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_get_access_point_policy_headers(
   39     39   
    input: &crate::operation::get_access_point_policy::GetAccessPointPolicyInput,
   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         -
        let header_value = formatted_2;
   45         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47         -
                "account_id",
   48         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49         -
            )
   50         -
        })?;
   51         -
        builder = builder.header("x-amz-account-id", header_value);
          44  +
        if !formatted_2.is_empty() {
          45  +
            let header_value = formatted_2;
          46  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          47  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          48  +
                    "account_id",
          49  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          50  +
                )
          51  +
            })?;
          52  +
            builder = builder.header("x-amz-account-id", header_value);
          53  +
        }
   52     54   
    }
   53     55   
    Ok(builder)
   54     56   
}
   55     57   
   56     58   
#[allow(unused_mut)]
   57     59   
pub fn de_get_access_point_policy(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::get_access_point_policy::builders::GetAccessPointPolicyOutputBuilder,
   60     62   
) -> Result<crate::operation::get_access_point_policy::builders::GetAccessPointPolicyOutputBuilder, ::aws_smithy_xml::decode::XmlDecodeError> {
   61     63   
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;

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

@@ -18,18 +85,87 @@
   38     38   
        output.build()
   39     39   
    })
   40     40   
}
   41     41   
   42     42   
pub fn ser_get_access_point_policy_for_object_lambda_headers(
   43     43   
    input: &crate::operation::get_access_point_policy_for_object_lambda::GetAccessPointPolicyForObjectLambdaInput,
   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         -
        let header_value = formatted_2;
   49         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   50         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   51         -
                "account_id",
   52         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   53         -
            )
   54         -
        })?;
   55         -
        builder = builder.header("x-amz-account-id", header_value);
          48  +
        if !formatted_2.is_empty() {
          49  +
            let header_value = formatted_2;
          50  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          51  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          52  +
                    "account_id",
          53  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          54  +
                )
          55  +
            })?;
          56  +
            builder = builder.header("x-amz-account-id", header_value);
          57  +
        }
   56     58   
    }
   57     59   
    Ok(builder)
   58     60   
}
   59     61   
   60     62   
#[allow(unused_mut)]
   61     63   
pub fn de_get_access_point_policy_for_object_lambda(
   62     64   
    inp: &[u8],
   63     65   
    mut builder: crate::operation::get_access_point_policy_for_object_lambda::builders::GetAccessPointPolicyForObjectLambdaOutputBuilder,
   64     66   
) -> Result<
   65     67   
    crate::operation::get_access_point_policy_for_object_lambda::builders::GetAccessPointPolicyForObjectLambdaOutputBuilder,

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

@@ -14,14 +81,83 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_get_access_point_policy_status_headers(
   39     39   
    input: &crate::operation::get_access_point_policy_status::GetAccessPointPolicyStatusInput,
   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         -
        let header_value = formatted_2;
   45         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   46         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   47         -
                "account_id",
   48         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   49         -
            )
   50         -
        })?;
   51         -
        builder = builder.header("x-amz-account-id", header_value);
          44  +
        if !formatted_2.is_empty() {
          45  +
            let header_value = formatted_2;
          46  +
            let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
          47  +
                ::aws_smithy_types::error::operation::BuildError::invalid_field(
          48  +
                    "account_id",
          49  +
                    format!("`{}` cannot be used as a header value: {}", &header_value, err),
          50  +
                )
          51  +
            })?;
          52  +
            builder = builder.header("x-amz-account-id", header_value);
          53  +
        }
   52     54   
    }
   53     55   
    Ok(builder)
   54     56   
}
   55     57   
   56     58   
#[allow(unused_mut)]
   57     59   
pub fn de_get_access_point_policy_status(
   58     60   
    inp: &[u8],
   59     61   
    mut builder: crate::operation::get_access_point_policy_status::builders::GetAccessPointPolicyStatusOutputBuilder,
   60     62   
) -> Result<
   61     63   
    crate::operation::get_access_point_policy_status::builders::GetAccessPointPolicyStatusOutputBuilder,