putVoiceConnectorEmergencyCallingConfiguration method
Future<PutVoiceConnectorEmergencyCallingConfigurationResponse>
putVoiceConnectorEmergencyCallingConfiguration({
- required EmergencyCallingConfiguration emergencyCallingConfiguration,
- required String voiceConnectorId,
Updates a Voice Connector's emergency calling configuration.
May throw BadRequestException.
May throw ForbiddenException.
May throw NotFoundException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter emergencyCallingConfiguration :
The configuration being updated.
Parameter voiceConnectorId :
The Voice Connector ID.
Implementation
Future<PutVoiceConnectorEmergencyCallingConfigurationResponse>
putVoiceConnectorEmergencyCallingConfiguration({
required EmergencyCallingConfiguration emergencyCallingConfiguration,
required String voiceConnectorId,
}) async {
final $payload = <String, dynamic>{
'EmergencyCallingConfiguration': emergencyCallingConfiguration,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri:
'/voice-connectors/${Uri.encodeComponent(voiceConnectorId)}/emergency-calling-configuration',
exceptionFnMap: _exceptionFns,
);
return PutVoiceConnectorEmergencyCallingConfigurationResponse.fromJson(
response);
}