| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.CloudWatchEvents.ListTargetsByRule
Description
Lists the targets assigned to the specified rule.
- listTargetsByRule :: Text -> ListTargetsByRule
- data ListTargetsByRule
- ltbrNextToken :: Lens' ListTargetsByRule (Maybe Text)
- ltbrLimit :: Lens' ListTargetsByRule (Maybe Natural)
- ltbrRule :: Lens' ListTargetsByRule Text
- listTargetsByRuleResponse :: Int -> ListTargetsByRuleResponse
- data ListTargetsByRuleResponse
- ltbrrsNextToken :: Lens' ListTargetsByRuleResponse (Maybe Text)
- ltbrrsTargets :: Lens' ListTargetsByRuleResponse (Maybe (NonEmpty Target))
- ltbrrsResponseStatus :: Lens' ListTargetsByRuleResponse Int
Creating a Request
Arguments
| :: Text | |
| -> ListTargetsByRule |
Creates a value of ListTargetsByRule with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltbrNextToken- The token returned by a previous call to retrieve the next set of results.ltbrLimit- The maximum number of results to return.ltbrRule- The name of the rule.
data ListTargetsByRule Source #
See: listTargetsByRule smart constructor.
Instances
Request Lenses
ltbrNextToken :: Lens' ListTargetsByRule (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
ltbrLimit :: Lens' ListTargetsByRule (Maybe Natural) Source #
The maximum number of results to return.
Destructuring the Response
listTargetsByRuleResponse Source #
Arguments
| :: Int | |
| -> ListTargetsByRuleResponse |
Creates a value of ListTargetsByRuleResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
ltbrrsNextToken- Indicates whether there are additional results to retrieve. If there are no more results, the value is null.ltbrrsTargets- The targets assigned to the rule.ltbrrsResponseStatus- -- | The response status code.
data ListTargetsByRuleResponse Source #
See: listTargetsByRuleResponse smart constructor.
Response Lenses
ltbrrsNextToken :: Lens' ListTargetsByRuleResponse (Maybe Text) Source #
Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
ltbrrsTargets :: Lens' ListTargetsByRuleResponse (Maybe (NonEmpty Target)) Source #
The targets assigned to the rule.
ltbrrsResponseStatus :: Lens' ListTargetsByRuleResponse Int Source #
- - | The response status code.