create_route_table
¶
create_route_table(
*,
config_overrides: Optional[EC2ClientConfig] = None,
tag_specifications: Optional[TagSpecificationList] = None,
client_token: Optional[String] = None,
dry_run: Optional[Boolean] = None,
vpc_id: Optional[VpcId] = None,
) -> CreateRouteTableResult
Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.
For more information, see Route tables in the Amazon VPC User Guide.
Parameters:
-
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to assign to the route table.
-
client_token(Optional[String], default:None) –Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see Ensuring idempotency.
-
dry_run(Optional[Boolean], default:None) –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 isUnauthorizedOperation. -
vpc_id(Optional[VpcId], default:None) –The ID of the VPC.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To create a route table This example creates a route table for the specified VPC.
Source code in docs_src/capo_ec2/_services/ec2.py
12000 12001 12002 12003 12004 12005 12006 12007 12008 12009 12010 12011 12012 12013 12014 12015 12016 12017 12018 12019 12020 12021 12022 12023 12024 12025 12026 12027 12028 12029 12030 12031 12032 12033 12034 12035 12036 12037 12038 12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 | |