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
617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 | |