62 62 | config_override: crate::config::Builder,
|
63 63 | ) -> crate::client::customize::internal::BoxFuture<
|
64 64 | crate::client::customize::internal::SendResult<
|
65 65 | crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextOutput,
|
66 66 | crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError,
|
67 67 | >,
|
68 68 | > {
|
69 69 | ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
|
70 70 | }
|
71 71 | }
|
72 72 | impl GenerateDataKeyPairWithoutPlaintextFluentBuilder {
|
73 73 | /// Creates a new `GenerateDataKeyPairWithoutPlaintextFluentBuilder`.
|
74 74 | pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
|
75 75 | Self {
|
76 76 | handle,
|
77 77 | inner: ::std::default::Default::default(),
|
78 78 | config_override: ::std::option::Option::None,
|
79 79 | }
|
80 80 | }
|
81 81 | /// Access the GenerateDataKeyPairWithoutPlaintext as a reference.
|
82 82 | pub fn as_input(&self) -> &crate::operation::generate_data_key_pair_without_plaintext::builders::GenerateDataKeyPairWithoutPlaintextInputBuilder {
|
83 83 | &self.inner
|
84 84 | }
|
85 85 | /// Sends the request and returns the response.
|
86 86 | ///
|
87 87 | /// If an error occurs, an `SdkError` will be returned with additional details that
|
88 88 | /// can be matched against.
|
89 89 | ///
|
90 90 | /// By default, any retryable failures will be retried twice. Retry behavior
|
91 91 | /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
|
92 - | /// set when configuring the client.
|
92 + | /// set when configuring the client. Note: retries are enabled by default when using
|
93 + | /// `aws_config::load_from_env()` or when using `BehaviorVersion::v2025_01_17()` or later.
|
93 94 | pub async fn send(
|
94 95 | self,
|
95 96 | ) -> ::std::result::Result<
|
96 97 | crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextOutput,
|
97 98 | ::aws_smithy_runtime_api::client::result::SdkError<
|
98 99 | crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError,
|
99 100 | ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
|
100 101 | >,
|
101 102 | > {
|
102 103 | let input = self
|
103 104 | .inner
|
104 105 | .build()
|
105 106 | .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
|
106 107 | let runtime_plugins =
|
107 108 | crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintext::operation_runtime_plugins(
|
108 109 | self.handle.runtime_plugins.clone(),
|
109 110 | &self.handle.conf,
|
110 111 | self.config_override,
|
111 112 | );
|
112 113 | crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintext::orchestrate(&runtime_plugins, input).await
|
113 114 | }
|
114 115 |
|
115 116 | /// Consumes this builder, creating a customizable operation that can be modified before being sent.
|
116 117 | pub fn customize(
|
117 118 | self,
|
118 119 | ) -> crate::client::customize::CustomizableOperation<
|
119 120 | crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextOutput,
|
120 121 | crate::operation::generate_data_key_pair_without_plaintext::GenerateDataKeyPairWithoutPlaintextError,
|
121 122 | Self,
|
122 123 | > {
|