amazonka-cloudwatch-events-1.4.0: Amazon CloudWatch Events SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatchEvents.ListRules

Contents

Description

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.

Synopsis

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:

Request Lenses

lrNextToken :: Lens' ListRules (Maybe Text) Source

The token returned by a previous call to indicate that there is more data available.

lrNamePrefix :: Lens' ListRules (Maybe Text) Source

The prefix matching the rule name.

lrLimit :: Lens' ListRules (Maybe Natural) Source

The maximum number of results to return.

Destructuring the Response

listRulesResponse Source

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:

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.