updateApplicationSettings method

Future<UpdateApplicationSettingsResponse> updateApplicationSettings({
  1. required String applicationId,
  2. required WriteApplicationSettingsRequest writeApplicationSettingsRequest,
})

Updates the settings for an application.

May throw BadRequestException. May throw InternalServerErrorException. May throw PayloadTooLargeException. May throw ForbiddenException. May throw NotFoundException. May throw MethodNotAllowedException. 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<UpdateApplicationSettingsResponse> updateApplicationSettings({
  required String applicationId,
  required WriteApplicationSettingsRequest writeApplicationSettingsRequest,
}) async {
  ArgumentError.checkNotNull(applicationId, 'applicationId');
  ArgumentError.checkNotNull(
      writeApplicationSettingsRequest, 'writeApplicationSettingsRequest');
  final response = await _protocol.sendRaw(
    payload: writeApplicationSettingsRequest,
    method: 'PUT',
    requestUri: '/v1/apps/${Uri.encodeComponent(applicationId)}/settings',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return UpdateApplicationSettingsResponse(
    applicationSettingsResource: ApplicationSettingsResource.fromJson($json),
  );
}