public STSAssumeRoleSessionCredentialsProvider(AlibabaCloudCredentials longLivedCredentials,String roleArn, IClientProfile clientProfile) {this(new StaticCredentialsProvider(longLivedCredentials), roleArn, clientProfile);}
public STSAssumeRoleSessionCredentialsProvider(AlibabaCloudCredentials longLivedCredentials,string roleArn,IClientProfile clientProfile){AlibabaCloudCredentialsProvider longLivedCredentialsProvider =new StaticCredentialsProvider(longLivedCredentials);this.roleArn = roleArn;roleSessionName = GetNewRoleSessionName();stsClient = new DefaultAcsClient(clientProfile, longLivedCredentialsProvider);}