Page updated Nov 12, 2023


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.

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