Programming Spark scripts - AWS Glue

How to program Spark ETL scripts using the AWS Glue API.