Name:
interface
Value:
Extend your Amplify Gen 2 app with AWS Blocks — self-contained backend capabilities you compose into your existing backend.
Gen1 DocsLegacy

Page updated Sep 24, 2024

Use AWS SDK for S3 APIs

For advanced use cases where Amplify does not provide the functionality, you can retrieve the escape hatch to access the S3Client instance:

Learn more about consuming Kotlin clients from Java using either a blocking interface or an equivalent async interface based on futures here.

AWSS3StoragePlugin plugin = (AWSS3StoragePlugin) Amplify.Storage.getPlugin("awsS3StoragePlugin");
S3Client client = plugin.getEscapeHatch();
val plugin = Amplify.Storage.getPlugin("awsS3StoragePlugin") as AWSS3StoragePlugin
val client = plugin.escapeHatch