Copyright | (c) 2013-2021 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 |
Lists your Amazon EventBridge rules. You can either list all the rules or you can provide a prefix to match to the rule names.
ListRules does not list the targets of a rule. To see the targets associated with a rule, use ListTargetsByRule.
This operation returns paginated results.
Synopsis
- data ListRules = ListRules' {}
- newListRules :: ListRules
- listRules_nextToken :: Lens' ListRules (Maybe Text)
- listRules_eventBusName :: Lens' ListRules (Maybe Text)
- listRules_namePrefix :: Lens' ListRules (Maybe Text)
- listRules_limit :: Lens' ListRules (Maybe Natural)
- data ListRulesResponse = ListRulesResponse' {}
- newListRulesResponse :: Int -> ListRulesResponse
- listRulesResponse_rules :: Lens' ListRulesResponse (Maybe [Rule])
- listRulesResponse_nextToken :: Lens' ListRulesResponse (Maybe Text)
- listRulesResponse_httpStatus :: Lens' ListRulesResponse Int
Creating a Request
See: newListRules
smart constructor.
ListRules' | |
|
Instances
newListRules :: ListRules Source #
Create a value of ListRules
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:ListRules'
, listRules_nextToken
- The token returned by a previous call to retrieve the next set of
results.
$sel:eventBusName:ListRules'
, listRules_eventBusName
- The name or ARN of the event bus to list the rules for. If you omit
this, the default event bus is used.
$sel:namePrefix:ListRules'
, listRules_namePrefix
- The prefix matching the rule name.
$sel:limit:ListRules'
, listRules_limit
- The maximum number of results to return.
Request Lenses
listRules_nextToken :: Lens' ListRules (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
listRules_eventBusName :: Lens' ListRules (Maybe Text) Source #
The name or ARN of the event bus to list the rules for. If you omit this, the default event bus is used.
Destructuring the Response
data ListRulesResponse Source #
See: newListRulesResponse
smart constructor.
Instances
Create a value of ListRulesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:rules:ListRulesResponse'
, listRulesResponse_rules
- The rules that match the specified criteria.
$sel:nextToken:ListRules'
, listRulesResponse_nextToken
- Indicates whether there are additional results to retrieve. If there are
no more results, the value is null.
$sel:httpStatus:ListRulesResponse'
, listRulesResponse_httpStatus
- The response's http status code.
Response Lenses
listRulesResponse_rules :: Lens' ListRulesResponse (Maybe [Rule]) Source #
The rules that match the specified criteria.
listRulesResponse_nextToken :: Lens' ListRulesResponse (Maybe Text) Source #
Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
listRulesResponse_httpStatus :: Lens' ListRulesResponse Int Source #
The response's http status code.