There are more AWS SDK examples available in the AWS Doc SDK Examples
Actions for Amazon EBS using AWS SDKs
The following code examples demonstrate how to perform individual Amazon EBS actions with AWS SDKs. Each example includes a link to GitHub, where you can find instructions for setting up and running the code.
The following examples include only the most commonly used actions. For a complete list, see the Amazon Elastic Block Store API Reference.