The connection resolver.
The credential resolver.
Configures component by passing configuration parameters.
configuration parameters to be set.
Resolves connection and credental parameters and generates a single AWSConnectionParams value.
(optional) transaction id to trace execution through call chain.
callback function that receives AWSConnectionParams value or error.
Sets references to dependent components.
references to locate the component dependencies.
Generated using TypeDoc
Helper class to retrieve AWS connection and credential parameters, validate them and compose a AwsConnectionParams value.
Configuration parameters
References
*:discovery:*:*:1.0
(optional) IDiscovery services to resolve connections*:credential-store:*:*:1.0
(optional) Credential stores to resolve credentialsConnectionParams (in the Pip.Services components package)
IDiscovery (in the Pip.Services components package)
Example
let config = ConfigParams.fromTuples( "connection.region", "us-east1", "connection.service", "s3", "connection.bucket", "mybucket", "credential.access_id", "XXXXXXXXXX", "credential.access_key", "XXXXXXXXXX" ); let connectionResolver = new AwsConnectionResolver(); connectionResolver.configure(config); connectionResolver.setReferences(references); connectionResolver.resolve("123", (err, connection) => { // Now use connection... });