paws.compute (version 0.1.0)

ec2_import_key_pair: Imports the public key from an RSA key pair that you created with a third-party tool

Description

Imports the public key from an RSA key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which AWS creates the key pair and gives the keys to you (AWS keeps a copy of the public key). With ImportKeyPair, you create the key pair and give AWS just the public key. The private key is never transferred between you and AWS.

Usage

ec2_import_key_pair(DryRun, KeyName, PublicKeyMaterial)

Arguments

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 DryRunOperation. Otherwise, it is UnauthorizedOperation.

KeyName

[required] A unique name for the key pair.

PublicKeyMaterial

[required] The public key. For API calls, the text must be base64-encoded. For command line tools, base64 encoding is performed for you.

Request syntax

svc$import_key_pair(
  DryRun = TRUE|FALSE,
  KeyName = "string",
  PublicKeyMaterial = raw
)

Details

For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide.