getDetector method
Retrieves an Amazon GuardDuty detector specified by the detectorId.
May throw BadRequestException. May throw InternalServerErrorException.
Parameter detectorId
:
The unique ID of the detector that you want to get.
Implementation
Future<GetDetectorResponse> getDetector({
required String detectorId,
}) async {
ArgumentError.checkNotNull(detectorId, 'detectorId');
_s.validateStringLength(
'detectorId',
detectorId,
1,
300,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/detector/${Uri.encodeComponent(detectorId)}',
exceptionFnMap: _exceptionFns,
);
return GetDetectorResponse.fromJson(response);
}