diff options
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Arn/ObjectLambdaAccessPointArn.php')
-rw-r--r-- | vendor/aws/aws-sdk-php/src/Arn/ObjectLambdaAccessPointArn.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vendor/aws/aws-sdk-php/src/Arn/ObjectLambdaAccessPointArn.php b/vendor/aws/aws-sdk-php/src/Arn/ObjectLambdaAccessPointArn.php new file mode 100644 index 0000000..48a0667 --- /dev/null +++ b/vendor/aws/aws-sdk-php/src/Arn/ObjectLambdaAccessPointArn.php @@ -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'); + } +} |