create_transit_gateway_prefix_list_reference
async
¶
create_transit_gateway_prefix_list_reference(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
13913 13914 13915 13916 13917 13918 13919 13920 13921 13922 13923 13924 13925 13926 13927 13928 13929 13930 13931 13932 13933 13934 13935 13936 13937 13938 13939 13940 13941 13942 13943 13944 13945 13946 13947 13948 13949 13950 13951 13952 13953 13954 13955 13956 13957 13958 13959 13960 13961 13962 13963 13964 13965 13966 13967 13968 13969 13970 13971 13972 13973 13974 13975 13976 13977 13978 13979 | |