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