-
-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
45 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
modules/jooby-awssdk-v2/src/main/java/io/jooby/awssdkv2/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* Aws module for aws-java-sdk 2.x. This module: | ||
* | ||
* <p>- Integrates AWS credentials within application properties. | ||
* | ||
* <p>- Register AWS services as application services (so they can be used by require calls or DI). | ||
* | ||
* <p>- Add graceful shutdown to any {@link software.amazon.awssdk.utils.SdkAutoCloseable} instance. | ||
* | ||
* <p>Usage: | ||
* | ||
* <pre>{@code | ||
* { | ||
* install( | ||
* new AwsModule() | ||
* .setup(credentials -> { | ||
* var s3 = S3Client.builder().region(Region.US_EAST_1).build(); | ||
* var s3transfer = S3TransferManager.builder().s3Client(s3).build() | ||
* return Stream.of(s3, s3transfer); | ||
* }) | ||
* ); | ||
* } | ||
* }</pre> | ||
* | ||
* <p>Previous example register AmazonS3Client and TransferManager services | ||
* | ||
* <p>NOTE: You need to add the service dependencies to your project. | ||
* | ||
* @author edgar | ||
* @since 3.3.1 | ||
*/ | ||
@ReturnValuesAreNonnullByDefault | ||
package io.jooby.awssdkv2; | ||
|
||
import edu.umd.cs.findbugs.annotations.ReturnValuesAreNonnullByDefault; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module io.jooby.awssdkv2 { | ||
exports io.jooby.awssdkv2; | ||
|
||
requires io.jooby; | ||
requires typesafe.config; | ||
requires com.github.spotbugs.annotations; | ||
requires software.amazon.awssdk.core; | ||
requires software.amazon.awssdk.auth; | ||
requires software.amazon.awssdk.utils; | ||
} |