Struct aws_sdk_ec2::input::EnableVpcClassicLinkInput
source · #[non_exhaustive]pub struct EnableVpcClassicLinkInput { /* private fields */ }
Implementations§
source§impl EnableVpcClassicLinkInput
impl EnableVpcClassicLinkInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableVpcClassicLink, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<EnableVpcClassicLink, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<EnableVpcClassicLink
>
Examples found in repository?
src/client.rs (line 56515)
56501 56502 56503 56504 56505 56506 56507 56508 56509 56510 56511 56512 56513 56514 56515 56516 56517 56518 56519 56520 56521 56522 56523 56524 56525 56526 56527 56528 56529 56530 56531 56532 56533 56534 56535 56536 56537 56538 56539 56540 56541 56542 56543
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::EnableVpcClassicLink,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::EnableVpcClassicLinkError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::EnableVpcClassicLinkOutput,
aws_smithy_http::result::SdkError<crate::error::EnableVpcClassicLinkError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture EnableVpcClassicLinkInput
.
source§impl EnableVpcClassicLinkInput
impl EnableVpcClassicLinkInput
Trait Implementations§
source§impl Clone for EnableVpcClassicLinkInput
impl Clone for EnableVpcClassicLinkInput
source§fn clone(&self) -> EnableVpcClassicLinkInput
fn clone(&self) -> EnableVpcClassicLinkInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more