AWS SDK

AWS SDK

rev. 54a52cba1f1ff5fc52d06b3721da33bf6bc3bfda

Files changed:

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

@@ -1,0 +26,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_select_parameters(
    3         -
    input: &crate::types::SelectParameters,
    4         -
    writer: ::aws_smithy_xml::encode::ElWriter,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut scope = writer.finish();
    8         -
    if let Some(var_1) = &input.input_serialization {
    9         -
        let inner_writer = scope.start_el("InputSerialization");
   10         -
        crate::protocol_serde::shape_input_serialization::ser_input_serialization(var_1, inner_writer)?
   11         -
    }
   12         -
    {
   13         -
        let mut inner_writer = scope.start_el("ExpressionType").finish();
   14         -
        inner_writer.data(input.expression_type.as_str());
   15         -
    }
   16         -
    {
   17         -
        let mut inner_writer = scope.start_el("Expression").finish();
   18         -
        inner_writer.data(input.expression.as_str());
   19         -
    }
   20         -
    if let Some(var_2) = &input.output_serialization {
   21         -
        let inner_writer = scope.start_el("OutputSerialization");
   22         -
        crate::protocol_serde::shape_output_serialization::ser_output_serialization(var_2, inner_writer)?
   23         -
    }
   24         -
    scope.finish();
   25         -
    Ok(())
   26         -
}

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

@@ -1,0 +59,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::needless_question_mark)]
    3         -
pub fn de_stats(
    4         -
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
    5         -
) -> ::std::result::Result<crate::types::Stats, ::aws_smithy_xml::decode::XmlDecodeError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut builder = crate::types::Stats::builder();
    8         -
    while let Some(mut tag) = decoder.next_tag() {
    9         -
        match tag.start_el() {
   10         -
            s if s.matches("BytesScanned") /* BytesScanned com.amazonaws.s3#Stats$BytesScanned */ =>  {
   11         -
                let var_1 =
   12         -
                    Some(
   13         -
                         {
   14         -
                            <i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
   15         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   16         -
                            )
   17         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.s3#BytesScanned`)"))
   18         -
                        }
   19         -
                        ?
   20         -
                    )
   21         -
                ;
   22         -
                builder = builder.set_bytes_scanned(var_1);
   23         -
            }
   24         -
            ,
   25         -
            s if s.matches("BytesProcessed") /* BytesProcessed com.amazonaws.s3#Stats$BytesProcessed */ =>  {
   26         -
                let var_2 =
   27         -
                    Some(
   28         -
                         {
   29         -
                            <i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
   30         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   31         -
                            )
   32         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.s3#BytesProcessed`)"))
   33         -
                        }
   34         -
                        ?
   35         -
                    )
   36         -
                ;
   37         -
                builder = builder.set_bytes_processed(var_2);
   38         -
            }
   39         -
            ,
   40         -
            s if s.matches("BytesReturned") /* BytesReturned com.amazonaws.s3#Stats$BytesReturned */ =>  {
   41         -
                let var_3 =
   42         -
                    Some(
   43         -
                         {
   44         -
                            <i64 as ::aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
   45         -
                                ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   46         -
                            )
   47         -
                            .map_err(|_|::aws_smithy_xml::decode::XmlDecodeError::custom("expected (long: `com.amazonaws.s3#BytesReturned`)"))
   48         -
                        }
   49         -
                        ?
   50         -
                    )
   51         -
                ;
   52         -
                builder = builder.set_bytes_returned(var_3);
   53         -
            }
   54         -
            ,
   55         -
            _ => {}
   56         -
        }
   57         -
    }
   58         -
    Ok(builder.build())
   59         -
}

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

@@ -1,0 +13,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn de_details(inp: &[u8]) -> std::result::Result<crate::types::Stats, ::aws_smithy_xml::decode::XmlDecodeError> {
    3         -
    let mut doc = ::aws_smithy_xml::decode::Document::try_from(inp)?;
    4         -
    #[allow(unused_mut)]
    5         -
    let mut decoder = doc.root_element()?;
    6         -
    let start_el = decoder.start_el();
    7         -
    if !(start_el.matches("Stats")) {
    8         -
        return Err(::aws_smithy_xml::decode::XmlDecodeError::custom(format!(
    9         -
            "invalid root, expected Stats got {start_el:?}"
   10         -
        )));
   11         -
    }
   12         -
    crate::protocol_serde::shape_stats::de_stats(&mut decoder)
   13         -
}

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

@@ -1,1 +0,60 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_tag(
    3         -
    input: &crate::types::Tag,
    4         -
    writer: ::aws_smithy_xml::encode::ElWriter,
    5         -
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6         -
    #[allow(unused_mut)]
    7         -
    let mut scope = writer.finish();
    8         -
    {
    9         -
        let mut inner_writer = scope.start_el("Key").finish();
   10         -
        inner_writer.data(input.key.as_str());
   11         -
    }
   12         -
    {
   13         -
        let mut inner_writer = scope.start_el("Value").finish();
   14         -
        inner_writer.data(input.value.as_str());
   15         -
    }
   16         -
    scope.finish();
   17         -
    Ok(())
   18         -
}
   19         -
   20      2   
#[allow(clippy::needless_question_mark)]
   21      3   
pub fn de_tag(
   22      4   
    decoder: &mut ::aws_smithy_xml::decode::ScopedDecoder,
   23      5   
) -> ::std::result::Result<crate::types::Tag, ::aws_smithy_xml::decode::XmlDecodeError> {
   24      6   
    #[allow(unused_mut)]
   25      7   
    let mut builder = crate::types::Tag::builder();
   26      8   
    while let Some(mut tag) = decoder.next_tag() {
   27      9   
        match tag.start_el() {
   28     10   
            s if s.matches("Key") /* Key com.amazonaws.s3#Tag$Key */ =>  {
   29     11   
                let var_1 =
   30     12   
                    Some(
   31     13   
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   32     14   
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   33     15   
                            .into()
   34     16   
                        )
   35     17   
                        ?
   36     18   
                    )
   37     19   
                ;
   38     20   
                builder = builder.set_key(var_1);
   39     21   
            }
   40     22   
            ,
   41     23   
            s if s.matches("Value") /* Value com.amazonaws.s3#Tag$Value */ =>  {
   42     24   
                let var_2 =
   43     25   
                    Some(
   44     26   
                        Result::<::std::string::String, ::aws_smithy_xml::decode::XmlDecodeError>::Ok(
   45     27   
                            ::aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
   46     28   
                            .into()
   47     29   
                        )
   48     30   
                        ?
   49     31   
                    )
   50     32   
                ;
   51     33   
                builder = builder.set_value(var_2);
   52     34   
            }
   53     35   
            ,
   54     36   
            _ => {}
   55     37   
        }
   56     38   
    }
   57     39   
    Ok(crate::serde_util::tag_correct_errors(builder)
   58     40   
        .build()
   59     41   
        .map_err(|_| ::aws_smithy_xml::decode::XmlDecodeError::custom("missing field"))?)
   60     42   
}
          43  +
          44  +
pub fn ser_tag(
          45  +
    input: &crate::types::Tag,
          46  +
    writer: ::aws_smithy_xml::encode::ElWriter,
          47  +
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
          48  +
    #[allow(unused_mut)]
          49  +
    let mut scope = writer.finish();
          50  +
    {
          51  +
        let mut inner_writer = scope.start_el("Key").finish();
          52  +
        inner_writer.data(input.key.as_str());
          53  +
    }
          54  +
    {
          55  +
        let mut inner_writer = scope.start_el("Value").finish();
          56  +
        inner_writer.data(input.value.as_str());
          57  +
    }
          58  +
    scope.finish();
          59  +
    Ok(())
          60  +
}

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

@@ -1,0 +81,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_update_bucket_metadata_inventory_table_configuration_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::update_bucket_metadata_inventory_table_configuration::UpdateBucketMetadataInventoryTableConfigurationOutput,
    9         -
    crate::operation::update_bucket_metadata_inventory_table_configuration::UpdateBucketMetadataInventoryTableConfigurationError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body).map_err(
   13         -
        crate::operation::update_bucket_metadata_inventory_table_configuration::UpdateBucketMetadataInventoryTableConfigurationError::unhandled,
   14         -
    )?;
   15         -
    generic_builder = crate::s3_request_id::apply_extended_request_id(generic_builder, _response_headers);
   16         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   17         -
    let generic = generic_builder.build();
   18         -
    Err(
   19         -
        crate::operation::update_bucket_metadata_inventory_table_configuration::UpdateBucketMetadataInventoryTableConfigurationError::generic(
   20         -
            generic,
   21         -
        ),
   22         -
    )
   23         -
}
   24         -
   25         -
#[allow(clippy::unnecessary_wraps)]
   26         -
pub fn de_update_bucket_metadata_inventory_table_configuration_http_response(
   27         -
    _response_status: u16,
   28         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   29         -
    _response_body: &[u8],
   30         -
) -> std::result::Result<
   31         -
    crate::operation::update_bucket_metadata_inventory_table_configuration::UpdateBucketMetadataInventoryTableConfigurationOutput,
   32         -
    crate::operation::update_bucket_metadata_inventory_table_configuration::UpdateBucketMetadataInventoryTableConfigurationError,
   33         -
> {
   34         -
    Ok({
   35         -
        #[allow(unused_mut)]
   36         -
        let mut output = crate::operation::update_bucket_metadata_inventory_table_configuration::builders::UpdateBucketMetadataInventoryTableConfigurationOutputBuilder::default();
   37         -
        output._set_extended_request_id(crate::s3_request_id::RequestIdExt::extended_request_id(_response_headers).map(str::to_string));
   38         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   39         -
        output.build()
   40         -
    })
   41         -
}
   42         -
   43         -
pub fn ser_update_bucket_metadata_inventory_table_configuration_headers(
   44         -
    input: &crate::operation::update_bucket_metadata_inventory_table_configuration::UpdateBucketMetadataInventoryTableConfigurationInput,
   45         -
    mut builder: ::http::request::Builder,
   46         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   47         -
    if let ::std::option::Option::Some(inner_1) = &input.content_md5 {
   48         -
        let formatted_2 = inner_1.as_str();
   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         -
                "content_md5",
   53         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   54         -
            )
   55         -
        })?;
   56         -
        builder = builder.header("Content-MD5", header_value);
   57         -
    }
   58         -
    if let ::std::option::Option::Some(inner_3) = &input.checksum_algorithm {
   59         -
        let formatted_4 = inner_3.as_str();
   60         -
        let header_value = formatted_4;
   61         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   62         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   63         -
                "checksum_algorithm",
   64         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   65         -
            )
   66         -
        })?;
   67         -
        builder = builder.header("x-amz-sdk-checksum-algorithm", header_value);
   68         -
    }
   69         -
    if let ::std::option::Option::Some(inner_5) = &input.expected_bucket_owner {
   70         -
        let formatted_6 = inner_5.as_str();
   71         -
        let header_value = formatted_6;
   72         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   73         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   74         -
                "expected_bucket_owner",
   75         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   76         -
            )
   77         -
        })?;
   78         -
        builder = builder.header("x-amz-expected-bucket-owner", header_value);
   79         -
    }
   80         -
    Ok(builder)
   81         -
}

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

@@ -1,0 +25,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_inventory_table_configuration_http_payload(
    3         -
    payload: &::std::option::Option<crate::types::InventoryTableConfigurationUpdates>,
    4         -
) -> ::std::result::Result<::std::vec::Vec<u8>, ::aws_smithy_types::error::operation::BuildError> {
    5         -
    let payload = match payload.as_ref() {
    6         -
        Some(t) => t,
    7         -
        None => return Ok(crate::protocol_serde::rest_xml_unset_struct_payload()),
    8         -
    };
    9         -
    Ok(crate::protocol_serde::shape_update_bucket_metadata_inventory_table_configuration_input::ser_inventory_table_configuration_payload(payload)?)
   10         -
}
   11         -
   12         -
pub fn ser_inventory_table_configuration_payload(
   13         -
    input: &crate::types::InventoryTableConfigurationUpdates,
   14         -
) -> std::result::Result<std::vec::Vec<u8>, ::aws_smithy_types::error::operation::SerializationError> {
   15         -
    let mut out = String::new();
   16         -
    {
   17         -
        let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);
   18         -
        #[allow(unused_mut)]
   19         -
        let mut root = writer
   20         -
            .start_el("InventoryTableConfiguration")
   21         -
            .write_ns("http://s3.amazonaws.com/doc/2006-03-01/", None);
   22         -
        crate::protocol_serde::shape_inventory_table_configuration_updates::ser_inventory_table_configuration_updates(input, root)?
   23         -
    }
   24         -
    Ok(out.into_bytes())
   25         -
}

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

@@ -1,0 +77,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
#[allow(clippy::unnecessary_wraps)]
    3         -
pub fn de_update_bucket_metadata_journal_table_configuration_http_error(
    4         -
    _response_status: u16,
    5         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
    6         -
    _response_body: &[u8],
    7         -
) -> std::result::Result<
    8         -
    crate::operation::update_bucket_metadata_journal_table_configuration::UpdateBucketMetadataJournalTableConfigurationOutput,
    9         -
    crate::operation::update_bucket_metadata_journal_table_configuration::UpdateBucketMetadataJournalTableConfigurationError,
   10         -
> {
   11         -
    #[allow(unused_mut)]
   12         -
    let mut generic_builder = crate::protocol_serde::parse_http_error_metadata(_response_status, _response_headers, _response_body).map_err(
   13         -
        crate::operation::update_bucket_metadata_journal_table_configuration::UpdateBucketMetadataJournalTableConfigurationError::unhandled,
   14         -
    )?;
   15         -
    generic_builder = crate::s3_request_id::apply_extended_request_id(generic_builder, _response_headers);
   16         -
    generic_builder = ::aws_types::request_id::apply_request_id(generic_builder, _response_headers);
   17         -
    let generic = generic_builder.build();
   18         -
    Err(crate::operation::update_bucket_metadata_journal_table_configuration::UpdateBucketMetadataJournalTableConfigurationError::generic(generic))
   19         -
}
   20         -
   21         -
#[allow(clippy::unnecessary_wraps)]
   22         -
pub fn de_update_bucket_metadata_journal_table_configuration_http_response(
   23         -
    _response_status: u16,
   24         -
    _response_headers: &::aws_smithy_runtime_api::http::Headers,
   25         -
    _response_body: &[u8],
   26         -
) -> std::result::Result<
   27         -
    crate::operation::update_bucket_metadata_journal_table_configuration::UpdateBucketMetadataJournalTableConfigurationOutput,
   28         -
    crate::operation::update_bucket_metadata_journal_table_configuration::UpdateBucketMetadataJournalTableConfigurationError,
   29         -
> {
   30         -
    Ok({
   31         -
        #[allow(unused_mut)]
   32         -
        let mut output = crate::operation::update_bucket_metadata_journal_table_configuration::builders::UpdateBucketMetadataJournalTableConfigurationOutputBuilder::default();
   33         -
        output._set_extended_request_id(crate::s3_request_id::RequestIdExt::extended_request_id(_response_headers).map(str::to_string));
   34         -
        output._set_request_id(::aws_types::request_id::RequestId::request_id(_response_headers).map(str::to_string));
   35         -
        output.build()
   36         -
    })
   37         -
}
   38         -
   39         -
pub fn ser_update_bucket_metadata_journal_table_configuration_headers(
   40         -
    input: &crate::operation::update_bucket_metadata_journal_table_configuration::UpdateBucketMetadataJournalTableConfigurationInput,
   41         -
    mut builder: ::http::request::Builder,
   42         -
) -> std::result::Result<::http::request::Builder, ::aws_smithy_types::error::operation::BuildError> {
   43         -
    if let ::std::option::Option::Some(inner_1) = &input.content_md5 {
   44         -
        let formatted_2 = inner_1.as_str();
   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         -
                "content_md5",
   49         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   50         -
            )
   51         -
        })?;
   52         -
        builder = builder.header("Content-MD5", header_value);
   53         -
    }
   54         -
    if let ::std::option::Option::Some(inner_3) = &input.checksum_algorithm {
   55         -
        let formatted_4 = inner_3.as_str();
   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         -
                "checksum_algorithm",
   60         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   61         -
            )
   62         -
        })?;
   63         -
        builder = builder.header("x-amz-sdk-checksum-algorithm", header_value);
   64         -
    }
   65         -
    if let ::std::option::Option::Some(inner_5) = &input.expected_bucket_owner {
   66         -
        let formatted_6 = inner_5.as_str();
   67         -
        let header_value = formatted_6;
   68         -
        let header_value: ::http::HeaderValue = header_value.parse().map_err(|err| {
   69         -
            ::aws_smithy_types::error::operation::BuildError::invalid_field(
   70         -
                "expected_bucket_owner",
   71         -
                format!("`{}` cannot be used as a header value: {}", &header_value, err),
   72         -
            )
   73         -
        })?;
   74         -
        builder = builder.header("x-amz-expected-bucket-owner", header_value);
   75         -
    }
   76         -
    Ok(builder)
   77         -
}

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

@@ -1,0 +25,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_journal_table_configuration_http_payload(
    3         -
    payload: &::std::option::Option<crate::types::JournalTableConfigurationUpdates>,
    4         -
) -> ::std::result::Result<::std::vec::Vec<u8>, ::aws_smithy_types::error::operation::BuildError> {
    5         -
    let payload = match payload.as_ref() {
    6         -
        Some(t) => t,
    7         -
        None => return Ok(crate::protocol_serde::rest_xml_unset_struct_payload()),
    8         -
    };
    9         -
    Ok(crate::protocol_serde::shape_update_bucket_metadata_journal_table_configuration_input::ser_journal_table_configuration_payload(payload)?)
   10         -
}
   11         -
   12         -
pub fn ser_journal_table_configuration_payload(
   13         -
    input: &crate::types::JournalTableConfigurationUpdates,
   14         -
) -> std::result::Result<std::vec::Vec<u8>, ::aws_smithy_types::error::operation::SerializationError> {
   15         -
    let mut out = String::new();
   16         -
    {
   17         -
        let mut writer = ::aws_smithy_xml::encode::XmlWriter::new(&mut out);
   18         -
        #[allow(unused_mut)]
   19         -
        let mut root = writer
   20         -
            .start_el("JournalTableConfiguration")
   21         -
            .write_ns("http://s3.amazonaws.com/doc/2006-03-01/", None);
   22         -
        crate::protocol_serde::shape_journal_table_configuration_updates::ser_journal_table_configuration_updates(input, root)?
   23         -
    }
   24         -
    Ok(out.into_bytes())
   25         -
}

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

@@ -1,0 +6,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
pub fn ser_body_http_payload(
    3         -
    payload: ::aws_smithy_types::byte_stream::ByteStream,
    4         -
) -> ::std::result::Result<::aws_smithy_types::byte_stream::ByteStream, ::aws_smithy_types::error::operation::BuildError> {
    5         -
    Ok(payload)
    6         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/serde_util.rs

@@ -180,180 +251,239 @@
  200    200   
) -> crate::types::builders::TopicConfigurationBuilder {
  201    201   
    if builder.topic_arn.is_none() {
  202    202   
        builder.topic_arn = Some(Default::default())
  203    203   
    }
  204    204   
    if builder.events.is_none() {
  205    205   
        builder.events = Some(Default::default())
  206    206   
    }
  207    207   
    builder
  208    208   
}
  209    209   
  210         -
pub(crate) fn get_bucket_metadata_configuration_result_correct_errors(
  211         -
    mut builder: crate::types::builders::GetBucketMetadataConfigurationResultBuilder,
  212         -
) -> crate::types::builders::GetBucketMetadataConfigurationResultBuilder {
  213         -
    if builder.metadata_configuration_result.is_none() {
  214         -
        builder.metadata_configuration_result = {
  215         -
            let builder = crate::types::builders::MetadataConfigurationResultBuilder::default();
  216         -
            Some(crate::serde_util::metadata_configuration_result_correct_errors(builder).build())
  217         -
        }
  218         -
    }
  219         -
    builder
  220         -
}
  221         -
  222    210   
pub(crate) fn get_bucket_metadata_table_configuration_result_correct_errors(
  223    211   
    mut builder: crate::types::builders::GetBucketMetadataTableConfigurationResultBuilder,
  224    212   
) -> crate::types::builders::GetBucketMetadataTableConfigurationResultBuilder {
  225    213   
    if builder.metadata_table_configuration_result.is_none() {
  226    214   
        builder.metadata_table_configuration_result = {
  227    215   
            let builder = crate::types::builders::MetadataTableConfigurationResultBuilder::default();
  228    216   
            Some(crate::serde_util::metadata_table_configuration_result_correct_errors(builder).build())
  229    217   
        }
  230    218   
    }
  231    219   
    if builder.status.is_none() {
@@ -316,304 +387,363 @@
  336    324   
) -> crate::types::builders::InventoryS3BucketDestinationBuilder {
  337    325   
    if builder.bucket.is_none() {
  338    326   
        builder.bucket = Some(Default::default())
  339    327   
    }
  340    328   
    if builder.format.is_none() {
  341    329   
        builder.format = "no value was set".parse::<crate::types::InventoryFormat>().ok()
  342    330   
    }
  343    331   
    builder
  344    332   
}
  345    333   
  346         -
pub(crate) fn metadata_configuration_result_correct_errors(
  347         -
    mut builder: crate::types::builders::MetadataConfigurationResultBuilder,
  348         -
) -> crate::types::builders::MetadataConfigurationResultBuilder {
  349         -
    if builder.destination_result.is_none() {
  350         -
        builder.destination_result = {
  351         -
            let builder = crate::types::builders::DestinationResultBuilder::default();
  352         -
            Some(builder.build())
  353         -
        }
  354         -
    }
  355         -
    builder
  356         -
}
  357         -
  358    334   
pub(crate) fn metadata_table_configuration_result_correct_errors(
  359    335   
    mut builder: crate::types::builders::MetadataTableConfigurationResultBuilder,
  360    336   
) -> crate::types::builders::MetadataTableConfigurationResultBuilder {
  361    337   
    if builder.s3_tables_destination_result.is_none() {
  362    338   
        builder.s3_tables_destination_result = {
  363    339   
            let builder = crate::types::builders::S3TablesDestinationResultBuilder::default();
  364    340   
            crate::serde_util::s3_tables_destination_result_correct_errors(builder).build().ok()
  365    341   
        }
  366    342   
    }
  367    343   
    builder
@@ -407,383 +557,497 @@
  427    403   
  428    404   
pub(crate) fn existing_object_replication_correct_errors(
  429    405   
    mut builder: crate::types::builders::ExistingObjectReplicationBuilder,
  430    406   
) -> crate::types::builders::ExistingObjectReplicationBuilder {
  431    407   
    if builder.status.is_none() {
  432    408   
        builder.status = "no value was set".parse::<crate::types::ExistingObjectReplicationStatus>().ok()
  433    409   
    }
  434    410   
    builder
  435    411   
}
  436    412   
  437         -
pub(crate) fn inventory_table_configuration_result_correct_errors(
  438         -
    mut builder: crate::types::builders::InventoryTableConfigurationResultBuilder,
  439         -
) -> crate::types::builders::InventoryTableConfigurationResultBuilder {
  440         -
    if builder.configuration_state.is_none() {
  441         -
        builder.configuration_state = "no value was set".parse::<crate::types::InventoryConfigurationState>().ok()
  442         -
    }
  443         -
    builder
  444         -
}
  445         -
  446         -
pub(crate) fn journal_table_configuration_result_correct_errors(
  447         -
    mut builder: crate::types::builders::JournalTableConfigurationResultBuilder,
  448         -
) -> crate::types::builders::JournalTableConfigurationResultBuilder {
  449         -
    if builder.table_status.is_none() {
  450         -
        builder.table_status = Some(Default::default())
  451         -
    }
  452         -
    if builder.table_name.is_none() {
  453         -
        builder.table_name = Some(Default::default())
  454         -
    }
  455         -
    if builder.record_expiration.is_none() {
  456         -
        builder.record_expiration = {
  457         -
            let builder = crate::types::builders::RecordExpirationBuilder::default();
  458         -
            crate::serde_util::record_expiration_correct_errors(builder).build().ok()
  459         -
        }
  460         -
    }
  461         -
    builder
  462         -
}
  463         -
  464    413   
pub(crate) fn s3_tables_destination_result_correct_errors(
  465    414   
    mut builder: crate::types::builders::S3TablesDestinationResultBuilder,
  466    415   
) -> crate::types::builders::S3TablesDestinationResultBuilder {
  467    416   
    if builder.table_bucket_arn.is_none() {
  468    417   
        builder.table_bucket_arn = Some(Default::default())
  469    418   
    }
  470    419   
    if builder.table_name.is_none() {
  471    420   
        builder.table_name = Some(Default::default())
  472    421   
    }
  473    422   
    if builder.table_arn.is_none() {
  474    423   
        builder.table_arn = Some(Default::default())
  475    424   
    }
  476    425   
    if builder.table_namespace.is_none() {
  477    426   
        builder.table_namespace = Some(Default::default())
  478    427   
    }
  479    428   
    builder
  480    429   
}
  481    430   
  482    431   
pub(crate) fn server_side_encryption_by_default_correct_errors(
  483    432   
    mut builder: crate::types::builders::ServerSideEncryptionByDefaultBuilder,
  484    433   
) -> crate::types::builders::ServerSideEncryptionByDefaultBuilder {
  485    434   
    if builder.sse_algorithm.is_none() {
  486    435   
        builder.sse_algorithm = "no value was set".parse::<crate::types::ServerSideEncryption>().ok()
  487    436   
    }
  488    437   
    builder
  489    438   
}
  490    439   
  491    440   
pub(crate) fn access_control_translation_correct_errors(
  492    441   
    mut builder: crate::types::builders::AccessControlTranslationBuilder,
  493    442   
) -> crate::types::builders::AccessControlTranslationBuilder {
  494    443   
    if builder.owner.is_none() {
  495    444   
        builder.owner = "no value was set".parse::<crate::types::OwnerOverride>().ok()
  496    445   
    }
  497    446   
    builder
  498    447   
}
  499    448   
  500    449   
pub(crate) fn analytics_s3_bucket_destination_correct_errors(
  501    450   
    mut builder: crate::types::builders::AnalyticsS3BucketDestinationBuilder,
  502    451   
) -> crate::types::builders::AnalyticsS3BucketDestinationBuilder {
  503    452   
    if builder.format.is_none() {
  504    453   
        builder.format = "no value was set".parse::<crate::types::AnalyticsS3ExportFileFormat>().ok()
  505    454   
    }
  506    455   
    if builder.bucket.is_none() {
  507    456   
        builder.bucket = Some(Default::default())
  508    457   
    }
  509    458   
    builder
  510    459   
}
  511    460   
  512    461   
pub(crate) fn metrics_correct_errors(mut builder: crate::types::builders::MetricsBuilder) -> crate::types::builders::MetricsBuilder {
  513    462   
    if builder.status.is_none() {
  514    463   
        builder.status = "no value was set".parse::<crate::types::MetricsStatus>().ok()
  515    464   
    }
  516    465   
    builder
  517    466   
}
  518    467   
  519         -
pub(crate) fn record_expiration_correct_errors(
  520         -
    mut builder: crate::types::builders::RecordExpirationBuilder,
  521         -
) -> crate::types::builders::RecordExpirationBuilder {
  522         -
    if builder.expiration.is_none() {
  523         -
        builder.expiration = "no value was set".parse::<crate::types::ExpirationState>().ok()
  524         -
    }
  525         -
    builder
  526         -
}
  527         -
  528    468   
pub(crate) fn replica_modifications_correct_errors(
  529    469   
    mut builder: crate::types::builders::ReplicaModificationsBuilder,
  530    470   
) -> crate::types::builders::ReplicaModificationsBuilder {
  531    471   
    if builder.status.is_none() {
  532    472   
        builder.status = "no value was set".parse::<crate::types::ReplicaModificationsStatus>().ok()
  533    473   
    }
  534    474   
    builder
  535    475   
}
  536    476   
  537    477   
pub(crate) fn replication_time_correct_errors(

tmp-codegen-diff/aws-sdk/sdk/s3/src/types.rs

@@ -1,1 +133,73 @@
   10     10   
pub use crate::types::_object_lock_legal_hold_status::ObjectLockLegalHoldStatus;
   11     11   
   12     12   
pub use crate::types::_object_lock_mode::ObjectLockMode;
   13     13   
   14     14   
pub use crate::types::_copy_part_result::CopyPartResult;
   15     15   
   16     16   
pub use crate::types::_request_payer::RequestPayer;
   17     17   
   18     18   
pub use crate::types::_checksum_algorithm::ChecksumAlgorithm;
   19     19   
   20         -
pub use crate::types::_journal_table_configuration_updates::JournalTableConfigurationUpdates;
   21         -
   22         -
pub use crate::types::_record_expiration::RecordExpiration;
   23         -
   24         -
pub use crate::types::_expiration_state::ExpirationState;
   25         -
   26         -
pub use crate::types::_inventory_table_configuration_updates::InventoryTableConfigurationUpdates;
   27         -
   28         -
pub use crate::types::_metadata_table_encryption_configuration::MetadataTableEncryptionConfiguration;
   29         -
   30         -
pub use crate::types::_table_sse_algorithm::TableSseAlgorithm;
   31         -
   32         -
pub use crate::types::_inventory_configuration_state::InventoryConfigurationState;
   33         -
   34         -
pub use crate::types::_select_object_content_event_stream::SelectObjectContentEventStream;
   35         -
   36         -
pub use crate::types::_end_event::EndEvent;
   37         -
   38         -
pub use crate::types::_continuation_event::ContinuationEvent;
   39         -
   40         -
pub use crate::types::_progress_event::ProgressEvent;
   41         -
   42         -
pub use crate::types::_progress::Progress;
   43         -
   44         -
pub use crate::types::_stats_event::StatsEvent;
   45         -
   46         -
pub use crate::types::_stats::Stats;
   47         -
   48         -
pub use crate::types::_records_event::RecordsEvent;
   49         -
   50         -
pub use crate::types::_scan_range::ScanRange;
   51         -
   52         -
pub use crate::types::_output_serialization::OutputSerialization;
   53         -
   54         -
pub use crate::types::_json_output::JsonOutput;
   55         -
   56         -
pub use crate::types::_csv_output::CsvOutput;
   57         -
   58         -
pub use crate::types::_quote_fields::QuoteFields;
   59         -
   60         -
pub use crate::types::_input_serialization::InputSerialization;
   61         -
   62         -
pub use crate::types::_parquet_input::ParquetInput;
   63         -
   64         -
pub use crate::types::_json_input::JsonInput;
   65         -
   66         -
pub use crate::types::_json_type::JsonType;
   67         -
   68         -
pub use crate::types::_compression_type::CompressionType;
   69         -
   70         -
pub use crate::types::_csv_input::CsvInput;
   71         -
   72         -
pub use crate::types::_file_header_info::FileHeaderInfo;
   73         -
   74         -
pub use crate::types::_request_progress::RequestProgress;
   75         -
   76         -
pub use crate::types::_expression_type::ExpressionType;
   77         -
   78     20   
pub use crate::types::_restore_request::RestoreRequest;
   79     21   
   80     22   
pub use crate::types::_output_location::OutputLocation;
   81     23   
   82     24   
pub use crate::types::_s3_location::S3Location;
   83     25   
   84     26   
pub use crate::types::_metadata_entry::MetadataEntry;
   85     27   
   86     28   
pub use crate::types::_tagging::Tagging;
   87     29   
   88     30   
pub use crate::types::_tag::Tag;
   89     31   
   90     32   
pub use crate::types::_grant::Grant;
   91     33   
   92     34   
pub use crate::types::_permission::Permission;
   93     35   
   94     36   
pub use crate::types::_grantee::Grantee;
   95     37   
   96     38   
pub use crate::types::_type_::Type;
   97     39   
   98     40   
pub use crate::types::_object_canned_acl::ObjectCannedAcl;
   99     41   
  100     42   
pub use crate::types::_encryption::Encryption;
  101     43   
  102         -
pub use crate::types::_select_parameters::SelectParameters;
  103         -
  104     44   
pub use crate::types::_tier::Tier;
  105     45   
  106     46   
pub use crate::types::_restore_request_type::RestoreRequestType;
  107     47   
  108     48   
pub use crate::types::_glacier_job_parameters::GlacierJobParameters;
  109     49   
  110     50   
pub use crate::types::_public_access_block_configuration::PublicAccessBlockConfiguration;
  111     51   
  112     52   
pub use crate::types::_object_lock_retention::ObjectLockRetention;
  113     53   
@@ -368,308 +463,385 @@
  388    328   
pub use crate::types::_policy_status::PolicyStatus;
  389    329   
  390    330   
pub use crate::types::_get_bucket_metadata_table_configuration_result::GetBucketMetadataTableConfigurationResult;
  391    331   
  392    332   
pub use crate::types::_error_details::ErrorDetails;
  393    333   
  394    334   
pub use crate::types::_metadata_table_configuration_result::MetadataTableConfigurationResult;
  395    335   
  396    336   
pub use crate::types::_s3_tables_destination_result::S3TablesDestinationResult;
  397    337   
  398         -
pub use crate::types::_get_bucket_metadata_configuration_result::GetBucketMetadataConfigurationResult;
  399         -
  400         -
pub use crate::types::_metadata_configuration_result::MetadataConfigurationResult;
  401         -
  402         -
pub use crate::types::_inventory_table_configuration_result::InventoryTableConfigurationResult;
  403         -
  404         -
pub use crate::types::_journal_table_configuration_result::JournalTableConfigurationResult;
  405         -
  406         -
pub use crate::types::_destination_result::DestinationResult;
  407         -
  408         -
pub use crate::types::_s3_tables_bucket_type::S3TablesBucketType;
  409         -
  410    338   
pub use crate::types::_bucket_location_constraint::BucketLocationConstraint;
  411    339   
  412    340   
pub use crate::types::_error::Error;
  413    341   
  414    342   
pub use crate::types::_deleted_object::DeletedObject;
  415    343   
  416    344   
pub use crate::types::_delete::Delete;
  417    345   
  418    346   
pub use crate::types::_object_identifier::ObjectIdentifier;
  419    347   
  420    348   
pub use crate::types::_session_credentials::SessionCredentials;
  421    349   
  422    350   
pub use crate::types::_session_mode::SessionMode;
  423    351   
  424    352   
pub use crate::types::_metadata_table_configuration::MetadataTableConfiguration;
  425    353   
  426    354   
pub use crate::types::_s3_tables_destination::S3TablesDestination;
  427    355   
  428         -
pub use crate::types::_metadata_configuration::MetadataConfiguration;
  429         -
  430         -
pub use crate::types::_inventory_table_configuration::InventoryTableConfiguration;
  431         -
  432         -
pub use crate::types::_journal_table_configuration::JournalTableConfiguration;
  433         -
  434    356   
pub use crate::types::_create_bucket_configuration::CreateBucketConfiguration;
  435    357   
  436    358   
pub use crate::types::_bucket_info::BucketInfo;
  437    359   
  438    360   
pub use crate::types::_bucket_type::BucketType;
  439    361   
  440    362   
pub use crate::types::_data_redundancy::DataRedundancy;
  441    363   
  442    364   
pub use crate::types::_location_info::LocationInfo;
  443    365   
@@ -480,402 +709,583 @@
  500    422   
mod _checksum_mode;
  501    423   
  502    424   
mod _checksum_type;
  503    425   
  504    426   
mod _common_prefix;
  505    427   
  506    428   
mod _completed_multipart_upload;
  507    429   
  508    430   
mod _completed_part;
  509    431   
  510         -
mod _compression_type;
  511         -
  512    432   
mod _condition;
  513    433   
  514         -
mod _continuation_event;
  515         -
  516    434   
mod _copy_object_result;
  517    435   
  518    436   
mod _copy_part_result;
  519    437   
  520    438   
mod _cors_configuration;
  521    439   
  522    440   
mod _cors_rule;
  523    441   
  524    442   
mod _create_bucket_configuration;
  525    443   
  526         -
mod _csv_input;
  527         -
  528         -
mod _csv_output;
  529         -
  530    444   
mod _data_redundancy;
  531    445   
  532    446   
mod _default_retention;
  533    447   
  534    448   
mod _delete;
  535    449   
  536    450   
mod _delete_marker_entry;
  537    451   
  538    452   
mod _delete_marker_replication;
  539    453   
  540    454   
mod _delete_marker_replication_status;
  541    455   
  542    456   
mod _deleted_object;
  543    457   
  544    458   
mod _destination;
  545    459   
  546         -
mod _destination_result;
  547         -
  548    460   
mod _encoding_type;
  549    461   
  550    462   
mod _encryption;
  551    463   
  552    464   
mod _encryption_configuration;
  553    465   
  554         -
mod _end_event;
  555         -
  556    466   
mod _error;
  557    467   
  558    468   
mod _error_details;
  559    469   
  560    470   
mod _error_document;
  561    471   
  562    472   
mod _event;
  563    473   
  564    474   
mod _event_bridge_configuration;
  565    475   
  566    476   
mod _existing_object_replication;
  567    477   
  568    478   
mod _existing_object_replication_status;
  569    479   
  570         -
mod _expiration_state;
  571         -
  572    480   
mod _expiration_status;
  573    481   
  574         -
mod _expression_type;
  575         -
  576         -
mod _file_header_info;
  577         -
  578    482   
mod _filter_rule;
  579    483   
  580    484   
mod _filter_rule_name;
  581    485   
  582         -
mod _get_bucket_metadata_configuration_result;
  583         -
  584    486   
mod _get_bucket_metadata_table_configuration_result;
  585    487   
  586    488   
mod _get_object_attributes_parts;
  587    489   
  588    490   
mod _glacier_job_parameters;
  589    491   
  590    492   
mod _grant;
  591    493   
  592    494   
mod _grantee;
  593    495   
  594    496   
mod _index_document;
  595    497   
  596    498   
mod _initiator;
  597    499   
  598         -
mod _input_serialization;
  599         -
  600    500   
mod _intelligent_tiering_access_tier;
  601    501   
  602    502   
mod _intelligent_tiering_and_operator;
  603    503   
  604    504   
mod _intelligent_tiering_configuration;
  605    505   
  606    506   
mod _intelligent_tiering_filter;
  607    507   
  608    508   
mod _intelligent_tiering_status;
  609    509   
  610    510   
mod _inventory_configuration;
  611    511   
  612         -
mod _inventory_configuration_state;
  613         -
  614    512   
mod _inventory_destination;
  615    513   
  616    514   
mod _inventory_encryption;
  617    515   
  618    516   
mod _inventory_filter;
  619    517   
  620    518   
mod _inventory_format;
  621    519   
  622    520   
mod _inventory_frequency;
  623    521   
  624    522   
mod _inventory_included_object_versions;
  625    523   
  626    524   
mod _inventory_optional_field;
  627    525   
  628    526   
mod _inventory_s3_bucket_destination;
  629    527   
  630    528   
mod _inventory_schedule;
  631    529   
  632         -
mod _inventory_table_configuration;
  633         -
  634         -
mod _inventory_table_configuration_result;
  635         -
  636         -
mod _inventory_table_configuration_updates;
  637         -
  638         -
mod _journal_table_configuration;
  639         -
  640         -
mod _journal_table_configuration_result;
  641         -
  642         -
mod _journal_table_configuration_updates;
  643         -
  644         -
mod _json_input;
  645         -
  646         -
mod _json_output;
  647         -
  648         -
mod _json_type;
  649         -
  650    530   
mod _lambda_function_configuration;
  651    531   
  652    532   
mod _lifecycle_expiration;
  653    533   
  654    534   
mod _lifecycle_rule;
  655    535   
  656    536   
mod _lifecycle_rule_and_operator;
  657    537   
  658    538   
mod _lifecycle_rule_filter;
  659    539   
  660    540   
mod _location_info;
  661    541   
  662    542   
mod _location_type;
  663    543   
  664    544   
mod _logging_enabled;
  665    545   
  666         -
mod _metadata_configuration;
  667         -
  668         -
mod _metadata_configuration_result;
  669         -
  670    546   
mod _metadata_directive;
  671    547   
  672    548   
mod _metadata_entry;
  673    549   
  674    550   
mod _metadata_table_configuration;
  675    551   
  676    552   
mod _metadata_table_configuration_result;
  677    553   
  678         -
mod _metadata_table_encryption_configuration;
  679         -
  680    554   
mod _metrics;
  681    555   
  682    556   
mod _metrics_and_operator;
  683    557   
  684    558   
mod _metrics_configuration;
  685    559   
  686    560   
mod _metrics_filter;
  687    561   
  688    562   
mod _metrics_status;
  689    563   
@@ -712,586 +907,751 @@
  732    606   
mod _object_storage_class;
  733    607   
  734    608   
mod _object_version;
  735    609   
  736    610   
mod _object_version_storage_class;
  737    611   
  738    612   
mod _optional_object_attributes;
  739    613   
  740    614   
mod _output_location;
  741    615   
  742         -
mod _output_serialization;
  743         -
  744    616   
mod _owner;
  745    617   
  746    618   
mod _owner_override;
  747    619   
  748    620   
mod _ownership_controls;
  749    621   
  750    622   
mod _ownership_controls_rule;
  751    623   
  752         -
mod _parquet_input;
  753         -
  754    624   
mod _part;
  755    625   
  756    626   
mod _partition_date_source;
  757    627   
  758    628   
mod _partitioned_prefix;
  759    629   
  760    630   
mod _payer;
  761    631   
  762    632   
mod _permission;
  763    633   
  764    634   
mod _policy_status;
  765    635   
  766         -
mod _progress;
  767         -
  768         -
mod _progress_event;
  769         -
  770    636   
mod _protocol;
  771    637   
  772    638   
mod _public_access_block_configuration;
  773    639   
  774    640   
mod _queue_configuration;
  775    641   
  776         -
mod _quote_fields;
  777         -
  778         -
mod _record_expiration;
  779         -
  780         -
mod _records_event;
  781         -
  782    642   
mod _redirect;
  783    643   
  784    644   
mod _redirect_all_requests_to;
  785    645   
  786    646   
mod _replica_modifications;
  787    647   
  788    648   
mod _replica_modifications_status;
  789    649   
  790    650   
mod _replication_configuration;
  791    651   
  792    652   
mod _replication_rule;
  793    653   
  794    654   
mod _replication_rule_and_operator;
  795    655   
  796    656   
mod _replication_rule_filter;
  797    657   
  798    658   
mod _replication_rule_status;
  799    659   
  800    660   
mod _replication_status;
  801    661   
  802    662   
mod _replication_time;
  803    663   
  804    664   
mod _replication_time_status;
  805    665   
  806    666   
mod _replication_time_value;
  807    667   
  808    668   
mod _request_charged;
  809    669   
  810    670   
mod _request_payer;
  811    671   
  812    672   
mod _request_payment_configuration;
  813    673   
  814         -
mod _request_progress;
  815         -
  816    674   
mod _restore_request;
  817    675   
  818    676   
mod _restore_request_type;
  819    677   
  820    678   
mod _restore_status;
  821    679   
  822    680   
mod _routing_rule;
  823    681   
  824    682   
mod _s3_key_filter;
  825    683   
  826    684   
mod _s3_location;
  827    685   
  828         -
mod _s3_tables_bucket_type;
  829         -
  830    686   
mod _s3_tables_destination;
  831    687   
  832    688   
mod _s3_tables_destination_result;
  833    689   
  834         -
mod _scan_range;
  835         -
  836         -
mod _select_object_content_event_stream;
  837         -
  838         -
mod _select_parameters;
  839         -
  840    690   
mod _server_side_encryption;
  841    691   
  842    692   
mod _server_side_encryption_by_default;
  843    693   
  844    694   
mod _server_side_encryption_configuration;
  845    695   
  846    696   
mod _server_side_encryption_rule;
  847    697   
  848    698   
mod _session_credentials;
  849    699   
  850    700   
mod _session_mode;
  851    701   
  852    702   
mod _simple_prefix;
  853    703   
  854    704   
mod _source_selection_criteria;
  855    705   
  856    706   
mod _sse_kms_encrypted_objects;
  857    707   
  858    708   
mod _sse_kms_encrypted_objects_status;
  859    709   
  860    710   
mod _ssekms;
  861    711   
  862    712   
mod _sses3;
  863    713   
  864         -
mod _stats;
  865         -
  866         -
mod _stats_event;
  867         -
  868    714   
mod _storage_class;
  869    715   
  870    716   
mod _storage_class_analysis;
  871    717   
  872    718   
mod _storage_class_analysis_data_export;
  873    719   
  874    720   
mod _storage_class_analysis_schema_version;
  875    721   
  876         -
mod _table_sse_algorithm;
  877         -
  878    722   
mod _tag;
  879    723   
  880    724   
mod _tagging;
  881    725   
  882    726   
mod _tagging_directive;
  883    727   
  884    728   
mod _target_grant;
  885    729   
  886    730   
mod _target_object_key_format;
  887    731   

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_bucket.rs

@@ -1,1 +126,94 @@
    3      3   
/// <p>In terms of implementation, a Bucket is a resource.</p>
    4      4   
#[non_exhaustive]
    5      5   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6      6   
pub struct Bucket {
    7      7   
    /// <p>The name of the bucket.</p>
    8      8   
    pub name: ::std::option::Option<::std::string::String>,
    9      9   
    /// <p>Date the bucket was created. This date can change when making changes to your bucket, such as editing its bucket policy.</p>
   10     10   
    pub creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
   11     11   
    /// <p><code>BucketRegion</code> indicates the Amazon Web Services region where the bucket is located. If the request contains at least one valid parameter, it is included in the response.</p>
   12     12   
    pub bucket_region: ::std::option::Option<::std::string::String>,
   13         -
    /// <p>The Amazon Resource Name (ARN) of the S3 bucket. ARNs uniquely identify Amazon Web Services resources across all of Amazon Web Services.</p><note>
   14         -
    /// <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
   15         -
    /// </note>
   16         -
    pub bucket_arn: ::std::option::Option<::std::string::String>,
   17     13   
}
   18     14   
impl Bucket {
   19     15   
    /// <p>The name of the bucket.</p>
   20     16   
    pub fn name(&self) -> ::std::option::Option<&str> {
   21     17   
        self.name.as_deref()
   22     18   
    }
   23     19   
    /// <p>Date the bucket was created. This date can change when making changes to your bucket, such as editing its bucket policy.</p>
   24     20   
    pub fn creation_date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
   25     21   
        self.creation_date.as_ref()
   26     22   
    }
   27     23   
    /// <p><code>BucketRegion</code> indicates the Amazon Web Services region where the bucket is located. If the request contains at least one valid parameter, it is included in the response.</p>
   28     24   
    pub fn bucket_region(&self) -> ::std::option::Option<&str> {
   29     25   
        self.bucket_region.as_deref()
   30     26   
    }
   31         -
    /// <p>The Amazon Resource Name (ARN) of the S3 bucket. ARNs uniquely identify Amazon Web Services resources across all of Amazon Web Services.</p><note>
   32         -
    /// <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
   33         -
    /// </note>
   34         -
    pub fn bucket_arn(&self) -> ::std::option::Option<&str> {
   35         -
        self.bucket_arn.as_deref()
   36         -
    }
   37     27   
}
   38     28   
impl Bucket {
   39     29   
    /// Creates a new builder-style object to manufacture [`Bucket`](crate::types::Bucket).
   40     30   
    pub fn builder() -> crate::types::builders::BucketBuilder {
   41     31   
        crate::types::builders::BucketBuilder::default()
   42     32   
    }
   43     33   
}
   44     34   
   45     35   
/// A builder for [`Bucket`](crate::types::Bucket).
   46     36   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   47     37   
#[non_exhaustive]
   48     38   
pub struct BucketBuilder {
   49     39   
    pub(crate) name: ::std::option::Option<::std::string::String>,
   50     40   
    pub(crate) creation_date: ::std::option::Option<::aws_smithy_types::DateTime>,
   51     41   
    pub(crate) bucket_region: ::std::option::Option<::std::string::String>,
   52         -
    pub(crate) bucket_arn: ::std::option::Option<::std::string::String>,
   53     42   
}
   54     43   
impl BucketBuilder {
   55     44   
    /// <p>The name of the bucket.</p>
   56     45   
    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
   57     46   
        self.name = ::std::option::Option::Some(input.into());
   58     47   
        self
   59     48   
    }
   60     49   
    /// <p>The name of the bucket.</p>
   61     50   
    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
   62     51   
        self.name = input;
   63     52   
        self
   64     53   
    }
   65     54   
    /// <p>The name of the bucket.</p>
   66     55   
    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
   67     56   
        &self.name
   68     57   
    }
   69     58   
    /// <p>Date the bucket was created. This date can change when making changes to your bucket, such as editing its bucket policy.</p>
   70     59   
    pub fn creation_date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
   71     60   
        self.creation_date = ::std::option::Option::Some(input);
   72     61   
        self
   73     62   
    }
   74     63   
    /// <p>Date the bucket was created. This date can change when making changes to your bucket, such as editing its bucket policy.</p>
   75     64   
    pub fn set_creation_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
   76     65   
        self.creation_date = input;
   77     66   
        self
   78     67   
    }
   79     68   
    /// <p>Date the bucket was created. This date can change when making changes to your bucket, such as editing its bucket policy.</p>
   80     69   
    pub fn get_creation_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
   81     70   
        &self.creation_date
   82     71   
    }
   83     72   
    /// <p><code>BucketRegion</code> indicates the Amazon Web Services region where the bucket is located. If the request contains at least one valid parameter, it is included in the response.</p>
   84     73   
    pub fn bucket_region(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
   85     74   
        self.bucket_region = ::std::option::Option::Some(input.into());
   86     75   
        self
   87     76   
    }
   88     77   
    /// <p><code>BucketRegion</code> indicates the Amazon Web Services region where the bucket is located. If the request contains at least one valid parameter, it is included in the response.</p>
   89     78   
    pub fn set_bucket_region(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
   90     79   
        self.bucket_region = input;
   91     80   
        self
   92     81   
    }
   93     82   
    /// <p><code>BucketRegion</code> indicates the Amazon Web Services region where the bucket is located. If the request contains at least one valid parameter, it is included in the response.</p>
   94     83   
    pub fn get_bucket_region(&self) -> &::std::option::Option<::std::string::String> {
   95     84   
        &self.bucket_region
   96     85   
    }
   97         -
    /// <p>The Amazon Resource Name (ARN) of the S3 bucket. ARNs uniquely identify Amazon Web Services resources across all of Amazon Web Services.</p><note>
   98         -
    /// <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
   99         -
    /// </note>
  100         -
    pub fn bucket_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  101         -
        self.bucket_arn = ::std::option::Option::Some(input.into());
  102         -
        self
  103         -
    }
  104         -
    /// <p>The Amazon Resource Name (ARN) of the S3 bucket. ARNs uniquely identify Amazon Web Services resources across all of Amazon Web Services.</p><note>
  105         -
    /// <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
  106         -
    /// </note>
  107         -
    pub fn set_bucket_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  108         -
        self.bucket_arn = input;
  109         -
        self
  110         -
    }
  111         -
    /// <p>The Amazon Resource Name (ARN) of the S3 bucket. ARNs uniquely identify Amazon Web Services resources across all of Amazon Web Services.</p><note>
  112         -
    /// <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
  113         -
    /// </note>
  114         -
    pub fn get_bucket_arn(&self) -> &::std::option::Option<::std::string::String> {
  115         -
        &self.bucket_arn
  116         -
    }
  117     86   
    /// Consumes the builder and constructs a [`Bucket`](crate::types::Bucket).
  118     87   
    pub fn build(self) -> crate::types::Bucket {
  119     88   
        crate::types::Bucket {
  120     89   
            name: self.name,
  121     90   
            creation_date: self.creation_date,
  122     91   
            bucket_region: self.bucket_region,
  123         -
            bucket_arn: self.bucket_arn,
  124     92   
        }
  125     93   
    }
  126     94   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_compression_type.rs

@@ -1,0 +114,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// When writing a match expression against `CompressionType`, it is important to ensure
    4         -
/// your code is forward-compatible. That is, if a match arm handles a case for a
    5         -
/// feature that is supported by the service but has not been represented as an enum
    6         -
/// variant in a current version of SDK, your code should continue to work when you
    7         -
/// upgrade SDK to a future version in which the enum does include a variant for that
    8         -
/// feature.
    9         -
///
   10         -
/// Here is an example of how you can make a match expression forward-compatible:
   11         -
///
   12         -
/// ```text
   13         -
/// # let compressiontype = unimplemented!();
   14         -
/// match compressiontype {
   15         -
///     CompressionType::Bzip2 => { /* ... */ },
   16         -
///     CompressionType::Gzip => { /* ... */ },
   17         -
///     CompressionType::None => { /* ... */ },
   18         -
///     other @ _ if other.as_str() == "NewFeature" => { /* handles a case for `NewFeature` */ },
   19         -
///     _ => { /* ... */ },
   20         -
/// }
   21         -
/// ```
   22         -
/// The above code demonstrates that when `compressiontype` represents
   23         -
/// `NewFeature`, the execution path will lead to the second last match arm,
   24         -
/// even though the enum does not contain a variant `CompressionType::NewFeature`
   25         -
/// in the current version of SDK. The reason is that the variable `other`,
   26         -
/// created by the `@` operator, is bound to
   27         -
/// `CompressionType::Unknown(UnknownVariantValue("NewFeature".to_owned()))`
   28         -
/// and calling `as_str` on it yields `"NewFeature"`.
   29         -
/// This match expression is forward-compatible when executed with a newer
   30         -
/// version of SDK where the variant `CompressionType::NewFeature` is defined.
   31         -
/// Specifically, when `compressiontype` represents `NewFeature`,
   32         -
/// the execution path will hit the second last match arm as before by virtue of
   33         -
/// calling `as_str` on `CompressionType::NewFeature` also yielding `"NewFeature"`.
   34         -
///
   35         -
/// Explicitly matching on the `Unknown` variant should
   36         -
/// be avoided for two reasons:
   37         -
/// - The inner data `UnknownVariantValue` is opaque, and no further information can be extracted.
   38         -
/// - It might inadvertently shadow other intended match arms.
   39         -
///
   40         -
#[allow(missing_docs)] // documentation missing in model
   41         -
#[non_exhaustive]
   42         -
#[derive(
   43         -
    ::std::clone::Clone, ::std::cmp::Eq, ::std::cmp::Ord, ::std::cmp::PartialEq, ::std::cmp::PartialOrd, ::std::fmt::Debug, ::std::hash::Hash,
   44         -
)]
   45         -
pub enum CompressionType {
   46         -
    #[allow(missing_docs)] // documentation missing in model
   47         -
    Bzip2,
   48         -
    #[allow(missing_docs)] // documentation missing in model
   49         -
    Gzip,
   50         -
    #[allow(missing_docs)] // documentation missing in model
   51         -
    None,
   52         -
    /// `Unknown` contains new variants that have been added since this code was generated.
   53         -
    #[deprecated(note = "Don't directly match on `Unknown`. See the docs on this enum for the correct way to handle unknown variants.")]
   54         -
    Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue),
   55         -
}
   56         -
impl ::std::convert::From<&str> for CompressionType {
   57         -
    fn from(s: &str) -> Self {
   58         -
        match s {
   59         -
            "BZIP2" => CompressionType::Bzip2,
   60         -
            "GZIP" => CompressionType::Gzip,
   61         -
            "NONE" => CompressionType::None,
   62         -
            other => CompressionType::Unknown(crate::primitives::sealed_enum_unknown::UnknownVariantValue(other.to_owned())),
   63         -
        }
   64         -
    }
   65         -
}
   66         -
impl ::std::str::FromStr for CompressionType {
   67         -
    type Err = ::std::convert::Infallible;
   68         -
   69         -
    fn from_str(s: &str) -> ::std::result::Result<Self, <Self as ::std::str::FromStr>::Err> {
   70         -
        ::std::result::Result::Ok(CompressionType::from(s))
   71         -
    }
   72         -
}
   73         -
impl CompressionType {
   74         -
    /// Returns the `&str` value of the enum member.
   75         -
    pub fn as_str(&self) -> &str {
   76         -
        match self {
   77         -
            CompressionType::Bzip2 => "BZIP2",
   78         -
            CompressionType::Gzip => "GZIP",
   79         -
            CompressionType::None => "NONE",
   80         -
            CompressionType::Unknown(value) => value.as_str(),
   81         -
        }
   82         -
    }
   83         -
    /// Returns all the `&str` representations of the enum members.
   84         -
    pub const fn values() -> &'static [&'static str] {
   85         -
        &["BZIP2", "GZIP", "NONE"]
   86         -
    }
   87         -
}
   88         -
impl ::std::convert::AsRef<str> for CompressionType {
   89         -
    fn as_ref(&self) -> &str {
   90         -
        self.as_str()
   91         -
    }
   92         -
}
   93         -
impl CompressionType {
   94         -
    /// Parses the enum value while disallowing unknown variants.
   95         -
    ///
   96         -
    /// Unknown variants will result in an error.
   97         -
    pub fn try_parse(value: &str) -> ::std::result::Result<Self, crate::error::UnknownVariantError> {
   98         -
        match Self::from(value) {
   99         -
            #[allow(deprecated)]
  100         -
            Self::Unknown(_) => ::std::result::Result::Err(crate::error::UnknownVariantError::new(value)),
  101         -
            known => Ok(known),
  102         -
        }
  103         -
    }
  104         -
}
  105         -
impl ::std::fmt::Display for CompressionType {
  106         -
    fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  107         -
        match self {
  108         -
            CompressionType::Bzip2 => write!(f, "BZIP2"),
  109         -
            CompressionType::Gzip => write!(f, "GZIP"),
  110         -
            CompressionType::None => write!(f, "NONE"),
  111         -
            CompressionType::Unknown(value) => write!(f, "{value}"),
  112         -
        }
  113         -
    }
  114         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_continuation_event.rs

@@ -1,0 +23,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p></p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct ContinuationEvent {}
    7         -
impl ContinuationEvent {
    8         -
    /// Creates a new builder-style object to manufacture [`ContinuationEvent`](crate::types::ContinuationEvent).
    9         -
    pub fn builder() -> crate::types::builders::ContinuationEventBuilder {
   10         -
        crate::types::builders::ContinuationEventBuilder::default()
   11         -
    }
   12         -
}
   13         -
   14         -
/// A builder for [`ContinuationEvent`](crate::types::ContinuationEvent).
   15         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   16         -
#[non_exhaustive]
   17         -
pub struct ContinuationEventBuilder {}
   18         -
impl ContinuationEventBuilder {
   19         -
    /// Consumes the builder and constructs a [`ContinuationEvent`](crate::types::ContinuationEvent).
   20         -
    pub fn build(self) -> crate::types::ContinuationEvent {
   21         -
        crate::types::ContinuationEvent {}
   22         -
    }
   23         -
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_create_bucket_configuration.rs

@@ -1,1 +102,89 @@
   12     12   
    pub location_constraint: ::std::option::Option<crate::types::BucketLocationConstraint>,
   13     13   
    /// <p>Specifies the location where the bucket will be created.</p>
   14     14   
    /// <p><b>Directory buckets </b> - The location type is Availability Zone or Local Zone. To use the Local Zone location type, your account must be enabled for Local Zones. Otherwise, you get an HTTP <code>403 Forbidden</code> error with the error code <code>AccessDenied</code>. To learn more, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/opt-in-directory-bucket-lz.html">Enable accounts for Local Zones</a> in the <i>Amazon S3 User Guide</i>.</p><note>
   15     15   
    /// <p>This functionality is only supported by directory buckets.</p>
   16     16   
    /// </note>
   17     17   
    pub location: ::std::option::Option<crate::types::LocationInfo>,
   18     18   
    /// <p>Specifies the information about the bucket that will be created.</p><note>
   19     19   
    /// <p>This functionality is only supported by directory buckets.</p>
   20     20   
    /// </note>
   21     21   
    pub bucket: ::std::option::Option<crate::types::BucketInfo>,
   22         -
    /// <p>An array of tags that you can apply to the bucket that you're creating. Tags are key-value pairs of metadata used to categorize and organize your buckets, track costs, and control access.</p><note>
   23         -
    /// <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
   24         -
    /// </note>
   25         -
    pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
   26     22   
}
   27     23   
impl CreateBucketConfiguration {
   28     24   
    /// <p>Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region.</p>
   29     25   
    /// <p>If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default. Configurations using the value <code>EU</code> will create a bucket in <code>eu-west-1</code>.</p>
   30     26   
    /// <p>For a list of the valid values for all of the Amazon Web Services Regions, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a>.</p><note>
   31     27   
    /// <p>This functionality is not supported for directory buckets.</p>
   32     28   
    /// </note>
   33     29   
    pub fn location_constraint(&self) -> ::std::option::Option<&crate::types::BucketLocationConstraint> {
   34     30   
        self.location_constraint.as_ref()
   35     31   
    }
   36     32   
    /// <p>Specifies the location where the bucket will be created.</p>
   37     33   
    /// <p><b>Directory buckets </b> - The location type is Availability Zone or Local Zone. To use the Local Zone location type, your account must be enabled for Local Zones. Otherwise, you get an HTTP <code>403 Forbidden</code> error with the error code <code>AccessDenied</code>. To learn more, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/opt-in-directory-bucket-lz.html">Enable accounts for Local Zones</a> in the <i>Amazon S3 User Guide</i>.</p><note>
   38     34   
    /// <p>This functionality is only supported by directory buckets.</p>
   39     35   
    /// </note>
   40     36   
    pub fn location(&self) -> ::std::option::Option<&crate::types::LocationInfo> {
   41     37   
        self.location.as_ref()
   42     38   
    }
   43     39   
    /// <p>Specifies the information about the bucket that will be created.</p><note>
   44     40   
    /// <p>This functionality is only supported by directory buckets.</p>
   45     41   
    /// </note>
   46     42   
    pub fn bucket(&self) -> ::std::option::Option<&crate::types::BucketInfo> {
   47     43   
        self.bucket.as_ref()
   48     44   
    }
   49         -
    /// <p>An array of tags that you can apply to the bucket that you're creating. Tags are key-value pairs of metadata used to categorize and organize your buckets, track costs, and control access.</p><note>
   50         -
    /// <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
   51         -
    /// </note>
   52         -
    ///
   53         -
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
   54         -
    pub fn tags(&self) -> &[crate::types::Tag] {
   55         -
        self.tags.as_deref().unwrap_or_default()
   56         -
    }
   57     45   
}
   58     46   
impl CreateBucketConfiguration {
   59     47   
    /// Creates a new builder-style object to manufacture [`CreateBucketConfiguration`](crate::types::CreateBucketConfiguration).
   60     48   
    pub fn builder() -> crate::types::builders::CreateBucketConfigurationBuilder {
   61     49   
        crate::types::builders::CreateBucketConfigurationBuilder::default()
   62     50   
    }
   63     51   
}
   64     52   
   65     53   
/// A builder for [`CreateBucketConfiguration`](crate::types::CreateBucketConfiguration).
   66     54   
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   67     55   
#[non_exhaustive]
   68     56   
pub struct CreateBucketConfigurationBuilder {
   69     57   
    pub(crate) location_constraint: ::std::option::Option<crate::types::BucketLocationConstraint>,
   70     58   
    pub(crate) location: ::std::option::Option<crate::types::LocationInfo>,
   71     59   
    pub(crate) bucket: ::std::option::Option<crate::types::BucketInfo>,
   72         -
    pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
   73     60   
}
   74     61   
impl CreateBucketConfigurationBuilder {
   75     62   
    /// <p>Specifies the Region where the bucket will be created. You might choose a Region to optimize latency, minimize costs, or address regulatory requirements. For example, if you reside in Europe, you will probably find it advantageous to create buckets in the Europe (Ireland) Region.</p>
   76     63   
    /// <p>If you don't specify a Region, the bucket is created in the US East (N. Virginia) Region (us-east-1) by default. Configurations using the value <code>EU</code> will create a bucket in <code>eu-west-1</code>.</p>
   77     64   
    /// <p>For a list of the valid values for all of the Amazon Web Services Regions, see <a href="https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region">Regions and Endpoints</a>.</p><note>
   78     65   
    /// <p>This functionality is not supported for directory buckets.</p>
   79     66   
    /// </note>
   80     67   
    pub fn location_constraint(mut self, input: crate::types::BucketLocationConstraint) -> Self {
   81     68   
        self.location_constraint = ::std::option::Option::Some(input);
   82     69   
        self
@@ -114,101 +179,139 @@
  134    121   
    pub fn set_bucket(mut self, input: ::std::option::Option<crate::types::BucketInfo>) -> Self {
  135    122   
        self.bucket = input;
  136    123   
        self
  137    124   
    }
  138    125   
    /// <p>Specifies the information about the bucket that will be created.</p><note>
  139    126   
    /// <p>This functionality is only supported by directory buckets.</p>
  140    127   
    /// </note>
  141    128   
    pub fn get_bucket(&self) -> &::std::option::Option<crate::types::BucketInfo> {
  142    129   
        &self.bucket
  143    130   
    }
  144         -
    /// Appends an item to `tags`.
  145         -
    ///
  146         -
    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
  147         -
    ///
  148         -
    /// <p>An array of tags that you can apply to the bucket that you're creating. Tags are key-value pairs of metadata used to categorize and organize your buckets, track costs, and control access.</p><note>
  149         -
    /// <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
  150         -
    /// </note>
  151         -
    pub fn tags(mut self, input: crate::types::Tag) -> Self {
  152         -
        let mut v = self.tags.unwrap_or_default();
  153         -
        v.push(input);
  154         -
        self.tags = ::std::option::Option::Some(v);
  155         -
        self
  156         -
    }
  157         -
    /// <p>An array of tags that you can apply to the bucket that you're creating. Tags are key-value pairs of metadata used to categorize and organize your buckets, track costs, and control access.</p><note>
  158         -
    /// <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
  159         -
    /// </note>
  160         -
    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
  161         -
        self.tags = input;
  162         -
        self
  163         -
    }
  164         -
    /// <p>An array of tags that you can apply to the bucket that you're creating. Tags are key-value pairs of metadata used to categorize and organize your buckets, track costs, and control access.</p><note>
  165         -
    /// <p>This parameter is only supported for S3 directory buckets. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-buckets-tagging.html">Using tags with directory buckets</a>.</p>
  166         -
    /// </note>
  167         -
    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
  168         -
        &self.tags
  169         -
    }
  170    131   
    /// Consumes the builder and constructs a [`CreateBucketConfiguration`](crate::types::CreateBucketConfiguration).
  171    132   
    pub fn build(self) -> crate::types::CreateBucketConfiguration {
  172    133   
        crate::types::CreateBucketConfiguration {
  173    134   
            location_constraint: self.location_constraint,
  174    135   
            location: self.location,
  175    136   
            bucket: self.bucket,
  176         -
            tags: self.tags,
  177    137   
        }
  178    138   
    }
  179    139   
}

tmp-codegen-diff/aws-sdk/sdk/s3/src/types/_csv_input.rs

@@ -1,0 +242,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
    3         -
/// <p>Describes how an uncompressed comma-separated values (CSV)-formatted input object is formatted.</p>
    4         -
#[non_exhaustive]
    5         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
    6         -
pub struct CsvInput {
    7         -
    /// <p>Describes the first line of input. Valid values are:</p>
    8         -
    /// <ul>
    9         -
    /// <li>
   10         -
    /// <p><code>NONE</code>: First line is not a header.</p></li>
   11         -
    /// <li>
   12         -
    /// <p><code>IGNORE</code>: First line is a header, but you can't use the header values to indicate the column in an expression. You can use column position (such as _1, _2, …) to indicate the column (<code>SELECT s._1 FROM OBJECT s</code>).</p></li>
   13         -
    /// <li>
   14         -
    /// <p><code>Use</code>: First line is a header, and you can use the header value to identify a column in an expression (<code>SELECT "name" FROM OBJECT</code>).</p></li>
   15         -
    /// </ul>
   16         -
    pub file_header_info: ::std::option::Option<crate::types::FileHeaderInfo>,
   17         -
    /// <p>A single character used to indicate that a row should be ignored when the character is present at the start of that row. You can specify any character to indicate a comment line. The default character is <code>#</code>.</p>
   18         -
    /// <p>Default: <code>#</code></p>
   19         -
    pub comments: ::std::option::Option<::std::string::String>,
   20         -
    /// <p>A single character used for escaping the quotation mark character inside an already escaped value. For example, the value <code>""" a , b """</code> is parsed as <code>" a , b "</code>.</p>
   21         -
    pub quote_escape_character: ::std::option::Option<::std::string::String>,
   22         -
    /// <p>A single character used to separate individual records in the input. Instead of the default value, you can specify an arbitrary delimiter.</p>
   23         -
    pub record_delimiter: ::std::option::Option<::std::string::String>,
   24         -
    /// <p>A single character used to separate individual fields in a record. You can specify an arbitrary delimiter.</p>
   25         -
    pub field_delimiter: ::std::option::Option<::std::string::String>,
   26         -
    /// <p>A single character used for escaping when the field delimiter is part of the value. For example, if the value is <code>a, b</code>, Amazon S3 wraps this field value in quotation marks, as follows: <code>" a , b "</code>.</p>
   27         -
    /// <p>Type: String</p>
   28         -
    /// <p>Default: <code>"</code></p>
   29         -
    /// <p>Ancestors: <code>CSV</code></p>
   30         -
    pub quote_character: ::std::option::Option<::std::string::String>,
   31         -
    /// <p>Specifies that CSV field values may contain quoted record delimiters and such records should be allowed. Default value is FALSE. Setting this value to TRUE may lower performance.</p>
   32         -
    pub allow_quoted_record_delimiter: ::std::option::Option<bool>,
   33         -
}
   34         -
impl CsvInput {
   35         -
    /// <p>Describes the first line of input. Valid values are:</p>
   36         -
    /// <ul>
   37         -
    /// <li>
   38         -
    /// <p><code>NONE</code>: First line is not a header.</p></li>
   39         -
    /// <li>
   40         -
    /// <p><code>IGNORE</code>: First line is a header, but you can't use the header values to indicate the column in an expression. You can use column position (such as _1, _2, …) to indicate the column (<code>SELECT s._1 FROM OBJECT s</code>).</p></li>
   41         -
    /// <li>
   42         -
    /// <p><code>Use</code>: First line is a header, and you can use the header value to identify a column in an expression (<code>SELECT "name" FROM OBJECT</code>).</p></li>
   43         -
    /// </ul>
   44         -
    pub fn file_header_info(&self) -> ::std::option::Option<&crate::types::FileHeaderInfo> {
   45         -
        self.file_header_info.as_ref()
   46         -
    }
   47         -
    /// <p>A single character used to indicate that a row should be ignored when the character is present at the start of that row. You can specify any character to indicate a comment line. The default character is <code>#</code>.</p>
   48         -
    /// <p>Default: <code>#</code></p>
   49         -
    pub fn comments(&self) -> ::std::option::Option<&str> {
   50         -
        self.comments.as_deref()
   51         -
    }
   52         -
    /// <p>A single character used for escaping the quotation mark character inside an already escaped value. For example, the value <code>""" a , b """</code> is parsed as <code>" a , b "</code>.</p>
   53         -
    pub fn quote_escape_character(&self) -> ::std::option::Option<&str> {
   54         -
        self.quote_escape_character.as_deref()
   55         -
    }
   56         -
    /// <p>A single character used to separate individual records in the input. Instead of the default value, you can specify an arbitrary delimiter.</p>
   57         -
    pub fn record_delimiter(&self) -> ::std::option::Option<&str> {
   58         -
        self.record_delimiter.as_deref()
   59         -
    }
   60         -
    /// <p>A single character used to separate individual fields in a record. You can specify an arbitrary delimiter.</p>
   61         -
    pub fn field_delimiter(&self) -> ::std::option::Option<&str> {
   62         -
        self.field_delimiter.as_deref()
   63         -
    }
   64         -
    /// <p>A single character used for escaping when the field delimiter is part of the value. For example, if the value is <code>a, b</code>, Amazon S3 wraps this field value in quotation marks, as follows: <code>" a , b "</code>.</p>
   65         -
    /// <p>Type: String</p>
   66         -
    /// <p>Default: <code>"</code></p>
   67         -
    /// <p>Ancestors: <code>CSV</code></p>
   68         -
    pub fn quote_character(&self) -> ::std::option::Option<&str> {
   69         -
        self.quote_character.as_deref()
   70         -
    }
   71         -
    /// <p>Specifies that CSV field values may contain quoted record delimiters and such records should be allowed. Default value is FALSE. Setting this value to TRUE may lower performance.</p>
   72         -
    pub fn allow_quoted_record_delimiter(&self) -> ::std::option::Option<bool> {
   73         -
        self.allow_quoted_record_delimiter
   74         -
    }
   75         -
}
   76         -
impl CsvInput {
   77         -
    /// Creates a new builder-style object to manufacture [`CsvInput`](crate::types::CsvInput).
   78         -
    pub fn builder() -> crate::types::builders::CsvInputBuilder {
   79         -
        crate::types::builders::CsvInputBuilder::default()
   80         -
    }
   81         -
}
   82         -
   83         -
/// A builder for [`CsvInput`](crate::types::CsvInput).
   84         -
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
   85         -
#[non_exhaustive]
   86         -
pub struct CsvInputBuilder {
   87         -
    pub(crate) file_header_info: ::std::option::Option<crate::types::FileHeaderInfo>,
   88         -
    pub(crate) comments: ::std::option::Option<::std::string::String>,
   89         -
    pub(crate) quote_escape_character: ::std::option::Option<::std::string::String>,
   90         -
    pub(crate) record_delimiter: ::std::option::Option<::std::string::String>,
   91         -
    pub(crate) field_delimiter: ::std::option::Option<::std::string::String>,
   92         -
    pub(crate) quote_character: ::std::option::Option<::std::string::String>,
   93         -
    pub(crate) allow_quoted_record_delimiter: ::std::option::Option<bool>,
   94         -
}
   95         -
impl CsvInputBuilder {
   96         -
    /// <p>Describes the first line of input. Valid values are:</p>
   97         -
    /// <ul>
   98         -
    /// <li>
   99         -
    /// <p><code>NONE</code>: First line is not a header.</p></li>
  100         -
    /// <li>
  101         -
    /// <p><code>IGNORE</code>: First line is a header, but you can't use the header values to indicate the column in an expression. You can use column position (such as _1, _2, …) to indicate the column (<code>SELECT s._1 FROM OBJECT s</code>).</p></li>
  102         -
    /// <li>
  103         -
    /// <p><code>Use</code>: First line is a header, and you can use the header value to identify a column in an expression (<code>SELECT "name" FROM OBJECT</code>).</p></li>
  104         -
    /// </ul>
  105         -
    pub fn file_header_info(mut self, input: crate::types::FileHeaderInfo) -> Self {
  106         -
        self.file_header_info = ::std::option::Option::Some(input);
  107         -
        self
  108         -
    }
  109         -
    /// <p>Describes the first line of input. Valid values are:</p>
  110         -
    /// <ul>
  111         -
    /// <li>
  112         -
    /// <p><code>NONE</code>: First line is not a header.</p></li>
  113         -
    /// <li>
  114         -
    /// <p><code>IGNORE</code>: First line is a header, but you can't use the header values to indicate the column in an expression. You can use column position (such as _1, _2, …) to indicate the column (<code>SELECT s._1 FROM OBJECT s</code>).</p></li>
  115         -
    /// <li>
  116         -
    /// <p><code>Use</code>: First line is a header, and you can use the header value to identify a column in an expression (<code>SELECT "name" FROM OBJECT</code>).</p></li>
  117         -
    /// </ul>
  118         -
    pub fn set_file_header_info(mut self, input: ::std::option::Option<crate::types::FileHeaderInfo>) -> Self {
  119         -
        self.file_header_info = input;
  120         -
        self
  121         -
    }
  122         -
    /// <p>Describes the first line of input. Valid values are:</p>
  123         -
    /// <ul>
  124         -
    /// <li>
  125         -
    /// <p><code>NONE</code>: First line is not a header.</p></li>
  126         -
    /// <li>
  127         -
    /// <p><code>IGNORE</code>: First line is a header, but you can't use the header values to indicate the column in an expression. You can use column position (such as _1, _2, …) to indicate the column (<code>SELECT s._1 FROM OBJECT s</code>).</p></li>
  128         -
    /// <li>
  129         -
    /// <p><code>Use</code>: First line is a header, and you can use the header value to identify a column in an expression (<code>SELECT "name" FROM OBJECT</code>).</p></li>
  130         -
    /// </ul>
  131         -
    pub fn get_file_header_info(&self) -> &::std::option::Option<crate::types::FileHeaderInfo> {
  132         -
        &self.file_header_info
  133         -
    }
  134         -
    /// <p>A single character used to indicate that a row should be ignored when the character is present at the start of that row. You can specify any character to indicate a comment line. The default character is <code>#</code>.</p>
  135         -
    /// <p>Default: <code>#</code></p>
  136         -
    pub fn comments(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  137         -
        self.comments = ::std::option::Option::Some(input.into());
  138         -
        self
  139         -
    }
  140         -
    /// <p>A single character used to indicate that a row should be ignored when the character is present at the start of that row. You can specify any character to indicate a comment line. The default character is <code>#</code>.</p>
  141         -
    /// <p>Default: <code>#</code></p>
  142         -
    pub fn set_comments(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  143         -
        self.comments = input;
  144         -
        self
  145         -
    }
  146         -
    /// <p>A single character used to indicate that a row should be ignored when the character is present at the start of that row. You can specify any character to indicate a comment line. The default character is <code>#</code>.</p>
  147         -
    /// <p>Default: <code>#</code></p>
  148         -
    pub fn get_comments(&self) -> &::std::option::Option<::std::string::String> {
  149         -
        &self.comments
  150         -
    }
  151         -
    /// <p>A single character used for escaping the quotation mark character inside an already escaped value. For example, the value <code>""" a , b """</code> is parsed as <code>" a , b "</code>.</p>
  152         -
    pub fn quote_escape_character(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  153         -
        self.quote_escape_character = ::std::option::Option::Some(input.into());
  154         -
        self
  155         -
    }
  156         -
    /// <p>A single character used for escaping the quotation mark character inside an already escaped value. For example, the value <code>""" a , b """</code> is parsed as <code>" a , b "</code>.</p>
  157         -
    pub fn set_quote_escape_character(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  158         -
        self.quote_escape_character = input;
  159         -
        self
  160         -
    }
  161         -
    /// <p>A single character used for escaping the quotation mark character inside an already escaped value. For example, the value <code>""" a , b """</code> is parsed as <code>" a , b "</code>.</p>
  162         -
    pub fn get_quote_escape_character(&self) -> &::std::option::Option<::std::string::String> {
  163         -
        &self.quote_escape_character
  164         -
    }
  165         -
    /// <p>A single character used to separate individual records in the input. Instead of the default value, you can specify an arbitrary delimiter.</p>
  166         -
    pub fn record_delimiter(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  167         -
        self.record_delimiter = ::std::option::Option::Some(input.into());
  168         -
        self
  169         -
    }
  170         -
    /// <p>A single character used to separate individual records in the input. Instead of the default value, you can specify an arbitrary delimiter.</p>
  171         -
    pub fn set_record_delimiter(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  172         -
        self.record_delimiter = input;
  173         -
        self
  174         -
    }
  175         -
    /// <p>A single character used to separate individual records in the input. Instead of the default value, you can specify an arbitrary delimiter.</p>
  176         -
    pub fn get_record_delimiter(&self) -> &::std::option::Option<::std::string::String> {
  177         -
        &self.record_delimiter
  178         -
    }
  179         -
    /// <p>A single character used to separate individual fields in a record. You can specify an arbitrary delimiter.</p>
  180         -
    pub fn field_delimiter(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  181         -
        self.field_delimiter = ::std::option::Option::Some(input.into());
  182         -
        self
  183         -
    }
  184         -
    /// <p>A single character used to separate individual fields in a record. You can specify an arbitrary delimiter.</p>
  185         -
    pub fn set_field_delimiter(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  186         -
        self.field_delimiter = input;
  187         -
        self
  188         -
    }
  189         -
    /// <p>A single character used to separate individual fields in a record. You can specify an arbitrary delimiter.</p>
  190         -
    pub fn get_field_delimiter(&self) -> &::std::option::Option<::std::string::String> {
  191         -
        &self.field_delimiter
  192         -
    }
  193         -
    /// <p>A single character used for escaping when the field delimiter is part of the value. For example, if the value is <code>a, b</code>, Amazon S3 wraps this field value in quotation marks, as follows: <code>" a , b "</code>.</p>
  194         -
    /// <p>Type: String</p>
  195         -
    /// <p>Default: <code>"</code></p>
  196         -
    /// <p>Ancestors: <code>CSV</code></p>
  197         -
    pub fn quote_character(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
  198         -
        self.quote_character = ::std::option::Option::Some(input.into());
  199         -
        self
  200         -
    }
  201         -
    /// <p>A single character used for escaping when the field delimiter is part of the value. For example, if the value is <code>a, b</code>, Amazon S3 wraps this field value in quotation marks, as follows: <code>" a , b "</code>.</p>
  202         -
    /// <p>Type: String</p>
  203         -
    /// <p>Default: <code>"</code></p>
  204         -
    /// <p>Ancestors: <code>CSV</code></p>
  205         -
    pub fn set_quote_character(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
  206         -
        self.quote_character = input;
  207         -
        self
  208         -
    }
  209         -
    /// <p>A single character used for escaping when the field delimiter is part of the value. For example, if the value is <code>a, b</code>, Amazon S3 wraps this field value in quotation marks, as follows: <code>" a , b "</code>.</p>
  210         -
    /// <p>Type: String</p>
  211         -
    /// <p>Default: <code>"</code></p>
  212         -
    /// <p>Ancestors: <code>CSV</code></p>
  213         -
    pub fn get_quote_character(&self) -> &::std::option::Option<::std::string::String> {
  214         -
        &self.quote_character
  215         -
    }
  216         -
    /// <p>Specifies that CSV field values may contain quoted record delimiters and such records should be allowed. Default value is FALSE. Setting this value to TRUE may lower performance.</p>
  217         -
    pub fn allow_quoted_record_delimiter(mut self, input: bool) -> Self {
  218         -
        self.allow_quoted_record_delimiter = ::std::option::Option::Some(input);
  219         -
        self
  220         -
    }
  221         -
    /// <p>Specifies that CSV field values may contain quoted record delimiters and such records should be allowed. Default value is FALSE. Setting this value to TRUE may lower performance.</p>
  222         -
    pub fn set_allow_quoted_record_delimiter(mut self, input: ::std::option::Option<bool>) -> Self {
  223         -
        self.allow_quoted_record_delimiter = input;
  224         -
        self
  225         -
    }
  226         -
    /// <p>Specifies that CSV field values may contain quoted record delimiters and such records should be allowed. Default value is FALSE. Setting this value to TRUE may lower performance.</p>
  227         -
    pub fn get_allow_quoted_record_delimiter(&self) -> &::std::option::Option<bool> {
  228         -
        &self.allow_quoted_record_delimiter
  229         -
    }
  230         -
    /// Consumes the builder and constructs a [`CsvInput`](crate::types::CsvInput).
  231         -
    pub fn build(self) -> crate::types::CsvInput {
  232         -
        crate::types::CsvInput {
  233         -
            file_header_info: self.file_header_info,
  234         -
            comments: self.comments,
  235         -
            quote_escape_character: self.quote_escape_character,
  236         -
            record_delimiter: self.record_delimiter,
  237         -
            field_delimiter: self.field_delimiter,
  238         -
            quote_character: self.quote_character,
  239         -
            allow_quoted_record_delimiter: self.allow_quoted_record_delimiter,
  240         -
        }
  241         -
    }
  242         -
}