There are more AWS SDK examples available in the AWS Doc SDK Examples
Use SetSubscriptionAttributesRedrivePolicy with an AWS SDK
The following code example shows how to use SetSubscriptionAttributesRedrivePolicy.