We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AlibabaCloudCredentialsProvider provider = new AccessKeyCredentialProvider("<your-access-key-id>", "<your-access-key-secret>"); IClientProfile profile = DefaultProfile.GetProfile("cn-hangzhou"); DefaultAcsClient client = new DefaultAcsClient(profile, provider); var request = new AssumeRoleRequest { RoleArn = "<your-role-arn>", RoleSessionName = "<your-role-session-name>", DurationSeconds = 3600 }; try { var response = client.GetAcsResponse(request); Assert.IsNotNull(response.HttpResponse);// 这里获取到HttpResponse为Null Console.WriteLine(System.Text.Encoding.Default.GetString(response.HttpResponse.Content)); } catch (ServerException e) { Console.WriteLine(e); } catch (ClientException e) { Console.WriteLine(e); }
问题已提交Pr
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题已提交Pr
The text was updated successfully, but these errors were encountered: