deleteVoiceChannel method

Future<DeleteVoiceChannelResponse> deleteVoiceChannel({
  1. required String applicationId,
})

Disables the voice channel for an application and deletes any existing settings for the channel.

May throw BadRequestException. May throw ForbiddenException. May throw InternalServerErrorException. May throw MethodNotAllowedException. May throw NotFoundException. May throw PayloadTooLargeException. May throw TooManyRequestsException.

Parameter applicationId : The unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.

Implementation

Future<DeleteVoiceChannelResponse> deleteVoiceChannel({
  required String applicationId,
}) async {
  final response = await _protocol.sendRaw(
    payload: null,
    method: 'DELETE',
    requestUri:
        '/v1/apps/${Uri.encodeComponent(applicationId)}/channels/voice',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return DeleteVoiceChannelResponse(
    voiceChannelResponse: VoiceChannelResponse.fromJson($json),
  );
}