1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
2
There is a way to specify a custom endpoint for virtually every service client of the .NET SDK. Please refer to the SDK documentation.
You can use the ServiceURL
property of a configuration object you pass when instantiating a client.
using Amazon.CognitoIdentityProvider; // ... var config = new AmazonCognitoIdentityProviderConfig { ServiceURL = "https://your-endpoint" }; var provider = new AmazonCognitoIdentityProviderClient(config);
This technique works if the endpoint doesn't follow the regular Region endpoint pattern.
If you are using the extensions from Amazon.Extensions.NETCore.Setup
, you can specify the endpoint in your global client factory:
var options = new AWSOptions(); options.DefaultClientConfig.ServiceURL = "https://your-endpoint"; // ... var provider = options.CreateServiceClient<AmazonCognitoIdentityProviderClient>();
répondu il y a 2 ans
Contenus pertinents
- demandé il y a un an
- demandé il y a un mois
- demandé il y a 2 mois
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
Thank you so much! You saved dozens of hours of searching for a solution