コード例 #1
0
        public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems)
        {
            AmazonDynamoDBConfig config = new AmazonDynamoDBConfig();

            config.RegionEndpoint = region;
            ConfigureClient(config);
            AmazonDynamoDBClient client = new AmazonDynamoDBClient(creds, config);

            ListContributorInsightsResponse resp = new ListContributorInsightsResponse();

            do
            {
                ListContributorInsightsRequest req = new ListContributorInsightsRequest
                {
                    NextToken = resp.NextToken
                    ,
                    MaxResults = maxItems
                };

                resp = client.ListContributorInsights(req);
                CheckError(resp.HttpStatusCode, "200");

                foreach (var obj in resp.ContributorInsightsSummaries)
                {
                    AddObject(obj);
                }
            }while (!string.IsNullOrEmpty(resp.NextToken));
        }
コード例 #2
0
 Task <ListContributorInsightsResponse> IAmazonDynamoDB.ListContributorInsightsAsync(ListContributorInsightsRequest request, CancellationToken cancellationToken)
 {
     throw new NotSupportedException();
 }
コード例 #3
0
 public Task <ListContributorInsightsResponse> ListContributorInsightsAsync(ListContributorInsightsRequest request, CancellationToken cancellationToken = default)
 {
     throw new NotImplementedException();
 }