create_transit_gateway_prefix_list_reference
¶
create_transit_gateway_prefix_list_reference(
*,
config_overrides: Optional[EC2ClientConfig] = None,
transit_gateway_route_table_id: Optional[TransitGatewayRouteTableId] = None,
prefix_list_id: Optional[PrefixListResourceId] = None,
transit_gateway_attachment_id: Optional[TransitGatewayAttachmentId] = None,
blackhole: Optional[Boolean] = None,
dry_run: Optional[Boolean] = None,
) -> CreateTransitGatewayPrefixListReferenceResult
Creates a reference (route) to a prefix list in a specified transit gateway route table.
Parameters:
-
transit_gateway_route_table_id(Optional[TransitGatewayRouteTableId], default:None) –The ID of the transit gateway route table.
-
prefix_list_id(Optional[PrefixListResourceId], default:None) –The ID of the prefix list that is used for destination matches.
-
transit_gateway_attachment_id(Optional[TransitGatewayAttachmentId], default:None) –The ID of the attachment to which traffic is routed.
-
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
13746 13747 13748 13749 13750 13751 13752 13753 13754 13755 13756 13757 13758 13759 13760 13761 13762 13763 13764 13765 13766 13767 13768 13769 13770 13771 13772 13773 13774 13775 13776 13777 13778 13779 13780 13781 13782 13783 13784 13785 13786 13787 13788 13789 13790 13791 13792 13793 13794 13795 13796 13797 13798 13799 13800 13801 13802 13803 13804 13805 13806 13807 13808 13809 13810 13811 | |