Skip to main content

ServerToCloudMigrationHelper

@appfire/server-to-cloud-migration-helperDocs


@appfire/server-to-cloud-migration-helper / ServerToCloudMigrationHelper

Class: ServerToCloudMigrationHelper

Helper class for managing server to cloud related tasks such as fetching data and URLs for migration.

Constructors

new ServerToCloudMigrationHelper()

new ServerToCloudMigrationHelper(): ServerToCloudMigrationHelper

Returns

ServerToCloudMigrationHelper

Methods

getDataFromSignedUrls()

static getDataFromSignedUrls(signedUrls): Promise\<any[]>

Fetches data from signed URLs.

Parameters

signedUrls: string[]

Array of signed URLs.

Returns

Promise\<any[]>

Array of migration data fetched from the signed URLs.

Defined in

helper/server-to-cloud-migration.helper.ts:81


getRetrievedExportList()

static getRetrievedExportList(event, transferId): Promise\<any>

Fetches the list of retrieved data for a specific transfer ID.

Parameters

event: AuthAPIGatewayEvent

AuthAPIGatewayEvent containing authorization details.

transferId: string

ID for the transfer of data.

Returns

Promise\<any>

Retrieved export list.

Defined in

helper/server-to-cloud-migration.helper.ts:23


getRetrieveSignedUrls()

static getRetrieveSignedUrls(event, s3Data): Promise\<string[]>

Retrieves signed URLs based on provided S3 resource data.

Parameters

event: AuthAPIGatewayEvent

AuthAPIGatewayEvent containing authorization details.

s3Data: object[]

Array of S3 resource objects containing label and key.

Returns

Promise\<string[]>

Array of signed URLs.

Defined in

helper/server-to-cloud-migration.helper.ts:50


sendAppMigrationStatus()

static sendAppMigrationStatus(event, transferId, status): Promise\<ProgressStatus>

Parameters

event: AuthAPIGatewayEvent

transferId: string

status: ProgressStatus

Returns

Promise\<ProgressStatus>

Defined in

helper/server-to-cloud-migration.helper.ts:96