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
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 indicate that there is more data available.lrNamePrefix
- The prefix matching the rule name.lrLimit
- The maximum number of results to return.
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:
lrrsRules
- List of rules matching the specified criteria.lrrsNextToken
- Indicates that there are additional results to retrieve.lrrsResponseStatus
- -- | The response status code.
data ListRulesResponse Source #
The result of the ListRules
operation.
See: listRulesResponse
smart constructor.
Response Lenses
lrrsNextToken :: Lens' ListRulesResponse (Maybe Text) Source #
Indicates that there are additional results to retrieve.
lrrsResponseStatus :: Lens' ListRulesResponse Int Source #
- - | The response status code.