A DataSource object can reference data from different sources, such as S3, Redshift, and RDS. We used an S3 data source in this recipe. A DataSource object needs to be specified for operations such as CreateMLModel, CreateEvaluation, or CreateBatchPrediction.