AWS SDK

AWS SDK

rev. a7fb2e3446d314cfbe48069306e4e0a389b39aeb

Files changed:

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

@@ -12,12 +52,54 @@
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_put_bucket_lifecycle_configuration_headers(
   37     37   
    input: &crate::operation::put_bucket_lifecycle_configuration::PutBucketLifecycleConfigurationInput,
   38     38   
    mut builder: ::http::request::Builder,
   39     39   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   40     40   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   41     41   
        let formatted_2 = inner_1.as_str();
   42         -
        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_put_bucket_policy.rs

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

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

@@ -12,12 +52,54 @@
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_put_bucket_replication_headers(
   37     37   
    input: &crate::operation::put_bucket_replication::PutBucketReplicationInput,
   38     38   
    mut builder: ::http::request::Builder,
   39     39   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   40     40   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   41     41   
        let formatted_2 = inner_1.as_str();
   42         -
        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_put_bucket_tagging.rs

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

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

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

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

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

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

@@ -14,14 +81,83 @@
   34     34   
        output.build()
   35     35   
    })
   36     36   
}
   37     37   
   38     38   
pub fn ser_put_multi_region_access_point_policy_headers(
   39     39   
    input: &crate::operation::put_multi_region_access_point_policy::PutMultiRegionAccessPointPolicyInput,
   40     40   
    mut builder: ::http::request::Builder,
   41     41   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   42     42   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   43     43   
        let formatted_2 = inner_1.as_str();
   44         -
        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   
pub fn ser_put_multi_region_access_point_policy_op_input(
   57     59   
    input: &crate::operation::put_multi_region_access_point_policy::PutMultiRegionAccessPointPolicyInput,
   58     60   
) -> Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   59     61   
    let mut out = String::new();
   60     62   
    {
   61     63   
        let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);

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

@@ -12,12 +52,54 @@
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_put_public_access_block_headers(
   37     37   
    input: &crate::operation::put_public_access_block::PutPublicAccessBlockInput,
   38     38   
    mut builder: ::http::request::Builder,
   39     39   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   40     40   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   41     41   
        let formatted_2 = inner_1.as_str();
   42         -
        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_put_storage_lens_configuration.rs

@@ -12,12 +67,69 @@
   32     32   
        output.build()
   33     33   
    })
   34     34   
}
   35     35   
   36     36   
pub fn ser_put_storage_lens_configuration_headers(
   37     37   
    input: &crate::operation::put_storage_lens_configuration::PutStorageLensConfigurationInput,
   38     38   
    mut builder: ::http::request::Builder,
   39     39   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   40     40   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   41     41   
        let formatted_2 = inner_1.as_str();
   42         -
        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   
}
   53     55   
   54     56   
pub fn ser_put_storage_lens_configuration_op_input(
   55     57   
    input: &crate::operation::put_storage_lens_configuration::PutStorageLensConfigurationInput,
   56     58   
) -> Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   57     59   
    let mut out = String::new();
   58     60   
    {
   59     61   
        let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);

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

@@ -13,13 +70,72 @@
   33     33   
        output.build()
   34     34   
    })
   35     35   
}
   36     36   
   37     37   
pub fn ser_put_storage_lens_configuration_tagging_headers(
   38     38   
    input: &crate::operation::put_storage_lens_configuration_tagging::PutStorageLensConfigurationTaggingInput,
   39     39   
    mut builder: ::http::request::Builder,
   40     40   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   41     41   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   42     42   
        let formatted_2 = inner_1.as_str();
   43         -
        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   
}
   54     56   
   55     57   
pub fn ser_put_storage_lens_configuration_tagging_op_input(
   56     58   
    input: &crate::operation::put_storage_lens_configuration_tagging::PutStorageLensConfigurationTaggingInput,
   57     59   
) -> Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   58     60   
    let mut out = String::new();
   59     61   
    {
   60     62   
        let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);

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

@@ -13,13 +70,72 @@
   33     33   
        output.build()
   34     34   
    })
   35     35   
}
   36     36   
   37     37   
pub fn ser_submit_multi_region_access_point_routes_headers(
   38     38   
    input: &crate::operation::submit_multi_region_access_point_routes::SubmitMultiRegionAccessPointRoutesInput,
   39     39   
    mut builder: ::http::request::Builder,
   40     40   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   41     41   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   42     42   
        let formatted_2 = inner_1.as_str();
   43         -
        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   
}
   54     56   
   55     57   
pub fn ser_submit_multi_region_access_point_routes_op_input(
   56     58   
    input: &crate::operation::submit_multi_region_access_point_routes::SubmitMultiRegionAccessPointRoutesInput,
   57     59   
) -> Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   58     60   
    let mut out = String::new();
   59     61   
    {
   60     62   
        let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);

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

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

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

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

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

@@ -16,16 +83,85 @@
   36     36   
        output.build()
   37     37   
    })
   38     38   
}
   39     39   
   40     40   
pub fn ser_update_access_grants_location_headers(
   41     41   
    input: &crate::operation::update_access_grants_location::UpdateAccessGrantsLocationInput,
   42     42   
    mut builder: ::http::request::Builder,
   43     43   
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   44     44   
    if let ::std::option::Option::Some(inner_1) = &input.account_id {
   45     45   
        let formatted_2 = inner_1.as_str();
   46         -
        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   
pub fn ser_update_access_grants_location_op_input(
   59     61   
    input: &crate::operation::update_access_grants_location::UpdateAccessGrantsLocationInput,
   60     62   
) -> Result<::aws_smithy_types::body::SdkBody, ::aws_smithy_types::error::operation::SerializationError> {
   61     63   
    let mut out = String::new();
   62     64   
    {
   63     65   
        let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);

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

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

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

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