public function createTable($table, Table\KeySchema $keySchama, Table\ProvisionedThroughput $provisionedThroughput)
    {
        if (null !== $this->logger) {
            $this->log('Create table '.$table);
        }

        $parameters = array(
            'TableName' => $table,
            'KeySchema' => $keySchama->getForDynamoDB(),
            'ProvisionedThroughput' => $provisionedThroughput->getForDynamoDB()
        );

        if (null !== $this->logger) {
            $this->log('TableCreate request paramaters : '.print_r($parameters, true), Logger::DEBUG);
        }

        $response = $this->connector->createTable($parameters);

        if (null !== $this->logger) {
            $this->log('TableCreate request response : '.print_r($response, true), Logger::DEBUG);
        }
    }
public function createTable($table, Table\KeySchema $keySchama, Table\ProvisionedThroughput $provisionedThroughput)
    {
        if (null !== $this->logger) {
            $this->log('Create table '.$table);
        }

        $parameters = array(
            'TableName' => $table,
            'KeySchema' => $keySchama->getForDynamoDB(),
            'ProvisionedThroughput' => $provisionedThroughput->getForDynamoDB()
        );

        if (null !== $this->logger) {
            $this->log('TableCreate request paramaters : '.print_r($parameters, true), Logger::DEBUG);
        }

        $response = $this->connector->createTable($parameters);

        if (null !== $this->logger) {
            $this->log('TableCreate request response : '.print_r($response, true), Logger::DEBUG);
        }
    }
public function createTable ( $ table , Table \ KeySchema $ keySchama , Table \ ProvisionedThroughput $ provisionedThroughput ) { if ( null !== $ this -> logger ) { $ this -> log ( 'Create table ' . $ table ) ; } $ parameters = array ( 'TableName' => $ table , 'KeySchema' => $ keySchama -> getForDynamoDB ( ) , 'ProvisionedThroughput' => $ provisionedThroughput -> getForDynamoDB ( ) ) ; if ( null !== $ this -> logger ) { $ this -> log ( 'TableCreate request paramaters : ' . print_r ( $ parameters , true ) , Logger :: DEBUG ) ; } $ response = $ this -> connector -> createTable ( $ parameters ) ; if ( null !== $ this -> logger ) { $ this -> log ( 'TableCreate request response : ' . print_r ( $ response , true ) , Logger :: DEBUG ) ; } }
Create table via the create_table call
@param string $table The name of the table
@param Table\KeySchema $keySchama
@param Table\ProvisionedThroughput $provisionedThroughput
@return Table\TableDescription
Create table via the create_table call