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

   keypair = ec2.create_key_pair({
     key_name: "String", # required
     dry_run: false,
   })
 @param [Hash] options ({})
 @option options [required, String] :key_name
   A unique name for the key pair.

   Constraints: Up to 255 ASCII characters
 @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`.
 @return [KeyPair]