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