aws_sdk_ec2/client/
delete_client_vpn_route.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`DeleteClientVpnRoute`](crate::operation::delete_client_vpn_route::builders::DeleteClientVpnRouteFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`client_vpn_endpoint_id(impl Into<String>)`](crate::operation::delete_client_vpn_route::builders::DeleteClientVpnRouteFluentBuilder::client_vpn_endpoint_id) / [`set_client_vpn_endpoint_id(Option<String>)`](crate::operation::delete_client_vpn_route::builders::DeleteClientVpnRouteFluentBuilder::set_client_vpn_endpoint_id):<br>required: **true**<br><p>The ID of the Client VPN endpoint from which the route is to be deleted.</p><br>
7    ///   - [`target_vpc_subnet_id(impl Into<String>)`](crate::operation::delete_client_vpn_route::builders::DeleteClientVpnRouteFluentBuilder::target_vpc_subnet_id) / [`set_target_vpc_subnet_id(Option<String>)`](crate::operation::delete_client_vpn_route::builders::DeleteClientVpnRouteFluentBuilder::set_target_vpc_subnet_id):<br>required: **false**<br><p>The ID of the target subnet used by the route.</p><br>
8    ///   - [`destination_cidr_block(impl Into<String>)`](crate::operation::delete_client_vpn_route::builders::DeleteClientVpnRouteFluentBuilder::destination_cidr_block) / [`set_destination_cidr_block(Option<String>)`](crate::operation::delete_client_vpn_route::builders::DeleteClientVpnRouteFluentBuilder::set_destination_cidr_block):<br>required: **true**<br><p>The IPv4 address range, in CIDR notation, of the route to be deleted.</p><br>
9    ///   - [`dry_run(bool)`](crate::operation::delete_client_vpn_route::builders::DeleteClientVpnRouteFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::delete_client_vpn_route::builders::DeleteClientVpnRouteFluentBuilder::set_dry_run):<br>required: **false**<br><p>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 <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p><br>
10    /// - On success, responds with [`DeleteClientVpnRouteOutput`](crate::operation::delete_client_vpn_route::DeleteClientVpnRouteOutput) with field(s):
11    ///   - [`status(Option<ClientVpnRouteStatus>)`](crate::operation::delete_client_vpn_route::DeleteClientVpnRouteOutput::status): <p>The current state of the route.</p>
12    /// - On failure, responds with [`SdkError<DeleteClientVpnRouteError>`](crate::operation::delete_client_vpn_route::DeleteClientVpnRouteError)
13    pub fn delete_client_vpn_route(&self) -> crate::operation::delete_client_vpn_route::builders::DeleteClientVpnRouteFluentBuilder {
14        crate::operation::delete_client_vpn_route::builders::DeleteClientVpnRouteFluentBuilder::new(self.handle.clone())
15    }
16}