in src/providers/static_ak.ts [22:40]
public build(): StaticAKCredentialsProvider {
if (!this.accessKeyId) {
this.accessKeyId = process.env['ALIBABA_CLOUD_ACCESS_KEY_ID'];
}
if (!this.accessKeyId) {
throw new Error('the access key id is empty');
}
if (!this.accessKeySecret) {
this.accessKeySecret = process.env['ALIBABA_CLOUD_ACCESS_KEY_SECRET'];
}
if (!this.accessKeySecret) {
throw new Error('the access key secret is empty');
}
return new StaticAKCredentialsProvider(this);
}