Amazon.DirectConnect.AmazonDirectConnectClient.CreateBGPPeer C# (CSharp) Method

CreateBGPPeer() public method

Creates a new BGP peer on a specified virtual interface. The BGP peer cannot be in the same address family (IPv4/IPv6) of an existing BGP peer on the virtual interface.

You must create a BGP peer for the corresponding address family in order to access AWS resources that also use that address family.

When creating a IPv6 BGP peer, the Amazon address and customer address fields must be left blank. IPv6 addresses are automatically assigned from Amazon's pool of IPv6 addresses; you cannot specify custom IPv6 addresses.

For a public virtual interface, the Autonomous System Number (ASN) must be private or already whitelisted for the virtual interface.

/// The API was called with invalid parameters. The error message will contain additional /// details about the cause. /// /// A server-side error occurred during the API call. The error message will contain additional /// details about the cause. ///
public CreateBGPPeer ( CreateBGPPeerRequest request ) : CreateBGPPeerResponse
request Amazon.DirectConnect.Model.CreateBGPPeerRequest Container for the necessary parameters to execute the CreateBGPPeer service method.
return Amazon.DirectConnect.Model.CreateBGPPeerResponse
        public CreateBGPPeerResponse CreateBGPPeer(CreateBGPPeerRequest request)
        {
            var marshaller = new CreateBGPPeerRequestMarshaller();
            var unmarshaller = CreateBGPPeerResponseUnmarshaller.Instance;

            return Invoke<CreateBGPPeerRequest,CreateBGPPeerResponse>(request, marshaller, unmarshaller);
        }
AmazonDirectConnectClient