There are more AWS SDK examples available in the AWS Doc SDK Examples
Actions for Amazon Cognito Identity using AWS SDKs
The following code examples show how to use Amazon Cognito Identity with AWS SDKs. Each example calls an individual service function.