associatePhoneNumberContactFlow method
Associates a flow with 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 contactFlowId :
The identifier of the flow.
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> associatePhoneNumberContactFlow({
required String contactFlowId,
required String instanceId,
required String phoneNumberId,
}) async {
final $payload = <String, dynamic>{
'ContactFlowId': contactFlowId,
'InstanceId': instanceId,
};
await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/phone-number/${Uri.encodeComponent(phoneNumberId)}/contact-flow',
exceptionFnMap: _exceptionFns,
);
}