getConsoleOutput
Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output includes the last three system event log errors.
For more information, see Instance console output in the Amazon EC2 User Guide.
Samples
fun main() {
//sampleStart
// This example gets the console output for the specified instance.
val resp = ec2Client.getConsoleOutput {
instanceId = "i-1234567890abcdef0"
}
//sampleEnd
}