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