There are more AWS SDK examples available in the AWS Doc SDK Examples
Actions for Amazon Redshift using AWS SDKs
The following code examples show how to use Amazon Redshift with AWS SDKs. Each example calls an individual service function.
Action examples are code excerpts from larger programs and must be run in context. You can see actions in context in Scenarios for Amazon Redshift using AWS SDKs.