amazonka-shield-1.5.0: Amazon Shield SDK.

Copyright(c) 2013-2017 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.Shield.ListProtections

Contents

Description

Lists all Protection objects for the account.

Synopsis

Creating a Request

listProtections :: ListProtections Source #

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

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

  • lpNextToken - The ListProtectionsRequest.NextToken value from a previous call to ListProtections . Pass null if this is the first call.
  • lpMaxResults - The maximum number of Protection objects to be returned. If this is left blank the first 20 results will be returned.

data ListProtections Source #

See: listProtections smart constructor.

Instances

Eq ListProtections Source # 
Data ListProtections Source # 

Methods

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

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

toConstr :: ListProtections -> Constr #

dataTypeOf :: ListProtections -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListProtections Source # 
Show ListProtections Source # 
Generic ListProtections Source # 
Hashable ListProtections Source # 
ToJSON ListProtections Source # 
NFData ListProtections Source # 

Methods

rnf :: ListProtections -> () #

AWSRequest ListProtections Source # 
ToQuery ListProtections Source # 
ToPath ListProtections Source # 
ToHeaders ListProtections Source # 
type Rep ListProtections Source # 
type Rep ListProtections = D1 (MetaData "ListProtections" "Network.AWS.Shield.ListProtections" "amazonka-shield-1.5.0-D7peow1S4G05UtAnU0PnOg" False) (C1 (MetaCons "ListProtections'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lpNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lpMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))))
type Rs ListProtections Source # 

Request Lenses

lpNextToken :: Lens' ListProtections (Maybe Text) Source #

The ListProtectionsRequest.NextToken value from a previous call to ListProtections . Pass null if this is the first call.

lpMaxResults :: Lens' ListProtections (Maybe Natural) Source #

The maximum number of Protection objects to be returned. If this is left blank the first 20 results will be returned.

Destructuring the Response

listProtectionsResponse Source #

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

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

  • lprsProtections - The array of enabled Protection objects.
  • lprsNextToken - If you specify a value for MaxResults and you have more Protections than the value of MaxResults, AWS Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections.
  • lprsResponseStatus - -- | The response status code.

data ListProtectionsResponse Source #

See: listProtectionsResponse smart constructor.

Instances

Eq ListProtectionsResponse Source # 
Data ListProtectionsResponse Source # 

Methods

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

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

toConstr :: ListProtectionsResponse -> Constr #

dataTypeOf :: ListProtectionsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListProtectionsResponse Source # 
Show ListProtectionsResponse Source # 
Generic ListProtectionsResponse Source # 
NFData ListProtectionsResponse Source # 

Methods

rnf :: ListProtectionsResponse -> () #

type Rep ListProtectionsResponse Source # 
type Rep ListProtectionsResponse = D1 (MetaData "ListProtectionsResponse" "Network.AWS.Shield.ListProtections" "amazonka-shield-1.5.0-D7peow1S4G05UtAnU0PnOg" False) (C1 (MetaCons "ListProtectionsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_lprsProtections") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Protection]))) ((:*:) (S1 (MetaSel (Just Symbol "_lprsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_lprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

lprsNextToken :: Lens' ListProtectionsResponse (Maybe Text) Source #

If you specify a value for MaxResults and you have more Protections than the value of MaxResults, AWS Shield Advanced returns a NextToken value in the response that allows you to list another group of Protections. For the second and subsequent ListProtections requests, specify the value of NextToken from the previous response to get information about another batch of Protections.