aws_sdk_ec2/client/delete_local_gateway_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 [`DeleteLocalGatewayRoute`](crate::operation::delete_local_gateway_route::builders::DeleteLocalGatewayRouteFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`destination_cidr_block(impl Into<String>)`](crate::operation::delete_local_gateway_route::builders::DeleteLocalGatewayRouteFluentBuilder::destination_cidr_block) / [`set_destination_cidr_block(Option<String>)`](crate::operation::delete_local_gateway_route::builders::DeleteLocalGatewayRouteFluentBuilder::set_destination_cidr_block):<br>required: **false**<br><p>The CIDR range for the route. This must match the CIDR for the route exactly.</p><br>
7 /// - [`local_gateway_route_table_id(impl Into<String>)`](crate::operation::delete_local_gateway_route::builders::DeleteLocalGatewayRouteFluentBuilder::local_gateway_route_table_id) / [`set_local_gateway_route_table_id(Option<String>)`](crate::operation::delete_local_gateway_route::builders::DeleteLocalGatewayRouteFluentBuilder::set_local_gateway_route_table_id):<br>required: **true**<br><p>The ID of the local gateway route table.</p><br>
8 /// - [`dry_run(bool)`](crate::operation::delete_local_gateway_route::builders::DeleteLocalGatewayRouteFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::delete_local_gateway_route::builders::DeleteLocalGatewayRouteFluentBuilder::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>
9 /// - [`destination_prefix_list_id(impl Into<String>)`](crate::operation::delete_local_gateway_route::builders::DeleteLocalGatewayRouteFluentBuilder::destination_prefix_list_id) / [`set_destination_prefix_list_id(Option<String>)`](crate::operation::delete_local_gateway_route::builders::DeleteLocalGatewayRouteFluentBuilder::set_destination_prefix_list_id):<br>required: **false**<br><p>Use a prefix list in place of <code>DestinationCidrBlock</code>. You cannot use <code>DestinationPrefixListId</code> and <code>DestinationCidrBlock</code> in the same request.</p><br>
10 /// - On success, responds with [`DeleteLocalGatewayRouteOutput`](crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteOutput) with field(s):
11 /// - [`route(Option<LocalGatewayRoute>)`](crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteOutput::route): <p>Information about the route.</p>
12 /// - On failure, responds with [`SdkError<DeleteLocalGatewayRouteError>`](crate::operation::delete_local_gateway_route::DeleteLocalGatewayRouteError)
13 pub fn delete_local_gateway_route(&self) -> crate::operation::delete_local_gateway_route::builders::DeleteLocalGatewayRouteFluentBuilder {
14 crate::operation::delete_local_gateway_route::builders::DeleteLocalGatewayRouteFluentBuilder::new(self.handle.clone())
15 }
16}