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

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 #

See: listRules smart constructor.

Instances
Eq ListRules # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

Data ListRules # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

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 # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

Show ListRules # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

Generic ListRules # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

Associated Types

type Rep ListRules :: Type -> Type #

Hashable ListRules # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

ToJSON ListRules # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

AWSRequest ListRules # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

Associated Types

type Rs ListRules :: Type #

ToHeaders ListRules # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

Methods

toHeaders :: ListRules -> [Header] #

ToPath ListRules # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

ToQuery ListRules # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

NFData ListRules # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

Methods

rnf :: ListRules -> () #

type Rep ListRules # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

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

Defined in Network.AWS.CloudWatchEvents.ListRules

Request Lenses

lrNextToken :: Lens' ListRules (Maybe Text) #

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

lrNamePrefix :: Lens' ListRules (Maybe Text) #

The prefix matching the rule name.

lrLimit :: Lens' ListRules (Maybe Natural) #

The maximum number of results to return.

Destructuring the Response

listRulesResponse #

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 #

See: listRulesResponse smart constructor.

Instances
Eq ListRulesResponse # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

Data ListRulesResponse # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

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 # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

Show ListRulesResponse # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

Generic ListRulesResponse # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

Associated Types

type Rep ListRulesResponse :: Type -> Type #

NFData ListRulesResponse # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

Methods

rnf :: ListRulesResponse -> () #

type Rep ListRulesResponse # 
Instance details

Defined in Network.AWS.CloudWatchEvents.ListRules

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

Response Lenses

lrrsRules :: Lens' ListRulesResponse [Rule] #

The rules that match the specified criteria.

lrrsNextToken :: Lens' ListRulesResponse (Maybe Text) #

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

lrrsResponseStatus :: Lens' ListRulesResponse Int #

  • - | The response status code.