AWS SDK

AWS SDK

rev. e142b602d868dbcdb3ff7160c87686e354cd0986

Files changed:

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

@@ -1,1 +35,39 @@
   15     15   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16     16   
                        tokens.next().transpose().unwrap();
   17     17   
                        break;
   18     18   
                    }
   19     19   
                    _ => {
   20     20   
                        let value = ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21     21   
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   22     22   
                            .transpose()?;
   23     23   
                        if let Some(value) = value {
   24     24   
                            items.push(value);
          25  +
                        } else {
          26  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          27  +
                                "dense list cannot contain null values",
          28  +
                            ));
   25     29   
                        }
   26     30   
                    }
   27     31   
                }
   28     32   
            }
   29     33   
            Ok(Some(items))
   30     34   
        }
   31     35   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   32     36   
            "expected start array or null",
   33     37   
        )),
   34     38   
    }

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

@@ -1,1 +33,37 @@
   13     13   
            loop {
   14     14   
                match tokens.peek() {
   15     15   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16     16   
                        tokens.next().transpose().unwrap();
   17     17   
                        break;
   18     18   
                    }
   19     19   
                    _ => {
   20     20   
                        let value = crate::protocol_serde::shape_batch_statement_response::de_batch_statement_response(tokens, _value)?;
   21     21   
                        if let Some(value) = value {
   22     22   
                            items.push(value);
          23  +
                        } else {
          24  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          25  +
                                "dense list cannot contain null values",
          26  +
                            ));
   23     27   
                        }
   24     28   
                    }
   25     29   
                }
   26     30   
            }
   27     31   
            Ok(Some(items))
   28     32   
        }
   29     33   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   30     34   
            "expected start array or null",
   31     35   
        )),
   32     36   
    }

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

@@ -1,1 +39,46 @@
   12     12   
    match tokens.next().transpose()? {
   13     13   
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   14     14   
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   15     15   
            let mut map = ::std::collections::HashMap::new();
   16     16   
            loop {
   17     17   
                match tokens.next().transpose()? {
   18     18   
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   19     19   
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
   20     20   
                        let key = key.to_unescaped().map(|u| u.into_owned())?;
   21     21   
                        let value = crate::protocol_serde::shape_attribute_value::de_attribute_value(tokens, _value)?;
   22         -
                        if let Some(value) = value {
   23         -
                            map.insert(key, value);
          22  +
                        match value {
          23  +
                            Some(value) => {
          24  +
                                map.insert(key, value);
          25  +
                            }
          26  +
                            None => {
          27  +
                                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          28  +
                                    "dense map cannot contain null values",
          29  +
                                ))
          30  +
                            }
   24     31   
                        }
   25     32   
                    }
   26     33   
                    other => {
   27     34   
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   28     35   
                            "expected object key or end object, found: {other:?}"
   29     36   
                        )))
   30     37   
                    }
   31     38   
                }
   32     39   
            }
   33     40   
            Ok(Some(map))

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

@@ -1,1 +37,41 @@
   17     17   
                match tokens.peek() {
   18     18   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   19     19   
                        tokens.next().transpose().unwrap();
   20     20   
                        break;
   21     21   
                    }
   22     22   
                    _ => {
   23     23   
                        let value =
   24     24   
                            crate::protocol_serde::shape_replica_auto_scaling_description::de_replica_auto_scaling_description(tokens, _value)?;
   25     25   
                        if let Some(value) = value {
   26     26   
                            items.push(value);
          27  +
                        } else {
          28  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          29  +
                                "dense list cannot contain null values",
          30  +
                            ));
   27     31   
                        }
   28     32   
                    }
   29     33   
                }
   30     34   
            }
   31     35   
            Ok(Some(items))
   32     36   
        }
   33     37   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   34     38   
            "expected start array or null",
   35     39   
        )),
   36     40   
    }

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

@@ -1,1 +33,37 @@
   13     13   
            loop {
   14     14   
                match tokens.peek() {
   15     15   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16     16   
                        tokens.next().transpose().unwrap();
   17     17   
                        break;
   18     18   
                    }
   19     19   
                    _ => {
   20     20   
                        let value = crate::protocol_serde::shape_replica_description::de_replica_description(tokens, _value)?;
   21     21   
                        if let Some(value) = value {
   22     22   
                            items.push(value);
          23  +
                        } else {
          24  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          25  +
                                "dense list cannot contain null values",
          26  +
                            ));
   23     27   
                        }
   24     28   
                    }
   25     29   
                }
   26     30   
            }
   27     31   
            Ok(Some(items))
   28     32   
        }
   29     33   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   30     34   
            "expected start array or null",
   31     35   
        )),
   32     36   
    }

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

@@ -1,1 +38,42 @@
   18     18   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   19     19   
                        tokens.next().transpose().unwrap();
   20     20   
                        break;
   21     21   
                    }
   22     22   
                    _ => {
   23     23   
                        let value =
   24     24   
                            crate::protocol_serde::shape_replica_global_secondary_index_auto_scaling_description::de_replica_global_secondary_index_auto_scaling_description(tokens, _value)?
   25     25   
                        ;
   26     26   
                        if let Some(value) = value {
   27     27   
                            items.push(value);
          28  +
                        } else {
          29  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          30  +
                                "dense list cannot contain null values",
          31  +
                            ));
   28     32   
                        }
   29     33   
                    }
   30     34   
                }
   31     35   
            }
   32     36   
            Ok(Some(items))
   33     37   
        }
   34     38   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   35     39   
            "expected start array or null",
   36     40   
        )),
   37     41   
    }

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

@@ -1,1 +39,43 @@
   19     19   
                        tokens.next().transpose().unwrap();
   20     20   
                        break;
   21     21   
                    }
   22     22   
                    _ => {
   23     23   
                        let value =
   24     24   
                            crate::protocol_serde::shape_replica_global_secondary_index_description::de_replica_global_secondary_index_description(
   25     25   
                                tokens, _value,
   26     26   
                            )?;
   27     27   
                        if let Some(value) = value {
   28     28   
                            items.push(value);
          29  +
                        } else {
          30  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          31  +
                                "dense list cannot contain null values",
          32  +
                            ));
   29     33   
                        }
   30     34   
                    }
   31     35   
                }
   32     36   
            }
   33     37   
            Ok(Some(items))
   34     38   
        }
   35     39   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   36     40   
            "expected start array or null",
   37     41   
        )),
   38     42   
    }

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

@@ -1,1 +38,42 @@
   18     18   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   19     19   
                        tokens.next().transpose().unwrap();
   20     20   
                        break;
   21     21   
                    }
   22     22   
                    _ => {
   23     23   
                        let value =
   24     24   
                            crate::protocol_serde::shape_replica_global_secondary_index_settings_description::de_replica_global_secondary_index_settings_description(tokens, _value)?
   25     25   
                        ;
   26     26   
                        if let Some(value) = value {
   27     27   
                            items.push(value);
          28  +
                        } else {
          29  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          30  +
                                "dense list cannot contain null values",
          31  +
                            ));
   28     32   
                        }
   29     33   
                    }
   30     34   
                }
   31     35   
            }
   32     36   
            Ok(Some(items))
   33     37   
        }
   34     38   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   35     39   
            "expected start array or null",
   36     40   
        )),
   37     41   
    }

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

@@ -1,1 +33,37 @@
   13     13   
            loop {
   14     14   
                match tokens.peek() {
   15     15   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16     16   
                        tokens.next().transpose().unwrap();
   17     17   
                        break;
   18     18   
                    }
   19     19   
                    _ => {
   20     20   
                        let value = crate::protocol_serde::shape_replica::de_replica(tokens, _value)?;
   21     21   
                        if let Some(value) = value {
   22     22   
                            items.push(value);
          23  +
                        } else {
          24  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          25  +
                                "dense list cannot contain null values",
          26  +
                            ));
   23     27   
                        }
   24     28   
                    }
   25     29   
                }
   26     30   
            }
   27     31   
            Ok(Some(items))
   28     32   
        }
   29     33   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   30     34   
            "expected start array or null",
   31     35   
        )),
   32     36   
    }

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

@@ -1,1 +33,37 @@
   13     13   
            loop {
   14     14   
                match tokens.peek() {
   15     15   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16     16   
                        tokens.next().transpose().unwrap();
   17     17   
                        break;
   18     18   
                    }
   19     19   
                    _ => {
   20     20   
                        let value = crate::protocol_serde::shape_replica_settings_description::de_replica_settings_description(tokens, _value)?;
   21     21   
                        if let Some(value) = value {
   22     22   
                            items.push(value);
          23  +
                        } else {
          24  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          25  +
                                "dense list cannot contain null values",
          26  +
                            ));
   23     27   
                        }
   24     28   
                    }
   25     29   
                }
   26     30   
            }
   27     31   
            Ok(Some(items))
   28     32   
        }
   29     33   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   30     34   
            "expected start array or null",
   31     35   
        )),
   32     36   
    }

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

@@ -1,1 +39,46 @@
   12     12   
    match tokens.next().transpose()? {
   13     13   
        Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
   14     14   
        Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
   15     15   
            let mut map = ::std::collections::HashMap::new();
   16     16   
            loop {
   17     17   
                match tokens.next().transpose()? {
   18     18   
                    Some(::aws_smithy_json::deserialize::Token::EndObject { .. }) => break,
   19     19   
                    Some(::aws_smithy_json::deserialize::Token::ObjectKey { key, .. }) => {
   20     20   
                        let key = key.to_unescaped().map(|u| u.into_owned())?;
   21     21   
                        let value = crate::protocol_serde::shape_capacity::de_capacity(tokens, _value)?;
   22         -
                        if let Some(value) = value {
   23         -
                            map.insert(key, value);
          22  +
                        match value {
          23  +
                            Some(value) => {
          24  +
                                map.insert(key, value);
          25  +
                            }
          26  +
                            None => {
          27  +
                                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          28  +
                                    "dense map cannot contain null values",
          29  +
                                ))
          30  +
                            }
   24     31   
                        }
   25     32   
                    }
   26     33   
                    other => {
   27     34   
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   28     35   
                            "expected object key or end object, found: {other:?}"
   29     36   
                        )))
   30     37   
                    }
   31     38   
                }
   32     39   
            }
   33     40   
            Ok(Some(map))

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

@@ -1,1 +35,39 @@
   15     15   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16     16   
                        tokens.next().transpose().unwrap();
   17     17   
                        break;
   18     18   
                    }
   19     19   
                    _ => {
   20     20   
                        let value = ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21     21   
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   22     22   
                            .transpose()?;
   23     23   
                        if let Some(value) = value {
   24     24   
                            items.push(value);
          25  +
                        } else {
          26  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          27  +
                                "dense list cannot contain null values",
          28  +
                            ));
   25     29   
                        }
   26     30   
                    }
   27     31   
                }
   28     32   
            }
   29     33   
            Ok(Some(items))
   30     34   
        }
   31     35   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   32     36   
            "expected start array or null",
   33     37   
        )),
   34     38   
    }

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

@@ -1,1 +35,39 @@
   15     15   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16     16   
                        tokens.next().transpose().unwrap();
   17     17   
                        break;
   18     18   
                    }
   19     19   
                    _ => {
   20     20   
                        let value = ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   21     21   
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   22     22   
                            .transpose()?;
   23     23   
                        if let Some(value) = value {
   24     24   
                            items.push(value);
          25  +
                        } else {
          26  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          27  +
                                "dense list cannot contain null values",
          28  +
                            ));
   25     29   
                        }
   26     30   
                    }
   27     31   
                }
   28     32   
            }
   29     33   
            Ok(Some(items))
   30     34   
        }
   31     35   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   32     36   
            "expected start array or null",
   33     37   
        )),
   34     38   
    }

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

@@ -1,1 +33,37 @@
   13     13   
            loop {
   14     14   
                match tokens.peek() {
   15     15   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16     16   
                        tokens.next().transpose().unwrap();
   17     17   
                        break;
   18     18   
                    }
   19     19   
                    _ => {
   20     20   
                        let value = crate::protocol_serde::shape_tag::de_tag(tokens, _value)?;
   21     21   
                        if let Some(value) = value {
   22     22   
                            items.push(value);
          23  +
                        } else {
          24  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          25  +
                                "dense list cannot contain null values",
          26  +
                            ));
   23     27   
                        }
   24     28   
                    }
   25     29   
                }
   26     30   
            }
   27     31   
            Ok(Some(items))
   28     32   
        }
   29     33   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   30     34   
            "expected start array or null",
   31     35   
        )),
   32     36   
    }

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

@@ -1,1 +33,37 @@
   13     13   
            loop {
   14     14   
                match tokens.peek() {
   15     15   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16     16   
                        tokens.next().transpose().unwrap();
   17     17   
                        break;
   18     18   
                    }
   19     19   
                    _ => {
   20     20   
                        let value = crate::protocol_serde::shape_throttling_reason::de_throttling_reason(tokens, _value)?;
   21     21   
                        if let Some(value) = value {
   22     22   
                            items.push(value);
          23  +
                        } else {
          24  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          25  +
                                "dense list cannot contain null values",
          26  +
                            ));
   23     27   
                        }
   24     28   
                    }
   25     29   
                }
   26     30   
            }
   27     31   
            Ok(Some(items))
   28     32   
        }
   29     33   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   30     34   
            "expected start array or null",
   31     35   
        )),
   32     36   
    }

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

@@ -1,1 +33,37 @@
   13     13   
            loop {
   14     14   
                match tokens.peek() {
   15     15   
                    Some(Ok(::aws_smithy_json::deserialize::Token::EndArray { .. })) => {
   16     16   
                        tokens.next().transpose().unwrap();
   17     17   
                        break;
   18     18   
                    }
   19     19   
                    _ => {
   20     20   
                        let value = crate::protocol_serde::shape_write_request::de_write_request(tokens, _value)?;
   21     21   
                        if let Some(value) = value {
   22     22   
                            items.push(value);
          23  +
                        } else {
          24  +
                            return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          25  +
                                "dense list cannot contain null values",
          26  +
                            ));
   23     27   
                        }
   24     28   
                    }
   25     29   
                }
   26     30   
            }
   27     31   
            Ok(Some(items))
   28     32   
        }
   29     33   
        _ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
   30     34   
            "expected start array or null",
   31     35   
        )),
   32     36   
    }