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