Struct aws_sdk_ec2::input::AssociateRouteTableInput
source · #[non_exhaustive]pub struct AssociateRouteTableInput { /* private fields */ }
Implementations§
source§impl AssociateRouteTableInput
impl AssociateRouteTableInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssociateRouteTable, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<AssociateRouteTable, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<AssociateRouteTable
>
Examples found in repository?
src/client.rs (line 10622)
10608 10609 10610 10611 10612 10613 10614 10615 10616 10617 10618 10619 10620 10621 10622 10623 10624 10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 10643 10644 10645 10646 10647 10648 10649 10650
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::AssociateRouteTable,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::AssociateRouteTableError>,
> {
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::AssociateRouteTableOutput,
aws_smithy_http::result::SdkError<crate::error::AssociateRouteTableError>,
> {
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 AssociateRouteTableInput
.
source§impl AssociateRouteTableInput
impl AssociateRouteTableInput
sourcepub fn dry_run(&self) -> Option<bool>
pub fn dry_run(&self) -> Option<bool>
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn route_table_id(&self) -> Option<&str>
pub fn route_table_id(&self) -> Option<&str>
The ID of the route table.
sourcepub fn gateway_id(&self) -> Option<&str>
pub fn gateway_id(&self) -> Option<&str>
The ID of the internet gateway or virtual private gateway.
Trait Implementations§
source§impl Clone for AssociateRouteTableInput
impl Clone for AssociateRouteTableInput
source§fn clone(&self) -> AssociateRouteTableInput
fn clone(&self) -> AssociateRouteTableInput
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