create_transit_gateway_connect_peer
¶
create_transit_gateway_connect_peer(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
13233 13234 13235 13236 13237 13238 13239 13240 13241 13242 13243 13244 13245 13246 13247 13248 13249 13250 13251 13252 13253 13254 13255 13256 13257 13258 13259 13260 13261 13262 13263 13264 13265 13266 13267 13268 13269 13270 13271 13272 13273 13274 13275 13276 13277 13278 13279 13280 13281 13282 13283 13284 13285 13286 13287 13288 13289 13290 13291 13292 13293 13294 13295 13296 13297 13298 13299 13300 13301 13302 13303 13304 13305 13306 13307 | |