There are more AWS SDK examples available in the AWS Doc SDK Examples
Publish a SaaS product and associated public offer from an existing draft using an AWS SDK
The following code example shows how to publish a SaaS product and associated public offer from an existing draft. The product will be in a limited state by default.