async updateCredential()

in src/rsa_key_pair_credential.ts [36:46]


  async updateCredential() {
    const url = SECURITY_CRED_URL + this.roleName;
    const json = await request(url, {
      accessKeyId: this.publicKeyId,
      action: 'GenerateSessionAccessKey',
      durationSeconds: 3600,
      signatureMethod: 'SHA256withRSA',
      signatureType: 'PRIVATEKEY',
    }, {}, this.privateKey);
    this.sessionCredential = json.Credentials;
  }