describeNetworkInterfaceAttribute
abstract suspend fun describeNetworkInterfaceAttribute(input: DescribeNetworkInterfaceAttributeRequest): DescribeNetworkInterfaceAttributeResponse
Describes a network interface attribute. You can specify only one attribute at a time.
Samples
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
}
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
}
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
}
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
}