updateRefreshSchedule method

Future<UpdateRefreshScheduleResponse> updateRefreshSchedule({
  1. required String awsAccountId,
  2. required String dataSetId,
  3. required RefreshSchedule schedule,
})

Updates a refresh schedule for a dataset.

May throw AccessDeniedException. May throw InternalFailureException. May throw InvalidParameterValueException. May throw LimitExceededException. May throw PreconditionNotMetException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter awsAccountId : The Amazon Web Services account ID.

Parameter dataSetId : The ID of the dataset.

Parameter schedule : The refresh schedule.

Implementation

Future<UpdateRefreshScheduleResponse> updateRefreshSchedule({
  required String awsAccountId,
  required String dataSetId,
  required RefreshSchedule schedule,
}) async {
  final $payload = <String, dynamic>{
    'Schedule': schedule,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri:
        '/accounts/${Uri.encodeComponent(awsAccountId)}/data-sets/${Uri.encodeComponent(dataSetId)}/refresh-schedules',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateRefreshScheduleResponse.fromJson(response);
}