Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Lists the names of the rules that the given target is put to. You can see which of the rules in Amazon CloudWatch Events can invoke a specific target in your account. If you have more rules in your account than the given limit, the results will be paginated. In that case, use the next token returned in the response and repeat ListRulesByTarget until the NextToken in the response is returned as null.
- listRuleNamesByTarget :: Text -> ListRuleNamesByTarget
- data ListRuleNamesByTarget
- lrnbtNextToken :: Lens' ListRuleNamesByTarget (Maybe Text)
- lrnbtLimit :: Lens' ListRuleNamesByTarget (Maybe Natural)
- lrnbtTargetARN :: Lens' ListRuleNamesByTarget Text
- listRuleNamesByTargetResponse :: Int -> ListRuleNamesByTargetResponse
- data ListRuleNamesByTargetResponse
- lrnbtrsRuleNames :: Lens' ListRuleNamesByTargetResponse [Text]
- lrnbtrsNextToken :: Lens' ListRuleNamesByTargetResponse (Maybe Text)
- lrnbtrsResponseStatus :: Lens' ListRuleNamesByTargetResponse Int
Creating a Request
listRuleNamesByTarget Source #
Creates a value of ListRuleNamesByTarget
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrnbtNextToken
- The token returned by a previous call to indicate that there is more data available.lrnbtLimit
- The maximum number of results to return.lrnbtTargetARN
- The Amazon Resource Name (ARN) of the target resource that you want to list the rules for.
data ListRuleNamesByTarget Source #
Container for the parameters to the ListRuleNamesByTarget
operation.
See: listRuleNamesByTarget
smart constructor.
Request Lenses
lrnbtNextToken :: Lens' ListRuleNamesByTarget (Maybe Text) Source #
The token returned by a previous call to indicate that there is more data available.
lrnbtLimit :: Lens' ListRuleNamesByTarget (Maybe Natural) Source #
The maximum number of results to return.
lrnbtTargetARN :: Lens' ListRuleNamesByTarget Text Source #
The Amazon Resource Name (ARN) of the target resource that you want to list the rules for.
Destructuring the Response
listRuleNamesByTargetResponse Source #
Creates a value of ListRuleNamesByTargetResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lrnbtrsRuleNames
- List of rules names that can invoke the given target.lrnbtrsNextToken
- Indicates that there are additional results to retrieve.lrnbtrsResponseStatus
- -- | The response status code.
data ListRuleNamesByTargetResponse Source #
The result of the ListRuleNamesByTarget
operation.
See: listRuleNamesByTargetResponse
smart constructor.
Response Lenses
lrnbtrsRuleNames :: Lens' ListRuleNamesByTargetResponse [Text] Source #
List of rules names that can invoke the given target.
lrnbtrsNextToken :: Lens' ListRuleNamesByTargetResponse (Maybe Text) Source #
Indicates that there are additional results to retrieve.
lrnbtrsResponseStatus :: Lens' ListRuleNamesByTargetResponse Int Source #
- - | The response status code.