putLoggingOptions method
Sets logging options for IoT SiteWise.
May throw ConflictingOperationException.
May throw InternalFailureException.
May throw InvalidRequestException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter loggingOptions :
The logging options to set.
Parameter workspaceName :
The name of the workspace.
Implementation
Future<void> putLoggingOptions({
required LoggingOptions loggingOptions,
String? workspaceName,
}) async {
final $payload = <String, dynamic>{
'loggingOptions': loggingOptions,
if (workspaceName != null) 'workspaceName': workspaceName,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/logging',
hostPrefix: 'api.',
exceptionFnMap: _exceptionFns,
);
}