This template creates a DataSync task with a source location and a destination location. The `SourceLocationArn` property specifies the ARN of the source location, and the `DestinationLocationArn` property specifies the ARN of the destination location.

CloudFormation Template