startCisSession method
Future<void>
startCisSession({
- required StartCisSessionMessage message,
- required String scanJobId,
Starts 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 start 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 start CIS session message.
Parameter scanJobId :
A unique identifier for the scan job.
Implementation
Future<void> startCisSession({
required StartCisSessionMessage message,
required String scanJobId,
}) async {
final $payload = <String, dynamic>{
'message': message,
'scanJobId': scanJobId,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/cissession/start',
exceptionFnMap: _exceptionFns,
);
}