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