Imports the public key from an RSA or ED25519 key pair that you created with a third-party tool. Compare this with create_key_pair
, in which Amazon Web Services creates the key pair and gives the keys to you (Amazon Web Services keeps a copy of the public key). With ImportKeyPair, you create the key pair and give Amazon Web Services just 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(
DryRun = NULL,
KeyName,
PublicKeyMaterial,
TagSpecifications = NULL
)
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. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.
The tags to apply to the imported key pair.