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