From 9dbb2c2a3b130fdda0a61a45096fb3ff46dfbec1 Mon Sep 17 00:00:00 2001 From: Sam Lai Date: Wed, 31 Oct 2018 17:25:41 +0000 Subject: [PATCH] Add missing pagination definitions for CloudWatch Events There are currently no pagination definitions for CloudWatch Events APIs. I've created them from the API Reference for this PR. The list of definitions now matches the API reference and also the list missing in #1462. ```python client = boto3.client('events', region_name='eu-west-1') paginator = client.get_paginator('list_rules') page_iterator = paginator.paginate(NamePrefix='RDS', PaginationConfig={'PageSize': 2}) for page in page_iterator: print(page) ``` --- .../data/events/2015-10-07/paginators-1.json | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/botocore/data/events/2015-10-07/paginators-1.json b/botocore/data/events/2015-10-07/paginators-1.json index ea142457a6..501a3229a9 100644 --- a/botocore/data/events/2015-10-07/paginators-1.json +++ b/botocore/data/events/2015-10-07/paginators-1.json @@ -1,3 +1,22 @@ { - "pagination": {} + "pagination": { + "ListRuleNamesByTarget": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "Limit", + "result_key": "RuleNames" + }, + "ListRules": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "Limit", + "result_key": "Rules" + }, + "ListTargetsByRule": { + "input_token": "NextToken", + "output_token": "NextToken", + "limit_key": "Limit", + "result_key": "Targets" + } + } }