createVoiceConnectorGroup method
Creates an Amazon Chime SDK Voice Connector group under the
administrator's AWS account. You can associate Amazon Chime SDK Voice
Connectors with the Voice Connector group by including
VoiceConnectorItems in the request.
You can include Voice Connectors from different AWS Regions in your group. This creates a fault tolerant mechanism for fallback in case of availability events.
May throw AccessDeniedException.
May throw BadRequestException.
May throw ForbiddenException.
May throw NotFoundException.
May throw ResourceLimitExceededException.
May throw ServiceFailureException.
May throw ServiceUnavailableException.
May throw ThrottledClientException.
May throw UnauthorizedClientException.
Parameter name :
The name of the Voice Connector group.
Parameter voiceConnectorItems :
Lists the Voice Connectors that inbound calls are routed to.
Implementation
Future<CreateVoiceConnectorGroupResponse> createVoiceConnectorGroup({
required String name,
CallDistributionType? callDistributionType,
List<VoiceConnectorItem>? voiceConnectorItems,
}) async {
final $payload = <String, dynamic>{
'Name': name,
if (callDistributionType != null)
'CallDistributionType': callDistributionType.value,
if (voiceConnectorItems != null)
'VoiceConnectorItems': voiceConnectorItems,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/voice-connector-groups',
exceptionFnMap: _exceptionFns,
);
return CreateVoiceConnectorGroupResponse.fromJson(response);
}