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

Contents

Description

Lists all Protection objects for the account.

This operation returns paginated results.

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

Defined in Network.AWS.Shield.ListProtections

Data ListProtections Source # 
Instance details

Defined in Network.AWS.Shield.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 Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

Show ListProtections Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

Generic ListProtections Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

Associated Types

type Rep ListProtections :: Type -> Type #

Hashable ListProtections Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

ToJSON ListProtections Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

AWSPager ListProtections Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

AWSRequest ListProtections Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

Associated Types

type Rs ListProtections :: Type #

ToHeaders ListProtections Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

ToPath ListProtections Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

ToQuery ListProtections Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

NFData ListProtections Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

Methods

rnf :: ListProtections -> () #

type Rep ListProtections Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

type Rep ListProtections = D1 (MetaData "ListProtections" "Network.AWS.Shield.ListProtections" "amazonka-shield-1.6.1-8Y66prV5lhL7KZmytnDDA7" False) (C1 (MetaCons "ListProtections'" PrefixI True) (S1 (MetaSel (Just "_lpNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_lpMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))))
type Rs ListProtections Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

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

Defined in Network.AWS.Shield.ListProtections

Data ListProtectionsResponse Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

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

Defined in Network.AWS.Shield.ListProtections

Show ListProtectionsResponse Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

Generic ListProtectionsResponse Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

Associated Types

type Rep ListProtectionsResponse :: Type -> Type #

NFData ListProtectionsResponse Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

Methods

rnf :: ListProtectionsResponse -> () #

type Rep ListProtectionsResponse Source # 
Instance details

Defined in Network.AWS.Shield.ListProtections

type Rep ListProtectionsResponse = D1 (MetaData "ListProtectionsResponse" "Network.AWS.Shield.ListProtections" "amazonka-shield-1.6.1-8Y66prV5lhL7KZmytnDDA7" False) (C1 (MetaCons "ListProtectionsResponse'" PrefixI True) (S1 (MetaSel (Just "_lprsProtections") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Protection])) :*: (S1 (MetaSel (Just "_lprsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_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.