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
Name | Type | Description |
---|---|---|
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
getRetrieveSignedUrls
▸ Static
getRetrieveSignedUrls(event
, s3Data
): Promise
<string
[]>
Retrieves signed URLs based on provided S3 resource data.
Parameters
Name | Type | Description |
---|---|---|
event | AuthAPIGatewayEvent | AuthAPIGatewayEvent 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
Name | Type | Description |
---|---|---|
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
sendAppMigrationStatus
▸ Static
sendAppMigrationStatus(event
, transferId
, status
): Promise
<ProgressStatus
>
Parameters
Name | Type |
---|---|
event | AuthAPIGatewayEvent |
transferId | string |
status | ProgressStatus |
Returns
Promise
<ProgressStatus
>