| 1 |
<?php |
| 2 |
|
| 3 |
namespace Dudlewebs\WPMCS\s3\Aws\Arn; |
| 4 |
|
| 5 |
/** |
| 6 |
* This class represents an S3 Object bucket ARN, which is in the |
| 7 |
* following format: |
| 8 |
* |
| 9 |
* @internal |
| 10 |
*/ |
| 11 |
class ObjectLambdaAccessPointArn extends AccessPointArn |
| 12 |
{ |
| 13 |
/** |
| 14 |
* Parses a string into an associative array of components that represent |
| 15 |
* a ObjectLambdaAccessPointArn |
| 16 |
* |
| 17 |
* @param $string |
| 18 |
* @return array |
| 19 |
*/ |
| 20 |
public static function parse($string) |
| 21 |
{ |
| 22 |
$data = parent::parse($string); |
| 23 |
return parent::parseResourceTypeAndId($data); |
| 24 |
} |
| 25 |
/** |
| 26 |
* |
| 27 |
* @param array $data |
| 28 |
*/ |
| 29 |
protected static function validate(array $data) |
| 30 |
{ |
| 31 |
parent::validate($data); |
| 32 |
self::validateRegion($data, 'S3 Object Lambda ARN'); |
| 33 |
self::validateAccountId($data, 'S3 Object Lambda ARN'); |
| 34 |
} |
| 35 |
} |
| 36 |
|