createVoiceConnectorGroup method

Future<CreateVoiceConnectorGroupResponse> createVoiceConnectorGroup({
  1. required String name,
  2. List<VoiceConnectorItem>? voiceConnectorItems,
})

Creates an Amazon Chime Voice Connector group under the administrator's AWS account. You can associate Amazon Chime Voice Connectors with the Amazon Chime Voice Connector group by including VoiceConnectorItems in the request.

You can include Amazon Chime Voice Connectors from different AWS Regions in your group. This creates a fault tolerant mechanism for fallback in case of availability events.

May throw BadRequestException. May throw ForbiddenException. May throw AccessDeniedException. May throw UnauthorizedClientException. May throw ThrottledClientException. May throw ResourceLimitExceededException. May throw ServiceUnavailableException. May throw ServiceFailureException.

Parameter name : The name of the Amazon Chime Voice Connector group.

Parameter voiceConnectorItems : The Amazon Chime Voice Connectors to route inbound calls to.

Implementation

Future<CreateVoiceConnectorGroupResponse> createVoiceConnectorGroup({
  required String name,
  List<VoiceConnectorItem>? voiceConnectorItems,
}) async {
  ArgumentError.checkNotNull(name, 'name');
  _s.validateStringLength(
    'name',
    name,
    1,
    256,
    isRequired: true,
  );
  final $payload = <String, dynamic>{
    'Name': name,
    if (voiceConnectorItems != null)
      'VoiceConnectorItems': voiceConnectorItems,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/voice-connector-groups',
    exceptionFnMap: _exceptionFns,
  );
  return CreateVoiceConnectorGroupResponse.fromJson(response);
}