ec2_import_key_pair: Imports the public key from an RSA or ED25519 key pair that...

View source: R/ec2_operations.R

ec2_import_key_pairR Documentation

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

Description

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.

Usage

ec2_import_key_pair(
  DryRun = NULL,
  KeyName,
  PublicKeyMaterial,
  TagSpecifications = NULL
)

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.

TagSpecifications

The tags to apply to the imported key pair.


paws.compute documentation built on Sept. 12, 2024, 6:12 a.m.