Name:
interface
Value:
Amplify has re-imagined the way frontend developers build fullstack applications. Develop and deploy without the hassle.

Page updated Aug 7, 2024

Connect to AWS resources

Amplify client libraries provide you with the flexibility to directly connect your application to AWS resources such as AWS AppSync, Amazon Cognito, Amazon S3, and more.

To get started, client libraries must be configured. This is typically done by using the amplify_outputs.json file generated by the Amplify backend tooling, however using the client libraries does not require backend resources to be created by Amplify.

For mobile platforms, the client library can be configured by creating an amplify_outputs.json file in your project's directory. To get started, create the file and specify your resource configuration:

amplify_outputs.json
{
"$schema": "https://raw.githubusercontent.com/aws-amplify/amplify-backend/main/packages/client-config/src/client-config-schema/schema_v1.json",
"version": "1",
"auth": {
"user_pool_id": "<your-cognito-user-pool-id>",
"aws_region": "<your-aws-region>",
"user_pool_client_id": "<your-cognito-user-pool-client-id>",
"identity_pool_id": "<your-cognito-identity-pool-id>",
"mfa_methods": [],
"standard_required_attributes": [
"email"
],
"username_attributes": [
"email"
],
"user_verification_types": [
"email"
],
"mfa_configuration": "NONE",
"password_policy": {
"min_length": 8,
"require_lowercase": true,
"require_numbers": true,
"require_symbols": true,
"require_uppercase": true
},
"unauthenticated_identities_enabled": true
}
}

For more information about how to use the Amplify client libraries with existing AWS resources, visit the guides:

Connect to Cognito

Connect to Cognito resources using Amplify Auth's client library