@Override
    public UpdateMonitorResult updateMonitor(UpdateMonitorRequest request) {
        request = beforeClientExecution(request);
        return executeUpdateMonitor(request);
    }
<p>
Updates the <code>aggregationPeriod</code> for a monitor. Monitors support an <code>aggregationPeriod</code> of
either <code>30</code> or <code>60</code> seconds. This action requires the <code>monitorName</code> and
<code>probeId</code> parameter. Run <code>ListMonitors</code> to get a list of monitor names.
</p>

@param updateMonitorRequest
@return Result of the UpdateMonitor operation returned by the service.
@throws AccessDeniedException
        You do not have sufficient access to perform this action.
@throws ResourceNotFoundException
        The specified resource does not exist.
@throws ThrottlingException
        The request was denied due to request throttling
@throws ValidationException
        One of the parameters for the request is not valid.
@throws InternalServerException
        The request processing has failed because of an unknown error, exception or failure.
@throws ServiceQuotaExceededException
        This request exceeds a service quota.
@sample AmazonNetworkMonitor.UpdateMonitor
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/networkmonitor-2023-08-01/UpdateMonitor" target="_top">AWS
     API Documentation</a>
aws-java-sdk-networkmonitor/src/main/java/com/amazonaws/services/networkmonitor/AmazonNetworkMonitorClient.java