PluginProbe ʕ •ᴥ•ʔ
Transferito: WP Migration / trunk
Transferito: WP Migration vtrunk
trunk 11.4.0 12.0.0 13.1.0 14.0.0 14.0.11 14.0.7 14.1.0 14.1.1 14.1.2 14.1.3 14.1.4
transferito / vendor / aws / aws-sdk-php / src / Arn / S3 / AccessPointArn.php
transferito / vendor / aws / aws-sdk-php / src / Arn / S3 Last commit date
AccessPointArn.php 11 months ago BucketArnInterface.php 11 months ago MultiRegionAccessPointArn.php 11 months ago OutpostsAccessPointArn.php 11 months ago OutpostsArnInterface.php 11 months ago OutpostsBucketArn.php 11 months ago
AccessPointArn.php
27 lines
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 }