| 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.ListTargetsByRule
Description
Lists the targets assigned to the specified rule.
This operation returns paginated results.
Synopsis
- data ListTargetsByRule = ListTargetsByRule' {}
- newListTargetsByRule :: Text -> ListTargetsByRule
- listTargetsByRule_eventBusName :: Lens' ListTargetsByRule (Maybe Text)
- listTargetsByRule_limit :: Lens' ListTargetsByRule (Maybe Natural)
- listTargetsByRule_nextToken :: Lens' ListTargetsByRule (Maybe Text)
- 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.
Constructors
| ListTargetsByRule' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> ListTargetsByRule |
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:
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.
ListTargetsByRule, listTargetsByRule_nextToken - The token returned by a previous call to retrieve the next set of
results.
$sel:rule:ListTargetsByRule', listTargetsByRule_rule - The name of the rule.
Request Lenses
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_nextToken :: Lens' ListTargetsByRule (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
listTargetsByRule_rule :: Lens' ListTargetsByRule Text Source #
The name of the rule.
Destructuring the Response
data ListTargetsByRuleResponse Source #
See: newListTargetsByRuleResponse smart constructor.
Constructors
| ListTargetsByRuleResponse' | |
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:
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.