AWS SDK

AWS SDK

rev. 70b05a5296f85c2653fee05487976373e11ea4dc

Files changed:

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/protocol_serde/shape_resource_arns.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/cloudwatchlogs/src/protocol_serde/shape_resource_policies.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_resource_policy::de_resource_policy(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/cloudwatchlogs/src/protocol_serde/shape_result_rows.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_result_field::de_result_field(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/cloudwatchlogs/src/protocol_serde/shape_searched_log_streams.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_searched_log_stream::de_searched_log_stream(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/cloudwatchlogs/src/protocol_serde/shape_split_string_entries.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_split_string_entry::de_split_string_entry(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/cloudwatchlogs/src/protocol_serde/shape_start_live_tail_log_group_identifiers.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/cloudwatchlogs/src/protocol_serde/shape_subscription_filters.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_subscription_filter::de_subscription_filter(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/cloudwatchlogs/src/protocol_serde/shape_substitute_string_entries.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_substitute_string_entry::de_substitute_string_entry(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/cloudwatchlogs/src/protocol_serde/shape_tags.rs

@@ -1,1 +41,48 @@
   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 = ::aws_smithy_json::deserialize::token::expect_string_or_null(tokens.next())?
   22     22   
                            .map(|s| s.to_unescaped().map(|u| u.into_owned()))
   23     23   
                            .transpose()?;
   24         -
                        if let Some(value) = value {
   25         -
                            map.insert(key, value);
          24  +
                        match value {
          25  +
                            Some(value) => {
          26  +
                                map.insert(key, value);
          27  +
                            }
          28  +
                            None => {
          29  +
                                return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
          30  +
                                    "dense map cannot contain null values",
          31  +
                                ))
          32  +
                            }
   26     33   
                        }
   27     34   
                    }
   28     35   
                    other => {
   29     36   
                        return Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(format!(
   30     37   
                            "expected object key or end object, found: {other:?}"
   31     38   
                        )))
   32     39   
                    }
   33     40   
                }
   34     41   
            }
   35     42   
            Ok(Some(map))

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/protocol_serde/shape_transformed_logs.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_transformed_log_record::de_transformed_log_record(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/cloudwatchlogs/src/protocol_serde/shape_trim_string_with_keys.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/cloudwatchlogs/src/protocol_serde/shape_type_converter_entries.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_type_converter_entry::de_type_converter_entry(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/cloudwatchlogs/src/protocol_serde/shape_upper_case_string_with_keys.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/codecatalyst/src/protocol_serde/shape_access_token_summaries.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_access_token_summary::de_access_token_summary(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/codecatalyst/src/protocol_serde/shape_dev_environment_repository_summaries.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_dev_environment_repository_summary::de_dev_environment_repository_summary(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/codecatalyst/src/protocol_serde/shape_dev_environment_sessions_summary_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_dev_environment_session_summary::de_dev_environment_session_summary(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   
    }