first commit -> move some files from one-api
This commit is contained in:
35
vendor/aws_v3/Aws/Arn/ObjectLambdaAccessPointArn.php
vendored
Normal file
35
vendor/aws_v3/Aws/Arn/ObjectLambdaAccessPointArn.php
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user