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.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 start of the time period for the attacks. This is a timestamp type. The sample request above indicates a number type because the default used by WAF is Unix time in seconds. However any valid timestamp format is allowed.
  • 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. This is a timestamp type. The sample request above indicates a number type because the default used by WAF is Unix time in seconds. However any valid timestamp format is allowed.
  • 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 # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

Data ListAttacks Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

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

Defined in Network.AWS.Shield.ListAttacks

Show ListAttacks Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

Generic ListAttacks Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

Associated Types

type Rep ListAttacks :: Type -> Type #

Hashable ListAttacks Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

ToJSON ListAttacks Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

AWSRequest ListAttacks Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

Associated Types

type Rs ListAttacks :: Type #

ToHeaders ListAttacks Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

Methods

toHeaders :: ListAttacks -> [Header] #

ToPath ListAttacks Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

ToQuery ListAttacks Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

NFData ListAttacks Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

Methods

rnf :: ListAttacks -> () #

type Rep ListAttacks Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

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

Defined in Network.AWS.Shield.ListAttacks

Request Lenses

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

The start of the time period for the attacks. This is a timestamp type. The sample request above indicates a number type because the default used by WAF is Unix time in seconds. However any valid timestamp format is allowed.

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. This is a timestamp type. The sample request above indicates a number type because the default used by WAF is Unix time in seconds. However any valid timestamp format is allowed.

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

Defined in Network.AWS.Shield.ListAttacks

Data ListAttacksResponse Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

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

Defined in Network.AWS.Shield.ListAttacks

Show ListAttacksResponse Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

Generic ListAttacksResponse Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

Associated Types

type Rep ListAttacksResponse :: Type -> Type #

NFData ListAttacksResponse Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

Methods

rnf :: ListAttacksResponse -> () #

type Rep ListAttacksResponse Source # 
Instance details

Defined in Network.AWS.Shield.ListAttacks

type Rep ListAttacksResponse = D1 (MetaData "ListAttacksResponse" "Network.AWS.Shield.ListAttacks" "amazonka-shield-1.6.1-8Y66prV5lhL7KZmytnDDA7" False) (C1 (MetaCons "ListAttacksResponse'" PrefixI True) (S1 (MetaSel (Just "_larsAttackSummaries") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [AttackSummary])) :*: (S1 (MetaSel (Just "_larsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_larsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (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.