ObjectLambdaAccessPointArn.php 797 B

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