create_route_table
async
¶
create_route_table(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
12143 12144 12145 12146 12147 12148 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174 12175 12176 12177 12178 12179 12180 12181 12182 12183 12184 12185 12186 12187 12188 12189 12190 12191 12192 12193 12194 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 | |