amazonka-cloudwatch-events-1.4.0: Amazon CloudWatch Events SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatchEvents.ListRuleNamesByTarget

Contents

Description

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.

Synopsis

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:

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:

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.