create_network_interface_permission
¶
create_network_interface_permission(
*,
config_overrides: Optional[EC2ClientConfig] = 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/ec2.py
11255 11256 11257 11258 11259 11260 11261 11262 11263 11264 11265 11266 11267 11268 11269 11270 11271 11272 11273 11274 11275 11276 11277 11278 11279 11280 11281 11282 11283 11284 11285 11286 11287 11288 11289 11290 11291 11292 11293 11294 11295 11296 11297 11298 11299 11300 11301 11302 11303 11304 11305 11306 11307 11308 11309 11310 11311 11312 11313 11314 11315 11316 11317 | |