create_transit_gateway_connect_peer
async
¶
create_transit_gateway_connect_peer(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
transit_gateway_attachment_id: Optional[TransitGatewayAttachmentId] = None,
transit_gateway_address: Optional[String] = None,
peer_address: Optional[String] = None,
bgp_options: Optional[TransitGatewayConnectRequestBgpOptions] = None,
inside_cidr_blocks: Optional[InsideCidrBlocksStringList] = None,
tag_specifications: Optional[TagSpecificationList] = None,
dry_run: Optional[Boolean] = None,
) -> CreateTransitGatewayConnectPeerResult
Creates a Connect peer for a specified transit gateway Connect attachment between a transit gateway and an appliance.
The peer address and transit gateway address must be the same IP address family (IPv4 or IPv6).
For more information, see Connect peers in the Amazon Web Services Transit Gateways Guide.
Parameters:
-
transit_gateway_attachment_id(Optional[TransitGatewayAttachmentId], default:None) –The ID of the Connect attachment.
-
transit_gateway_address(Optional[String], default:None) –The peer IP address (GRE outer IP address) on the transit gateway side of the Connect peer, which must be specified from a transit gateway CIDR block. If not specified, Amazon automatically assigns the first available IP address from the transit gateway CIDR block.
-
peer_address(Optional[String], default:None) –The peer IP address (GRE outer IP address) on the appliance side of the Connect peer.
-
bgp_options(Optional[TransitGatewayConnectRequestBgpOptions], default:None) –The BGP options for the Connect peer.
-
inside_cidr_blocks(Optional[InsideCidrBlocksStringList], default:None) –The range of inside IP addresses that are used for BGP peering. You must specify a size /29 IPv4 CIDR block from the
169.254.0.0/16range. The first address from the range must be configured on the appliance as the BGP IP address. You can also optionally specify a size /125 IPv6 CIDR block from thefd00::/8range. -
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to apply to the Connect peer.
-
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
13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412 13413 13414 13415 13416 13417 13418 13419 13420 13421 13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441 13442 13443 13444 13445 13446 13447 13448 13449 13450 13451 13452 13453 13454 13455 13456 13457 13458 13459 13460 13461 13462 13463 13464 13465 13466 13467 13468 | |