deleteBusinessReportSchedule method

Future<void> deleteBusinessReportSchedule({
  1. required String scheduleArn,
})

Deletes the recurring report delivery schedule with the specified schedule ARN.

May throw NotFoundException. May throw ConcurrentModificationException.

Parameter scheduleArn : The ARN of the business report schedule.

Implementation

Future<void> deleteBusinessReportSchedule({
  required String scheduleArn,
}) async {
  ArgumentError.checkNotNull(scheduleArn, 'scheduleArn');
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AlexaForBusiness.DeleteBusinessReportSchedule'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ScheduleArn': scheduleArn,
    },
  );
}