Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Lists the Amazon CloudWatch Events rules in your account. You can either list all the rules or you can provide a prefix to match to the rule names. If you have more rules in your account than the given limit, the results will be paginated. In that case, use the next token returned in the response and repeat ListRules until the NextToken in the response is returned as null.
- 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
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:
Request Lenses
lrNextToken :: Lens' ListRules (Maybe Text) Source
The token returned by a previous call to indicate that there is more data available.
Destructuring the Response
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:
data ListRulesResponse Source
The result of the ListRules operation.
See: listRulesResponse
smart constructor.
Response Lenses
lrrsRules :: Lens' ListRulesResponse [Rule] Source
List of rules matching the specified criteria.
lrrsNextToken :: Lens' ListRulesResponse (Maybe Text) Source
Indicates that there are additional results to retrieve.
lrrsResponseStatus :: Lens' ListRulesResponse Int Source
The response status code.