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 using a third-party tool

Description

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.

Usage

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

Arguments

TagSpecifications

The tags to apply to the imported key pair.

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.


paws.compute documentation built on April 4, 2025, 5:47 a.m.