create_connection
¶
create_connection(
bandwidth: ConnectionBandwidth,
attach_point: AttachPoint,
environment_id: EnvironmentId,
*,
config_overrides: Optional[InterconnectClientConfig] = None,
description: Optional[ConnectionDescription] = None,
remote_account: Optional[RemoteAccountIdentifier] = None,
tags: Optional[TagMap] = None,
client_token: Optional[str] = None,
) -> CreateConnectionResponse
Initiates the process to create a Connection across the specified Environment.
The Environment dictates the specified partner and location to which the other end of the connection should attach. You can see a list of the available Environments by calling ListEnvironments
The Attach Point specifies where within the AWS Network your connection will logically connect.
After a successful call to this method, the resulting Connection will return an Activation Key which will need to be brought to the specific partner's portal to confirm the Connection on both sides. (See Environment$activationPageUrl for a direct link to the partner portal).
Parameters:
-
description(Optional[ConnectionDescription], default:None) –A description to distinguish this Connection.
-
bandwidth(ConnectionBandwidth) –The desired bandwidth of the requested Connection
-
attach_point(AttachPoint) –The Attach Point to which the connection should be associated."
-
environment_id(EnvironmentId) –The identifier of the Environment across which this Connection should be created.
The available Environment objects can be determined using ListEnvironments.
-
remote_account(Optional[RemoteAccountIdentifier], default:None) –Account and/or principal identifying information that can be verified by the partner of this specific Environment.
-
tags(Optional[TagMap], default:None) –The tag to associate with the resulting Connection.
-
client_token(Optional[str], default:None) –Idempotency token used for the request.
Raises:
-
AccessDeniedException–The calling principal is not allowed to access the specified resource, or the resource does not exist.
-
InterconnectClientException–The request was denied due to incorrect client supplied parameters.
-
InterconnectServerException–The request resulted in an exception internal to the service.
-
InterconnectValidationException–The input fails to satisfy the constraints specified.
-
ResourceNotFoundException–The request specifies a resource that does not exist on the server.
-
ServiceQuotaExceededException–The requested operation would result in the calling principal exceeding their allotted quota.
-
ThrottlingException–The request was denied due to request throttling.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Create Connection on specific environment
>>> client.create_connection(bandwidth='1Gbps', environment_id='mce-aws-acme-1', remote_account={'identifier': 'PartnerAccountDetails'}, attach_point={'directConnectGateway': '90392BE3-219C-47FD-BBA5-03DF76D2542A'})
Source code in docs_src/capo_interconnect/_services/interconnect.py
701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 | |