amazonka-shield-1.4.5: Amazon Shield 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.Shield.ListProtections

Contents

Description

Lists all Protection objects for the account.

Synopsis

Creating a Request

listProtections :: ListProtections #

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 #

See: listProtections smart constructor.

Instances

Eq ListProtections # 
Data ListProtections # 

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 # 
Show ListProtections # 
Generic ListProtections # 
Hashable ListProtections # 
ToJSON ListProtections # 
NFData ListProtections # 

Methods

rnf :: ListProtections -> () #

AWSRequest ListProtections # 
ToQuery ListProtections # 
ToPath ListProtections # 
ToHeaders ListProtections # 
type Rep ListProtections # 
type Rep ListProtections = D1 (MetaData "ListProtections" "Network.AWS.Shield.ListProtections" "amazonka-shield-1.4.5-2mbTguNn2yUF6VCRPwT5Lk" 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 # 

Request Lenses

lpNextToken :: Lens' ListProtections (Maybe Text) #

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

lpMaxResults :: Lens' ListProtections (Maybe Natural) #

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 #

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 #

See: listProtectionsResponse smart constructor.

Instances

Eq ListProtectionsResponse # 
Data ListProtectionsResponse # 

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 # 
Show ListProtectionsResponse # 
Generic ListProtectionsResponse # 
NFData ListProtectionsResponse # 

Methods

rnf :: ListProtectionsResponse -> () #

type Rep ListProtectionsResponse # 
type Rep ListProtectionsResponse = D1 (MetaData "ListProtectionsResponse" "Network.AWS.Shield.ListProtections" "amazonka-shield-1.4.5-2mbTguNn2yUF6VCRPwT5Lk" 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 DecidedUnpack) (Rec0 Int)))))

Response Lenses

lprsNextToken :: Lens' ListProtectionsResponse (Maybe Text) #

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 :: Lens' ListProtectionsResponse Int #

  • - | The response status code.