deleteHoursOfOperation method

Future<void> deleteHoursOfOperation({
  1. required String hoursOfOperationId,
  2. required String instanceId,
})

Deletes an hours of operation.

May throw InternalServiceException. May throw InvalidParameterException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter hoursOfOperationId : The identifier for the hours of operation.

Parameter instanceId : The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Implementation

Future<void> deleteHoursOfOperation({
  required String hoursOfOperationId,
  required String instanceId,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/hours-of-operations/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(hoursOfOperationId)}',
    exceptionFnMap: _exceptionFns,
  );
}