deleteDashboard method

Future<void> deleteDashboard({
  1. required String dashboardId,
})

Deletes the specified dashboard. You cannot delete a dashboard that has termination protection enabled.

May throw ConflictException. May throw ResourceNotFoundException. May throw UnsupportedOperationException.

Parameter dashboardId : The name or ARN for the dashboard.

Implementation

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