AWS SDK

AWS SDK

rev. c67de0508e9d33923e47fd7281531eeca95f7996

Files changed:

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/protocol_serde/shape_tool.rs

@@ -1,1 +22,22 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub fn ser_tool(
    3      3   
    object_3: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      4   
    input: &crate::types::Tool,
    5      5   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6      6   
    match input {
    7         -
        crate::types::Tool::ToolSpec(inner) => {
           7  +
        crate::types::Tool::ToolSpec(_inner) => {
    8      8   
            #[allow(unused_mut)]
    9      9   
            let mut object_1 = object_3.key("toolSpec").start_object();
   10     10   
            crate::protocol_serde::shape_tool_specification::ser_tool_specification(&mut object_1, inner)?;
   11     11   
            object_1.finish();
   12     12   
        }
   13         -
        crate::types::Tool::CachePoint(inner) => {
          13  +
        crate::types::Tool::CachePoint(_inner) => {
   14     14   
            #[allow(unused_mut)]
   15     15   
            let mut object_2 = object_3.key("cachePoint").start_object();
   16     16   
            crate::protocol_serde::shape_cache_point_block::ser_cache_point_block(&mut object_2, inner)?;
   17     17   
            object_2.finish();
   18     18   
        }
   19     19   
        crate::types::Tool::Unknown => return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant("Tool")),
   20     20   
    }
   21     21   
    Ok(())
   22     22   
}

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/protocol_serde/shape_tool_choice.rs

@@ -1,1 +28,28 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub fn ser_tool_choice(
    3      3   
    object_5: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      4   
    input: &crate::types::ToolChoice,
    5      5   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6      6   
    match input {
    7         -
        crate::types::ToolChoice::Auto(inner) => {
           7  +
        crate::types::ToolChoice::Auto(_inner) => {
    8      8   
            #[allow(unused_mut)]
    9      9   
            let mut object_1 = object_5.key("auto").start_object();
   10     10   
            crate::protocol_serde::shape_auto_tool_choice::ser_auto_tool_choice(&mut object_1, inner)?;
   11     11   
            object_1.finish();
   12     12   
        }
   13         -
        crate::types::ToolChoice::Any(inner) => {
          13  +
        crate::types::ToolChoice::Any(_inner) => {
   14     14   
            #[allow(unused_mut)]
   15     15   
            let mut object_2 = object_5.key("any").start_object();
   16     16   
            crate::protocol_serde::shape_any_tool_choice::ser_any_tool_choice(&mut object_2, inner)?;
   17     17   
            object_2.finish();
   18     18   
        }
   19         -
        crate::types::ToolChoice::Tool(inner) => {
          19  +
        crate::types::ToolChoice::Tool(_inner) => {
   20     20   
            #[allow(unused_mut)]
   21     21   
            let mut object_3 = object_5.key("tool").start_object();
   22     22   
            crate::protocol_serde::shape_specific_tool_choice::ser_specific_tool_choice(&mut object_3, inner)?;
   23     23   
            object_3.finish();
   24     24   
        }
   25     25   
        crate::types::ToolChoice::Unknown => return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant("ToolChoice")),
   26     26   
    }
   27     27   
    Ok(())
   28     28   
}

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/protocol_serde/shape_tool_input_schema.rs

@@ -1,1 +17,17 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub fn ser_tool_input_schema(
    3      3   
    object_3: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      4   
    input: &crate::types::ToolInputSchema,
    5      5   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6      6   
    match input {
    7         -
        crate::types::ToolInputSchema::Json(inner) => {
           7  +
        crate::types::ToolInputSchema::Json(_inner) => {
    8      8   
            object_3.key("json").document(inner);
    9      9   
        }
   10     10   
        crate::types::ToolInputSchema::Unknown => {
   11     11   
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
   12     12   
                "ToolInputSchema",
   13     13   
            ))
   14     14   
        }
   15     15   
    }
   16     16   
    Ok(())
   17     17   
}

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/protocol_serde/shape_tool_result_content_block.rs

@@ -1,1 +55,55 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub fn ser_tool_result_content_block(
    3      3   
    object_3: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      4   
    input: &crate::types::ToolResultContentBlock,
    5      5   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6      6   
    match input {
    7         -
        crate::types::ToolResultContentBlock::Json(inner) => {
           7  +
        crate::types::ToolResultContentBlock::Json(_inner) => {
    8      8   
            object_3.key("json").document(inner);
    9      9   
        }
   10         -
        crate::types::ToolResultContentBlock::Text(inner) => {
          10  +
        crate::types::ToolResultContentBlock::Text(_inner) => {
   11     11   
            object_3.key("text").string(inner.as_str());
   12     12   
        }
   13         -
        crate::types::ToolResultContentBlock::Image(inner) => {
          13  +
        crate::types::ToolResultContentBlock::Image(_inner) => {
   14     14   
            #[allow(unused_mut)]
   15     15   
            let mut object_1 = object_3.key("image").start_object();
   16     16   
            crate::protocol_serde::shape_image_block::ser_image_block(&mut object_1, inner)?;
   17     17   
            object_1.finish();
   18     18   
        }
   19         -
        crate::types::ToolResultContentBlock::Document(inner) => {
          19  +
        crate::types::ToolResultContentBlock::Document(_inner) => {
   20     20   
            #[allow(unused_mut)]
   21     21   
            let mut object_2 = object_3.key("document").start_object();
   22     22   
            crate::protocol_serde::shape_document_block::ser_document_block(&mut object_2, inner)?;
   23     23   
            object_2.finish();
   24     24   
        }
   25         -
        crate::types::ToolResultContentBlock::Video(inner) => {
          25  +
        crate::types::ToolResultContentBlock::Video(_inner) => {
   26     26   
            #[allow(unused_mut)]
   27     27   
            let mut object_3 = object_3.key("video").start_object();
   28     28   
            crate::protocol_serde::shape_video_block::ser_video_block(&mut object_3, inner)?;
   29     29   
            object_3.finish();
   30     30   
        }
   31     31   
        crate::types::ToolResultContentBlock::Unknown => {
   32     32   
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
   33     33   
                "ToolResultContentBlock",
   34     34   
            ))
   35     35   
        }

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/protocol_serde/shape_video_source.rs

@@ -1,1 +40,40 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub fn ser_video_source(
    3      3   
    object_2: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      4   
    input: &crate::types::VideoSource,
    5      5   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6      6   
    match input {
    7         -
        crate::types::VideoSource::Bytes(inner) => {
           7  +
        crate::types::VideoSource::Bytes(_inner) => {
    8      8   
            object_2.key("bytes").string_unchecked(&::aws_smithy_types::base64::encode(inner));
    9      9   
        }
   10         -
        crate::types::VideoSource::S3Location(inner) => {
          10  +
        crate::types::VideoSource::S3Location(_inner) => {
   11     11   
            #[allow(unused_mut)]
   12     12   
            let mut object_1 = object_2.key("s3Location").start_object();
   13     13   
            crate::protocol_serde::shape_s3_location::ser_s3_location(&mut object_1, inner)?;
   14     14   
            object_1.finish();
   15     15   
        }
   16     16   
        crate::types::VideoSource::Unknown => return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant("VideoSource")),
   17     17   
    }
   18     18   
    Ok(())
   19     19   
}
   20     20   

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/protocol_serde/shape_resource_config.rs

@@ -1,1 +20,20 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub fn ser_resource_config(
    3      3   
    object_3: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      4   
    input: &crate::types::ResourceConfig,
    5      5   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6      6   
    match input {
    7         -
        crate::types::ResourceConfig::OpenSearchResourceConfig(inner) => {
           7  +
        crate::types::ResourceConfig::OpenSearchResourceConfig(_inner) => {
    8      8   
            #[allow(unused_mut)]
    9      9   
            let mut object_1 = object_3.key("openSearchResourceConfig").start_object();
   10     10   
            crate::protocol_serde::shape_open_search_resource_config::ser_open_search_resource_config(&mut object_1, inner)?;
   11     11   
            object_1.finish();
   12     12   
        }
   13     13   
        crate::types::ResourceConfig::Unknown => {
   14     14   
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
   15     15   
                "ResourceConfig",
   16     16   
            ))
   17     17   
        }

tmp-codegen-diff/aws-sdk/sdk/dynamodb/src/protocol_serde/shape_attribute_value.rs

@@ -1,1 +101,101 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
pub fn ser_attribute_value(
    3      3   
    object_6: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    4      4   
    input: &crate::types::AttributeValue,
    5      5   
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    6      6   
    match input {
    7         -
        crate::types::AttributeValue::S(inner) => {
           7  +
        crate::types::AttributeValue::S(_inner) => {
    8      8   
            object_6.key("S").string(inner.as_str());
    9      9   
        }
   10         -
        crate::types::AttributeValue::N(inner) => {
          10  +
        crate::types::AttributeValue::N(_inner) => {
   11     11   
            object_6.key("N").string(inner.as_str());
   12     12   
        }
   13         -
        crate::types::AttributeValue::B(inner) => {
          13  +
        crate::types::AttributeValue::B(_inner) => {
   14     14   
            object_6.key("B").string_unchecked(&::aws_smithy_types::base64::encode(inner));
   15     15   
        }
   16         -
        crate::types::AttributeValue::Ss(inner) => {
          16  +
        crate::types::AttributeValue::Ss(_inner) => {
   17     17   
            let mut array_1 = object_6.key("SS").start_array();
   18     18   
            for item_2 in inner {
   19     19   
                {
   20     20   
                    array_1.value().string(item_2.as_str());
   21     21   
                }
   22     22   
            }
   23     23   
            array_1.finish();
   24     24   
        }
   25         -
        crate::types::AttributeValue::Ns(inner) => {
          25  +
        crate::types::AttributeValue::Ns(_inner) => {
   26     26   
            let mut array_3 = object_6.key("NS").start_array();
   27     27   
            for item_4 in inner {
   28     28   
                {
   29     29   
                    array_3.value().string(item_4.as_str());
   30     30   
                }
   31     31   
            }
   32     32   
            array_3.finish();
   33     33   
        }
   34         -
        crate::types::AttributeValue::Bs(inner) => {
          34  +
        crate::types::AttributeValue::Bs(_inner) => {
   35     35   
            let mut array_5 = object_6.key("BS").start_array();
   36     36   
            for item_6 in inner {
   37     37   
                {
   38     38   
                    array_5.value().string_unchecked(&::aws_smithy_types::base64::encode(item_6));
   39     39   
                }
   40     40   
            }
   41     41   
            array_5.finish();
   42     42   
        }
   43         -
        crate::types::AttributeValue::M(inner) => {
          43  +
        crate::types::AttributeValue::M(_inner) => {
   44     44   
            #[allow(unused_mut)]
   45     45   
            let mut object_7 = object_6.key("M").start_object();
   46     46   
            for (key_8, value_9) in inner {
   47     47   
                {
   48     48   
                    #[allow(unused_mut)]
   49     49   
                    let mut object_10 = object_7.key(key_8.as_str()).start_object();
   50     50   
                    crate::protocol_serde::shape_attribute_value::ser_attribute_value(&mut object_10, value_9)?;
   51     51   
                    object_10.finish();
   52     52   
                }
   53     53   
            }
   54     54   
            object_7.finish();
   55     55   
        }
   56         -
        crate::types::AttributeValue::L(inner) => {
          56  +
        crate::types::AttributeValue::L(_inner) => {
   57     57   
            let mut array_11 = object_6.key("L").start_array();
   58     58   
            for item_12 in inner {
   59     59   
                {
   60     60   
                    #[allow(unused_mut)]
   61     61   
                    let mut object_13 = array_11.value().start_object();
   62     62   
                    crate::protocol_serde::shape_attribute_value::ser_attribute_value(&mut object_13, item_12)?;
   63     63   
                    object_13.finish();
   64     64   
                }
   65     65   
            }
   66     66   
            array_11.finish();
   67     67   
        }
   68         -
        crate::types::AttributeValue::Null(inner) => {
          68  +
        crate::types::AttributeValue::Null(_inner) => {
   69     69   
            object_6.key("NULL").boolean(*inner);
   70     70   
        }
   71         -
        crate::types::AttributeValue::Bool(inner) => {
          71  +
        crate::types::AttributeValue::Bool(_inner) => {
   72     72   
            object_6.key("BOOL").boolean(*inner);
   73     73   
        }
   74     74   
        crate::types::AttributeValue::Unknown => {
   75     75   
            return Err(::aws_smithy_types::error::operation::SerializationError::unknown_variant(
   76     76   
                "AttributeValue",
   77     77   
            ))
   78     78   
        }
   79     79   
    }
   80     80   
    Ok(())
   81     81   
}