describeAttack method
Describes the details of a DDoS attack.
May throw InternalErrorException. May throw AccessDeniedException.
Parameter attackId
:
The unique identifier (ID) for the attack that to be described.
Implementation
Future<DescribeAttackResponse> describeAttack({
required String attackId,
}) async {
ArgumentError.checkNotNull(attackId, 'attackId');
_s.validateStringLength(
'attackId',
attackId,
1,
128,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'AWSShield_20160616.DescribeAttack'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'AttackId': attackId,
},
);
return DescribeAttackResponse.fromJson(jsonResponse.body);
}