Class S3UriParser
Extracts a region, bucket, key, and and if a URI is in path-style
Methods Summary
-
parse ( string|UriInterface $uri )
Parses a URL or S3 StreamWrapper Uri (s3://) into an associative array of Amazon S3 data including:
Methods Details
array
parse (
string|Psr\Http\Message\UriInterface
$uri
)
Parses a URL or S3 StreamWrapper Uri (s3://) into an associative array of Amazon S3 data including:
- bucket: The Amazon S3 bucket (null if none)
- key: The Amazon S3 key (null if none)
- path_style: Set to true if using path style, or false if not
- region: Set to a string if a non-class endpoint is used or null.
Parameters
string|Psr\Http\Message\UriInterface |
$uri |
Returns
array |
Exceptions
InvalidArgumentException|Aws\Arn\Exception\InvalidArnException |