Skip to content

Commit

Permalink
Add missing pagination definitions for CloudWatch Events
Browse files Browse the repository at this point in the history
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 boto#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)
```
  • Loading branch information
slai committed Oct 31, 2018
1 parent a6ed18b commit 9dbb2c2
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion botocore/data/events/2015-10-07/paginators-1.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}

0 comments on commit 9dbb2c2

Please sign in to comment.