updateMonitor method
Modifies the settings for a Deadline Cloud monitor. You can modify one or
all of the settings when you call UpdateMonitor.
May throw AccessDeniedException.
May throw InternalServerErrorException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter monitorId :
The unique identifier of the monitor to update.
Parameter displayName :
The new value to use for the monitor's display name.
Parameter roleArn :
The Amazon Resource Name of the new IAM role to use with the monitor.
Parameter subdomain :
The new value of the subdomain to use when forming the monitor URL.
Implementation
Future<void> updateMonitor({
required String monitorId,
String? displayName,
String? roleArn,
String? subdomain,
}) async {
final $payload = <String, dynamic>{
if (displayName != null) 'displayName': displayName,
if (roleArn != null) 'roleArn': roleArn,
if (subdomain != null) 'subdomain': subdomain,
};
final response = await _protocol.send(
payload: $payload,
method: 'PATCH',
requestUri: '/2023-10-12/monitors/${Uri.encodeComponent(monitorId)}',
exceptionFnMap: _exceptionFns,
);
}