AWS Configuration
The module provides a service for configuring the AWS SDK.
Imports
Environment Variables
Do you create variables an .env
file.
AWS_ACCESS_KEY_ID
Access key id of the aws.
AWS_SECRET_ACCESS_KEY
Secret of the access key in aws.
Check the example file.
Method of Use
To use this module, you need to inject it into the desired service.
Injecting the module into our service.
With dependencies
You will need to inject the following interfaces.
IConfigurationService
IValidatorRegexpService
IStringExService
Properties
_apiVersion
private
The AWS API version to use.
_region
private
The AWS region to use.
_httpOptions
private
The AWS HTTP options to use.
_credentials
private
The AWS credentials to use.
Methods
_loadCredentials
private
Load the AWS credentials from the configuration service.
set apiVersion
public
Set the AWS API version.
get apiVersion
public
Get the AWS API version.
set region
public
Set the AWS region.
get region
public
Get the AWS region.
set credentials
public
Set the AWS credentials.
get credentials
public
Get the AWS credentials.
options
public
Get the AWS configuration options.
Last updated