create_transit_gateway_peering_attachment
async
¶
create_transit_gateway_peering_attachment(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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/async_ec2.py
13712 13713 13714 13715 13716 13717 13718 13719 13720 13721 13722 13723 13724 13725 13726 13727 13728 13729 13730 13731 13732 13733 13734 13735 13736 13737 13738 13739 13740 13741 13742 13743 13744 13745 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 | |