attachNetworkInterface
abstract suspend fun attachNetworkInterface(input: AttachNetworkInterfaceRequest): AttachNetworkInterfaceResponse
Attaches a network interface to an instance.
Samples
fun main() {
//sampleStart
// This example attaches the specified network interface to the specified instance.
val resp = ec2Client.attachNetworkInterface {
networkInterfaceId = "eni-e5aa89a3"
instanceId = "i-1234567890abcdef0"
deviceIndex = 1
}
//sampleEnd
}