| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudWatchEvents.ListRules
Description
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_eventBusName :: Lens' ListRules (Maybe Text)
- listRules_limit :: Lens' ListRules (Maybe Natural)
- listRules_namePrefix :: Lens' ListRules (Maybe Text)
- listRules_nextToken :: Lens' ListRules (Maybe Text)
- data ListRulesResponse = ListRulesResponse' {}
- newListRulesResponse :: Int -> ListRulesResponse
- listRulesResponse_nextToken :: Lens' ListRulesResponse (Maybe Text)
- listRulesResponse_rules :: Lens' ListRulesResponse (Maybe [Rule])
- listRulesResponse_httpStatus :: Lens' ListRulesResponse Int
Creating a Request
See: newListRules smart constructor.
Constructors
| ListRules' | |
Fields
| |
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:
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:limit:ListRules', listRules_limit - The maximum number of results to return.
$sel:namePrefix:ListRules', listRules_namePrefix - The prefix matching the rule name.
ListRules, listRules_nextToken - The token returned by a previous call to retrieve the next set of
results.
Request Lenses
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.
listRules_nextToken :: Lens' ListRules (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
Destructuring the Response
data ListRulesResponse Source #
See: newListRulesResponse smart constructor.
Constructors
| ListRulesResponse' | |
Instances
Arguments
| :: Int | |
| -> ListRulesResponse |
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:
ListRules, listRulesResponse_nextToken - Indicates whether there are additional results to retrieve. If there are
no more results, the value is null.
$sel:rules:ListRulesResponse', listRulesResponse_rules - The rules that match the specified criteria.
$sel:httpStatus:ListRulesResponse', listRulesResponse_httpStatus - The response's http status code.
Response Lenses
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_rules :: Lens' ListRulesResponse (Maybe [Rule]) Source #
The rules that match the specified criteria.
listRulesResponse_httpStatus :: Lens' ListRulesResponse Int Source #
The response's http status code.