What is Amazon S3?
Gives any developer access to the same highly scalable, reliable, fast, inexpensive data storage infrastructure that Amazon uses to run its own global network of web sites.
Amazon S3 provides strong read-after-write consistency for PUTs and DELETEs of objects in your Amazon S3 bucket in all AWS Regions.
amplify add storage, and then answer the questions
amplify push
dependencies {
implementation 'com.amplifyframework:aws-storage-s3:1.17.1'
implementation 'com.amplifyframework:aws-auth-cognito:1.17.1'
}Initialize Amplify Storage - initialize the Amplify Auth and Storage categories you call Amplify.addPlugin()
method for each category. To complete initialization call Amplify.configure()
.
Add the following code:
Amplify.addPlugin(new AWSCognitoAuthPlugin());
Amplify.addPlugin(new AWSS3StoragePlugin());