You are viewing the documentation for an older major version of the AWS SDK for JavaScript.
The modular AWS SDK for JavaScript (v3), the latest major version of AWS SDK for JavaScript, is now stable and recommended for general use. For more information, see the Migration Guide and API Reference.

Module: AWS

Defined in:
lib/core.js

Overview

The main AWS namespace

Defined Under Namespace

Modules: EventListeners Classes: AnonymousCredentials, Config, CredentialProviderChain, Credentials, Endpoint, EnvironmentCredentials, FileSystemCredentials, HttpClient, HttpRequest, HttpResponse, IniLoader, MetadataService, Request, Response, S3, Service, SharedIniFileCredentials, SharedJSONFileCredentials, StaticTokenProvider, Token, TokenProviderChain

Constant Summary collapse

VERSION =
'1.13.4'

Loading and Setting Configuration Options collapse

Property Summary collapse

Property Details

configObject (static, readwrite)

Reset configuration

Default Value:

AWS.config = new AWS.Config()

eventsAWS.SequentialExecutor (static, readonly)

Returns a collection of global event listeners that are attached to every sent request.

Default Value:

AWS.events = new AWS.SequentialExecutor()

Examples:

Logging the time taken to send a request

AWS.events.on('send', function startSend(resp) {
  resp.startTime = new Date().getTime();
}).on('complete', function calculateTime(resp) {
  var time = (new Date().getTime() - resp.startTime) / 1000;
  console.log('Request took ' + time + ' seconds');
});

new AWS.S3().listBuckets(); // prints 'Request took 0.285 seconds'

Returns:

  • (AWS.SequentialExecutor)

    a collection of global event listeners that are attached to every sent request.

See Also: