createSipMediaApplication method

Future<CreateSipMediaApplicationResponse> createSipMediaApplication({
  1. required String awsRegion,
  2. required List<SipMediaApplicationEndpoint> endpoints,
  3. required String name,
  4. List<Tag>? tags,
})

Creates a SIP media application. For more information about SIP media applications, see Managing SIP media applications and rules in the Amazon Chime SDK Administrator Guide.

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

Parameter awsRegion : The AWS Region assigned to the SIP media application.

Parameter endpoints : List of endpoints (Lambda ARNs) specified for the SIP media application.

Parameter name : The SIP media application's name.

Parameter tags : The tags assigned to the SIP media application.

Implementation

Future<CreateSipMediaApplicationResponse> createSipMediaApplication({
  required String awsRegion,
  required List<SipMediaApplicationEndpoint> endpoints,
  required String name,
  List<Tag>? tags,
}) async {
  final $payload = <String, dynamic>{
    'AwsRegion': awsRegion,
    'Endpoints': endpoints,
    'Name': name,
    if (tags != null) 'Tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/sip-media-applications',
    exceptionFnMap: _exceptionFns,
  );
  return CreateSipMediaApplicationResponse.fromJson(response);
}