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.ListRules

Contents

Description

Lists the Amazon CloudWatch Events rules in your account. You can either list all the rules or you can provide a prefix to match to the rule names. 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 ListRules until the NextToken in the response is returned as null.

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 indicate that there is more data available.
  • lrNamePrefix - The prefix matching the rule name.
  • lrLimit - The maximum number of results to return.

data ListRules Source #

Container for the parameters to the ListRules operation.

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 # 
ToPath ListRules Source # 
ToHeaders ListRules Source # 

Methods

toHeaders :: ListRules -> [Header] #

ToQuery ListRules Source # 
type Rep ListRules Source # 
type Rep ListRules = D1 (MetaData "ListRules" "Network.AWS.CloudWatchEvents.ListRules" "amazonka-cloudwatch-events-1.4.5-C1rNKxAlYdGGYs6EYwCVVS" 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 indicate that there is more data available.

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:

data ListRulesResponse Source #

The result of the ListRules operation.

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.4.5-C1rNKxAlYdGGYs6EYwCVVS" 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 DecidedUnpack) (Rec0 Int)))))

Response Lenses

lrrsRules :: Lens' ListRulesResponse [Rule] Source #

List of rules matching the specified criteria.

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

Indicates that there are additional results to retrieve.

lrrsResponseStatus :: Lens' ListRulesResponse Int Source #

  • - | The response status code.