45 45 | config_override: crate::config::Builder,
|
46 46 | ) -> crate::client::customize::internal::BoxFuture<
|
47 47 | crate::client::customize::internal::SendResult<
|
48 48 | crate::operation::streaming_operation_with_optional_data::StreamingOperationWithOptionalDataOutput,
|
49 49 | crate::operation::streaming_operation_with_optional_data::StreamingOperationWithOptionalDataError,
|
50 50 | >,
|
51 51 | > {
|
52 52 | ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
|
53 53 | }
|
54 54 | }
|
55 55 | impl StreamingOperationWithOptionalDataFluentBuilder {
|
56 56 | /// Creates a new `StreamingOperationWithOptionalDataFluentBuilder`.
|
57 57 | pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
|
58 58 | Self {
|
59 59 | handle,
|
60 60 | inner: ::std::default::Default::default(),
|
61 61 | config_override: ::std::option::Option::None,
|
62 62 | }
|
63 63 | }
|
64 64 | /// Access the StreamingOperationWithOptionalData as a reference.
|
65 65 | pub fn as_input(&self) -> &crate::operation::streaming_operation_with_optional_data::builders::StreamingOperationWithOptionalDataInputBuilder {
|
66 66 | &self.inner
|
67 67 | }
|
68 68 | /// Sends the request and returns the response.
|
69 69 | ///
|
70 70 | /// If an error occurs, an `SdkError` will be returned with additional details that
|
71 71 | /// can be matched against.
|
72 72 | ///
|
73 73 | /// By default, any retryable failures will be retried twice. Retry behavior
|
74 74 | /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
|
75 - | /// set when configuring the client.
|
75 + | /// set when configuring the client. Note: retries are enabled by default when using
|
76 + | /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
|
76 77 | pub async fn send(
|
77 78 | self,
|
78 79 | ) -> ::std::result::Result<
|
79 80 | crate::operation::streaming_operation_with_optional_data::StreamingOperationWithOptionalDataOutput,
|
80 81 | ::aws_smithy_runtime_api::client::result::SdkError<
|
81 82 | crate::operation::streaming_operation_with_optional_data::StreamingOperationWithOptionalDataError,
|
82 83 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
83 84 | >,
|
84 85 | > {
|
85 86 | let input = self
|
86 87 | .inner
|
87 88 | .build()
|
88 89 | .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
|
89 90 | let runtime_plugins = crate::operation::streaming_operation_with_optional_data::StreamingOperationWithOptionalData::operation_runtime_plugins(
|
90 91 | self.handle.runtime_plugins.clone(),
|
91 92 | &self.handle.conf,
|
92 93 | self.config_override,
|
93 94 | );
|
94 95 | let mut output =
|
95 96 | crate::operation::streaming_operation_with_optional_data::StreamingOperationWithOptionalData::orchestrate(&runtime_plugins, input)
|
96 97 | .await?;
|
97 98 |
|
98 99 | // Converts any error encountered beyond this point into an `SdkError` response error
|
99 100 | // with an `HttpResponse`. However, since we have already exited the `orchestrate`
|
100 101 | // function, the original `HttpResponse` is no longer available and cannot be restored.
|
101 102 | // This means that header information from the original response has been lost.
|
102 103 | //
|
103 104 | // Note that the response body would have been consumed by the deserializer
|
104 105 | // regardless, even if the initial message was hypothetically processed during
|
105 106 | // the orchestrator's deserialization phase but later resulted in an error.
|