Configuring optional settings
How to configure optional settings.
Procedure
-
Set client timeouts.
If it is necessary to increase the client timeout for long running operations, the Timeout property of the AmazonS3Config object can be set dynamically on the creation of the client.
AmazonS3Config S3Config = new AmazonS3Config { ServiceURL = "http://sample.endpointurl.com", Timeout = new TimeSpan(15,16,1000) } -
Set Automatic Retry Policy.
The Amazon client has a configurable retry policy that can trigger multiple calls that are made to the S3 service in a failure. The Amazon client reports the final error and not the initial failure. It has the potential to mask the details of the underlying issue.
If necessary, the MaxErrorRetry property of the AmazonS3Config object can be set to 0 to disable the default retry policy.
AmazonS3Config S3Config = new AmazonS3Config { ServiceURL = "http://192.168.2.111" // Set maximum number of retries MaxErrorRetry = 0 ); -
Set HTTPS Usage.
The process of installing client-side SSL certificates by using the Windows Certificate Manager is the same as for any other client application that uses HTTPS.