deleteDashboards method

Future<void> deleteDashboards({
  1. required List<String> dashboardNames,
})

Deletes all dashboards that you specify. You can specify up to 100 dashboards to delete. If there is an error during this call, no dashboards are deleted.

May throw InvalidParameterValueException. May throw DashboardNotFoundError. May throw InternalServiceFault.

Parameter dashboardNames : The dashboards to be deleted. This parameter is required.

Implementation

Future<void> deleteDashboards({
  required List<String> dashboardNames,
}) async {
  ArgumentError.checkNotNull(dashboardNames, 'dashboardNames');
  final $request = <String, dynamic>{};
  $request['DashboardNames'] = dashboardNames;
  await _protocol.send(
    $request,
    action: 'DeleteDashboards',
    version: '2010-08-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['DeleteDashboardsInput'],
    shapes: shapes,
    resultWrapper: 'DeleteDashboardsResult',
  );
}