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

Contents

Description

Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.

Synopsis

Creating a Request

listAttacks :: ListAttacks Source #

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

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

  • laStartTime - The time period for the attacks.
  • laResourceARNs - The ARN (Amazon Resource Name) of the resource that was attacked. If this is left blank, all applicable resources for this account will be included.
  • laNextToken - The ListAttacksRequest.NextMarker value from a previous call to ListAttacksRequest . Pass null if this is the first call.
  • laEndTime - The end of the time period for the attacks.
  • laMaxResults - The maximum number of AttackSummary objects to be returned. If this is left blank, the first 20 results will be returned.

data ListAttacks Source #

See: listAttacks smart constructor.

Instances

Eq ListAttacks Source # 
Data ListAttacks Source # 

Methods

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

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

toConstr :: ListAttacks -> Constr #

dataTypeOf :: ListAttacks -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListAttacks Source # 
Show ListAttacks Source # 
Generic ListAttacks Source # 

Associated Types

type Rep ListAttacks :: * -> * #

Hashable ListAttacks Source # 
ToJSON ListAttacks Source # 
NFData ListAttacks Source # 

Methods

rnf :: ListAttacks -> () #

AWSRequest ListAttacks Source # 
ToPath ListAttacks Source # 
ToHeaders ListAttacks Source # 

Methods

toHeaders :: ListAttacks -> [Header] #

ToQuery ListAttacks Source # 
type Rep ListAttacks Source # 
type Rep ListAttacks = D1 (MetaData "ListAttacks" "Network.AWS.Shield.ListAttacks" "amazonka-shield-1.4.5-JP8oj4J5Hj2CSJLRTY9Z9U" False) (C1 (MetaCons "ListAttacks'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_laStartTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TimeRange))) (S1 (MetaSel (Just Symbol "_laResourceARNs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))) ((:*:) (S1 (MetaSel (Just Symbol "_laNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_laEndTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe TimeRange))) (S1 (MetaSel (Just Symbol "_laMaxResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))))))
type Rs ListAttacks Source # 

Request Lenses

laStartTime :: Lens' ListAttacks (Maybe TimeRange) Source #

The time period for the attacks.

laResourceARNs :: Lens' ListAttacks [Text] Source #

The ARN (Amazon Resource Name) of the resource that was attacked. If this is left blank, all applicable resources for this account will be included.

laNextToken :: Lens' ListAttacks (Maybe Text) Source #

The ListAttacksRequest.NextMarker value from a previous call to ListAttacksRequest . Pass null if this is the first call.

laEndTime :: Lens' ListAttacks (Maybe TimeRange) Source #

The end of the time period for the attacks.

laMaxResults :: Lens' ListAttacks (Maybe Natural) Source #

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

Destructuring the Response

listAttacksResponse Source #

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

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

  • larsAttackSummaries - The attack information for the specified time range.
  • larsNextToken - The token returned by a previous call to indicate that there is more data available. If not null, more results are available. Pass this value for the NextMarker parameter in a subsequent call to ListAttacks to retrieve the next set of items.
  • larsResponseStatus - -- | The response status code.

data ListAttacksResponse Source #

See: listAttacksResponse smart constructor.

Instances

Eq ListAttacksResponse Source # 
Data ListAttacksResponse Source # 

Methods

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

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

toConstr :: ListAttacksResponse -> Constr #

dataTypeOf :: ListAttacksResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read ListAttacksResponse Source # 
Show ListAttacksResponse Source # 
Generic ListAttacksResponse Source # 
NFData ListAttacksResponse Source # 

Methods

rnf :: ListAttacksResponse -> () #

type Rep ListAttacksResponse Source # 
type Rep ListAttacksResponse = D1 (MetaData "ListAttacksResponse" "Network.AWS.Shield.ListAttacks" "amazonka-shield-1.4.5-JP8oj4J5Hj2CSJLRTY9Z9U" False) (C1 (MetaCons "ListAttacksResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_larsAttackSummaries") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [AttackSummary]))) ((:*:) (S1 (MetaSel (Just Symbol "_larsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_larsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)))))

Response Lenses

larsAttackSummaries :: Lens' ListAttacksResponse [AttackSummary] Source #

The attack information for the specified time range.

larsNextToken :: Lens' ListAttacksResponse (Maybe Text) Source #

The token returned by a previous call to indicate that there is more data available. If not null, more results are available. Pass this value for the NextMarker parameter in a subsequent call to ListAttacks to retrieve the next set of items.

larsResponseStatus :: Lens' ListAttacksResponse Int Source #

  • - | The response status code.