pauseCampaign method

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

Pauses a campaign for the specified Amazon Connect account.

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

Implementation

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