updateDashboardPublishedVersion method

Future<UpdateDashboardPublishedVersionResponse> updateDashboardPublishedVersion({
  1. required String awsAccountId,
  2. required String dashboardId,
  3. required int versionNumber,
})

Updates the published version of a dashboard.

May throw ConflictException. May throw InternalFailureException. May throw InvalidParameterValueException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw UnsupportedUserEditionException.

Parameter awsAccountId : The ID of the Amazon Web Services account that contains the dashboard that you're updating.

Parameter dashboardId : The ID for the dashboard.

Parameter versionNumber : The version number of the dashboard.

Implementation

Future<UpdateDashboardPublishedVersionResponse>
    updateDashboardPublishedVersion({
  required String awsAccountId,
  required String dashboardId,
  required int versionNumber,
}) async {
  _s.validateNumRange(
    'versionNumber',
    versionNumber,
    1,
    1152921504606846976,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'PUT',
    requestUri:
        '/accounts/${Uri.encodeComponent(awsAccountId)}/dashboards/${Uri.encodeComponent(dashboardId)}/versions/${Uri.encodeComponent(versionNumber.toString())}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateDashboardPublishedVersionResponse.fromJson(response);
}