def import_key_pair(options = {})
      resp = @client.import_key_pair(options)
      KeyPairInfo.new(
        name: resp.data.key_name,
        client: @client
      )
    end
def import_key_pair(options = {})
      resp = @client.import_key_pair(options)
      KeyPairInfo.new(
        name: resp.data.key_name,
        client: @client
      )
    end
@example Request syntax with placeholder values

   keypairinfo = ec2.import_key_pair({
     dry_run: false,
     key_name: "String", # required
     public_key_material: "data", # required
   })
 @param [Hash] options ({})
 @option options [Boolean] :dry_run
   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`.
 @option options [required, String] :key_name
   A unique name for the key pair.
 @option options [required, String, IO] :public_key_material
   The public key. For API calls, the text must be base64-encoded. For
   command line tools, base64 encoding is performed for you.
 @return [KeyPairInfo]