AWS SDK

AWS SDK

rev. ba98f30b52e51c6e715b0ae469e7a2e988c27d9a (ignoring whitespace)

Files changed:

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

@@ -1,1 +20,20 @@
    7      7   
edition = "2021"
    8      8   
license = "Apache-2.0"
    9      9   
repository = "https://github.com/awslabs/smithy-rs"
   10     10   
[package.metadata.docs.rs]
   11     11   
all-features = true
   12     12   
targets = ["x86_64-unknown-linux-gnu"]
   13     13   
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
   14     14   
rustdoc-args = ["--cfg", "docsrs"]
   15     15   
[dependencies.aws-smithy-runtime-api]
   16     16   
path = "../aws-smithy-runtime-api"
   17         -
version = "1.8.7"
          17  +
version = "1.8.5"
   18     18   
   19     19   
[dev-dependencies]
   20     20   
serial_test = "3.1.1"

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-protocol-test/Cargo.toml

@@ -1,1 +0,31 @@
   21     21   
http = "0.2.9"
   22     22   
pretty_assertions = "1.3"
   23     23   
regex-lite = "0.1.5"
   24     24   
roxmltree = "0.14.1"
   25     25   
serde_json = "1.0.128"
   26     26   
thiserror = "2"
   27     27   
   28     28   
[dependencies.aws-smithy-runtime-api]
   29     29   
path = "../aws-smithy-runtime-api"
   30     30   
features = ["client"]
   31         -
version = "1.8.7"
          31  +
version = "1.8.5"

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

@@ -1,1 +34,34 @@
    1      1   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
[package]
    3      3   
name = "aws-smithy-runtime-api"
    4         -
version = "1.8.7"
           4  +
version = "1.8.5"
    5      5   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Zelda Hessler <zhessler@amazon.com>"]
    6      6   
description = "Smithy runtime types."
    7      7   
edition = "2021"
    8      8   
license = "Apache-2.0"
    9      9   
repository = "https://github.com/smithy-lang/smithy-rs"
   10     10   
[package.metadata.docs.rs]
   11     11   
all-features = true
   12     12   
targets = ["x86_64-unknown-linux-gnu"]
   13     13   
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
   14     14   
rustdoc-args = ["--cfg", "docsrs"]

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime-api/src/client/identity.rs

@@ -290,290 +359,349 @@
  310    310   
        debug_struct
  311    311   
            .field("data", (self.data_debug)(&self.data))
  312    312   
            .field("expiration", &self.expiration);
  313    313   
        for (i, prop) in self.properties.values().enumerate() {
  314    314   
            debug_struct.field(&format!("property_{i}"), prop);
  315    315   
        }
  316    316   
        debug_struct.finish()
  317    317   
    }
  318    318   
}
  319    319   
  320         -
impl ResolveIdentity for Identity {
  321         -
    fn resolve_identity<'a>(
  322         -
        &'a self,
  323         -
        _runtime_components: &'a RuntimeComponents,
  324         -
        _config_bag: &'a ConfigBag,
  325         -
    ) -> IdentityFuture<'a> {
  326         -
        IdentityFuture::ready(Ok(self.clone()))
  327         -
    }
  328         -
}
  329         -
  330    320   
#[derive(Debug)]
  331    321   
enum ErrorKind {
  332    322   
    /// Field required to build the target type is missing.
  333    323   
    MissingRequiredField(&'static str),
  334    324   
}
  335    325   
  336    326   
/// Error constructing [`Identity`].
  337    327   
#[derive(Debug)]
  338    328   
pub struct BuildError {
  339    329   
    kind: ErrorKind,

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

@@ -1,1 +123,123 @@
    1      1   
# Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
[package]
    3      3   
name = "aws-smithy-runtime"
    4         -
version = "1.8.6"
           4  +
version = "1.8.5"
    5      5   
authors = ["AWS Rust SDK Team <aws-sdk-rust@amazon.com>", "Zelda Hessler <zhessler@amazon.com>"]
    6      6   
description = "The new smithy runtime crate"
    7      7   
edition = "2021"
    8      8   
license = "Apache-2.0"
    9      9   
repository = "https://github.com/smithy-lang/smithy-rs"
   10     10   
[package.metadata.docs.rs]
   11     11   
all-features = true
   12     12   
targets = ["x86_64-unknown-linux-gnu"]
   13     13   
cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"]
   14     14   
rustdoc-args = ["--cfg", "docsrs"]
   15     15   
   16     16   
[package.metadata.smithy-rs-release-tooling]
   17     17   
stable = true
   18     18   
[package.metadata.cargo-udeps.ignore]
   19     19   
normal = ["aws-smithy-http"]
   20     20   
   21     21   
[features]
   22     22   
client = ["aws-smithy-runtime-api/client", "aws-smithy-types/http-body-1-x"]
   23     23   
http-auth = ["aws-smithy-runtime-api/http-auth"]
   24     24   
connector-hyper-0-14-x = ["dep:aws-smithy-http-client", "aws-smithy-http-client?/hyper-014"]
   25     25   
tls-rustls = ["dep:aws-smithy-http-client", "aws-smithy-http-client?/legacy-rustls-ring", "connector-hyper-0-14-x"]
   26     26   
default-https-client = ["dep:aws-smithy-http-client", "aws-smithy-http-client?/rustls-aws-lc"]
   27     27   
rt-tokio = ["tokio/rt"]
   28     28   
test-util = ["aws-smithy-runtime-api/test-util", "dep:tracing-subscriber", "aws-smithy-http-client/test-util", "legacy-test-util"]
   29     29   
legacy-test-util = ["aws-smithy-runtime-api/test-util", "dep:tracing-subscriber", "aws-smithy-http-client/test-util", "connector-hyper-0-14-x", "aws-smithy-http-client/legacy-test-util"]
   30     30   
wire-mock = ["legacy-test-util", "aws-smithy-http-client/wire-mock"]
   31     31   
   32     32   
[dependencies]
   33     33   
bytes = "1.10.0"
   34     34   
fastrand = "2.3.0"
   35     35   
pin-project-lite = "0.2.14"
   36     36   
pin-utils = "0.1.0"
   37     37   
tracing = "0.1.40"
   38     38   
   39     39   
[dependencies.aws-smithy-async]
   40     40   
path = "../aws-smithy-async"
   41     41   
version = "1.2.5"
   42     42   
   43     43   
[dependencies.aws-smithy-http]
   44     44   
path = "../aws-smithy-http"
   45     45   
version = "0.62.3"
   46     46   
   47     47   
[dependencies.aws-smithy-observability]
   48     48   
path = "../aws-smithy-observability"
   49     49   
version = "0.1.3"
   50     50   
   51     51   
[dependencies.aws-smithy-runtime-api]
   52     52   
path = "../aws-smithy-runtime-api"
   53         -
version = "1.8.7"
          53  +
version = "1.8.5"
   54     54   
   55     55   
[dependencies.aws-smithy-types]
   56     56   
path = "../aws-smithy-types"
   57     57   
features = ["http-body-0-4-x"]
   58     58   
version = "1.3.2"
   59     59   
   60     60   
[dependencies.aws-smithy-http-client]
   61     61   
path = "../aws-smithy-http-client"
   62     62   
optional = true
   63     63   
version = "1.0.6"
   64     64   
   65     65   
[dependencies.http-02x]
   66     66   
package = "http"
   67     67   
version = "0.2.9"
   68     68   
   69     69   
[dependencies.http-1x]
   70     70   
package = "http"
   71     71   
version = "1"
   72     72   
   73     73   
[dependencies.http-body-04x]
   74     74   
package = "http-body"
   75     75   
version = "0.4.5"
   76     76   
   77     77   
[dependencies.http-body-1x]
   78     78   
package = "http-body"
   79     79   
version = "1"
   80     80   
   81     81   
[dependencies.tokio]
   82     82   
version = "1.40.0"
   83     83   
features = []
   84     84   
   85     85   
[dependencies.tracing-subscriber]
   86     86   
version = "0.3.16"
   87     87   
optional = true
   88     88   
features = ["env-filter", "fmt", "json"]
   89     89   
   90     90   
[dev-dependencies]
   91     91   
approx = "0.5.1"
   92     92   
fastrand = "2.3.0"
   93     93   
futures-util = "0.3.29"
   94     94   
pretty_assertions = "1.4.0"
   95     95   
tracing-test = "0.2.1"
   96     96   
   97     97   
[dev-dependencies.aws-smithy-async]
   98     98   
path = "../aws-smithy-async"
   99     99   
features = ["rt-tokio", "test-util"]
  100    100   
version = "1.2.5"
  101    101   
  102    102   
[dev-dependencies.aws-smithy-runtime-api]
  103    103   
path = "../aws-smithy-runtime-api"
  104    104   
features = ["test-util"]
  105         -
version = "1.8.7"
         105  +
version = "1.8.5"
  106    106   
  107    107   
[dev-dependencies.aws-smithy-types]
  108    108   
path = "../aws-smithy-types"
  109    109   
features = ["test-util"]
  110    110   
version = "1.3.2"
  111    111   
  112    112   
[dev-dependencies.tokio]
  113    113   
version = "1.25"
  114    114   
features = ["macros", "rt", "rt-multi-thread", "test-util", "full"]
  115    115   

tmp-codegen-diff/aws-sdk/sdk/aws-smithy-runtime/src/client/orchestrator/auth.rs

@@ -1,1 +48,48 @@
    8      8   
use aws_smithy_runtime_api::box_error::BoxError;
    9      9   
use aws_smithy_runtime_api::client::auth::{
   10     10   
    AuthScheme, AuthSchemeEndpointConfig, AuthSchemeId, AuthSchemeOption,
   11     11   
    AuthSchemeOptionResolverParams, AuthSchemePreference, ResolveAuthSchemeOptions,
   12     12   
};
   13     13   
use aws_smithy_runtime_api::client::endpoint::{EndpointResolverParams, ResolveEndpoint};
   14     14   
use aws_smithy_runtime_api::client::identity::{Identity, ResolveIdentity};
   15     15   
use aws_smithy_runtime_api::client::identity::{IdentityCacheLocation, ResolveCachedIdentity};
   16     16   
use aws_smithy_runtime_api::client::interceptors::context::InterceptorContext;
   17     17   
use aws_smithy_runtime_api::client::runtime_components::RuntimeComponents;
   18         -
use aws_smithy_types::config_bag::{ConfigBag, FrozenLayer, Storable, StoreReplace};
          18  +
use aws_smithy_types::config_bag::{ConfigBag, Storable, StoreReplace};
   19     19   
use aws_smithy_types::endpoint::Endpoint;
   20     20   
use aws_smithy_types::Document;
   21     21   
use std::borrow::Cow;
   22     22   
use std::collections::HashMap;
   23     23   
use std::error::Error as StdError;
   24     24   
use std::fmt;
   25     25   
use tracing::trace;
   26     26   
   27     27   
#[derive(Debug)]
   28     28   
struct NoMatchingAuthSchemeError(ExploredList);
@@ -135,135 +199,194 @@
  155    155   
                            IdentityCache::no_cache()
  156    156   
                        };
  157    157   
                        // Apply properties from the selected auth scheme option
  158    158   
                        if let Some(properties) = auth_scheme_option.properties() {
  159    159   
                            cfg.push_shared_layer(properties);
  160    160   
                        }
  161    161   
                        let identity = identity_cache
  162    162   
                            .resolve_cached_identity(identity_resolver, runtime_components, cfg)
  163    163   
                            .await?;
  164    164   
                        trace!(identity = ?identity, "resolved identity");
  165         -
                        // Extract the FrozenLayer placed in the Identity property bag by the From<Credentials> impl.
  166         -
                        // This layer contains feature data for the user agent and potentially other metadata.
  167         -
                        if let Some(layer) = identity.property::<FrozenLayer>().cloned() {
  168         -
                            cfg.push_shared_layer(layer);
  169         -
                        }
  170    165   
                        return Ok((scheme_id.clone(), identity, endpoint));
  171    166   
                    }
  172    167   
                    Err(AuthOrchestrationError::MissingEndpointConfig) => {
  173    168   
                        explored.push(scheme_id.clone(), ExploreResult::MissingEndpointConfig);
  174    169   
                        continue;
  175    170   
                    }
  176    171   
                    Err(AuthOrchestrationError::FailedToResolveEndpoint(source)) => {
  177    172   
                        // Some negative endpoint tests expect an endpoint resolution error,
  178    173   
                        // so we need to return it to satisfy them.
  179    174   
                        return Err(source);

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

@@ -1,1 +33,33 @@
   15     15   
   16     16   
[dependencies]
   17     17   
bytes = "1.10.0"
   18     18   
http = "1.0.0"
   19     19   
tracing = "0.1.40"
   20     20   
wasi = "0.12.1"
   21     21   
   22     22   
[dependencies.aws-smithy-runtime-api]
   23     23   
path = "../aws-smithy-runtime-api"
   24     24   
features = ["http-1x"]
   25         -
version = "1.8.7"
          25  +
version = "1.8.5"
   26     26   
   27     27   
[dependencies.aws-smithy-http]
   28     28   
path = "../aws-smithy-http"
   29     29   
version = "0.62.3"
   30     30   
   31     31   
[dependencies.aws-smithy-types]
   32     32   
path = "../aws-smithy-types"
   33     33   
version = "1.3.2"

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

@@ -1,1 +69,69 @@
   19     19   
normal = ["aws-smithy-runtime", "hyper-rustls"]
   20     20   
   21     21   
[features]
   22     22   
examples = ["dep:hyper-rustls", "aws-smithy-runtime/client", "aws-smithy-runtime/connector-hyper-0-14-x", "aws-smithy-runtime/tls-rustls"]
   23     23   
   24     24   
[dependencies]
   25     25   
tracing = "0.1.40"
   26     26   
   27     27   
[dependencies.aws-credential-types]
   28     28   
path = "../aws-credential-types"
   29         -
version = "1.2.5"
          29  +
version = "1.2.4"
   30     30   
   31     31   
[dependencies.aws-smithy-async]
   32     32   
path = "../aws-smithy-async"
   33     33   
version = "1.2.5"
   34     34   
   35     35   
[dependencies.aws-smithy-types]
   36     36   
path = "../aws-smithy-types"
   37     37   
version = "1.3.2"
   38     38   
   39     39   
[dependencies.aws-smithy-runtime]
   40     40   
path = "../aws-smithy-runtime"
   41     41   
optional = true
   42         -
version = "1.8.6"
          42  +
version = "1.8.5"
   43     43   
   44     44   
[dependencies.aws-smithy-runtime-api]
   45     45   
path = "../aws-smithy-runtime-api"
   46     46   
features = ["client"]
   47         -
version = "1.8.7"
          47  +
version = "1.8.5"
   48     48   
   49     49   
[dependencies.hyper-rustls]
   50     50   
version = "0.24"
   51     51   
optional = true
   52     52   
features = ["rustls-native-certs", "http2", "webpki-roots"]
   53     53   
   54     54   
[dev-dependencies]
   55     55   
http = "0.2.4"
   56     56   
tempfile = "3.16.0"
   57     57   
tracing-test = "0.2.5"
   58     58   
   59     59   
[dev-dependencies.tokio]
   60     60   
version = "1"
   61     61   
features = ["rt", "macros"]
   62     62   
   63     63   
[dev-dependencies.aws-smithy-runtime-api]
   64     64   
path = "../aws-smithy-runtime-api"
   65     65   
features = ["http-02x"]
   66         -
version = "1.8.7"
          66  +
version = "1.8.5"
   67     67   
   68     68   
[build-dependencies]
   69     69   
rustc_version = "0.4.0"

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

@@ -1,1 +159,95 @@
    9      9   
repository = "https://github.com/awslabs/aws-sdk-rust"
   10     10   
rust-version = "1.86.0"
   11     11   
readme = "README.md"
   12     12   
[package.metadata.smithy]
   13     13   
codegen-version = "ci"
   14     14   
[package.metadata.docs.rs]
   15     15   
all-features = true
   16     16   
targets = ["x86_64-unknown-linux-gnu"]
   17     17   
[dependencies.aws-credential-types]
   18     18   
path = "../aws-credential-types"
   19         -
version = "1.2.5"
          19  +
version = "1.2.4"
   20     20   
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23     23   
features = ["event-stream"]
   24         -
version = "1.5.10"
   25         -
   26         -
[dependencies.aws-sigv4]
   27         -
path = "../aws-sigv4"
   28         -
version = "1.3.4"
          24  +
version = "1.5.9"
   29     25   
   30     26   
[dependencies.aws-smithy-async]
   31     27   
path = "../aws-smithy-async"
   32     28   
version = "1.2.5"
   33     29   
   34     30   
[dependencies.aws-smithy-eventstream]
   35     31   
path = "../aws-smithy-eventstream"
   36     32   
version = "0.60.10"
   37     33   
   38     34   
[dependencies.aws-smithy-http]
   39     35   
path = "../aws-smithy-http"
   40     36   
features = ["event-stream"]
   41     37   
version = "0.62.3"
   42     38   
   43     39   
[dependencies.aws-smithy-json]
   44     40   
path = "../aws-smithy-json"
   45     41   
version = "0.61.4"
   46     42   
   47     43   
[dependencies.aws-smithy-runtime]
   48     44   
path = "../aws-smithy-runtime"
   49         -
features = ["client", "http-auth"]
   50         -
version = "1.8.6"
          45  +
features = ["client"]
          46  +
version = "1.8.5"
   51     47   
   52     48   
[dependencies.aws-smithy-runtime-api]
   53     49   
path = "../aws-smithy-runtime-api"
   54         -
features = ["client", "http-02x", "http-auth"]
   55         -
version = "1.8.7"
          50  +
features = ["client", "http-02x"]
          51  +
version = "1.8.5"
   56     52   
   57     53   
[dependencies.aws-smithy-types]
   58     54   
path = "../aws-smithy-types"
   59         -
features = ["http-body-0-4-x"]
   60     55   
version = "1.3.2"
   61     56   
   62     57   
[dependencies.aws-types]
   63     58   
path = "../aws-types"
   64     59   
version = "1.3.8"
   65     60   
   66     61   
[dependencies.bytes]
   67     62   
version = "1.4.0"
   68     63   
   69     64   
[dependencies.fastrand]
   70     65   
version = "2.0.0"
   71     66   
   72     67   
[dependencies.http]
   73     68   
version = "0.2.9"
   74     69   
   75         -
[dependencies.hyper]
   76         -
version = "0.14.26"
   77         -
features = ["stream"]
   78         -
   79     70   
[dependencies.regex-lite]
   80     71   
version = "0.1.5"
   81     72   
   82     73   
[dependencies.tracing]
   83     74   
version = "0.1"
   84     75   
[dev-dependencies.aws-config]
   85     76   
path = "../aws-config"
   86         -
version = "1.8.4"
          77  +
version = "1.8.3"
   87     78   
   88     79   
[dev-dependencies.aws-credential-types]
   89     80   
path = "../aws-credential-types"
   90     81   
features = ["test-util"]
   91         -
version = "1.2.5"
   92         -
   93         -
[dev-dependencies.aws-runtime]
   94         -
path = "../aws-runtime"
   95         -
features = ["test-util"]
   96         -
version = "1.5.10"
   97         -
   98         -
[dev-dependencies.aws-smithy-async]
   99         -
path = "../aws-smithy-async"
  100         -
features = ["test-util"]
  101         -
version = "1.2.5"
  102         -
  103         -
[dev-dependencies.aws-smithy-eventstream]
  104         -
path = "../aws-smithy-eventstream"
  105         -
features = ["test-util"]
  106         -
version = "0.60.10"
  107         -
  108         -
[dev-dependencies.aws-smithy-http-client]
  109         -
path = "../aws-smithy-http-client"
  110         -
features = ["test-util", "wire-mock"]
  111         -
version = "1.0.6"
  112         -
  113         -
[dev-dependencies.aws-smithy-protocol-test]
  114         -
path = "../aws-smithy-protocol-test"
  115         -
version = "0.63.4"
  116         -
  117         -
[dev-dependencies.aws-smithy-runtime]
  118         -
path = "../aws-smithy-runtime"
  119         -
features = ["test-util"]
  120         -
version = "1.8.6"
  121         -
  122         -
[dev-dependencies.aws-smithy-runtime-api]
  123         -
path = "../aws-smithy-runtime-api"
  124         -
features = ["test-util"]
  125         -
version = "1.8.7"
  126         -
  127         -
[dev-dependencies.aws-smithy-types]
  128         -
path = "../aws-smithy-types"
  129         -
features = ["test-util"]
  130         -
version = "1.3.2"
  131         -
  132         -
[dev-dependencies.futures-util]
  133         -
version = "0.3.25"
  134         -
features = ["alloc"]
  135         -
default-features = false
  136         -
  137         -
[dev-dependencies.http-1x]
  138         -
version = "1"
  139         -
package = "http"
  140         -
  141         -
[dev-dependencies.serde_json]
  142         -
version = "1.0.0"
          82  +
version = "1.2.4"
  143     83   
  144     84   
[dev-dependencies.tokio]
  145     85   
version = "1.23.1"
  146     86   
features = ["macros", "test-util", "rt-multi-thread"]
  147     87   
  148         -
[dev-dependencies.tracing-subscriber]
  149         -
version = "0.3.16"
  150         -
features = ["env-filter", "json"]
  151         -
  152     88   
[features]
  153     89   
behavior-version-latest = []
  154     90   
rustls = ["aws-smithy-runtime/tls-rustls"]
  155     91   
default-https-client = ["aws-smithy-runtime/default-https-client"]
  156     92   
rt-tokio = ["aws-smithy-async/rt-tokio", "aws-smithy-types/rt-tokio"]
  157     93   
test-util = ["aws-credential-types/test-util", "aws-smithy-runtime/test-util"]
  158     94   
gated-tests = []
  159     95   
default = ["rustls", "default-https-client", "rt-tokio"]

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/client.rs

@@ -32,32 +99,99 @@
   52     52   
/// [`ConfigLoader`]: https://docs.rs/aws-config/*/aws_config/struct.ConfigLoader.html
   53     53   
/// [`SdkConfig`]: https://docs.rs/aws-config/*/aws_config/struct.SdkConfig.html
   54     54   
/// [`aws-config` docs]: https://docs.rs/aws-config/*
   55     55   
/// [`aws-config`]: https://crates.io/crates/aws-config
   56     56   
/// [`aws_config::from_env()`]: https://docs.rs/aws-config/*/aws_config/fn.from_env.html
   57     57   
/// [`aws_config::load_from_env()`]: https://docs.rs/aws-config/*/aws_config/fn.load_from_env.html
   58     58   
/// [builder pattern]: https://rust-lang.github.io/api-guidelines/type-safety.html#builders-enable-construction-of-complex-values-c-builder
   59     59   
/// # Using the `Client`
   60     60   
///
   61     61   
/// A client has a function for every operation that can be performed by the service.
   62         -
/// For example, the [`ApplyGuardrail`](crate::operation::apply_guardrail) operation has
   63         -
/// a [`Client::apply_guardrail`], function which returns a builder for that operation.
          62  +
/// For example, the [`Converse`](crate::operation::converse) operation has
          63  +
/// a [`Client::converse`], function which returns a builder for that operation.
   64     64   
/// The fluent builder ultimately has a `send()` function that returns an async future that
   65     65   
/// returns a result, as illustrated below:
   66     66   
///
   67     67   
/// ```rust,ignore
   68         -
/// let result = client.apply_guardrail()
   69         -
///     .guardrail_identifier("example")
          68  +
/// let result = client.converse()
          69  +
///     .model_id("example")
   70     70   
///     .send()
   71     71   
///     .await;
   72     72   
/// ```
   73     73   
///
   74     74   
/// The underlying HTTP requests that get made by this can be modified with the `customize_operation`
   75     75   
/// function on the fluent builder. See the [`customize`](crate::client::customize) module for more
   76     76   
/// information.
   77     77   
#[derive(::std::clone::Clone, ::std::fmt::Debug)]
   78     78   
pub struct Client {
   79     79   
    handle: ::std::sync::Arc<Handle>,
@@ -109,109 +182,0 @@
  129    129   
    ///   the `sleep_impl` on the Config passed into this function to fix it.
  130    130   
    /// - This method will panic if the `sdk_config` is missing an HTTP connector. If you experience this panic, set the
  131    131   
    ///   `http_connector` on the Config passed into this function to fix it.
  132    132   
    /// - This method will panic if no `BehaviorVersion` is provided. If you experience this panic, set `behavior_version` on the Config or enable the `behavior-version-latest` Cargo feature.
  133    133   
    #[track_caller]
  134    134   
    pub fn new(sdk_config: &::aws_types::sdk_config::SdkConfig) -> Self {
  135    135   
        Self::from_conf(sdk_config.into())
  136    136   
    }
  137    137   
}
  138    138   
  139         -
mod apply_guardrail;
  140         -
  141    139   
mod converse;
  142    140   
  143    141   
mod converse_stream;
  144    142   
  145    143   
/// Operation customization and supporting types.
  146    144   
///
  147    145   
/// The underlying HTTP requests made during an operation can be customized
  148    146   
/// by calling the `customize()` method on the builder returned from a client
  149    147   
/// operation call. For example, this can be used to add an additional HTTP header:
  150    148   
///
  151    149   
/// ```ignore
  152    150   
/// # async fn wrapper() -> ::std::result::Result<(), aws_sdk_bedrockruntime::Error> {
  153    151   
/// # let client: aws_sdk_bedrockruntime::Client = unimplemented!();
  154    152   
/// use ::http::header::{HeaderName, HeaderValue};
  155    153   
///
  156         -
/// let result = client.apply_guardrail()
         154  +
/// let result = client.converse()
  157    155   
///     .customize()
  158    156   
///     .mutate_request(|req| {
  159    157   
///         // Add `x-example-header` with value
  160    158   
///         req.headers_mut()
  161    159   
///             .insert(
  162    160   
///                 HeaderName::from_static("x-example-header"),
  163    161   
///                 HeaderValue::from_static("1"),
  164    162   
///             );
  165    163   
///     })
  166    164   
///     .send()
  167    165   
///     .await;
  168    166   
/// # }
  169    167   
/// ```
  170    168   
pub mod customize;
  171    169   
  172         -
mod get_async_invoke;
  173         -
  174    170   
mod invoke_model;
  175    171   
  176         -
mod invoke_model_with_bidirectional_stream;
  177         -
  178    172   
mod invoke_model_with_response_stream;
  179         -
  180         -
mod list_async_invokes;
  181         -
  182         -
mod start_async_invoke;

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/client/apply_guardrail.rs

@@ -1,0 +22,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
impl super::Client {
    3         -
    /// Constructs a fluent builder for the [`ApplyGuardrail`](crate::operation::apply_guardrail::builders::ApplyGuardrailFluentBuilder) operation.
    4         -
    ///
    5         -
    /// - The fluent builder is configurable:
    6         -
    ///   - [`guardrail_identifier(impl Into<String>)`](crate::operation::apply_guardrail::builders::ApplyGuardrailFluentBuilder::guardrail_identifier) / [`set_guardrail_identifier(Option<String>)`](crate::operation::apply_guardrail::builders::ApplyGuardrailFluentBuilder::set_guardrail_identifier):<br>required: **true**<br><p>The guardrail identifier used in the request to apply the guardrail.</p><br>
    7         -
    ///   - [`guardrail_version(impl Into<String>)`](crate::operation::apply_guardrail::builders::ApplyGuardrailFluentBuilder::guardrail_version) / [`set_guardrail_version(Option<String>)`](crate::operation::apply_guardrail::builders::ApplyGuardrailFluentBuilder::set_guardrail_version):<br>required: **true**<br><p>The guardrail version used in the request to apply the guardrail.</p><br>
    8         -
    ///   - [`source(GuardrailContentSource)`](crate::operation::apply_guardrail::builders::ApplyGuardrailFluentBuilder::source) / [`set_source(Option<GuardrailContentSource>)`](crate::operation::apply_guardrail::builders::ApplyGuardrailFluentBuilder::set_source):<br>required: **true**<br><p>The source of data used in the request to apply the guardrail.</p><br>
    9         -
    ///   - [`content(GuardrailContentBlock)`](crate::operation::apply_guardrail::builders::ApplyGuardrailFluentBuilder::content) / [`set_content(Option<Vec::<GuardrailContentBlock>>)`](crate::operation::apply_guardrail::builders::ApplyGuardrailFluentBuilder::set_content):<br>required: **true**<br><p>The content details used in the request to apply the guardrail.</p><br>
   10         -
    ///   - [`output_scope(GuardrailOutputScope)`](crate::operation::apply_guardrail::builders::ApplyGuardrailFluentBuilder::output_scope) / [`set_output_scope(Option<GuardrailOutputScope>)`](crate::operation::apply_guardrail::builders::ApplyGuardrailFluentBuilder::set_output_scope):<br>required: **false**<br><p>Specifies the scope of the output that you get in the response. Set to <code>FULL</code> to return the entire output, including any detected and non-detected entries in the response for enhanced debugging.</p> <p>Note that the full output scope doesn't apply to word filters or regex in sensitive information filters. It does apply to all other filtering policies, including sensitive information with filters that can detect personally identifiable information (PII).</p><br>
   11         -
    /// - On success, responds with [`ApplyGuardrailOutput`](crate::operation::apply_guardrail::ApplyGuardrailOutput) with field(s):
   12         -
    ///   - [`usage(Option<GuardrailUsage>)`](crate::operation::apply_guardrail::ApplyGuardrailOutput::usage): <p>The usage details in the response from the guardrail.</p>
   13         -
    ///   - [`action(GuardrailAction)`](crate::operation::apply_guardrail::ApplyGuardrailOutput::action): <p>The action taken in the response from the guardrail.</p>
   14         -
    ///   - [`action_reason(Option<String>)`](crate::operation::apply_guardrail::ApplyGuardrailOutput::action_reason): <p>The reason for the action taken when harmful content is detected.</p>
   15         -
    ///   - [`outputs(Vec::<GuardrailOutputContent>)`](crate::operation::apply_guardrail::ApplyGuardrailOutput::outputs): <p>The output details in the response from the guardrail.</p>
   16         -
    ///   - [`assessments(Vec::<GuardrailAssessment>)`](crate::operation::apply_guardrail::ApplyGuardrailOutput::assessments): <p>The assessment details in the response from the guardrail.</p>
   17         -
    ///   - [`guardrail_coverage(Option<GuardrailCoverage>)`](crate::operation::apply_guardrail::ApplyGuardrailOutput::guardrail_coverage): <p>The guardrail coverage details in the apply guardrail response.</p>
   18         -
    /// - On failure, responds with [`SdkError<ApplyGuardrailError>`](crate::operation::apply_guardrail::ApplyGuardrailError)
   19         -
    pub fn apply_guardrail(&self) -> crate::operation::apply_guardrail::builders::ApplyGuardrailFluentBuilder {
   20         -
        crate::operation::apply_guardrail::builders::ApplyGuardrailFluentBuilder::new(self.handle.clone())
   21         -
    }
   22         -
}

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/client/converse.rs

@@ -1,1 +29,23 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
impl super::Client {
    3      3   
    /// Constructs a fluent builder for the [`Converse`](crate::operation::converse::builders::ConverseFluentBuilder) operation.
    4      4   
    ///
    5      5   
    /// - The fluent builder is configurable:
    6         -
    ///   - [`model_id(impl Into<String>)`](crate::operation::converse::builders::ConverseFluentBuilder::model_id) / [`set_model_id(Option<String>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_model_id):<br>required: **true**<br><p>Specifies the model or throughput with which to run inference, or the prompt resource to use in inference. The value depends on the resource that you use:</p> <ul>  <li>   <p>If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">Amazon Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use an inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html">Supported Regions and models for cross-region inference</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html">Run inference using a Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>To include a prompt that was defined in <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html">Prompt management</a>, specify the ARN of the prompt version to use.</p></li> </ul> <p>The Converse API doesn't support <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">imported models</a>.</p><br>
    7         -
    ///   - [`messages(Message)`](crate::operation::converse::builders::ConverseFluentBuilder::messages) / [`set_messages(Option<Vec::<Message>>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_messages):<br>required: **false**<br><p>The messages that you want to send to the model.</p><br>
    8         -
    ///   - [`system(SystemContentBlock)`](crate::operation::converse::builders::ConverseFluentBuilder::system) / [`set_system(Option<Vec::<SystemContentBlock>>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_system):<br>required: **false**<br><p>A prompt that provides instructions or context to the model about the task it should perform, or the persona it should adopt during the conversation.</p><br>
    9         -
    ///   - [`inference_config(InferenceConfiguration)`](crate::operation::converse::builders::ConverseFluentBuilder::inference_config) / [`set_inference_config(Option<InferenceConfiguration>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_inference_config):<br>required: **false**<br><p>Inference parameters to pass to the model. <code>Converse</code> and <code>ConverseStream</code> support a base set of inference parameters. If you need to pass additional parameters that the model supports, use the <code>additionalModelRequestFields</code> request field.</p><br>
   10         -
    ///   - [`tool_config(ToolConfiguration)`](crate::operation::converse::builders::ConverseFluentBuilder::tool_config) / [`set_tool_config(Option<ToolConfiguration>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_tool_config):<br>required: **false**<br><p>Configuration information for the tools that the model can use when generating a response.</p> <p>For information about models that support tool use, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference.html#conversation-inference-supported-models-features">Supported models and model features</a>.</p><br>
   11         -
    ///   - [`guardrail_config(GuardrailConfiguration)`](crate::operation::converse::builders::ConverseFluentBuilder::guardrail_config) / [`set_guardrail_config(Option<GuardrailConfiguration>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_guardrail_config):<br>required: **false**<br><p>Configuration information for a guardrail that you want to use in the request. If you include <code>guardContent</code> blocks in the <code>content</code> field in the <code>messages</code> field, the guardrail operates only on those messages. If you include no <code>guardContent</code> blocks, the guardrail operates on all messages in the request body and in any included prompt resource.</p><br>
   12         -
    ///   - [`additional_model_request_fields(Document)`](crate::operation::converse::builders::ConverseFluentBuilder::additional_model_request_fields) / [`set_additional_model_request_fields(Option<Document>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_additional_model_request_fields):<br>required: **false**<br><p>Additional inference parameters that the model supports, beyond the base set of inference parameters that <code>Converse</code> and <code>ConverseStream</code> support in the <code>inferenceConfig</code> field. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Model parameters</a>.</p><br>
   13         -
    ///   - [`prompt_variables(impl Into<String>, PromptVariableValues)`](crate::operation::converse::builders::ConverseFluentBuilder::prompt_variables) / [`set_prompt_variables(Option<HashMap::<String, PromptVariableValues>>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_prompt_variables):<br>required: **false**<br><p>Contains a map of variables in a prompt from Prompt management to objects containing the values to fill in for them when running model invocation. This field is ignored if you don't specify a prompt resource in the <code>modelId</code> field.</p><br>
   14         -
    ///   - [`additional_model_response_field_paths(impl Into<String>)`](crate::operation::converse::builders::ConverseFluentBuilder::additional_model_response_field_paths) / [`set_additional_model_response_field_paths(Option<Vec::<String>>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_additional_model_response_field_paths):<br>required: **false**<br><p>Additional model parameters field paths to return in the response. <code>Converse</code> and <code>ConverseStream</code> return the requested fields as a JSON Pointer object in the <code>additionalModelResponseFields</code> field. The following is example JSON for <code>additionalModelResponseFieldPaths</code>.</p> <p><code>\[ "/stop_sequence" \]</code></p> <p>For information about the JSON Pointer syntax, see the <a href="https://datatracker.ietf.org/doc/html/rfc6901">Internet Engineering Task Force (IETF)</a> documentation.</p> <p><code>Converse</code> and <code>ConverseStream</code> reject an empty JSON Pointer or incorrectly structured JSON Pointer with a <code>400</code> error code. if the JSON Pointer is valid, but the requested field is not in the model response, it is ignored by <code>Converse</code>.</p><br>
   15         -
    ///   - [`request_metadata(impl Into<String>, impl Into<String>)`](crate::operation::converse::builders::ConverseFluentBuilder::request_metadata) / [`set_request_metadata(Option<HashMap::<String, String>>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_request_metadata):<br>required: **false**<br><p>Key-value pairs that you can use to filter invocation logs.</p><br>
   16         -
    ///   - [`performance_config(PerformanceConfiguration)`](crate::operation::converse::builders::ConverseFluentBuilder::performance_config) / [`set_performance_config(Option<PerformanceConfiguration>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_performance_config):<br>required: **false**<br><p>Model performance settings for the request.</p><br>
           6  +
    ///   - [`model_id(impl Into<String>)`](crate::operation::converse::builders::ConverseFluentBuilder::model_id) / [`set_model_id(Option<String>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_model_id):<br>required: **true**<br><p>The identifier for the model that you want to call.</p> <p>The <code>modelId</code> to provide depends on the type of model that you use:</p> <ul>  <li>   <p>If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">Amazon Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html">Run inference using a Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p></li> </ul><br>
           7  +
    ///   - [`messages(Message)`](crate::operation::converse::builders::ConverseFluentBuilder::messages) / [`set_messages(Option<Vec::<Message>>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_messages):<br>required: **true**<br><p>The messages that you want to send to the model.</p><br>
           8  +
    ///   - [`system(SystemContentBlock)`](crate::operation::converse::builders::ConverseFluentBuilder::system) / [`set_system(Option<Vec::<SystemContentBlock>>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_system):<br>required: **false**<br><p>A system prompt to pass to the model.</p><br>
           9  +
    ///   - [`inference_config(InferenceConfiguration)`](crate::operation::converse::builders::ConverseFluentBuilder::inference_config) / [`set_inference_config(Option<InferenceConfiguration>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_inference_config):<br>required: **false**<br><p>Inference parameters to pass to the model. <code>Converse</code> supports a base set of inference parameters. If you need to pass additional parameters that the model supports, use the <code>additionalModelRequestFields</code> request field.</p><br>
          10  +
    ///   - [`tool_config(ToolConfiguration)`](crate::operation::converse::builders::ConverseFluentBuilder::tool_config) / [`set_tool_config(Option<ToolConfiguration>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_tool_config):<br>required: **false**<br><p>Configuration information for the tools that the model can use when generating a response.</p><note>  <p>This field is only supported by Anthropic Claude 3, Cohere Command R, Cohere Command R+, and Mistral Large models.</p> </note><br>
          11  +
    ///   - [`additional_model_request_fields(Document)`](crate::operation::converse::builders::ConverseFluentBuilder::additional_model_request_fields) / [`set_additional_model_request_fields(Option<Document>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_additional_model_request_fields):<br>required: **false**<br><p>Additional inference parameters that the model supports, beyond the base set of inference parameters that <code>Converse</code> supports in the <code>inferenceConfig</code> field. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Model parameters</a>.</p><br>
          12  +
    ///   - [`additional_model_response_field_paths(impl Into<String>)`](crate::operation::converse::builders::ConverseFluentBuilder::additional_model_response_field_paths) / [`set_additional_model_response_field_paths(Option<Vec::<String>>)`](crate::operation::converse::builders::ConverseFluentBuilder::set_additional_model_response_field_paths):<br>required: **false**<br><p>Additional model parameters field paths to return in the response. <code>Converse</code> returns the requested fields as a JSON Pointer object in the <code>additionalModelResultFields</code> field. The following is example JSON for <code>additionalModelResponseFieldPaths</code>.</p> <p><code>\[ "/stop_sequence" \]</code></p> <p>For information about the JSON Pointer syntax, see the <a href="https://datatracker.ietf.org/doc/html/rfc6901">Internet Engineering Task Force (IETF)</a> documentation.</p> <p><code>Converse</code> rejects an empty JSON Pointer or incorrectly structured JSON Pointer with a <code>400</code> error code. if the JSON Pointer is valid, but the requested field is not in the model response, it is ignored by <code>Converse</code>.</p><br>
   17     13   
    /// - On success, responds with [`ConverseOutput`](crate::operation::converse::ConverseOutput) with field(s):
   18     14   
    ///   - [`output(Option<ConverseOutput>)`](crate::operation::converse::ConverseOutput::output): <p>The result from the call to <code>Converse</code>.</p>
   19     15   
    ///   - [`stop_reason(StopReason)`](crate::operation::converse::ConverseOutput::stop_reason): <p>The reason why the model stopped generating output.</p>
   20     16   
    ///   - [`usage(Option<TokenUsage>)`](crate::operation::converse::ConverseOutput::usage): <p>The total number of tokens used in the call to <code>Converse</code>. The total includes the tokens input to the model and the tokens generated by the model.</p>
   21     17   
    ///   - [`metrics(Option<ConverseMetrics>)`](crate::operation::converse::ConverseOutput::metrics): <p>Metrics for the call to <code>Converse</code>.</p>
   22     18   
    ///   - [`additional_model_response_fields(Option<Document>)`](crate::operation::converse::ConverseOutput::additional_model_response_fields): <p>Additional fields in the response that are unique to the model.</p>
   23         -
    ///   - [`trace(Option<ConverseTrace>)`](crate::operation::converse::ConverseOutput::trace): <p>A trace object that contains information about the Guardrail behavior.</p>
   24         -
    ///   - [`performance_config(Option<PerformanceConfiguration>)`](crate::operation::converse::ConverseOutput::performance_config): <p>Model performance settings for the request.</p>
   25     19   
    /// - On failure, responds with [`SdkError<ConverseError>`](crate::operation::converse::ConverseError)
   26     20   
    pub fn converse(&self) -> crate::operation::converse::builders::ConverseFluentBuilder {
   27     21   
        crate::operation::converse::builders::ConverseFluentBuilder::new(self.handle.clone())
   28     22   
    }
   29     23   
}

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/client/converse_stream.rs

@@ -1,1 +23,19 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
impl super::Client {
    3      3   
    /// Constructs a fluent builder for the [`ConverseStream`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder) operation.
    4      4   
    ///
    5      5   
    /// - The fluent builder is configurable:
    6         -
    ///   - [`model_id(impl Into<String>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::model_id) / [`set_model_id(Option<String>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_model_id):<br>required: **true**<br><p>Specifies the model or throughput with which to run inference, or the prompt resource to use in inference. The value depends on the resource that you use:</p> <ul>  <li>   <p>If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">Amazon Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use an inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html">Supported Regions and models for cross-region inference</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html">Run inference using a Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>To include a prompt that was defined in <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html">Prompt management</a>, specify the ARN of the prompt version to use.</p></li> </ul> <p>The Converse API doesn't support <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">imported models</a>.</p><br>
    7         -
    ///   - [`messages(Message)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::messages) / [`set_messages(Option<Vec::<Message>>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_messages):<br>required: **false**<br><p>The messages that you want to send to the model.</p><br>
    8         -
    ///   - [`system(SystemContentBlock)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::system) / [`set_system(Option<Vec::<SystemContentBlock>>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_system):<br>required: **false**<br><p>A prompt that provides instructions or context to the model about the task it should perform, or the persona it should adopt during the conversation.</p><br>
    9         -
    ///   - [`inference_config(InferenceConfiguration)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::inference_config) / [`set_inference_config(Option<InferenceConfiguration>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_inference_config):<br>required: **false**<br><p>Inference parameters to pass to the model. <code>Converse</code> and <code>ConverseStream</code> support a base set of inference parameters. If you need to pass additional parameters that the model supports, use the <code>additionalModelRequestFields</code> request field.</p><br>
   10         -
    ///   - [`tool_config(ToolConfiguration)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::tool_config) / [`set_tool_config(Option<ToolConfiguration>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_tool_config):<br>required: **false**<br><p>Configuration information for the tools that the model can use when generating a response.</p> <p>For information about models that support streaming tool use, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference.html#conversation-inference-supported-models-features">Supported models and model features</a>.</p><br>
   11         -
    ///   - [`guardrail_config(GuardrailStreamConfiguration)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::guardrail_config) / [`set_guardrail_config(Option<GuardrailStreamConfiguration>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_guardrail_config):<br>required: **false**<br><p>Configuration information for a guardrail that you want to use in the request. If you include <code>guardContent</code> blocks in the <code>content</code> field in the <code>messages</code> field, the guardrail operates only on those messages. If you include no <code>guardContent</code> blocks, the guardrail operates on all messages in the request body and in any included prompt resource.</p><br>
   12         -
    ///   - [`additional_model_request_fields(Document)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::additional_model_request_fields) / [`set_additional_model_request_fields(Option<Document>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_additional_model_request_fields):<br>required: **false**<br><p>Additional inference parameters that the model supports, beyond the base set of inference parameters that <code>Converse</code> and <code>ConverseStream</code> support in the <code>inferenceConfig</code> field. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Model parameters</a>.</p><br>
   13         -
    ///   - [`prompt_variables(impl Into<String>, PromptVariableValues)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::prompt_variables) / [`set_prompt_variables(Option<HashMap::<String, PromptVariableValues>>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_prompt_variables):<br>required: **false**<br><p>Contains a map of variables in a prompt from Prompt management to objects containing the values to fill in for them when running model invocation. This field is ignored if you don't specify a prompt resource in the <code>modelId</code> field.</p><br>
   14         -
    ///   - [`additional_model_response_field_paths(impl Into<String>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::additional_model_response_field_paths) / [`set_additional_model_response_field_paths(Option<Vec::<String>>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_additional_model_response_field_paths):<br>required: **false**<br><p>Additional model parameters field paths to return in the response. <code>Converse</code> and <code>ConverseStream</code> return the requested fields as a JSON Pointer object in the <code>additionalModelResponseFields</code> field. The following is example JSON for <code>additionalModelResponseFieldPaths</code>.</p> <p><code>\[ "/stop_sequence" \]</code></p> <p>For information about the JSON Pointer syntax, see the <a href="https://datatracker.ietf.org/doc/html/rfc6901">Internet Engineering Task Force (IETF)</a> documentation.</p> <p><code>Converse</code> and <code>ConverseStream</code> reject an empty JSON Pointer or incorrectly structured JSON Pointer with a <code>400</code> error code. if the JSON Pointer is valid, but the requested field is not in the model response, it is ignored by <code>Converse</code>.</p><br>
   15         -
    ///   - [`request_metadata(impl Into<String>, impl Into<String>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::request_metadata) / [`set_request_metadata(Option<HashMap::<String, String>>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_request_metadata):<br>required: **false**<br><p>Key-value pairs that you can use to filter invocation logs.</p><br>
   16         -
    ///   - [`performance_config(PerformanceConfiguration)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::performance_config) / [`set_performance_config(Option<PerformanceConfiguration>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_performance_config):<br>required: **false**<br><p>Model performance settings for the request.</p><br>
           6  +
    ///   - [`model_id(impl Into<String>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::model_id) / [`set_model_id(Option<String>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_model_id):<br>required: **true**<br><p>The ID for the model.</p> <p>The <code>modelId</code> to provide depends on the type of model that you use:</p> <ul>  <li>   <p>If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">Amazon Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html">Run inference using a Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p></li> </ul><br>
           7  +
    ///   - [`messages(Message)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::messages) / [`set_messages(Option<Vec::<Message>>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_messages):<br>required: **true**<br><p>The messages that you want to send to the model.</p><br>
           8  +
    ///   - [`system(SystemContentBlock)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::system) / [`set_system(Option<Vec::<SystemContentBlock>>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_system):<br>required: **false**<br><p>A system prompt to send to the model.</p><br>
           9  +
    ///   - [`inference_config(InferenceConfiguration)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::inference_config) / [`set_inference_config(Option<InferenceConfiguration>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_inference_config):<br>required: **false**<br><p>Inference parameters to pass to the model. <code>ConverseStream</code> supports a base set of inference parameters. If you need to pass additional parameters that the model supports, use the <code>additionalModelRequestFields</code> request field.</p><br>
          10  +
    ///   - [`tool_config(ToolConfiguration)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::tool_config) / [`set_tool_config(Option<ToolConfiguration>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_tool_config):<br>required: **false**<br><p>Configuration information for the tools that the model can use when generating a response.</p><note>  <p>This field is only supported by Anthropic Claude 3 models.</p> </note><br>
          11  +
    ///   - [`additional_model_request_fields(Document)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::additional_model_request_fields) / [`set_additional_model_request_fields(Option<Document>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_additional_model_request_fields):<br>required: **false**<br><p>Additional inference parameters that the model supports, beyond the base set of inference parameters that <code>ConverseStream</code> supports in the <code>inferenceConfig</code> field.</p><br>
          12  +
    ///   - [`additional_model_response_field_paths(impl Into<String>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::additional_model_response_field_paths) / [`set_additional_model_response_field_paths(Option<Vec::<String>>)`](crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::set_additional_model_response_field_paths):<br>required: **false**<br><p>Additional model parameters field paths to return in the response. <code>ConverseStream</code> returns the requested fields as a JSON Pointer object in the <code>additionalModelResultFields</code> field. The following is example JSON for <code>additionalModelResponseFieldPaths</code>.</p> <p><code>\[ "/stop_sequence" \]</code></p> <p>For information about the JSON Pointer syntax, see the <a href="https://datatracker.ietf.org/doc/html/rfc6901">Internet Engineering Task Force (IETF)</a> documentation.</p> <p><code>ConverseStream</code> rejects an empty JSON Pointer or incorrectly structured JSON Pointer with a <code>400</code> error code. if the JSON Pointer is valid, but the requested field is not in the model response, it is ignored by <code>ConverseStream</code>.</p><br>
   17     13   
    /// - On success, responds with [`ConverseStreamOutput`](crate::operation::converse_stream::ConverseStreamOutput) with field(s):
   18     14   
    ///   - [`stream(EventReceiver<ConverseStreamOutput, ConverseStreamOutputError>)`](crate::operation::converse_stream::ConverseStreamOutput::stream): <p>The output stream that the model generated.</p>
   19     15   
    /// - On failure, responds with [`SdkError<ConverseStreamError>`](crate::operation::converse_stream::ConverseStreamError)
   20     16   
    pub fn converse_stream(&self) -> crate::operation::converse_stream::builders::ConverseStreamFluentBuilder {
   21     17   
        crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::new(self.handle.clone())
   22     18   
    }
   23     19   
}

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/client/get_async_invoke.rs

@@ -1,0 +21,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
impl super::Client {
    3         -
    /// Constructs a fluent builder for the [`GetAsyncInvoke`](crate::operation::get_async_invoke::builders::GetAsyncInvokeFluentBuilder) operation.
    4         -
    ///
    5         -
    /// - The fluent builder is configurable:
    6         -
    ///   - [`invocation_arn(impl Into<String>)`](crate::operation::get_async_invoke::builders::GetAsyncInvokeFluentBuilder::invocation_arn) / [`set_invocation_arn(Option<String>)`](crate::operation::get_async_invoke::builders::GetAsyncInvokeFluentBuilder::set_invocation_arn):<br>required: **true**<br><p>The invocation's ARN.</p><br>
    7         -
    /// - On success, responds with [`GetAsyncInvokeOutput`](crate::operation::get_async_invoke::GetAsyncInvokeOutput) with field(s):
    8         -
    ///   - [`invocation_arn(String)`](crate::operation::get_async_invoke::GetAsyncInvokeOutput::invocation_arn): <p>The invocation's ARN.</p>
    9         -
    ///   - [`model_arn(String)`](crate::operation::get_async_invoke::GetAsyncInvokeOutput::model_arn): <p>The invocation's model ARN.</p>
   10         -
    ///   - [`client_request_token(Option<String>)`](crate::operation::get_async_invoke::GetAsyncInvokeOutput::client_request_token): <p>The invocation's idempotency token.</p>
   11         -
    ///   - [`status(AsyncInvokeStatus)`](crate::operation::get_async_invoke::GetAsyncInvokeOutput::status): <p>The invocation's status.</p>
   12         -
    ///   - [`failure_message(Option<String>)`](crate::operation::get_async_invoke::GetAsyncInvokeOutput::failure_message): <p>An error message.</p>
   13         -
    ///   - [`submit_time(DateTime)`](crate::operation::get_async_invoke::GetAsyncInvokeOutput::submit_time): <p>When the invocation request was submitted.</p>
   14         -
    ///   - [`last_modified_time(Option<DateTime>)`](crate::operation::get_async_invoke::GetAsyncInvokeOutput::last_modified_time): <p>The invocation's last modified time.</p>
   15         -
    ///   - [`end_time(Option<DateTime>)`](crate::operation::get_async_invoke::GetAsyncInvokeOutput::end_time): <p>When the invocation ended.</p>
   16         -
    ///   - [`output_data_config(Option<AsyncInvokeOutputDataConfig>)`](crate::operation::get_async_invoke::GetAsyncInvokeOutput::output_data_config): <p>Output data settings.</p>
   17         -
    /// - On failure, responds with [`SdkError<GetAsyncInvokeError>`](crate::operation::get_async_invoke::GetAsyncInvokeError)
   18         -
    pub fn get_async_invoke(&self) -> crate::operation::get_async_invoke::builders::GetAsyncInvokeFluentBuilder {
   19         -
        crate::operation::get_async_invoke::builders::GetAsyncInvokeFluentBuilder::new(self.handle.clone())
   20         -
    }
   21         -
}

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/client/invoke_model.rs

@@ -1,1 +22,20 @@
    1      1   
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2      2   
impl super::Client {
    3      3   
    /// Constructs a fluent builder for the [`InvokeModel`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder) operation.
    4      4   
    ///
    5      5   
    /// - The fluent builder is configurable:
    6         -
    ///   - [`body(Blob)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::body) / [`set_body(Option<Blob>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::set_body):<br>required: **false**<br><p>The prompt and inference parameters in the format specified in the <code>contentType</code> in the header. You must provide the body in JSON format. To see the format and content of the request and response bodies for different models, refer to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html">Run inference</a> in the Bedrock User Guide.</p><br>
    7         -
    ///   - [`content_type(impl Into<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::content_type) / [`set_content_type(Option<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::set_content_type):<br>required: **false**<br><p>The MIME type of the input data in the request. You must specify <code>application/json</code>.</p><br>
           6  +
    ///   - [`body(Blob)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::body) / [`set_body(Option<Blob>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::set_body):<br>required: **true**<br><p>The prompt and inference parameters in the format specified in the <code>contentType</code> in the header. To see the format and content of the request and response bodies for different models, refer to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html">Run inference</a> in the Bedrock User Guide.</p><br>
           7  +
    ///   - [`content_type(impl Into<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::content_type) / [`set_content_type(Option<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::set_content_type):<br>required: **false**<br><p>The MIME type of the input data in the request. The default value is <code>application/json</code>.</p><br>
    8      8   
    ///   - [`accept(impl Into<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::accept) / [`set_accept(Option<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::set_accept):<br>required: **false**<br><p>The desired MIME type of the inference body in the response. The default value is <code>application/json</code>.</p><br>
    9         -
    ///   - [`model_id(impl Into<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::model_id) / [`set_model_id(Option<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::set_model_id):<br>required: **true**<br><p>The unique identifier of the model to invoke to run inference.</p> <p>The <code>modelId</code> to provide depends on the type of model or throughput that you use:</p> <ul>  <li>   <p>If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">Amazon Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use an inference profile, specify the inference profile ID or its ARN. For a list of inference profile IDs, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference-support.html">Supported Regions and models for cross-region inference</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html">Run inference using a Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use a custom model, specify the ARN of the custom model deployment (for on-demand inference) or the ARN of your provisioned model (for Provisioned Throughput). For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use an <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html">imported model</a>, specify the ARN of the imported model. You can get the model ARN from a successful call to <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_CreateModelImportJob.html">CreateModelImportJob</a> or from the Imported models page in the Amazon Bedrock console.</p></li> </ul><br>
           9  +
    ///   - [`model_id(impl Into<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::model_id) / [`set_model_id(Option<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::set_model_id):<br>required: **true**<br><p>The unique identifier of the model to invoke to run inference.</p> <p>The <code>modelId</code> to provide depends on the type of model that you use:</p> <ul>  <li>   <p>If you use a base model, specify the model ID or its ARN. For a list of model IDs for base models, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">Amazon Bedrock base model IDs (on-demand throughput)</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use a provisioned model, specify the ARN of the Provisioned Throughput. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prov-thru-use.html">Run inference using a Provisioned Throughput</a> in the Amazon Bedrock User Guide.</p></li>  <li>   <p>If you use a custom model, first purchase Provisioned Throughput for it. Then specify the ARN of the resulting provisioned model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-use.html">Use a custom model in Amazon Bedrock</a> in the Amazon Bedrock User Guide.</p></li> </ul><br>
   10     10   
    ///   - [`trace(Trace)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::trace) / [`set_trace(Option<Trace>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::set_trace):<br>required: **false**<br><p>Specifies whether to enable or disable the Bedrock trace. If enabled, you can see the full Bedrock trace.</p><br>
   11     11   
    ///   - [`guardrail_identifier(impl Into<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::guardrail_identifier) / [`set_guardrail_identifier(Option<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::set_guardrail_identifier):<br>required: **false**<br><p>The unique identifier of the guardrail that you want to use. If you don't provide a value, no guardrail is applied to the invocation.</p> <p>An error will be thrown in the following situations.</p> <ul>  <li>   <p>You don't provide a guardrail identifier but you specify the <code>amazon-bedrock-guardrailConfig</code> field in the request body.</p></li>  <li>   <p>You enable the guardrail but the <code>contentType</code> isn't <code>application/json</code>.</p></li>  <li>   <p>You provide a guardrail identifier, but <code>guardrailVersion</code> isn't specified.</p></li> </ul><br>
   12     12   
    ///   - [`guardrail_version(impl Into<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::guardrail_version) / [`set_guardrail_version(Option<String>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::set_guardrail_version):<br>required: **false**<br><p>The version number for the guardrail. The value can also be <code>DRAFT</code>.</p><br>
   13         -
    ///   - [`performance_config_latency(PerformanceConfigLatency)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::performance_config_latency) / [`set_performance_config_latency(Option<PerformanceConfigLatency>)`](crate::operation::invoke_model::builders::InvokeModelFluentBuilder::set_performance_config_latency):<br>required: **false**<br><p>Model performance settings for the request.</p><br>
   14     13   
    /// - On success, responds with [`InvokeModelOutput`](crate::operation::invoke_model::InvokeModelOutput) with field(s):
   15     14   
    ///   - [`body(Blob)`](crate::operation::invoke_model::InvokeModelOutput::body): <p>Inference response from the model in the format specified in the <code>contentType</code> header. To see the format and content of the request and response bodies for different models, refer to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>.</p>
   16     15   
    ///   - [`content_type(String)`](crate::operation::invoke_model::InvokeModelOutput::content_type): <p>The MIME type of the inference result.</p>
   17         -
    ///   - [`performance_config_latency(Option<PerformanceConfigLatency>)`](crate::operation::invoke_model::InvokeModelOutput::performance_config_latency): <p>Model performance settings for the request.</p>
   18     16   
    /// - On failure, responds with [`SdkError<InvokeModelError>`](crate::operation::invoke_model::InvokeModelError)
   19     17   
    pub fn invoke_model(&self) -> crate::operation::invoke_model::builders::InvokeModelFluentBuilder {
   20     18   
        crate::operation::invoke_model::builders::InvokeModelFluentBuilder::new(self.handle.clone())
   21     19   
    }
   22     20   
}

tmp-codegen-diff/aws-sdk/sdk/bedrockruntime/src/client/invoke_model_with_bidirectional_stream.rs

@@ -1,0 +16,0 @@
    1         -
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
    2         -
impl super::Client {
    3         -
    /// Constructs a fluent builder for the [`InvokeModelWithBidirectionalStream`](crate::operation::invoke_model_with_bidirectional_stream::builders::InvokeModelWithBidirectionalStreamFluentBuilder) operation.
    4         -
    ///
    5         -
    /// - The fluent builder is configurable:
    6         -
    ///   - [`model_id(impl Into<String>)`](crate::operation::invoke_model_with_bidirectional_stream::builders::InvokeModelWithBidirectionalStreamFluentBuilder::model_id) / [`set_model_id(Option<String>)`](crate::operation::invoke_model_with_bidirectional_stream::builders::InvokeModelWithBidirectionalStreamFluentBuilder::set_model_id):<br>required: **true**<br><p>The model ID or ARN of the model ID to use. Currently, only <code>amazon.nova-sonic-v1:0</code> is supported.</p><br>
    7         -
    ///   - [`body(EventStreamSender<InvokeModelWithBidirectionalStreamInput, InvokeModelWithBidirectionalStreamInputError>)`](crate::operation::invoke_model_with_bidirectional_stream::builders::InvokeModelWithBidirectionalStreamFluentBuilder::body) / [`set_body(EventStreamSender<InvokeModelWithBidirectionalStreamInput, InvokeModelWithBidirectionalStreamInputError>)`](crate::operation::invoke_model_with_bidirectional_stream::builders::InvokeModelWithBidirectionalStreamFluentBuilder::set_body):<br>required: **true**<br><p>The prompt and inference parameters in the format specified in the <code>BidirectionalInputPayloadPart</code> in the header. You must provide the body in JSON format. To see the format and content of the request and response bodies for different models, refer to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/api-methods-run.html">Run inference</a> in the Bedrock User Guide.</p><br>
    8         -
    /// - On success, responds with [`InvokeModelWithBidirectionalStreamOutput`](crate::operation::invoke_model_with_bidirectional_stream::InvokeModelWithBidirectionalStreamOutput) with field(s):
    9         -
    ///   - [`body(EventReceiver<InvokeModelWithBidirectionalStreamOutput, InvokeModelWithBidirectionalStreamOutputError>)`](crate::operation::invoke_model_with_bidirectional_stream::InvokeModelWithBidirectionalStreamOutput::body): <p>Streaming response from the model in the format specified by the <code>BidirectionalOutputPayloadPart</code> header.</p>
   10         -
    /// - On failure, responds with [`SdkError<InvokeModelWithBidirectionalStreamError>`](crate::operation::invoke_model_with_bidirectional_stream::InvokeModelWithBidirectionalStreamError)
   11         -
    pub fn invoke_model_with_bidirectional_stream(
   12         -
        &self,
   13         -
    ) -> crate::operation::invoke_model_with_bidirectional_stream::builders::InvokeModelWithBidirectionalStreamFluentBuilder {
   14         -
        crate::operation::invoke_model_with_bidirectional_stream::builders::InvokeModelWithBidirectionalStreamFluentBuilder::new(self.handle.clone())
   15         -
    }
   16         -
}