Package io.jooby.awssdkv2


@ReturnValuesAreNonnullByDefault package io.jooby.awssdkv2
Aws module for aws-java-sdk 2.x. This module:

- Integrates AWS credentials within application properties.

- Register AWS services as application services (so they can be used by require calls or DI).

- Add graceful shutdown to any SdkAutoCloseable instance.

Usage:


 {
     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);
             })
     );
 }
 

Previous example register AmazonS3Client and TransferManager services

NOTE: You need to add the service dependencies to your project.

Since:
3.3.1
Author:
edgar