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.

Class: AWS.AnonymousCredentials

Inherits:
AWS.Credentials show all
Defined in:
lib/credentials/anonymous_credentials.js

Overview

Represents anonymous credentials, which do not require any authentication.

This can be used for Anonymous Access against buckets configured for anonymous operations.

Constructor Summary collapse

Property Summary

Properties inherited from AWS.Credentials

expired, expireTime, accessKeyId, secretAccessKey, sessionToken, expiryWindow

Method Summary collapse

Methods inherited from AWS.Credentials

needsRefresh, get, getPromise, refreshPromise

Constructor Details

new AWS.AnonymousCredentials() ⇒ void

Creates a new AnonymousCredentials class.

Method Details

refresh(callback) ⇒ void

Stub to satisfy the credentials provider chain.

Callback (callback):

  • function(err) { ... }

See Also:

  • AWS.AnonymousCredentials.get