Imports the public key from an RSA or ED25519 key pair that you created using a third-party tool. You give Amazon Web Services only the public key. The private key is never transferred between you and Amazon Web Services.
See https://www.paws-r-sdk.com/docs/ec2_import_key_pair/ for full documentation.
ec2_import_key_pair(
TagSpecifications = NULL,
DryRun = NULL,
KeyName,
PublicKeyMaterial
)
The tags to apply to the imported key pair.
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
.
[required] A unique name for the key pair.
[required] The public key.