Skip to main content

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: AuthOptions

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: Nullable<S3Options>

s3Config object contains the configuration parameters for S3, such as accessKeyId and secretAccessKey or null.

appSyncConfig: Nullable<AppSyncConfig>

Configuration object for app sync

Returns

Promise<void>