describeNetworkInterfaces
inline suspend fun Ec2Client.describeNetworkInterfaces(crossinline block: DescribeNetworkInterfacesRequest.Builder.() -> Unit): DescribeNetworkInterfacesResponse
Describes one or more of 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
, private-dns-name
, subnet-id
, or vpc-id
.
Samples
fun main() {
//sampleStart
val resp = ec2Client.describeNetworkInterfaces {
networkInterfaceIds = listOf<String>(
"eni-e5aa89a3"
)
}
//sampleEnd
}