AWS SDK

AWS SDK

rev. 38c93466fc9ad69b0262eaf1b3890769b67aa0a3 (ignoring whitespace)

Files changed:

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-query/Cargo.toml

@@ -1,1 +0,23 @@
   13     13   
targets = ["x86_64-unknown-linux-gnu"]
   14     14   
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
   15     15   
rustdoc-args = ["--cfg", "docsrs"]
   16     16   
   17     17   
[dependencies]
   18     18   
urlencoding = "2.1"
   19     19   
   20     20   
[dependencies.aws-smithy-types]
   21     21   
path = "../aws-smithy-types"
   22     22   
features = ["http-body-1-x"]
   23         -
version = "1.4.5"
          23  +
version = "1.4.6"

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime-api/Cargo.toml

@@ -10,10 +63,63 @@
   30     30   
pin-project-lite = "0.2.14"
   31     31   
tracing = "0.1.44"
   32     32   
   33     33   
[dependencies.aws-smithy-async]
   34     34   
path = "../aws-smithy-async"
   35     35   
version = "1.2.13"
   36     36   
   37     37   
[dependencies.aws-smithy-types]
   38     38   
path = "../aws-smithy-types"
   39     39   
features = ["http-body-1-x"]
   40         -
version = "1.4.5"
          40  +
version = "1.4.6"
   41     41   
   42     42   
[dependencies.http-02x]
   43     43   
package = "http"
   44     44   
version = "0.2.12"
   45     45   
   46     46   
[dependencies.http-1x]
   47     47   
package = "http"
   48     48   
version = "1.3.1"
   49     49   
   50     50   
[dependencies.tokio]

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime/Cargo.toml

@@ -30,30 +125,125 @@
   50     50   
path = "../aws-smithy-observability"
   51     51   
version = "0.2.5"
   52     52   
   53     53   
[dependencies.aws-smithy-runtime-api]
   54     54   
path = "../aws-smithy-runtime-api"
   55     55   
version = "1.11.5"
   56     56   
   57     57   
[dependencies.aws-smithy-types]
   58     58   
path = "../aws-smithy-types"
   59     59   
features = ["http-body-0-4-x"]
   60         -
version = "1.4.5"
          60  +
version = "1.4.6"
   61     61   
   62     62   
[dependencies.aws-smithy-http-client]
   63     63   
path = "../aws-smithy-http-client"
   64     64   
optional = true
   65     65   
version = "1.1.11"
   66     66   
   67     67   
[dependencies.http-02x]
   68     68   
package = "http"
   69     69   
version = "0.2.12"
   70     70   
   71     71   
[dependencies.http-1x]
   72     72   
package = "http"
   73     73   
version = "1.3.1"
   74     74   
   75     75   
[dependencies.http-body-04x]
   76     76   
package = "http-body"
   77     77   
version = "0.4.6"
   78     78   
   79     79   
[dependencies.http-body-1x]
   80     80   
package = "http-body"
   81     81   
version = "1.0.1"
   82     82   
   83     83   
[dependencies.tokio]
   84     84   
version = "1.49.0"
   85     85   
features = []
   86     86   
   87     87   
[dependencies.tracing-subscriber]
   88     88   
version = "0.3.22"
   89     89   
optional = true
   90     90   
features = ["env-filter", "fmt", "json"]
   91     91   
   92     92   
[dev-dependencies]
   93     93   
approx = "0.5.1"
   94     94   
fastrand = "2.3.0"
   95     95   
futures-util = "0.3.29"
   96     96   
pretty_assertions = "1.4.0"
   97     97   
tracing-test = "0.2.1"
   98     98   
   99     99   
[dev-dependencies.aws-smithy-async]
  100    100   
path = "../aws-smithy-async"
  101    101   
features = ["rt-tokio", "test-util"]
  102    102   
version = "1.2.13"
  103    103   
  104    104   
[dev-dependencies.aws-smithy-runtime-api]
  105    105   
path = "../aws-smithy-runtime-api"
  106    106   
features = ["test-util"]
  107    107   
version = "1.11.5"
  108    108   
  109    109   
[dev-dependencies.aws-smithy-types]
  110    110   
path = "../aws-smithy-types"
  111    111   
features = ["test-util"]
  112         -
version = "1.4.5"
         112  +
version = "1.4.6"
  113    113   
  114    114   
[dev-dependencies.tokio]
  115    115   
version = "1.49.0"
  116    116   
features = ["macros", "rt", "rt-multi-thread", "test-util", "full"]
  117    117   
  118    118   
[dev-dependencies.tracing-subscriber]
  119    119   
version = "0.3.22"
  120    120   
features = ["env-filter"]
  121    121   
  122    122   
[dev-dependencies.hyper_0_14]

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-types-convert/Cargo.toml

@@ -1,1 +44,44 @@
   15     15   
rustdoc-args = ["--cfg", "docsrs"]
   16     16   
   17     17   
[features]
   18     18   
convert-chrono = ["aws-smithy-types", "chrono"]
   19     19   
convert-time = ["aws-smithy-types", "time"]
   20     20   
convert-streams = ["aws-smithy-async", "futures-core"]
   21     21   
[dependencies.aws-smithy-types]
   22     22   
path = "../aws-smithy-types"
   23     23   
features = ["http-body-1-x"]
   24     24   
optional = true
   25         -
version = "1.4.5"
          25  +
version = "1.4.6"
   26     26   
   27     27   
[dependencies.aws-smithy-async]
   28     28   
path = "../aws-smithy-async"
   29     29   
optional = true
   30     30   
version = "1.2.13"
   31     31   
   32     32   
[dependencies.chrono]
   33     33   
version = "0.4.35"
   34     34   
optional = true
   35     35   
default-features = false

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-types/Cargo.toml

@@ -1,1 +33,33 @@
    1      1   
[package]
    2      2   
name = "aws-smithy-types"
    3         -
version = "1.4.5"
           3  +
version = "1.4.6"
    4      4   
authors = [
    5      5   
    "AWS Rust SDK Team <aws-sdk-rust@amazon.com>",
    6      6   
    "Russell Cohen <rcoh@amazon.com>",
    7      7   
]
    8      8   
description = "Types for smithy-rs codegen."
    9      9   
edition = "2021"
   10     10   
license = "Apache-2.0"
   11     11   
repository = "https://github.com/smithy-lang/smithy-rs"
   12     12   
rust-version = "1.91"
   13     13   

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-types/fuzz/Cargo.toml

@@ -17,17 +50,50 @@
   37     37   
edition = "2021"
   38     38   
   39     39   
[package.metadata]
   40     40   
cargo-fuzz = true
   41     41   
   42     42   
[dependencies]
   43     43   
libfuzzer-sys = "=0.4.7"
   44     44   
   45     45   
[dependencies.aws-smithy-types]
   46     46   
path = ".."
   47         -
version = "1.4.5"
          47  +
version = "1.4.6"
   48     48   
   49     49   
[workspace]
   50     50   
members = ["."]

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-types/src/document.rs

@@ -202,202 +261,273 @@
  222    222   
        Document::Number(Number::Float(value))
  223    223   
    }
  224    224   
}
  225    225   
  226    226   
impl From<Number> for Document {
  227    227   
    fn from(value: Number) -> Self {
  228    228   
        Document::Number(value)
  229    229   
    }
  230    230   
}
  231    231   
         232  +
impl<T> From<Option<T>> for Document
         233  +
where
         234  +
    Document: From<T>,
         235  +
{
         236  +
    fn from(value: Option<T>) -> Self {
         237  +
        match value {
         238  +
            Some(inner) => inner.into(),
         239  +
            None => Document::Null,
         240  +
        }
         241  +
    }
         242  +
}
         243  +
  232    244   
/* ANCHOR END: document */
  233    245   
  234    246   
#[cfg(test)]
  235    247   
mod test {
  236    248   
    /// checks if a) serialization of json suceeds and b) it is compatible with serde_json
  237    249   
    #[test]
  238    250   
    #[cfg(all(
  239    251   
        aws_sdk_unstable,
  240    252   
        feature = "serde-serialize",
  241    253   
        feature = "serde-deserialize"

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-wasm/Cargo.toml

@@ -4,4 +0,34 @@
   24     24   
path = "../aws-smithy-runtime-api"
   25     25   
features = ["http-1x"]
   26     26   
version = "1.11.5"
   27     27   
   28     28   
[dependencies.aws-smithy-http]
   29     29   
path = "../aws-smithy-http"
   30     30   
version = "0.63.5"
   31     31   
   32     32   
[dependencies.aws-smithy-types]
   33     33   
path = "../aws-smithy-types"
   34         -
version = "1.4.5"
          34  +
version = "1.4.6"

tmp-codegen-diff/aws-sdk/sdk/aws-types/Cargo.toml

@@ -9,9 +69,69 @@
   29     29   
[dependencies.aws-credential-types]
   30     30   
path = "../aws-credential-types"
   31     31   
version = "1.2.13"
   32     32   
   33     33   
[dependencies.aws-smithy-async]
   34     34   
path = "../aws-smithy-async"
   35     35   
version = "1.2.13"
   36     36   
   37     37   
[dependencies.aws-smithy-types]
   38     38   
path = "../aws-smithy-types"
   39         -
version = "1.4.5"
          39  +
version = "1.4.6"
   40     40   
   41     41   
[dependencies.aws-smithy-runtime]
   42     42   
path = "../aws-smithy-runtime"
   43     43   
optional = true
   44     44   
version = "1.10.2"
   45     45   
   46     46   
[dependencies.aws-smithy-runtime-api]
   47     47   
path = "../aws-smithy-runtime-api"
   48     48   
features = ["client"]
   49     49   
version = "1.11.5"

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/Cargo.toml

@@ -35,35 +95,95 @@
   55     55   
version = "1.10.2"
   56     56   
   57     57   
[dependencies.aws-smithy-runtime-api]
   58     58   
path = "../aws-smithy-runtime-api"
   59     59   
features = ["client", "http-1x", "http-auth"]
   60     60   
version = "1.11.5"
   61     61   
   62     62   
[dependencies.aws-smithy-types]
   63     63   
path = "../aws-smithy-types"
   64     64   
features = ["http-body-1-x"]
   65         -
version = "1.4.5"
          65  +
version = "1.4.6"
   66     66   
   67     67   
[dependencies.aws-types]
   68     68   
path = "../aws-types"
   69     69   
version = "1.3.13"
   70     70   
   71     71   
[dependencies.bytes]
   72     72   
version = "1.4.0"
   73     73   
   74     74   
[dependencies.fastrand]
   75     75   
version = "2.0.0"
@@ -108,108 +166,166 @@
  128    128   
version = "1.10.2"
  129    129   
  130    130   
[dev-dependencies.aws-smithy-runtime-api]
  131    131   
path = "../aws-smithy-runtime-api"
  132    132   
features = ["test-util"]
  133    133   
version = "1.11.5"
  134    134   
  135    135   
[dev-dependencies.aws-smithy-types]
  136    136   
path = "../aws-smithy-types"
  137    137   
features = ["http-body-1-x", "test-util"]
  138         -
version = "1.4.5"
         138  +
version = "1.4.6"
  139    139   
  140    140   
[dev-dependencies.futures-util]
  141    141   
version = "0.3.25"
  142    142   
features = ["alloc"]
  143    143   
default-features = false
  144    144   
  145    145   
[dev-dependencies.proptest]
  146    146   
version = "1"
  147    147   
  148    148   
[dev-dependencies.serde_json]

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/endpoint_lib/diagnostic.rs

@@ -7,7 +45,46 @@
   27     27   
    pub(crate) fn capture<T, E: Into<Box<dyn Error + Send + Sync>>>(&mut self, err: Result<T, E>) -> Option<T> {
   28     28   
        match err {
   29     29   
            Ok(res) => Some(res),
   30     30   
            Err(e) => {
   31     31   
                self.report_error(e);
   32     32   
                None
   33     33   
            }
   34     34   
        }
   35     35   
    }
   36     36   
          37  +
    #[allow(dead_code)]
   37     38   
    pub(crate) fn take_last_error(&mut self) -> Option<Box<dyn Error + Send + Sync>> {
   38     39   
        self.last_error.take()
   39     40   
    }
   40     41   
   41     42   
    /// Create a new diagnostic collector
   42     43   
    pub(crate) fn new() -> Self {
   43     44   
        Self { last_error: None }
   44     45   
    }
   45     46   
}

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/endpoint_lib/partition.rs

@@ -3,3 +62,63 @@
   23     23   
    partitions: Vec<PartitionMetadata>,
   24     24   
}
   25     25   
   26     26   
impl PartitionResolver {
   27     27   
    pub(crate) fn from_partitions(partitions: Vec<PartitionMetadata>) -> Self {
   28     28   
        Self { partitions }
   29     29   
    }
   30     30   
}
   31     31   
   32     32   
/// Partition result returned from partition resolver
          33  +
#[derive(Debug, Default, Clone)]
   33     34   
pub(crate) struct Partition<'a> {
   34     35   
    name: &'a str,
   35     36   
    dns_suffix: &'a str,
   36     37   
    dual_stack_dns_suffix: &'a str,
   37     38   
    supports_fips: bool,
   38     39   
    supports_dual_stack: bool,
   39     40   
    implicit_global_region: &'a str,
   40     41   
}
   41     42   
   42     43   
#[allow(unused)]

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/Cargo.toml

@@ -31,31 +91,91 @@
   51     51   
version = "1.10.2"
   52     52   
   53     53   
[dependencies.aws-smithy-runtime-api]
   54     54   
path = "../aws-smithy-runtime-api"
   55     55   
features = ["client", "http-1x"]
   56     56   
version = "1.11.5"
   57     57   
   58     58   
[dependencies.aws-smithy-types]
   59     59   
path = "../aws-smithy-types"
   60     60   
features = ["http-body-1-x"]
   61         -
version = "1.4.5"
          61  +
version = "1.4.6"
   62     62   
   63     63   
[dependencies.aws-types]
   64     64   
path = "../aws-types"
   65     65   
version = "1.3.13"
   66     66   
   67     67   
[dependencies.bytes]
   68     68   
version = "1.4.0"
   69     69   
   70     70   
[dependencies.fastrand]
   71     71   
version = "2.0.0"
@@ -101,101 +159,159 @@
  121    121   
version = "1.10.2"
  122    122   
  123    123   
[dev-dependencies.aws-smithy-runtime-api]
  124    124   
path = "../aws-smithy-runtime-api"
  125    125   
features = ["test-util"]
  126    126   
version = "1.11.5"
  127    127   
  128    128   
[dev-dependencies.aws-smithy-types]
  129    129   
path = "../aws-smithy-types"
  130    130   
features = ["http-body-1-x", "test-util"]
  131         -
version = "1.4.5"
         131  +
version = "1.4.6"
  132    132   
  133    133   
[dev-dependencies.futures-util]
  134    134   
version = "0.3.25"
  135    135   
features = ["alloc"]
  136    136   
default-features = false
  137    137   
  138    138   
[dev-dependencies.proptest]
  139    139   
version = "1"
  140    140   
  141    141   
[dev-dependencies.serde_json]

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/endpoint_lib/diagnostic.rs

@@ -7,7 +45,46 @@
   27     27   
    pub(crate) fn capture<T, E: Into<Box<dyn Error + Send + Sync>>>(&mut self, err: Result<T, E>) -> Option<T> {
   28     28   
        match err {
   29     29   
            Ok(res) => Some(res),
   30     30   
            Err(e) => {
   31     31   
                self.report_error(e);
   32     32   
                None
   33     33   
            }
   34     34   
        }
   35     35   
    }
   36     36   
          37  +
    #[allow(dead_code)]
   37     38   
    pub(crate) fn take_last_error(&mut self) -> Option<Box<dyn Error + Send + Sync>> {
   38     39   
        self.last_error.take()
   39     40   
    }
   40     41   
   41     42   
    /// Create a new diagnostic collector
   42     43   
    pub(crate) fn new() -> Self {
   43     44   
        Self { last_error: None }
   44     45   
    }
   45     46   
}

tmp-codegen-diff/aws-sdk/sdk/cloudwatchlogs/src/endpoint_lib/partition.rs

@@ -3,3 +62,63 @@
   23     23   
    partitions: Vec<PartitionMetadata>,
   24     24   
}
   25     25   
   26     26   
impl PartitionResolver {
   27     27   
    pub(crate) fn from_partitions(partitions: Vec<PartitionMetadata>) -> Self {
   28     28   
        Self { partitions }
   29     29   
    }
   30     30   
}
   31     31   
   32     32   
/// Partition result returned from partition resolver
          33  +
#[derive(Debug, Default, Clone)]
   33     34   
pub(crate) struct Partition<'a> {
   34     35   
    name: &'a str,
   35     36   
    dns_suffix: &'a str,
   36     37   
    dual_stack_dns_suffix: &'a str,
   37     38   
    supports_fips: bool,
   38     39   
    supports_dual_stack: bool,
   39     40   
    implicit_global_region: &'a str,
   40     41   
}
   41     42   
   42     43   
#[allow(unused)]

tmp-codegen-diff/aws-sdk/sdk/codecatalyst/Cargo.toml

@@ -25,25 +85,85 @@
   45     45   
version = "1.10.2"
   46     46   
   47     47   
[dependencies.aws-smithy-runtime-api]
   48     48   
path = "../aws-smithy-runtime-api"
   49     49   
features = ["client", "http-1x", "http-auth"]
   50     50   
version = "1.11.5"
   51     51   
   52     52   
[dependencies.aws-smithy-types]
   53     53   
path = "../aws-smithy-types"
   54     54   
features = ["http-body-1-x"]
   55         -
version = "1.4.5"
          55  +
version = "1.4.6"
   56     56   
   57     57   
[dependencies.aws-types]
   58     58   
path = "../aws-types"
   59     59   
version = "1.3.13"
   60     60   
   61     61   
[dependencies.bytes]
   62     62   
version = "1.4.0"
   63     63   
   64     64   
[dependencies.fastrand]
   65     65   
version = "2.0.0"
@@ -90,90 +148,148 @@
  110    110   
version = "1.10.2"
  111    111   
  112    112   
[dev-dependencies.aws-smithy-runtime-api]
  113    113   
path = "../aws-smithy-runtime-api"
  114    114   
features = ["test-util"]
  115    115   
version = "1.11.5"
  116    116   
  117    117   
[dev-dependencies.aws-smithy-types]
  118    118   
path = "../aws-smithy-types"
  119    119   
features = ["http-body-1-x", "test-util"]
  120         -
version = "1.4.5"
         120  +
version = "1.4.6"
  121    121   
  122    122   
[dev-dependencies.futures-util]
  123    123   
version = "0.3.25"
  124    124   
features = ["alloc"]
  125    125   
default-features = false
  126    126   
  127    127   
[dev-dependencies.proptest]
  128    128   
version = "1"
  129    129   
  130    130   
[dev-dependencies.serde_json]