getCodeSecurityScan method

Future<GetCodeSecurityScanResponse> getCodeSecurityScan({
  1. required CodeSecurityResource resource,
  2. required String scanId,
})

Retrieves information about a specific code security scan.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter resource : The resource identifier for the code repository that was scanned.

Parameter scanId : The unique identifier of the scan to retrieve.

Implementation

Future<GetCodeSecurityScanResponse> getCodeSecurityScan({
  required CodeSecurityResource resource,
  required String scanId,
}) async {
  final $payload = <String, dynamic>{
    'resource': resource,
    'scanId': scanId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/codesecurity/scan/get',
    exceptionFnMap: _exceptionFns,
  );
  return GetCodeSecurityScanResponse.fromJson(response);
}