You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Module: Aws::MachineLearning
- Defined in:
- (unknown)
Overview
This module provides a client for making API requests to Amazon Machine Learning.
Aws::MachineLearning::Client
The Client class provides one-to-one mapping for each API operation.
machinelearning = Aws::MachineLearning::Client.new(region: 'us-east-1')
machinelearning.operation_names
#=> [:add_tags, :create_batch_prediction, :create_data_source_from_rds, :create_data_source_from_redshift, ...]
Each API operation method accepts a hash of request parameters and returns a response object.
resp = machinelearning.(params)
See Client for more information.
Aws::MachineLearning::Errors
Errors returned from Amazon Machine Learning are defined in the Errors module and extend Errors::ServiceError.
begin
# do stuff
rescue Aws::MachineLearning::Errors::ServiceError
# rescues all errors returned by Amazon Machine Learning
end
See Errors for more information.