Struct aws_sdk_ec2::client::fluent_builders::ReplaceRouteTableAssociation [−][src]
pub struct ReplaceRouteTableAssociation<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to ReplaceRouteTableAssociation
.
Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation completes, the subnet or gateway uses the routes in the new route table. For more information about route tables, see Route tables in the Amazon Virtual Private Cloud User Guide.
You can also use this operation to change which table is the main route table in the VPC. Specify the main route table's association ID and the route table ID of the new main route table.
Implementations
impl<C, M, R> ReplaceRouteTableAssociation<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ReplaceRouteTableAssociation<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(
self
) -> Result<ReplaceRouteTableAssociationOutput, SdkError<ReplaceRouteTableAssociationError>> where
R::Policy: SmithyRetryPolicy<ReplaceRouteTableAssociationInputOperationOutputAlias, ReplaceRouteTableAssociationOutput, ReplaceRouteTableAssociationError, ReplaceRouteTableAssociationInputOperationRetryAlias>,
pub async fn send(
self
) -> Result<ReplaceRouteTableAssociationOutput, SdkError<ReplaceRouteTableAssociationError>> where
R::Policy: SmithyRetryPolicy<ReplaceRouteTableAssociationInputOperationOutputAlias, ReplaceRouteTableAssociationOutput, ReplaceRouteTableAssociationError, ReplaceRouteTableAssociationInputOperationRetryAlias>,
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, which can be set when configuring the client.
The association ID.
The association ID.
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
.
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
.
The ID of the new route table to associate with the subnet.
The ID of the new route table to associate with the subnet.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for ReplaceRouteTableAssociation<C, M, R>
impl<C, M, R> Send for ReplaceRouteTableAssociation<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Sync for ReplaceRouteTableAssociation<C, M, R> where
C: Send + Sync,
M: Send + Sync,
R: Send + Sync,
impl<C, M, R> Unpin for ReplaceRouteTableAssociation<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for ReplaceRouteTableAssociation<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more