Handling service client responses - Amazon SDK for JavaScript
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

The Amazon SDK for JavaScript V3 API Reference Guide describes in detail all the API operations for the Amazon SDK for JavaScript version 3 (V3).

Starting October 1, 2022, Amazon SDK for JavaScript (v3) will end support for Internet Explorer 11 (IE 11). For details, see Announcing the end of support for Internet Explorer 11 in the Amazon SDK for JavaScript (v3).

Handling 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.

Accessing data returned in the response

The response object contains the data, as properties, returned by the service request.

In Creating service client requests, the ListTablesCommand command returned the table names in the TableNames property of the response.

Accessing error information

If a command fails, it throws an exception. You can handle the exception as you need.