1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
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); }
respondido há 2 anos
Conteúdo relevante
- AWS OFICIALAtualizada há 6 meses
- AWS OFICIALAtualizada há 2 meses
Thank you, Dmitry. That worked. Regards
I'm glad my answer was helpful! You can also mark it as 'accepted'.