github.com/aavshr/aws-sdk-go@v1.41.3/example/aws/request/customRetryer/README.md (about)

     1  # Using Custom Retry Strategies with the SDK
     2  
     3  This example highlights how you can define a custom retry strategy for the SDK to use. The example wraps the SDK's DefaultRetryer with a set of custom rules to not retry HTTP 5xx status codes. In all other cases the custom retry strategy falls back the SDK's DefaultRetryer's functionality.
     4  
     5  ## Usage
     6  
     7  This example will attempt to make an Amazon CloudWatch Logs PutLogEvents DescribeLogGroups API call. This example expects to retrieve credentials from the `~/.aws/credentials` file.
     8  
     9  ```sh
    10  go run ./custom_retryer.go
    11  ```