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 |
List all rules for the specified Amazon Connect instance.
This operation returns paginated results.
Synopsis
- data ListRules = ListRules' {}
- newListRules :: Text -> ListRules
- listRules_eventSourceName :: Lens' ListRules (Maybe EventSourceName)
- listRules_maxResults :: Lens' ListRules (Maybe Natural)
- listRules_nextToken :: Lens' ListRules (Maybe Text)
- listRules_publishStatus :: Lens' ListRules (Maybe RulePublishStatus)
- listRules_instanceId :: Lens' ListRules Text
- data ListRulesResponse = ListRulesResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- ruleSummaryList :: [RuleSummary]
- newListRulesResponse :: Int -> ListRulesResponse
- listRulesResponse_nextToken :: Lens' ListRulesResponse (Maybe Text)
- listRulesResponse_httpStatus :: Lens' ListRulesResponse Int
- listRulesResponse_ruleSummaryList :: Lens' ListRulesResponse [RuleSummary]
Creating a Request
See: newListRules
smart constructor.
ListRules' | |
|
Instances
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_eventSourceName
- The name of the event source.
$sel:maxResults:ListRules'
, listRules_maxResults
- The maximum number of results to return per page.
ListRules
, listRules_nextToken
- The token for the next set of results. Use the value returned in the
previous response in the next request to retrieve the next set of
results.
ListRules
, listRules_publishStatus
- The publish status of the rule.
ListRules
, listRules_instanceId
- The identifier of the Amazon Connect instance. You can find the
instanceId in the ARN of the instance.
Request Lenses
listRules_eventSourceName :: Lens' ListRules (Maybe EventSourceName) Source #
The name of the event source.
listRules_maxResults :: Lens' ListRules (Maybe Natural) Source #
The maximum number of results to return per page.
listRules_nextToken :: Lens' ListRules (Maybe Text) Source #
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
listRules_publishStatus :: Lens' ListRules (Maybe RulePublishStatus) Source #
The publish status of the rule.
listRules_instanceId :: Lens' ListRules Text Source #
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
Destructuring the Response
data ListRulesResponse Source #
See: newListRulesResponse
smart constructor.
ListRulesResponse' | |
|
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:
ListRules
, listRulesResponse_nextToken
- If there are additional results, this is the token for the next set of
results.
$sel:httpStatus:ListRulesResponse'
, listRulesResponse_httpStatus
- The response's http status code.
$sel:ruleSummaryList:ListRulesResponse'
, listRulesResponse_ruleSummaryList
- Summary information about a rule.
Response Lenses
listRulesResponse_nextToken :: Lens' ListRulesResponse (Maybe Text) Source #
If there are additional results, this is the token for the next set of results.
listRulesResponse_httpStatus :: Lens' ListRulesResponse Int Source #
The response's http status code.
listRulesResponse_ruleSummaryList :: Lens' ListRulesResponse [RuleSummary] Source #
Summary information about a rule.