With the Middleware you can customize all client requests for the AWS SDK V2.
The AWS Middleware doc is quite good, so I just give an overview here. This is work in progress- The generation of an AWS API call has several steps: The Application corresponds with the stack. Stack Step Description Initialize Prepares the input, and sets any default parameters as needed. Serialize Serializes the input to a protocol format suitable for the target transport layer.