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

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

Network.AWS.CloudWatchEvents.ListRules

Contents

Description

Lists your Amazon CloudWatch Events rules. You can either list all the rules or you can provide a prefix to match to the rule names.

Synopsis

Creating a Request

listRules :: ListRules Source #

Creates a value of ListRules with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lrNextToken - The token returned by a previous call to retrieve the next set of results.
  • lrNamePrefix - The prefix matching the rule name.
  • lrLimit - The maximum number of results to return.

data ListRules Source #

See: listRules smart constructor.

Instances

Eq ListRules Source # 
Data ListRules Source # 

Methods

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

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

toConstr :: ListRules -> Constr #

dataTypeOf :: ListRules -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListRules Source # 
Show ListRules Source # 
Generic ListRules Source # 

Associated Types

type Rep ListRules :: * -> * #

Hashable ListRules Source # 
ToJSON ListRules Source # 
NFData ListRules Source # 

Methods

rnf :: ListRules -> () #

AWSRequest ListRules Source # 
ToHeaders ListRules Source # 

Methods

toHeaders :: ListRules -> [Header] #

ToPath ListRules Source # 
ToQuery ListRules Source # 
type Rep ListRules Source # 
type Rep ListRules = D1 * (MetaData "ListRules" "Network.AWS.CloudWatchEvents.ListRules" "amazonka-cloudwatch-events-1.6.0-HAo9KGse8vQGR6NGUEJNu3" False) (C1 * (MetaCons "ListRules'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_lrNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lrNamePrefix") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_lrLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat))))))
type Rs ListRules Source # 

Request Lenses

lrNextToken :: Lens' ListRules (Maybe Text) Source #

The token returned by a previous call to retrieve the next set of results.

lrNamePrefix :: Lens' ListRules (Maybe Text) Source #

The prefix matching the rule name.

lrLimit :: Lens' ListRules (Maybe Natural) Source #

The maximum number of results to return.

Destructuring the Response

listRulesResponse Source #

Creates a value of ListRulesResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • lrrsRules - The rules that match the specified criteria.
  • lrrsNextToken - Indicates whether there are additional results to retrieve. If there are no more results, the value is null.
  • lrrsResponseStatus - -- | The response status code.

data ListRulesResponse Source #

See: listRulesResponse smart constructor.

Instances

Eq ListRulesResponse Source # 
Data ListRulesResponse Source # 

Methods

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

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

toConstr :: ListRulesResponse -> Constr #

dataTypeOf :: ListRulesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListRulesResponse Source # 
Show ListRulesResponse Source # 
Generic ListRulesResponse Source # 
NFData ListRulesResponse Source # 

Methods

rnf :: ListRulesResponse -> () #

type Rep ListRulesResponse Source # 
type Rep ListRulesResponse = D1 * (MetaData "ListRulesResponse" "Network.AWS.CloudWatchEvents.ListRules" "amazonka-cloudwatch-events-1.6.0-HAo9KGse8vQGR6NGUEJNu3" False) (C1 * (MetaCons "ListRulesResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_lrrsRules") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Rule]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_lrrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_lrrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

lrrsRules :: Lens' ListRulesResponse [Rule] Source #

The rules that match the specified criteria.

lrrsNextToken :: Lens' ListRulesResponse (Maybe Text) Source #

Indicates whether there are additional results to retrieve. If there are no more results, the value is null.

lrrsResponseStatus :: Lens' ListRulesResponse Int Source #

  • - | The response status code.