Copyright | (c) 2013-2021 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 |
Describes the details of a DDoS attack.
Synopsis
- data DescribeAttack = DescribeAttack' {}
- newDescribeAttack :: Text -> DescribeAttack
- describeAttack_attackId :: Lens' DescribeAttack Text
- data DescribeAttackResponse = DescribeAttackResponse' {
- attack :: Maybe AttackDetail
- httpStatus :: Int
- newDescribeAttackResponse :: Int -> DescribeAttackResponse
- describeAttackResponse_attack :: Lens' DescribeAttackResponse (Maybe AttackDetail)
- describeAttackResponse_httpStatus :: Lens' DescribeAttackResponse Int
Creating a Request
data DescribeAttack Source #
See: newDescribeAttack
smart constructor.
Instances
Create a value of DescribeAttack
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:attackId:DescribeAttack'
, describeAttack_attackId
- The unique identifier (ID) for the attack that to be described.
Request Lenses
describeAttack_attackId :: Lens' DescribeAttack Text Source #
The unique identifier (ID) for the attack that to be described.
Destructuring the Response
data DescribeAttackResponse Source #
See: newDescribeAttackResponse
smart constructor.
DescribeAttackResponse' | |
|
Instances
newDescribeAttackResponse Source #
Create a value of DescribeAttackResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:attack:DescribeAttackResponse'
, describeAttackResponse_attack
- The attack that is described.
$sel:httpStatus:DescribeAttackResponse'
, describeAttackResponse_httpStatus
- The response's http status code.
Response Lenses
describeAttackResponse_attack :: Lens' DescribeAttackResponse (Maybe AttackDetail) Source #
The attack that is described.
describeAttackResponse_httpStatus :: Lens' DescribeAttackResponse Int Source #
The response's http status code.