for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Guillermoandrae\DynamoDb\Operation;
use Aws\DynamoDb\Exception\DynamoDbException;
use Guillermoandrae\DynamoDb\Contract\AbstractTableOperation;
use Guillermoandrae\DynamoDb\Factory\ExceptionFactory;
/**
* DeleteTable operation.
*
* @author Guillermo A. Fisher <[email protected]>
* @link https://docs.aws.amazon.com/aws-sdk-php/v3/api/api-dynamodb-2012-08-10.html#deletetable
*/
final class DeleteTableOperation extends AbstractTableOperation
{
public function execute(): bool
try {
$this->client->deleteTable($this->toArray());
return true;
} catch (DynamoDbException $ex) {
throw ExceptionFactory::factory($ex);
}