stopCisSession method

Future<void> stopCisSession({
  1. required StopCisSessionMessage message,
  2. required String scanJobId,
  3. required String sessionToken,
})

Stops a CIS session. This API is used by the Amazon Inspector SSM plugin to communicate with the Amazon Inspector service. The Amazon Inspector SSM plugin calls this API to stop a CIS scan session for the scan ID supplied by the service.

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

Parameter message : The stop CIS session message.

Parameter scanJobId : A unique identifier for the scan job.

Parameter sessionToken : The unique token that identifies the CIS session.

Implementation

Future<void> stopCisSession({
  required StopCisSessionMessage message,
  required String scanJobId,
  required String sessionToken,
}) async {
  final $payload = <String, dynamic>{
    'message': message,
    'scanJobId': scanJobId,
    'sessionToken': sessionToken,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/cissession/stop',
    exceptionFnMap: _exceptionFns,
  );
}