You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::EC2::Types::ImportKeyPairRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing ImportKeyPairRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  dry_run: false,
  key_name: "String", # required
  public_key_material: "data", # required
}

Contains the parameters for ImportKeyPair.

Instance Attribute Summary collapse

Instance Attribute Details

#dry_runBoolean

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.

Returns:

  • (Boolean)

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.

#key_nameString

A unique name for the key pair.

Returns:

  • (String)

    A unique name for the key pair.

#public_key_materialString

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

Returns:

  • (String)

    The public key.