Amazon AWS SDK Guia de Instalação Página 78

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 151
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 77
// Wait until the table is created and active
$client->waitUntilTableExists(array(
'TableName' => 'errors'
));
A full list of the parameters available to the createTable() operation can be found in the API documentation. For
more information about using Local Secondary Indexes, please see the Local secondary indexes section of this
guide.
Updating a table
You can also update the table after it's been created using the updateTable() method. This allows you to do things
like increase or decrease your provisioned throughput capacity.
// Update the provisioned throughput capacity of the table
$client->updateTable(array(
'TableName' => 'errors',
'ProvisionedThroughput' => array(
'ReadCapacityUnits' => 15,
'WriteCapacityUnits' => 25
)
));
// Wait until the table is active again after updating
$client->waitUntilTableExists(array(
'TableName' => 'errors'
));
Describing a table
Now that the table is created, you can use the describeTable() method to get information about the table.
$result = $client->describeTable(array(
'TableName' => 'errors'
));
// The result of an operation can be used like an array
echo $result['Table']['ItemCount'] . "\n";
//> 0
// Use the getPath() method to retrieve deeply nested array key values
echo $result->getPath('Table/ProvisionedThroughput/ReadCapacityUnits') . "\n";
//> 15
The return value of the describeTable() method is a Guzzle\Service\Resource\Model object that can be
used like an array. For example, you could retrieve the number of items in a table or the amount of provisioned read
throughput.
Listing tables
You can retrieve a list of all of the tables associated with a specific endpoint using the listTables() method. Each
Amazon DynamoDB endpoint is entirely independent. For example, if you have two tables called "MyTable," one in
US-EAST-1 and one in US-WEST-2, they are completely independent and do not share any data. The ListTables
operation returns all of the table names associated with the account making the request, for the endpoint that
receives the request.
$result = $client->listTables();
// TableNames contains an array of table names
foreach ($result['TableNames'] as $tableName) {
Amazon DynamoDB
66
Vista de página 77
1 2 ... 73 74 75 76 77 78 79 80 81 82 83 ... 150 151

Comentários a estes Manuais

Sem comentários

Salton-inc MEPE123BT Handbücher

Bedienungsanleitungen und Benutzerhandbücher für Kaffeemaschinen Salton-inc MEPE123BT.
Wir stellen 1 PDF-Handbücher Salton-inc MEPE123BT zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Bedienungsanleitung






Weitere Produkte und Handbücher für Kaffeemaschinen Salton-inc

Modelle Dokumententyp
FC-1205 Bedienungsanleitung   Salton, Inc FC-1205 User Manual, 3 Seiten
JVPM1B Bedienungsanleitung   Salton, Inc JVPM1B User Manual, 16 Seiten
MEVA10DB Bedienungsanleitung    Salton, Inc MEVA10DB Manuel d'utilisation, 18 Seiten
MEFB4W Bedienungsanleitung    Salton, Inc MEFB4W Manuel d'utilisation, 22 Seiten
MESC10 Bedienungsanleitung   Salton, Inc MESC10 User Manual, 8 Seiten
MEFB1W Bedienungsanleitung   Salton, Inc MEFB1W User Manual, 8 Seiten
MEPE123W Bedienungsanleitung    Salton, Inc MEPE123W Manuel d'utilisation, 42 Seiten
ME5B Bedienungsanleitung   Salton, Inc ME5B User Manual, 8 Seiten
MEMB1W Bedienungsanleitung   Salton, Inc MEMB1W User Manual, 12 Seiten