create_network_interface_permission
async
¶
create_network_interface_permission(
*,
config_overrides: Optional[AsyncEC2ClientConfig] = None,
network_interface_id: Optional[NetworkInterfaceId] = None,
aws_account_id: Optional[String] = None,
aws_service: Optional[String] = None,
permission: Optional[InterfacePermissionType] = None,
dry_run: Optional[Boolean] = None,
) -> CreateNetworkInterfacePermissionResult
Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account.
You can grant permission to a single Amazon Web Services account only, and only one account at a time.
Parameters:
-
network_interface_id(Optional[NetworkInterfaceId], default:None) –The ID of the network interface.
-
aws_account_id(Optional[String], default:None) –The Amazon Web Services account ID.
-
aws_service(Optional[String], default:None) –The Amazon Web Services service. Currently not supported.
-
permission(Optional[InterfacePermissionType], default:None) –The type of permission to grant.
-
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
11386 11387 11388 11389 11390 11391 11392 11393 11394 11395 11396 11397 11398 11399 11400 11401 11402 11403 11404 11405 11406 11407 11408 11409 11410 11411 11412 11413 11414 11415 11416 11417 11418 11419 11420 11421 11422 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 11439 11440 11441 11442 11443 11444 11445 11446 11447 11448 11449 | |