disassociatePhoneNumberContactFlow method

Future<void> disassociatePhoneNumberContactFlow({
  1. required String instanceId,
  2. required String phoneNumberId,
})

Removes the flow association from a phone number claimed to your Connect Customer instance.

May throw AccessDeniedException. May throw InternalServiceException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter instanceId : The identifier of the Connect Customer instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Parameter phoneNumberId : A unique identifier for the phone number.

Implementation

Future<void> disassociatePhoneNumberContactFlow({
  required String instanceId,
  required String phoneNumberId,
}) async {
  final $query = <String, List<String>>{
    'instanceId': [instanceId],
  };
  await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/phone-number/${Uri.encodeComponent(phoneNumberId)}/contact-flow',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
}