Implementation
const amplifyconfig = ''' {
"UserAgent": "aws-amplify-cli/2.0",
"Version": "1.0",
"analytics": {
"plugins": {
"awsPinpointAnalyticsPlugin": {
"pinpointAnalytics": {
"appId": "289f927c630c481db967c7b4cca258e2",
"region": "ap-northeast-2"
},
"pinpointTargeting": {
"region": "ap-northeast-2"
}
}
}
},
"api": {
"plugins": {
"awsAPIPlugin": {
"FarmersHandsClientAPI": {
"endpointType": "REST",
"endpoint": "https://c9fcyetk28.execute-api.ap-northeast-2.amazonaws.com/dev",
"region": "ap-northeast-2",
"authorizationType": "AWS_IAM"
},
"FarmersHandsGroupAPI": {
"endpointType": "GraphQL",
"endpoint": "https://oktt2syjljaephxiieqpqspo3i.appsync-api.ap-northeast-2.amazonaws.com/graphql",
"region": "ap-northeast-2",
"authorizationType": "AMAZON_COGNITO_USER_POOLS"
}
}
}
},
"auth": {
"plugins": {
"awsCognitoAuthPlugin": {
"UserAgent": "aws-amplify-cli/0.1.0",
"Version": "0.1.0",
"IdentityManager": {
"Default": {}
},
"CredentialsProvider": {
"CognitoIdentity": {
"Default": {
"PoolId": "ap-northeast-2:f2cc4f2a-1278-4378-9eb1-78e40d8b50b2",
"Region": "ap-northeast-2"
}
}
},
"CognitoUserPool": {
"Default": {
"PoolId": "ap-northeast-2_5lqj3NzSD",
"AppClientId": "4cok0gfe8m865kiiq4kbamev4h",
"Region": "ap-northeast-2"
}
},
"Auth": {
"Default": {
"authenticationFlowType": "USER_SRP_AUTH",
"socialProviders": [],
"usernameAttributes": [],
"signupAttributes": [
"BIRTHDATE",
"NAME",
"PHONE_NUMBER"
],
"passwordProtectionSettings": {
"passwordPolicyMinLength": 8,
"passwordPolicyCharacters": []
},
"mfaConfiguration": "OFF",
"mfaTypes": [
"SMS"
],
"verificationMechanisms": [
"PHONE_NUMBER"
]
}
},
"PinpointAnalytics": {
"Default": {
"AppId": "289f927c630c481db967c7b4cca258e2",
"Region": "ap-northeast-2"
}
},
"PinpointTargeting": {
"Default": {
"Region": "ap-northeast-2"
}
},
"AppSync": {
"Default": {
"ApiUrl": "https://oktt2syjljaephxiieqpqspo3i.appsync-api.ap-northeast-2.amazonaws.com/graphql",
"Region": "ap-northeast-2",
"AuthMode": "AMAZON_COGNITO_USER_POOLS",
"ClientDatabasePrefix": "FarmersHandsGroupAPI_AMAZON_COGNITO_USER_POOLS"
}
},
"S3TransferUtility": {
"Default": {
"Bucket": "farmershandsuserapp95473534e7a347b6a75e340a233e163022-dev",
"Region": "ap-northeast-2"
}
}
}
}
},
"storage": {
"plugins": {
"awsS3StoragePlugin": {
"bucket": "farmershandsuserapp95473534e7a347b6a75e340a233e163022-dev",
"region": "ap-northeast-2",
"defaultAccessLevel": "guest"
}
}
}
}''';