createConnection

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).

Samples

import aws.sdk.kotlin.services.interconnect.model.AttachPoint
import aws.sdk.kotlin.services.interconnect.model.RemoteAccountIdentifier

fun main() { 
   //sampleStart 
   // Create Connection on specific environment
val resp = interconnectClient.createConnection {
    bandwidth = "1Gbps"
    environmentId = "mce-aws-acme-1"
    remoteAccount = RemoteAccountIdentifier.Identifier("PartnerAccountDetails")
    attachPoint = AttachPoint.DirectConnectGateway("90392BE3-219C-47FD-BBA5-03DF76D2542A")
} 
   //sampleEnd
}