mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2025-02-11 20:20:10 +01:00
36 lines
797 B
PHP
36 lines
797 B
PHP
<?php
|
|
namespace Aws\Arn;
|
|
|
|
/**
|
|
* This class represents an S3 Object bucket ARN, which is in the
|
|
* following format:
|
|
*
|
|
* @internal
|
|
*/
|
|
class ObjectLambdaAccessPointArn extends AccessPointArn
|
|
{
|
|
/**
|
|
* Parses a string into an associative array of components that represent
|
|
* a ObjectLambdaAccessPointArn
|
|
*
|
|
* @param $string
|
|
* @return array
|
|
*/
|
|
public static function parse($string)
|
|
{
|
|
$data = parent::parse($string);
|
|
return parent::parseResourceTypeAndId($data);
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param array $data
|
|
*/
|
|
protected static function validate(array $data)
|
|
{
|
|
parent::validate($data);
|
|
self::validateRegion($data, 'S3 Object Lambda ARN');
|
|
self::validateAccountId($data, 'S3 Object Lambda ARN');
|
|
}
|
|
}
|