AWS SDK

AWS SDK

rev. 5673a7a38b4a4a6973351c005d572863803729fe (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.6"
          17  +
version = "1.8.7"
   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.6"
          31  +
version = "1.8.7"

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.6"
           4  +
version = "1.8.7"
    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 +349,359 @@
  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  +
  320    330   
#[derive(Debug)]
  321    331   
enum ErrorKind {
  322    332   
    /// Field required to build the target type is missing.
  323    333   
    MissingRequiredField(&'static str),
  324    334   
}
  325    335   
  326    336   
/// Error constructing [`Identity`].
  327    337   
#[derive(Debug)]
  328    338   
pub struct BuildError {
  329    339   
    kind: ErrorKind,

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

@@ -23,23 +123,123 @@
   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.6"
          53  +
version = "1.8.7"
   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.6"
         105  +
version = "1.8.7"
  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-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.6"
          25  +
version = "1.8.7"
   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

@@ -17,17 +69,69 @@
   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     42   
version = "1.8.6"
   43     43   
   44     44   
[dependencies.aws-smithy-runtime-api]
   45     45   
path = "../aws-smithy-runtime-api"
   46     46   
features = ["client"]
   47         -
version = "1.8.6"
          47  +
version = "1.8.7"
   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.6"
          66  +
version = "1.8.7"
   67     67   
   68     68   
[build-dependencies]
   69     69   
rustc_version = "0.4.0"

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

@@ -1,1 +95,159 @@
   16     16   
targets = ["x86_64-unknown-linux-gnu"]
   17     17   
[dependencies.aws-credential-types]
   18     18   
path = "../aws-credential-types"
   19     19   
version = "1.2.5"
   20     20   
   21     21   
[dependencies.aws-runtime]
   22     22   
path = "../aws-runtime"
   23     23   
features = ["event-stream"]
   24     24   
version = "1.5.10"
   25     25   
          26  +
[dependencies.aws-sigv4]
          27  +
path = "../aws-sigv4"
          28  +
version = "1.3.4"
          29  +
   26     30   
[dependencies.aws-smithy-async]
   27     31   
path = "../aws-smithy-async"
   28     32   
version = "1.2.5"
   29     33   
   30     34   
[dependencies.aws-smithy-eventstream]
   31     35   
path = "../aws-smithy-eventstream"
   32     36   
version = "0.60.10"
   33     37   
   34     38   
[dependencies.aws-smithy-http]
   35     39   
path = "../aws-smithy-http"
   36     40   
features = ["event-stream"]
   37     41   
version = "0.62.3"
   38     42   
   39     43   
[dependencies.aws-smithy-json]
   40     44   
path = "../aws-smithy-json"
   41     45   
version = "0.61.4"
   42     46   
   43     47   
[dependencies.aws-smithy-runtime]
   44     48   
path = "../aws-smithy-runtime"
   45         -
features = ["client"]
          49  +
features = ["client", "http-auth"]
   46     50   
version = "1.8.6"
   47     51   
   48     52   
[dependencies.aws-smithy-runtime-api]
   49     53   
path = "../aws-smithy-runtime-api"
   50         -
features = ["client", "http-02x"]
   51         -
version = "1.8.6"
          54  +
features = ["client", "http-02x", "http-auth"]
          55  +
version = "1.8.7"
   52     56   
   53     57   
[dependencies.aws-smithy-types]
   54     58   
path = "../aws-smithy-types"
          59  +
features = ["http-body-0-4-x"]
   55     60   
version = "1.3.2"
   56     61   
   57     62   
[dependencies.aws-types]
   58     63   
path = "../aws-types"
   59     64   
version = "1.3.8"
   60     65   
   61     66   
[dependencies.bytes]
   62     67   
version = "1.4.0"
   63     68   
   64     69   
[dependencies.fastrand]
   65     70   
version = "2.0.0"
   66     71   
   67     72   
[dependencies.http]
   68     73   
version = "0.2.9"
   69     74   
          75  +
[dependencies.hyper]
          76  +
version = "0.14.26"
          77  +
features = ["stream"]
          78  +
   70     79   
[dependencies.regex-lite]
   71     80   
version = "0.1.5"
   72     81   
   73     82   
[dependencies.tracing]
   74     83   
version = "0.1"
   75     84   
[dev-dependencies.aws-config]
   76     85   
path = "../aws-config"
   77     86   
version = "1.8.4"
   78     87   
   79     88   
[dev-dependencies.aws-credential-types]
   80     89   
path = "../aws-credential-types"
   81     90   
features = ["test-util"]
   82     91   
version = "1.2.5"
   83     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"
         143  +
   84    144   
[dev-dependencies.tokio]
   85    145   
version = "1.23.1"
   86    146   
features = ["macros", "test-util", "rt-multi-thread"]
   87    147   
         148  +
[dev-dependencies.tracing-subscriber]
         149  +
version = "0.3.16"
         150  +
features = ["env-filter", "json"]
         151  +
   88    152   
[features]
   89    153   
behavior-version-latest = []
   90    154   
rustls = ["aws-smithy-runtime/tls-rustls"]
   91    155   
default-https-client = ["aws-smithy-runtime/default-https-client"]
   92    156   
rt-tokio = ["aws-smithy-async/rt-tokio", "aws-smithy-types/rt-tokio"]
   93    157   
test-util = ["aws-credential-types/test-util", "aws-smithy-runtime/test-util"]
   94    158   
gated-tests = []
   95    159   
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 [`Converse`](crate::operation::converse) operation has
   63         -
/// a [`Client::converse`], function which returns a builder for that operation.
          62  +
/// For example, the [`ApplyGuardrail`](crate::operation::apply_guardrail) operation has
          63  +
/// a [`Client::apply_guardrail`], 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.converse()
   69         -
///     .model_id("example")
          68  +
/// let result = client.apply_guardrail()
          69  +
///     .guardrail_identifier("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 +0,182 @@
  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  +
  139    141   
mod converse;
  140    142   
  141    143   
mod converse_stream;
  142    144   
  143    145   
/// Operation customization and supporting types.
  144    146   
///
  145    147   
/// The underlying HTTP requests made during an operation can be customized
  146    148   
/// by calling the `customize()` method on the builder returned from a client
  147    149   
/// operation call. For example, this can be used to add an additional HTTP header:
  148    150   
///
  149    151   
/// ```ignore
  150    152   
/// # async fn wrapper() -> ::std::result::Result<(), aws_sdk_bedrockruntime::Error> {
  151    153   
/// # let client: aws_sdk_bedrockruntime::Client = unimplemented!();
  152    154   
/// use ::http::header::{HeaderName, HeaderValue};
  153    155   
///
  154         -
/// let result = client.converse()
         156  +
/// let result = client.apply_guardrail()
  155    157   
///     .customize()
  156    158   
///     .mutate_request(|req| {
  157    159   
///         // Add `x-example-header` with value
  158    160   
///         req.headers_mut()
  159    161   
///             .insert(
  160    162   
///                 HeaderName::from_static("x-example-header"),
  161    163   
///                 HeaderValue::from_static("1"),
  162    164   
///             );
  163    165   
///     })
  164    166   
///     .send()
  165    167   
///     .await;
  166    168   
/// # }
  167    169   
/// ```
  168    170   
pub mod customize;
  169    171   
         172  +
mod get_async_invoke;
         173  +
  170    174   
mod invoke_model;
  171    175   
         176  +
mod invoke_model_with_bidirectional_stream;
         177  +
  172    178   
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

@@ -0,1 +0,22 @@
           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 +23,29 @@
    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>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>
           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>
   13     17   
    /// - On success, responds with [`ConverseOutput`](crate::operation::converse::ConverseOutput) with field(s):
   14     18   
    ///   - [`output(Option<ConverseOutput>)`](crate::operation::converse::ConverseOutput::output): <p>The result from the call to <code>Converse</code>.</p>
   15     19   
    ///   - [`stop_reason(StopReason)`](crate::operation::converse::ConverseOutput::stop_reason): <p>The reason why the model stopped generating output.</p>
   16     20   
    ///   - [`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>
   17     21   
    ///   - [`metrics(Option<ConverseMetrics>)`](crate::operation::converse::ConverseOutput::metrics): <p>Metrics for the call to <code>Converse</code>.</p>
   18     22   
    ///   - [`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>
   19     25   
    /// - On failure, responds with [`SdkError<ConverseError>`](crate::operation::converse::ConverseError)
   20     26   
    pub fn converse(&self) -> crate::operation::converse::builders::ConverseFluentBuilder {
   21     27   
        crate::operation::converse::builders::ConverseFluentBuilder::new(self.handle.clone())
   22     28   
    }
   23     29   
}

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

@@ -1,1 +19,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 [`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>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>
           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>
   13     17   
    /// - On success, responds with [`ConverseStreamOutput`](crate::operation::converse_stream::ConverseStreamOutput) with field(s):
   14     18   
    ///   - [`stream(EventReceiver<ConverseStreamOutput, ConverseStreamOutputError>)`](crate::operation::converse_stream::ConverseStreamOutput::stream): <p>The output stream that the model generated.</p>
   15     19   
    /// - On failure, responds with [`SdkError<ConverseStreamError>`](crate::operation::converse_stream::ConverseStreamError)
   16     20   
    pub fn converse_stream(&self) -> crate::operation::converse_stream::builders::ConverseStreamFluentBuilder {
   17     21   
        crate::operation::converse_stream::builders::ConverseStreamFluentBuilder::new(self.handle.clone())
   18     22   
    }
   19     23   
}

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

@@ -0,1 +0,21 @@
           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 +20,22 @@
    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: **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>
           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>
    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 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>
           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>
   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>
   13     14   
    /// - On success, responds with [`InvokeModelOutput`](crate::operation::invoke_model::InvokeModelOutput) with field(s):
   14     15   
    ///   - [`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>
   15     16   
    ///   - [`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>
   16     18   
    /// - On failure, responds with [`SdkError<InvokeModelError>`](crate::operation::invoke_model::InvokeModelError)
   17     19   
    pub fn invoke_model(&self) -> crate::operation::invoke_model::builders::InvokeModelFluentBuilder {
   18     20   
        crate::operation::invoke_model::builders::InvokeModelFluentBuilder::new(self.handle.clone())
   19     21   
    }
   20     22   
}

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

@@ -0,1 +0,16 @@
           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  +
}

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

@@ -1,1 +22,24 @@
    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 [`InvokeModelWithResponseStream`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder) operation.
    4      4   
    ///
    5      5   
    /// - The fluent builder is configurable:
    6         -
    ///   - [`body(Blob)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::body) / [`set_body(Option<Blob>)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::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_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::content_type) / [`set_content_type(Option<String>)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::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>
           6  +
    ///   - [`body(Blob)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::body) / [`set_body(Option<Blob>)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::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_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::content_type) / [`set_content_type(Option<String>)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::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>
    8      8   
    ///   - [`accept(impl Into<String>)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::accept) / [`set_accept(Option<String>)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::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_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::model_id) / [`set_model_id(Option<String>)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::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>
           9  +
    ///   - [`model_id(impl Into<String>)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::model_id) / [`set_model_id(Option<String>)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::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>
   10     10   
    ///   - [`trace(Trace)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::trace) / [`set_trace(Option<Trace>)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::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_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::guardrail_identifier) / [`set_guardrail_identifier(Option<String>)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::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 is 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_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::guardrail_version) / [`set_guardrail_version(Option<String>)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::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_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::performance_config_latency) / [`set_performance_config_latency(Option<PerformanceConfigLatency>)`](crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::set_performance_config_latency):<br>required: **false**<br><p>Model performance settings for the request.</p><br>
   13     14   
    /// - On success, responds with [`InvokeModelWithResponseStreamOutput`](crate::operation::invoke_model_with_response_stream::InvokeModelWithResponseStreamOutput) with field(s):
   14     15   
    ///   - [`body(EventReceiver<ResponseStream, ResponseStreamError>)`](crate::operation::invoke_model_with_response_stream::InvokeModelWithResponseStreamOutput::body): <p>Inference response from the model in the format specified by the <code>contentType</code> header. To see the format and content of this field for different models, refer to <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-parameters.html">Inference parameters</a>.</p>
   15     16   
    ///   - [`content_type(String)`](crate::operation::invoke_model_with_response_stream::InvokeModelWithResponseStreamOutput::content_type): <p>The MIME type of the inference result.</p>
          17  +
    ///   - [`performance_config_latency(Option<PerformanceConfigLatency>)`](crate::operation::invoke_model_with_response_stream::InvokeModelWithResponseStreamOutput::performance_config_latency): <p>Model performance settings for the request.</p>
   16     18   
    /// - On failure, responds with [`SdkError<InvokeModelWithResponseStreamError>`](crate::operation::invoke_model_with_response_stream::InvokeModelWithResponseStreamError)
   17     19   
    pub fn invoke_model_with_response_stream(
   18     20   
        &self,
   19     21   
    ) -> crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder {
   20     22   
        crate::operation::invoke_model_with_response_stream::builders::InvokeModelWithResponseStreamFluentBuilder::new(self.handle.clone())
   21     23   
    }
   22     24   
}