• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..09-Nov-2021-

README.mdH A D09-Nov-2021568 127

custom_retryer.goH A D09-Nov-20212.6 KiB8047

README.md

1# Using Custom Retry Strategies with the SDK
2
3This 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
7This 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
10go run ./custom_retryer.go
11```
12