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

Module: Aws::Translate

Defined in:
(unknown)

Overview

This module provides a client for making API requests to Amazon Translate.

Aws::Translate::Client

The Client class provides one-to-one mapping for each API operation.

translate = Aws::Translate::Client.new(region: 'us-east-1')
translate.operation_names
#=> [:delete_terminology, :describe_text_translation_job, :get_terminology, :import_terminology, ...]

Each API operation method accepts a hash of request parameters and returns a response object.

resp = translate.delete_terminology(params)

See Client for more information.

Aws::Translate::Errors

Errors returned from Amazon Translate are defined in the Errors module and extend Errors::ServiceError.

begin
  # do stuff
rescue Aws::Translate::Errors::ServiceError
  # rescues all errors returned by Amazon Translate
end

See Errors for more information.

Defined Under Namespace

Modules: Errors, Types Classes: Client