magento2 – Create a coupon that sets the shipping rate to a specific amount

I need to create a coupon that sets the shipping rate of an item to a specific amount.

For example, if the customer buys an item and uses that specific coupon code (basket rule), the shipping amount is still set at $ 5, whatever the case may be.

Thus, if a customer buys a $ 3 item and his shipment is $ 10, his shipping will always be reduced to $ 5, for a total of $ 8.