describe_network_interface_attribute
¶
describe_network_interface_attribute(
*,
config_overrides: Optional[EC2ClientConfig] = None,
dry_run: Optional[Boolean] = None,
network_interface_id: Optional[NetworkInterfaceId] = None,
attribute: Optional[NetworkInterfaceAttribute] = None,
) -> DescribeNetworkInterfaceAttributeResult
Describes a network interface attribute. You can specify only one attribute at a time.
Parameters:
-
dry_run(Optional[Boolean], default:None) –Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation. -
network_interface_id(Optional[NetworkInterfaceId], default:None) –The ID of the network interface.
-
attribute(Optional[NetworkInterfaceAttribute], default:None) –The attribute of the network interface. This parameter is required.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To describe the attachment attribute of a network interface This example describes the attachment attribute of the specified network interface.
>>> client.describe_network_interface_attribute(network_interface_id='eni-686ea200', attribute='attachment')
To describe the description attribute of a network interface
This example describes the description attribute of the specified network interface.
>>> client.describe_network_interface_attribute(network_interface_id='eni-686ea200', attribute='description')
To describe the groupSet attribute of a network interface
This example describes the groupSet attribute of the specified network interface.
>>> client.describe_network_interface_attribute(network_interface_id='eni-686ea200', attribute='groupSet')
To describe the sourceDestCheck attribute of a network interface
This example describes the sourceDestCheck attribute of the specified network interface.
>>> client.describe_network_interface_attribute(network_interface_id='eni-686ea200', attribute='sourceDestCheck')
Source code in docs_src/capo_ec2/_services/ec2.py
30622 30623 30624 30625 30626 30627 30628 30629 30630 30631 30632 30633 30634 30635 30636 30637 30638 30639 30640 30641 30642 30643 30644 30645 30646 30647 30648 30649 30650 30651 30652 30653 30654 30655 30656 30657 30658 30659 30660 30661 30662 30663 30664 30665 30666 30667 30668 30669 30670 30671 30672 30673 30674 30675 30676 30677 30678 30679 30680 30681 30682 30683 30684 30685 30686 30687 30688 30689 30690 30691 30692 30693 30694 | |