deleteCampaign method

Future<void> deleteCampaign({
  1. required String id,
})

Deletes a campaign from the specified Amazon Connect account.

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

Implementation

Future<void> deleteCampaign({
  required String id,
}) async {
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/campaigns/${Uri.encodeComponent(id)}',
    exceptionFnMap: _exceptionFns,
  );
}