There are more AWS SDK examples available in the AWS Doc SDK Examples
Detect faces in an image using an AWS SDK
The following code example shows how to:
Save an image in an Amazon S3 bucket.
Use Amazon Rekognition to detect facial details, such as age range, gender, and emotion (such as smiling).
Display those details.