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