Scalr\Service\Aws\S3\Handler\BucketHandler::getRequestPayment PHP Method

getRequestPayment() public method

This implementation of the GET operation uses the requestPayment subresource to return the request payment configuration of a bucket.
public getRequestPayment ( BucketData | string $bucketName ) : string
$bucketName Scalr\Service\Aws\S3\DataType\BucketData | string A bucket name.
return string Returns XML document
    public function getRequestPayment($bucketName)
    {
        if ($bucketName instanceof BucketData) {
            $bucketName = $bucketName->bucketName;
        }
        return $this->getS3()->getApiHandler()->getBucketRequestPayment($bucketName);
    }