sendCisSessionTelemetry method
Sends a CIS session telemetry. 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 messages :
The CIS session telemetry messages.
Parameter scanJobId :
A unique identifier for the scan job.
Parameter sessionToken :
The unique token that identifies the CIS session.
Implementation
Future<void> sendCisSessionTelemetry({
required List<CisSessionMessage> messages,
required String scanJobId,
required String sessionToken,
}) async {
final $payload = <String, dynamic>{
'messages': messages,
'scanJobId': scanJobId,
'sessionToken': sessionToken,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/cissession/telemetry/send',
exceptionFnMap: _exceptionFns,
);
}