веб-сервисы Amazon — Как обновить выделенную пропускную способность существующей таблицы DynamoDB с помощью AWS PHP SDK

Я пытаюсь обновить пропускную способность «чтения» таблицы и сохранить неизменной пропускную способность «записи». API требует, чтобы вы указали значения «read» и «write» в запросе, но когда один из них остается тем же, он выдает исключение:

Message: Error executing "UpdateTable" on "https://dynamodb.us-east-1.amazonaws.com"; AWS HTTP error: Client error:СООБЩЕНИЕ https://dynamodb.us-east-1.amazonaws.comresulted in aошибка 400, неверный запросresponse: {"__type":"com.amazon.coral.validate#ValidationException","message":"The provisioned throughput for the index regionCode (truncated...) ValidationException (client): The provisioned throughput for the index regionCode-index will not change. The requested value equals the current value. Current ReadCapacityUnits provisioned for index regionCode-index: 10. Requested ReadCapacityUnits: 10. Current WriteCapacityUnits provisioned for index regionCode-index: 2. Requested WriteCapacityUnits: 2. Refer to the Amazon DynamoDB Developer Guide for current limits and how to request higher limits. - {"__type":"com.amazon.coral.validate#ValidationException","message":"The provisioned throughput for the index regionCode-index will not change. The requested value equals the current value. Current ReadCapacityUnits provisioned for index regionCode-index: 10. Requested ReadCapacityUnits: 10. Current WriteCapacityUnits provisioned for index regionCode-index: 2. Requested WriteCapacityUnits: 2. Refer to the Amazon DynamoDB Developer Guide for current limits and how to request higher limits."}

Вот запрос:

$result = $client->updateTable([
'ProvisionedThroughput' => [
'ReadCapacityUnits' => (int) $readCapacity, // REQUIRED
'WriteCapacityUnits' => (int) $writeCapacity, // REQUIRED
],
'TableName' => $table, // REQUIRED

]);

Как обновить только 1 предоставленную пропускную способность & оставить другой такой же?

1

Решение

Похоже, что ваш стол подготовлен для 2 - WCU а также 10 - RCUи вы пытаетесь позвонить updateTable с теми же значениями, что и в данный момент.

1

Другие решения

Других решений пока нет …

По вопросам рекламы ammmcru@yandex.ru
Adblock
detector