Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
namespace Aws\Arn\S3;
3
 
4
use Aws\Arn\AccessPointArn as BaseAccessPointArn;
5
use Aws\Arn\AccessPointArnInterface;
6
use Aws\Arn\ArnInterface;
7
use Aws\Arn\Exception\InvalidArnException;
8
 
9
/**
10
 * @internal
11
 */
12
class AccessPointArn extends BaseAccessPointArn implements AccessPointArnInterface
13
{
14
    /**
15
     * Validation specific to AccessPointArn
16
     *
17
     * @param array $data
18
     */
19
    public static function validate(array $data)
20
    {
21
        parent::validate($data);
22
        if ($data['service'] !== 's3') {
23
            throw new InvalidArnException("The 3rd component of an S3 access"
24
                . " point ARN represents the region and must be 's3'.");
25
        }
26
    }
27
}