describe_network_interface_attribute
async
¶
describe_network_interface_attribute(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = 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.
>>> await 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.
>>> await 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.
>>> await 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.
>>> await client.describe_network_interface_attribute(network_interface_id='eni-686ea200', attribute='sourceDestCheck')
Source code in docs_src/capo_ec2/_services/async_ec2.py
31037 31038 31039 31040 31041 31042 31043 31044 31045 31046 31047 31048 31049 31050 31051 31052 31053 31054 31055 31056 31057 31058 31059 31060 31061 31062 31063 31064 31065 31066 31067 31068 31069 31070 31071 31072 31073 31074 31075 31076 31077 31078 31079 31080 31081 31082 31083 31084 31085 31086 31087 31088 31089 31090 31091 31092 31093 31094 31095 31096 31097 31098 31099 31100 31101 31102 31103 31104 31105 31106 31107 31108 31109 31110 | |