updateConnectionRecordingPreferences method

Future<UpdateConnectionRecordingPreferencesResponse> updateConnectionRecordingPreferences({
  1. required ConnectionRecordingPreferences connectionRecordingPreferences,
  2. String? clientToken,
})

Updates the preferences for recording RDP connections.

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

Parameter connectionRecordingPreferences : The set of preferences used for recording RDP connections in the requesting Amazon Web Services account and Amazon Web Services Region. This includes details such as which S3 bucket recordings are stored in.

Parameter clientToken : User-provided idempotency token.

Implementation

Future<UpdateConnectionRecordingPreferencesResponse>
    updateConnectionRecordingPreferences({
  required ConnectionRecordingPreferences connectionRecordingPreferences,
  String? clientToken,
}) async {
  final $payload = <String, dynamic>{
    'ConnectionRecordingPreferences': connectionRecordingPreferences,
    'ClientToken': clientToken ?? _s.generateIdempotencyToken(),
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/UpdateConnectionRecordingPreferences',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateConnectionRecordingPreferencesResponse.fromJson(response);
}