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年前
Thank you, Dmitry. That worked. Regards
I'm glad my answer was helpful! You can also mark it as 'accepted'.