updateApnsVoipChannel method
Future<UpdateApnsVoipChannelResponse>
updateApnsVoipChannel({
- required APNSVoipChannelRequest aPNSVoipChannelRequest,
- required String applicationId,
Enables the APNs VoIP channel for an application or updates the status and settings of the APNs VoIP channel for an application.
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<UpdateApnsVoipChannelResponse> updateApnsVoipChannel({
required APNSVoipChannelRequest aPNSVoipChannelRequest,
required String applicationId,
}) async {
final response = await _protocol.sendRaw(
payload: aPNSVoipChannelRequest,
method: 'PUT',
requestUri:
'/v1/apps/${Uri.encodeComponent(applicationId)}/channels/apns_voip',
exceptionFnMap: _exceptionFns,
);
final $json = await _s.jsonFromResponse(response);
return UpdateApnsVoipChannelResponse(
aPNSVoipChannelResponse: APNSVoipChannelResponse.fromJson($json),
);
}