deleteDashboard method

Future<DeleteDashboardResponse> deleteDashboard({
  1. required String arn,
})

Deletes a specified dashboard. This action cannot be undone.

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

Parameter arn : The ARN of the dashboard to be deleted.

Implementation

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

  return DeleteDashboardResponse.fromJson(jsonResponse.body);
}