create_transit_gateway_route
¶
create_transit_gateway_route(
*,
config_overrides: Optional[EC2ClientConfig] = None,
destination_cidr_block: Optional[String] = None,
transit_gateway_route_table_id: Optional[TransitGatewayRouteTableId] = None,
transit_gateway_attachment_id: Optional[TransitGatewayAttachmentId] = None,
blackhole: Optional[Boolean] = None,
dry_run: Optional[Boolean] = None,
) -> CreateTransitGatewayRouteResult
Creates a static route for the specified transit gateway route table.
Parameters:
-
destination_cidr_block(Optional[String], default:None) –The CIDR range used for destination matches. Routing decisions are based on the most specific match.
-
transit_gateway_route_table_id(Optional[TransitGatewayRouteTableId], default:None) –The ID of the transit gateway route table.
-
transit_gateway_attachment_id(Optional[TransitGatewayAttachmentId], default:None) –The ID of the attachment.
-
blackhole(Optional[Boolean], default:None) –Indicates whether to drop traffic that matches this route.
-
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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/ec2.py
13813 13814 13815 13816 13817 13818 13819 13820 13821 13822 13823 13824 13825 13826 13827 13828 13829 13830 13831 13832 13833 13834 13835 13836 13837 13838 13839 13840 13841 13842 13843 13844 13845 13846 13847 13848 13849 13850 13851 13852 13853 13854 13855 13856 13857 13858 13859 13860 13861 13862 13863 13864 13865 13866 13867 13868 13869 13870 13871 13872 13873 13874 13875 | |