Skip to main content

ServerToCloudMigrationHelper

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

Class: ServerToCloudMigrationHelper

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

Table of contents

Constructors

Methods

Constructors

constructor

new ServerToCloudMigrationHelper()

Methods

getDataFromSignedUrls

Static getDataFromSignedUrls(signedUrls): Promise<any[]>

Fetches data from signed URLs.

Parameters

NameTypeDescription
signedUrlsstring[]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


getRetrieveSignedUrls

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

Retrieves signed URLs based on provided S3 resource data.

Parameters

NameTypeDescription
eventAuthAPIGatewayEventAuthAPIGatewayEvent containing authorization details.
s3Data{ label: string ; s3Key: string }[]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


getRetrievedExportList

Static getRetrievedExportList(event, transferId): Promise<any>

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

Parameters

NameTypeDescription
eventAuthAPIGatewayEventAuthAPIGatewayEvent containing authorization details.
transferIdstringID for the transfer of data.

Returns

Promise<any>

Retrieved export list.

Defined in

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


sendAppMigrationStatus

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

Parameters

NameType
eventAuthAPIGatewayEvent
transferIdstring
statusProgressStatus

Returns

Promise<ProgressStatus>

Defined in

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