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 the targets assigned to the specified rule.
This operation returns paginated results.
Synopsis
- data ListTargetsByRule = ListTargetsByRule' {}
- newListTargetsByRule :: Text -> ListTargetsByRule
- listTargetsByRule_nextToken :: Lens' ListTargetsByRule (Maybe Text)
- listTargetsByRule_eventBusName :: Lens' ListTargetsByRule (Maybe Text)
- listTargetsByRule_limit :: Lens' ListTargetsByRule (Maybe Natural)
- listTargetsByRule_rule :: Lens' ListTargetsByRule Text
- data ListTargetsByRuleResponse = ListTargetsByRuleResponse' {}
- newListTargetsByRuleResponse :: Int -> ListTargetsByRuleResponse
- listTargetsByRuleResponse_nextToken :: Lens' ListTargetsByRuleResponse (Maybe Text)
- listTargetsByRuleResponse_targets :: Lens' ListTargetsByRuleResponse (Maybe (NonEmpty Target))
- listTargetsByRuleResponse_httpStatus :: Lens' ListTargetsByRuleResponse Int
Creating a Request
data ListTargetsByRule Source #
See: newListTargetsByRule
smart constructor.
ListTargetsByRule' | |
|
Instances
Create a value of ListTargetsByRule
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:ListTargetsByRule'
, listTargetsByRule_nextToken
- The token returned by a previous call to retrieve the next set of
results.
$sel:eventBusName:ListTargetsByRule'
, listTargetsByRule_eventBusName
- The name or ARN of the event bus associated with the rule. If you omit
this, the default event bus is used.
$sel:limit:ListTargetsByRule'
, listTargetsByRule_limit
- The maximum number of results to return.
$sel:rule:ListTargetsByRule'
, listTargetsByRule_rule
- The name of the rule.
Request Lenses
listTargetsByRule_nextToken :: Lens' ListTargetsByRule (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
listTargetsByRule_eventBusName :: Lens' ListTargetsByRule (Maybe Text) Source #
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
listTargetsByRule_limit :: Lens' ListTargetsByRule (Maybe Natural) Source #
The maximum number of results to return.
listTargetsByRule_rule :: Lens' ListTargetsByRule Text Source #
The name of the rule.
Destructuring the Response
data ListTargetsByRuleResponse Source #
See: newListTargetsByRuleResponse
smart constructor.
Instances
newListTargetsByRuleResponse Source #
Create a value of ListTargetsByRuleResponse
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:ListTargetsByRule'
, listTargetsByRuleResponse_nextToken
- Indicates whether there are additional results to retrieve. If there are
no more results, the value is null.
$sel:targets:ListTargetsByRuleResponse'
, listTargetsByRuleResponse_targets
- The targets assigned to the rule.
$sel:httpStatus:ListTargetsByRuleResponse'
, listTargetsByRuleResponse_httpStatus
- The response's http status code.
Response Lenses
listTargetsByRuleResponse_nextToken :: Lens' ListTargetsByRuleResponse (Maybe Text) Source #
Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
listTargetsByRuleResponse_targets :: Lens' ListTargetsByRuleResponse (Maybe (NonEmpty Target)) Source #
The targets assigned to the rule.
listTargetsByRuleResponse_httpStatus :: Lens' ListTargetsByRuleResponse Int Source #
The response's http status code.