Grants an AWS-authorized account permission to attach the specified network interface to an instance in their account.
You can grant permission to a single AWS account only, and only one account at a time.
ec2_create_network_interface_permission(NetworkInterfaceId,
AwsAccountId, AwsService, Permission, DryRun)
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"
)
)
)
[required] The ID of the network interface.
The AWS account ID.
The AWS service. Currently not supported.
[required] The type of permission to grant.
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 is UnauthorizedOperation
.
svc$create_network_interface_permission(
NetworkInterfaceId = "string",
AwsAccountId = "string",
AwsService = "string",
Permission = "INSTANCE-ATTACH"|"EIP-ASSOCIATE",
DryRun = TRUE|FALSE
)