1개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
2
Please refer to the documentation. You can specify a profile (either from the shared credentials file or from a custom file) by using the CredentialProfileStoreChain
class and obtaining an AWSCredentials
object:
var storeChain = new CredentialProfileStoreChain(); if (storeChain.TryGetAWSCredentials("some_profile", out var awsCredentials)) { // Use awsCredentials to create an Amazon S3 service client using var client = new AmazonS3Client(awsCredentials); }
답변함 2년 전
관련 콘텐츠
- AWS 공식업데이트됨 2년 전
- AWS 공식업데이트됨 9달 전
- AWS 공식업데이트됨 8달 전
Thank you, Dmitry. That worked. Regards
I'm glad my answer was helpful! You can also mark it as 'accepted'.