Home Reference Source Test Repository

Function

Static Public Summary
public

configProvider(AWS: Object, getters: Function[], opts: Object): Object

return config object

public

return config object load from environment variables.

public

fileConfigs(config: Object, AWS: Object, opts: Object): Object

return config object load from config file.

public

loader(AWS: Object, opts: Object)

initialize AWS.config using regionProvider

Static Public

public configProvider(AWS: Object, getters: Function[], opts: Object): Object source

import configProvider from 'aws-sdk-config-loader/src/configProvider.js'

return config object

Params:

NameTypeAttributeDescription
AWS Object

AWS SDK module

getters Function[]

function list

opts Object

options

Return:

Object

Test:

public environmentConfigs(config: Object): Object source

return config object load from environment variables.

Params:

NameTypeAttributeDescription
config Object

config object

Return:

Object

Test:

public fileConfigs(config: Object, AWS: Object, opts: Object): Object source

return config object load from config file.

Params:

NameTypeAttributeDescription
config Object

config object

AWS Object

AWS SDK module

opts Object

options

opts.profile string

profile name

opts.configFile string

config file path

Return:

Object

Test:

public loader(AWS: Object, opts: Object) source

initialize AWS.config using regionProvider

Params:

NameTypeAttributeDescription
AWS Object

AWS SDK module

opts Object

options

opts.profile string

profile name

opts.noReflectCredentials boolean

opts.profile doesnot reflect credentials

Test: