summaryrefslogtreecommitdiff
path: root/vendor/aws/aws-sdk-php/src/Arn/S3/AccessPointArn.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/aws/aws-sdk-php/src/Arn/S3/AccessPointArn.php')
-rw-r--r--vendor/aws/aws-sdk-php/src/Arn/S3/AccessPointArn.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/aws/aws-sdk-php/src/Arn/S3/AccessPointArn.php b/vendor/aws/aws-sdk-php/src/Arn/S3/AccessPointArn.php
new file mode 100644
index 0000000..5841d90
--- /dev/null
+++ b/vendor/aws/aws-sdk-php/src/Arn/S3/AccessPointArn.php
@@ -0,0 +1,27 @@
+<?php
+namespace Aws\Arn\S3;
+
+use Aws\Arn\AccessPointArn as BaseAccessPointArn;
+use Aws\Arn\AccessPointArnInterface;
+use Aws\Arn\ArnInterface;
+use Aws\Arn\Exception\InvalidArnException;
+
+/**
+ * @internal
+ */
+class AccessPointArn extends BaseAccessPointArn implements AccessPointArnInterface
+{
+ /**
+ * Validation specific to AccessPointArn
+ *
+ * @param array $data
+ */
+ public static function validate(array $data)
+ {
+ parent::validate($data);
+ if ($data['service'] !== 's3') {
+ throw new InvalidArnException("The 3rd component of an S3 access"
+ . " point ARN represents the region and must be 's3'.");
+ }
+ }
+} \ No newline at end of file