first commit -> move some files from one-api
This commit is contained in:
27
vendor/aws_sdk/Aws/Arn/S3/AccessPointArn.php
vendored
Normal file
27
vendor/aws_sdk/Aws/Arn/S3/AccessPointArn.php
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
namespace Aws\Arn\S3;
|
||||
|
||||
use Aws\Arn\AccessPointArn as BaseAccessPointArn;
|
||||
use Aws\Arn\AccessPointArnInterface;
|
||||
use Aws\Arn\ArnInterface;
|
||||
use Aws\Arn\Exception\InvalidArnException;
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
class AccessPointArn extends BaseAccessPointArn implements AccessPointArnInterface
|
||||
{
|
||||
/**
|
||||
* Validation specific to AccessPointArn
|
||||
*
|
||||
* @param array $data
|
||||
*/
|
||||
public static function validate(array $data)
|
||||
{
|
||||
parent::validate($data);
|
||||
if ($data['service'] !== 's3') {
|
||||
throw new InvalidArnException("The 3rd component of an S3 access"
|
||||
. " point ARN represents the region and must be 's3'.");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user