constructor()

in src/ecs_ram_role_credential.ts [19:31]


  constructor(roleName: string = '', runtime: { [key: string]: any } = {}, enableIMDSv2: boolean = false, metadataTokenDuration: number = 21600) {
    const conf = new Config({
      type: 'ecs_ram_role',
    });
    super(conf);
    this.roleName = roleName;
    this.enableIMDSv2 = enableIMDSv2;
    this.metadataTokenDuration = metadataTokenDuration;
    this.runtime = runtime;
    this.sessionCredential = null;
    this.metadataToken = null;
    this.staleTime = 0;
  }