| Copyright | (c) 2013-2017 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.Shield.ListAttacks
Description
Returns all ongoing DDoS attacks or all DDoS attacks during a specified time period.
- listAttacks :: ListAttacks
- data ListAttacks
- laStartTime :: Lens' ListAttacks (Maybe TimeRange)
- laResourceARNs :: Lens' ListAttacks [Text]
- laNextToken :: Lens' ListAttacks (Maybe Text)
- laEndTime :: Lens' ListAttacks (Maybe TimeRange)
- laMaxResults :: Lens' ListAttacks (Maybe Natural)
- listAttacksResponse :: Int -> ListAttacksResponse
- data ListAttacksResponse
- larsAttackSummaries :: Lens' ListAttacksResponse [AttackSummary]
- larsNextToken :: Lens' ListAttacksResponse (Maybe Text)
- larsResponseStatus :: Lens' ListAttacksResponse Int
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- TheListAttacksRequest.NextMarkervalue from a previous call toListAttacksRequest. Pass null if this is the first call.laEndTime- The end of the time period for the attacks.laMaxResults- The maximum number ofAttackSummaryobjects to be returned. If this is left blank, the first 20 results will be returned.
data ListAttacks Source #
See: listAttacks smart constructor.
Instances
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
Arguments
| :: Int | |
| -> ListAttacksResponse |
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 theNextMarkerparameter in a subsequent call toListAttacksto retrieve the next set of items.larsResponseStatus- -- | The response status code.
data ListAttacksResponse Source #
See: listAttacksResponse smart constructor.
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.