Create Network Interface Permission
ec2_create_network_interface_permission | R Documentation |
Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account¶
Description¶
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.
Usage¶
ec2_create_network_interface_permission(NetworkInterfaceId,
AwsAccountId, AwsService, Permission, DryRun)
Arguments¶
NetworkInterfaceId |
[required] The ID of the network interface. |
AwsAccountId |
The Amazon Web Services account ID. |
AwsService |
The Amazon Web Services service. Currently not supported. |
Permission |
[required] The type of permission to grant. |
DryRun |
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
|
Value¶
A list with the following syntax:
list(
InterfacePermission = list(
NetworkInterfacePermissionId = "string",
NetworkInterfaceId = "string",
AwsAccountId = "string",
AwsService = "string",
Permission = "INSTANCE-ATTACH"|"EIP-ASSOCIATE",
PermissionState = list(
State = "pending"|"granted"|"revoking"|"revoked",
StatusMessage = "string"
)
)
)
Request syntax¶
svc$create_network_interface_permission(
NetworkInterfaceId = "string",
AwsAccountId = "string",
AwsService = "string",
Permission = "INSTANCE-ATTACH"|"EIP-ASSOCIATE",
DryRun = TRUE|FALSE
)