describeNetworkInterfaces

abstract suspend fun describeNetworkInterfaces(input: DescribeNetworkInterfacesRequest = DescribeNetworkInterfacesRequest { }): DescribeNetworkInterfacesResponse

Describes the specified network interfaces or all your network interfaces.

If you have a large number of network interfaces, the operation fails unless you use pagination or one of the following filters: group-id, mac-address, private-dns-name, private-ip-address, subnet-id, or vpc-id.

We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

Samples


fun main() { 
   //sampleStart 
   val resp = ec2Client.describeNetworkInterfaces {
    networkInterfaceIds = listOf<String>(
        "eni-e5aa89a3"
    )
} 
   //sampleEnd
}