describeNetworkInterfaceAttribute
inline suspend fun Ec2Client.describeNetworkInterfaceAttribute(crossinline block: DescribeNetworkInterfaceAttributeRequest.Builder.() -> Unit): DescribeNetworkInterfaceAttributeResponse
Describes a network interface attribute. You can specify only one attribute at a time.
Samples
import aws.sdk.kotlin.services.ec2.model.NetworkInterfaceAttribute
fun main() {
//sampleStart
// This example describes the attachment attribute of the specified network interface.
val resp = ec2Client.describeNetworkInterfaceAttribute {
networkInterfaceId = "eni-686ea200"
attribute = NetworkInterfaceAttribute.fromValue("attachment")
}
//sampleEnd
}
import aws.sdk.kotlin.services.ec2.model.NetworkInterfaceAttribute
fun main() {
//sampleStart
// This example describes the description attribute of the specified network interface.
val resp = ec2Client.describeNetworkInterfaceAttribute {
networkInterfaceId = "eni-686ea200"
attribute = NetworkInterfaceAttribute.fromValue("description")
}
//sampleEnd
}
import aws.sdk.kotlin.services.ec2.model.NetworkInterfaceAttribute
fun main() {
//sampleStart
// This example describes the groupSet attribute of the specified network interface.
val resp = ec2Client.describeNetworkInterfaceAttribute {
networkInterfaceId = "eni-686ea200"
attribute = NetworkInterfaceAttribute.fromValue("groupSet")
}
//sampleEnd
}
import aws.sdk.kotlin.services.ec2.model.NetworkInterfaceAttribute
fun main() {
//sampleStart
// This example describes the sourceDestCheck attribute of the specified network interface.
val resp = ec2Client.describeNetworkInterfaceAttribute {
networkInterfaceId = "eni-686ea200"
attribute = NetworkInterfaceAttribute.fromValue("sourceDestCheck")
}
//sampleEnd
}