public function describe(DynamoDbClient $client, string $tableName): string
    {
        try {
            $result = $client->describeTable(['TableName' => $tableName]);
            return json_encode($result->toArray(), JSON_PRETTY_PRINT);
        } catch (\Throwable $e) {
            throw new SchedulerOperationFailed(
                sprintf(
                    '%s::Unable to describe table [%s] in region [%s].',
                    ClassUtils::getShortName($this),
                    $tableName,
                    $client->getRegion()
                ),
                Code::INTERNAL,
                $e
            );
        }
    }
public function describe(DynamoDbClient $client, string $tableName): string
    {
        try {
            $result = $client->describeTable(['TableName' => $tableName]);
            return json_encode($result->toArray(), JSON_PRETTY_PRINT);
        } catch (\Throwable $e) {
            throw new SchedulerOperationFailed(
                sprintf(
                    '%s::Unable to describe table [%s] in region [%s].',
                    ClassUtils::getShortName($this),
                    $tableName,
                    $client->getRegion()
                ),
                Code::INTERNAL,
                $e
            );
        }
    }
public function describe ( DynamoDbClient $ client , string $ tableName ) : string { try { $ result = $ client -> describeTable ( [ 'TableName' => $ tableName ] ) ; return json_encode ( $ result -> toArray ( ) , JSON_PRETTY_PRINT ) ; } catch ( \ Throwable $ e ) { throw new SchedulerOperationFailed ( sprintf ( '%s::Unable to describe table [%s] in region [%s].' , ClassUtils :: getShortName ( $ this ) , $ tableName , $ client -> getRegion ( ) ) , Code :: INTERNAL , $ e ) ; } }
Describes a DynamoDb table.

@param DynamoDbClient $client
@param string         $tableName

@return string

@throws SchedulerOperationFailed
Describes a DynamoDb table .