create_transit_gateway_peering_attachment
¶
create_transit_gateway_peering_attachment(
*,
config_overrides: Optional[EC2ClientConfig] = None,
transit_gateway_id: Optional[TransitGatewayId] = None,
peer_transit_gateway_id: Optional[TransitAssociationGatewayId] = None,
peer_account_id: Optional[String] = None,
peer_region: Optional[String] = None,
options: Optional[CreateTransitGatewayPeeringAttachmentRequestOptions] = None,
tag_specifications: Optional[TagSpecificationList] = None,
dry_run: Optional[Boolean] = None,
) -> CreateTransitGatewayPeeringAttachmentResult
Requests a transit gateway peering attachment between the specified transit gateway (requester) and a peer transit gateway (accepter). The peer transit gateway can be in your account or a different Amazon Web Services account.
After you create the peering attachment, the owner of the accepter transit gateway must accept the attachment request.
Parameters:
-
transit_gateway_id(Optional[TransitGatewayId], default:None) –The ID of the transit gateway.
-
peer_transit_gateway_id(Optional[TransitAssociationGatewayId], default:None) –The ID of the peer transit gateway with which to create the peering attachment.
-
peer_account_id(Optional[String], default:None) –The ID of the Amazon Web Services account that owns the peer transit gateway.
-
peer_region(Optional[String], default:None) –The Region where the peer transit gateway is located.
-
options(Optional[CreateTransitGatewayPeeringAttachmentRequestOptions], default:None) –Requests a transit gateway peering attachment.
-
tag_specifications(Optional[TagSpecificationList], default:None) –The tags to apply to the transit gateway peering attachment.
-
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
13548 13549 13550 13551 13552 13553 13554 13555 13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 13567 13568 13569 13570 13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 13582 13583 13584 13585 13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 13605 13606 13607 13608 13609 13610 13611 13612 13613 13614 13615 13616 13617 13618 13619 13620 13621 13622 | |