There are more AWS SDK examples available in the AWS Doc SDK Examples
Use CreateEndpoint with an AWS SDK
The following code example shows how to use CreateEndpoint.
Action examples are code excerpts from larger programs and must be run in context. You can see this action in context in the following code example: