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