Type Alias: InitializeAWS()
InitializeAWS: (
cognitoConfig
,s3Config
,appSyncConfig
) =>Promise
<void
>
The function is designed to initialize the Auth and S3 instances with the provided configurations.
Parameters
cognitoConfig
Parameters for authentication with the AWS Cognito service, such as userPoolId, identityPoolId, userPoolWebClientId and region. More options available here: https://docs.amplify.aws/lib/client-configuration/configuring-amplify-categories/q/platform/js/#top-level-configuration
s3Config
s3Config object contains the configuration parameters for S3, such as accessKeyId and secretAccessKey or null.
appSyncConfig
Configuration object for app sync
Returns
Promise
<void
>