The Amazon SDK for JavaScript V3 API
Reference Guide
Handle service client responses
After a service client method has been called, it returns a response object instance of an
interface with the name associated with the client method. For example, if you use the
AbcCommand
client method, the response object is of AbcResponse
(interface) type.
Access data returned in the response
The response object contains the data, as properties, returned by the service request.
In Create service client requests, the
ListTablesCommand
command returned the table names in the TableNames
property of the response.
Access error information
If a command fails, it throws an exception. You can handle the exception as you need.