delete_network_interface_permission
async
¶
delete_network_interface_permission(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
network_interface_permission_id: Optional[NetworkInterfacePermissionId] = None,
force: Optional[Boolean] = None,
dry_run: Optional[Boolean] = None,
) -> DeleteNetworkInterfacePermissionResult
Deletes a permission for a network interface. By default, you cannot delete the permission if the account for which you're removing the permission has attached the network interface to an instance. However, you can force delete the permission, regardless of any attachment.
Parameters:
-
network_interface_permission_id(Optional[NetworkInterfacePermissionId], default:None) –The ID of the network interface permission.
-
force(Optional[Boolean], default:None) –Specify
trueto remove the permission even if the network interface is attached to an instance. -
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.
Raises:
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_ec2/_services/async_ec2.py
18136 18137 18138 18139 18140 18141 18142 18143 18144 18145 18146 18147 18148 18149 18150 18151 18152 18153 18154 18155 18156 18157 18158 18159 18160 18161 18162 18163 18164 18165 18166 18167 18168 18169 18170 18171 18172 18173 18174 18175 18176 18177 18178 18179 18180 18181 18182 18183 18184 18185 18186 18187 18188 18189 | |