describeSecondaryInterfaces

Describes one or more of your secondary interfaces.

Samples

import aws.sdk.kotlin.services.ec2.model.Filter

fun main() { 
   //sampleStart 
   // This example describes all secondary interfaces in the current Region.
val resp = ec2Client.describeSecondaryInterfaces() 
   //sampleEnd
}
import aws.sdk.kotlin.services.ec2.model.Filter

fun main() { 
   //sampleStart 
   // This example uses filters to describe secondary interfaces attached to a specific instance.
val resp = ec2Client.describeSecondaryInterfaces {
    filters = listOf<Filter>(
        Filter {
            name = "attachment.instance-id"
            values = listOf<String>(
                "i-1234567890abcdef0"
            )
        }            
    )
    maxResults = 5
} 
   //sampleEnd
}