updateVoiceConnector method
Updates details for the specified Amazon Chime Voice Connector.
May throw UnauthorizedClientException. May throw NotFoundException. May throw ForbiddenException. May throw BadRequestException. May throw ThrottledClientException. May throw ServiceUnavailableException. May throw ServiceFailureException.
Parameter name
:
The name of the Amazon Chime Voice Connector.
Parameter requireEncryption
:
When enabled, requires encryption for the Amazon Chime Voice Connector.
Parameter voiceConnectorId
:
The Amazon Chime Voice Connector ID.
Implementation
Future<UpdateVoiceConnectorResponse> updateVoiceConnector({
required String name,
required bool requireEncryption,
required String voiceConnectorId,
}) async {
ArgumentError.checkNotNull(name, 'name');
_s.validateStringLength(
'name',
name,
1,
256,
isRequired: true,
);
ArgumentError.checkNotNull(requireEncryption, 'requireEncryption');
ArgumentError.checkNotNull(voiceConnectorId, 'voiceConnectorId');
final $payload = <String, dynamic>{
'Name': name,
'RequireEncryption': requireEncryption,
};
final response = await _protocol.send(
payload: $payload,
method: 'PUT',
requestUri: '/voice-connectors/${Uri.encodeComponent(voiceConnectorId)}',
exceptionFnMap: _exceptionFns,
);
return UpdateVoiceConnectorResponse.fromJson(response);
}