Constructor
new DefaultAwsSecurityCredentialsSupplier(opts)
Instantiates a new DefaultAwsSecurityCredentialsSupplier using information from the credential_source stored in the ADC file.
Parameters:
Name | Type | Description |
---|---|---|
opts |
The default aws security credentials supplier options object to build the supplier with. |
Methods
(async) getAwsRegion(context)
Returns the active AWS region. This first checks to see if the region is available as an environment variable. If it is not, then the supplier will call the region URL.
Parameters:
Name | Type | Description |
---|---|---|
context |
ExternalAccountSupplierContext from the calling AwsClient, contains the requested audience and subject token type for the external account identity. |
Returns:
Type | Description |
---|---|
A promise that resolves with the AWS region string. |
(async) getAwsSecurityCredentials(context)
Returns AWS security credentials. This first checks to see if the credentials is available as environment variables. If it is not, then the supplier will call the security credentials URL.
Parameters:
Name | Type | Description |
---|---|---|
context |
ExternalAccountSupplierContext from the calling AwsClient, contains the requested audience and subject token type for the external account identity. |
Returns:
Type | Description |
---|---|
A promise that resolves with the AWS security credentials. |