| Copyright | (c) 2013-2017 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.CloudWatchEvents.ListRules
Description
Lists your Amazon CloudWatch Events rules. You can either list all the rules or you can provide a prefix to match to the rule names.
- listRules :: ListRules
- data ListRules
- lrNextToken :: Lens' ListRules (Maybe Text)
- lrNamePrefix :: Lens' ListRules (Maybe Text)
- lrLimit :: Lens' ListRules (Maybe Natural)
- listRulesResponse :: Int -> ListRulesResponse
- data ListRulesResponse
- lrrsRules :: Lens' ListRulesResponse [Rule]
- lrrsNextToken :: Lens' ListRulesResponse (Maybe Text)
- lrrsResponseStatus :: Lens' ListRulesResponse Int
Creating a Request
listRules :: ListRules Source #
Creates a value of ListRules with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrNextToken- The token returned by a previous call to retrieve the next set of results.lrNamePrefix- The prefix matching the rule name.lrLimit- The maximum number of results to return.
See: listRules smart constructor.
Instances
Request Lenses
lrNextToken :: Lens' ListRules (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
Destructuring the Response
Arguments
| :: Int | |
| -> ListRulesResponse |
Creates a value of ListRulesResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrrsRules- The rules that match the specified criteria.lrrsNextToken- Indicates whether there are additional results to retrieve. If there are no more results, the value is null.lrrsResponseStatus- -- | The response status code.
data ListRulesResponse Source #
See: listRulesResponse smart constructor.
Response Lenses
lrrsNextToken :: Lens' ListRulesResponse (Maybe Text) Source #
Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
lrrsResponseStatus :: Lens' ListRulesResponse Int Source #
- - | The response status code.