describeAttack method

Future<DescribeAttackResponse> describeAttack({
  1. required String attackId,
})

Describes the details of a DDoS attack.

May throw AccessDeniedException. May throw InternalErrorException.

Parameter attackId : The unique identifier (ID) for the attack.

Implementation

Future<DescribeAttackResponse> describeAttack({
  required String attackId,
}) async {
  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);
}