aws_sdk_ec2/client/create_route_table.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 [`CreateRouteTable`](crate::operation::create_route_table::builders::CreateRouteTableFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`tag_specifications(TagSpecification)`](crate::operation::create_route_table::builders::CreateRouteTableFluentBuilder::tag_specifications) / [`set_tag_specifications(Option<Vec::<TagSpecification>>)`](crate::operation::create_route_table::builders::CreateRouteTableFluentBuilder::set_tag_specifications):<br>required: **false**<br><p>The tags to assign to the route table.</p><br>
7 /// - [`client_token(impl Into<String>)`](crate::operation::create_route_table::builders::CreateRouteTableFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_route_table::builders::CreateRouteTableFluentBuilder::set_client_token):<br>required: **false**<br><p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">Ensuring idempotency</a>.</p><br>
8 /// - [`dry_run(bool)`](crate::operation::create_route_table::builders::CreateRouteTableFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_route_table::builders::CreateRouteTableFluentBuilder::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 /// - [`vpc_id(impl Into<String>)`](crate::operation::create_route_table::builders::CreateRouteTableFluentBuilder::vpc_id) / [`set_vpc_id(Option<String>)`](crate::operation::create_route_table::builders::CreateRouteTableFluentBuilder::set_vpc_id):<br>required: **true**<br><p>The ID of the VPC.</p><br>
10 /// - On success, responds with [`CreateRouteTableOutput`](crate::operation::create_route_table::CreateRouteTableOutput) with field(s):
11 /// - [`route_table(Option<RouteTable>)`](crate::operation::create_route_table::CreateRouteTableOutput::route_table): <p>Information about the route table.</p>
12 /// - [`client_token(Option<String>)`](crate::operation::create_route_table::CreateRouteTableOutput::client_token): <p>Unique, case-sensitive identifier to ensure the idempotency of the request. Only returned if a client token was provided in the request.</p>
13 /// - On failure, responds with [`SdkError<CreateRouteTableError>`](crate::operation::create_route_table::CreateRouteTableError)
14 pub fn create_route_table(&self) -> crate::operation::create_route_table::builders::CreateRouteTableFluentBuilder {
15 crate::operation::create_route_table::builders::CreateRouteTableFluentBuilder::new(self.handle.clone())
16 }
17}