Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
30 lines (26 sloc)
874 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
using Amazon.DataExchange; | |
using Amazon.DataExchange.Model; | |
namespace AwsDataExchangeSample | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
AmazonDataExchangeClient client = new AmazonDataExchangeClient(); | |
ListDataSetsRequest listDataSetsRequest = new ListDataSetsRequest(); | |
listDataSetsRequest.Origin = "ENTITLED"; | |
Task<ListDataSetsResponse> dataSetsRequestTask = client.ListDataSetsAsync(listDataSetsRequest); | |
dataSetsRequestTask.Wait(); | |
foreach (DataSetEntry dataSetEntry in dataSetsRequestTask.Result.DataSets) | |
{ | |
Console.WriteLine("{0}/{1}: {2}\n {3}", | |
dataSetEntry.OriginDetails.ProductId, | |
dataSetEntry.Id, | |
dataSetEntry.Name, | |
dataSetEntry.Description); | |
} | |
} | |
} | |
} |