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.IniLoader
- Inherits:
-
Object
- Object
- AWS.IniLoader
- Defined in:
- lib/shared-ini/ini-loader.js
Overview
Note:
This feature is not supported in the browser environment of the SDK.
Ini file loader class the same as that used in the SDK. It loads and parses config and credentials files in .ini format and cache the content to assure files are only read once. Note that calling operations on the instance instantiated from this class won't affect the behavior of SDK since SDK uses an internal singleton of this class.
Constructor Summary collapse
-
new AWS.IniLoader() ⇒ void
constructor
Method Summary collapse
-
clearCachedFiles() ⇒ void
Remove all cached files.
-
loadFrom(options) ⇒ map<String,String>
Load configurations from config/credentials files and cache them for later use.
Constructor Details
new AWS.IniLoader() ⇒ void
Method Details
clearCachedFiles() ⇒ void
Remove all cached files. Used after config files are updated.
loadFrom(options) ⇒ map<String,String>
Load configurations from config/credentials files and cache them for later use. If no file is specified it will try to load default files.