amazonka-cloudwatch-events-1.4.5: 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 #

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 #

Container for the parameters to the ListRuleNamesByTarget operation.

See: listRuleNamesByTarget smart constructor.

Instances

Eq ListRuleNamesByTarget # 
Data ListRuleNamesByTarget # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListRuleNamesByTarget -> c ListRuleNamesByTarget #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListRuleNamesByTarget #

toConstr :: ListRuleNamesByTarget -> Constr #

dataTypeOf :: ListRuleNamesByTarget -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListRuleNamesByTarget) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListRuleNamesByTarget) #

gmapT :: (forall b. Data b => b -> b) -> ListRuleNamesByTarget -> ListRuleNamesByTarget #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListRuleNamesByTarget -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListRuleNamesByTarget -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListRuleNamesByTarget -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListRuleNamesByTarget -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListRuleNamesByTarget -> m ListRuleNamesByTarget #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListRuleNamesByTarget -> m ListRuleNamesByTarget #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListRuleNamesByTarget -> m ListRuleNamesByTarget #

Read ListRuleNamesByTarget # 
Show ListRuleNamesByTarget # 
Generic ListRuleNamesByTarget # 
Hashable ListRuleNamesByTarget # 
ToJSON ListRuleNamesByTarget # 
NFData ListRuleNamesByTarget # 

Methods

rnf :: ListRuleNamesByTarget -> () #

AWSRequest ListRuleNamesByTarget # 
ToQuery ListRuleNamesByTarget # 
ToPath ListRuleNamesByTarget # 
ToHeaders ListRuleNamesByTarget # 
type Rep ListRuleNamesByTarget # 
type Rep ListRuleNamesByTarget = D1 (MetaData "ListRuleNamesByTarget" "Network.AWS.CloudWatchEvents.ListRuleNamesByTarget" "amazonka-cloudwatch-events-1.4.5-6DdwNqzTXs3BVXIlURV4bz" False) (C1 (MetaCons "ListRuleNamesByTarget'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lrnbtNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_lrnbtLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) (S1 (MetaSel (Just Symbol "_lrnbtTargetARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs ListRuleNamesByTarget # 

Request Lenses

lrnbtNextToken :: Lens' ListRuleNamesByTarget (Maybe Text) #

The token returned by a previous call to indicate that there is more data available.

lrnbtLimit :: Lens' ListRuleNamesByTarget (Maybe Natural) #

The maximum number of results to return.

lrnbtTargetARN :: Lens' ListRuleNamesByTarget Text #

The Amazon Resource Name (ARN) of the target resource that you want to list the rules for.

Destructuring the Response

listRuleNamesByTargetResponse #

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:

data ListRuleNamesByTargetResponse #

The result of the ListRuleNamesByTarget operation.

See: listRuleNamesByTargetResponse smart constructor.

Instances

Eq ListRuleNamesByTargetResponse # 
Data ListRuleNamesByTargetResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListRuleNamesByTargetResponse -> c ListRuleNamesByTargetResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListRuleNamesByTargetResponse #

toConstr :: ListRuleNamesByTargetResponse -> Constr #

dataTypeOf :: ListRuleNamesByTargetResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ListRuleNamesByTargetResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListRuleNamesByTargetResponse) #

gmapT :: (forall b. Data b => b -> b) -> ListRuleNamesByTargetResponse -> ListRuleNamesByTargetResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListRuleNamesByTargetResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListRuleNamesByTargetResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ListRuleNamesByTargetResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ListRuleNamesByTargetResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListRuleNamesByTargetResponse -> m ListRuleNamesByTargetResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListRuleNamesByTargetResponse -> m ListRuleNamesByTargetResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListRuleNamesByTargetResponse -> m ListRuleNamesByTargetResponse #

Read ListRuleNamesByTargetResponse # 
Show ListRuleNamesByTargetResponse # 
Generic ListRuleNamesByTargetResponse # 
NFData ListRuleNamesByTargetResponse # 
type Rep ListRuleNamesByTargetResponse # 
type Rep ListRuleNamesByTargetResponse = D1 (MetaData "ListRuleNamesByTargetResponse" "Network.AWS.CloudWatchEvents.ListRuleNamesByTarget" "amazonka-cloudwatch-events-1.4.5-6DdwNqzTXs3BVXIlURV4bz" False) (C1 (MetaCons "ListRuleNamesByTargetResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lrnbtrsRuleNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_lrnbtrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lrnbtrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

lrnbtrsRuleNames :: Lens' ListRuleNamesByTargetResponse [Text] #

List of rules names that can invoke the given target.

lrnbtrsNextToken :: Lens' ListRuleNamesByTargetResponse (Maybe Text) #

Indicates that there are additional results to retrieve.