Amazon Simple Storage Service (Amazon S3) is an object storage service offering industry-leading scalability, data availability, security, and performance.
Buckets: is a container for objects stored in Amazon S3. Every object is contained in a bucket.
Objects:Objects are the fundamental entities stored in Amazon S3. Objects consist of object data and metadata.
Keys:A key is the unique identifier for an object within a bucket. Every object in a bucket has exactly one key.
Regions:You can choose the geographical AWS Region where Amazon S3 will store the buckets that you create.
Expand Gradle Scripts, open build.gradle (Module: app).
Add these libraries into the dependencies block:
dependencies {
implementation 'com.amplifyframework:aws-storage-s3:1.17.4'
implementation 'com.amplifyframework:aws-auth-cognito:1.17.4'
}
To 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 to your onCreate()
method in your application class:
Amplify.addPlugin(new AWSCognitoAuthPlugin());
Amplify.addPlugin(new AWSS3StoragePlugin());
Additional resources