putLoggingOptions method
Creates or updates the logging option.
May throw AccessDeniedException.
May throw ConflictException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter cloudWatchLogDelivery :
Creates or updates the log delivery option to Amazon CloudWatch Logs.
Implementation
Future<void> putLoggingOptions({
required CloudWatchLogDeliveryOptions cloudWatchLogDelivery,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'IoTAutobahnControlPlane.PutLoggingOptions'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'cloudWatchLogDelivery': cloudWatchLogDelivery,
},
);
}