deleteScheduledReport method

Future<DeleteScheduledReportResponse> deleteScheduledReport({
  1. required String arn,
})

Deletes a specified scheduled report. This is an irreversible operation.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter arn : The ARN of the scheduled report to delete.

Implementation

Future<DeleteScheduledReportResponse> deleteScheduledReport({
  required String arn,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'AWSBCMDashboardsService.DeleteScheduledReport'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'arn': arn,
    },
  );

  return DeleteScheduledReportResponse.fromJson(jsonResponse.body);
}