Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/autotraderuk/s3-client-extension
https://github.com/autotraderuk/s3-client-extension
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/autotraderuk/s3-client-extension
- Owner: autotraderuk
- License: apache-2.0
- Created: 2018-08-20T11:36:30.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-09-26T18:10:03.000Z (about 6 years ago)
- Last Synced: 2024-03-21T13:31:42.034Z (8 months ago)
- Language: Scala
- Size: 70.3 KB
- Stars: 0
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# s3-client-extension for Java/Scala
[![Build Status](https://secure.travis-ci.org/autotraderuk/s3-client-extension.png)](https://travis-ci.org/autotraderuk/s3-client-extension)*Disclaimer: This is an alpha release until we get continuous integration and pipelines in place. Use at your own risk!*
The **s3-client-extension** library enables Java and Scala developers to interact with the **Amazon Web Services** with ease.
It can be used to build scalable solutions with Amazon S3.
## Getting Started
To get started you can simply download a single zip file or use Maven.
s3-client-extension package is available for Scala 2.11.8 (on Java 8). To install the package using SBT,
add the below statement to your `build.sbt` file:
```
libraryDependencies += "uk.co.autotrader" %% "s3-client-extension" % "1.0.0-alpha.1"
```
On maven, update your `pom.xml` file by adding the following to your dependencies:```xml
uk.co.autotrader
s3-client-extension
1.0.0-alpha.1```
For gradle, update your `build.gradle` file by adding the following to your dependencies:
```
compile group: 'uk.co.autotrader', name: 's3-client-extension', version: '1.0.0-alpha.1'
```
## Example UsagesTo get a fully paginated parallel list of object keys for objects in the specified bucket with the prefixes.
```scala
val bucket = "bucket-name"
val prefixes = List("prefix1/prefix2")
val keys = S3Client.withDefaultAmazonS3.getKeys(bucket, prefixes)
```> **Note: the prefixes don't start with a slash.**
To get a string representation of the S3Path object.
```scala
val bucket = "bucket-name"
val objectPath = "test1/test2/test3.txt"
val s3Path = S3Path(bucket, objectPath).toString
```
> **Note: the object path does not start with a slash.**## Dev Guidelines
If you're adding or changing something, submit your changes via a pull request and they will be reviewed.
## Semantic Versioning
This library follows semantic versioning and is managed by the **gradle-semantic-build-versioning** plugin.
Please refer to [https://semver.org/](https://semver.org/) for more information about semantic versioning.## Getting Help
Please use GitHub issues for getting help. We monitor these to track for feature requests or bugs.
## License
Copyright (c) 2018 Auto Trader LimitedPublished under Apache Software License 2.0, see LICENSE