in src/oidc_role_arn_credential.ts [71:86]
async updateCredential() {
const oidcToken = this.getOdicToken(this.oidcTokenFilePath);
const params: { [key: string]: any } = {
Action: 'AssumeRoleWithOIDC',
RoleArn: this.roleArn,
OIDCProviderArn: this.oidcProviderArn,
OIDCToken: oidcToken,
DurationSeconds: this.durationSeconds,
RoleSessionName: this.roleSessionName
};
if (this.policy) {
params.policy = this.policy;
}
const json = await request(this.host, params, this.runtime);
this.sessionCredential = json.Credentials;
}