1 Respuesta
- Más nuevo
- Más votos
- Más comentarios
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 hace 2 años
Contenido relevante
- OFICIAL DE AWSActualizada hace 4 meses
- OFICIAL DE AWSActualizada hace 2 años
- OFICIAL DE AWSActualizada hace 3 años
Thank you, Dmitry. That worked. Regards
I'm glad my answer was helpful! You can also mark it as 'accepted'.