Файл: sngine-v2.8/Script/includes/libs/AWS/Aws/Arn/S3/AccessPointArn.php
Строк: 43
<?php
namespace AwsArnS3;
use AwsArnAccessPointArn as BaseAccessPointArn;
use AwsArnArnInterface;
use AwsArnExceptionInvalidArnException;
/**
* @internal
*/
class AccessPointArn extends BaseAccessPointArn implements ArnInterface
{
/**
* Validation specific to AccessPointArn
*
* @param array $data
*/
protected 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'.");
}
}
}