aws_sdk_ec2/client/delete_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 [`DeleteRoute`](crate::operation::delete_route::builders::DeleteRouteFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`destination_prefix_list_id(impl Into<String>)`](crate::operation::delete_route::builders::DeleteRouteFluentBuilder::destination_prefix_list_id) / [`set_destination_prefix_list_id(Option<String>)`](crate::operation::delete_route::builders::DeleteRouteFluentBuilder::set_destination_prefix_list_id):<br>required: **false**<br><p>The ID of the prefix list for the route.</p><br>
7 /// - [`dry_run(bool)`](crate::operation::delete_route::builders::DeleteRouteFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::delete_route::builders::DeleteRouteFluentBuilder::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>
8 /// - [`route_table_id(impl Into<String>)`](crate::operation::delete_route::builders::DeleteRouteFluentBuilder::route_table_id) / [`set_route_table_id(Option<String>)`](crate::operation::delete_route::builders::DeleteRouteFluentBuilder::set_route_table_id):<br>required: **true**<br><p>The ID of the route table.</p><br>
9 /// - [`destination_cidr_block(impl Into<String>)`](crate::operation::delete_route::builders::DeleteRouteFluentBuilder::destination_cidr_block) / [`set_destination_cidr_block(Option<String>)`](crate::operation::delete_route::builders::DeleteRouteFluentBuilder::set_destination_cidr_block):<br>required: **false**<br><p>The IPv4 CIDR range for the route. The value you specify must match the CIDR for the route exactly.</p><br>
10 /// - [`destination_ipv6_cidr_block(impl Into<String>)`](crate::operation::delete_route::builders::DeleteRouteFluentBuilder::destination_ipv6_cidr_block) / [`set_destination_ipv6_cidr_block(Option<String>)`](crate::operation::delete_route::builders::DeleteRouteFluentBuilder::set_destination_ipv6_cidr_block):<br>required: **false**<br><p>The IPv6 CIDR range for the route. The value you specify must match the CIDR for the route exactly.</p><br>
11 /// - On success, responds with [`DeleteRouteOutput`](crate::operation::delete_route::DeleteRouteOutput)
12 /// - On failure, responds with [`SdkError<DeleteRouteError>`](crate::operation::delete_route::DeleteRouteError)
13 pub fn delete_route(&self) -> crate::operation::delete_route::builders::DeleteRouteFluentBuilder {
14 crate::operation::delete_route::builders::DeleteRouteFluentBuilder::new(self.handle.clone())
15 }
16}