How do I set DynamoDB requestTimeout using the Go SDK for the default retryer?

Viewed 402

I know that I can use a context to set the overall query timeout. However, I understand that the DynamoDB client will perform up to 3 retries by default. Is it possible to set the timeout for each of these retries?

ctx, cancel := context.WithTimeout(ctx, queryTimeout)
defer cancel()
resp, err := ddbClient.QueryWithContext(ctx, params)
if err != nil {
    return nil, nil, err
}
1 Answers
Related