We are excited to announce our new API Documentation.
Protected
Starts a file import.
Use a bare-bones client and the command you need to make an API call.
import { MigrationHubStrategyClient, StartImportFileTaskCommand } from "@aws-sdk/client-migrationhubstrategy"; // ES Modules import// const { MigrationHubStrategyClient, StartImportFileTaskCommand } = require("@aws-sdk/client-migrationhubstrategy"); // CommonJS importconst client = new MigrationHubStrategyClient(config);const input = { // StartImportFileTaskRequest name: "STRING_VALUE", // required S3Bucket: "STRING_VALUE", // required s3key: "STRING_VALUE", // required dataSourceType: "STRING_VALUE", groupId: [ // GroupIds { // Group name: "STRING_VALUE", value: "STRING_VALUE", }, ], s3bucketForReportData: "STRING_VALUE",};const command = new StartImportFileTaskCommand(input);const response = await client.send(command);// { // StartImportFileTaskResponse// id: "STRING_VALUE",// };
StartImportFileTaskCommandInput
StartImportFileTaskCommandOutput
input
response
config
AccessDeniedException (client fault)
The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
InternalServerException (server fault)
The server experienced an internal error. Try again.
ServiceQuotaExceededException (client fault)
The AWS account has reached its quota of imports. Contact AWS Support to increase the quota for this account.
ThrottlingException (client fault)
The request was denied due to request throttling.
ValidationException (client fault)
The request body isn't valid.
MigrationHubStrategyServiceException
Base exception class for all service exceptions from MigrationHubStrategy service.
Readonly
Static
Starts a file import.
Example
Use a bare-bones client and the command you need to make an API call.
Param
StartImportFileTaskCommandInput
Returns
StartImportFileTaskCommandOutput
See
input
shape.response
shape.config
shape.Throws
AccessDeniedException (client fault)
The user does not have permission to perform the action. Check the AWS Identity and Access Management (IAM) policy associated with this user.
Throws
InternalServerException (server fault)
The server experienced an internal error. Try again.
Throws
ServiceQuotaExceededException (client fault)
The AWS account has reached its quota of imports. Contact AWS Support to increase the quota for this account.
Throws
ThrottlingException (client fault)
The request was denied due to request throttling.
Throws
ValidationException (client fault)
The request body isn't valid.
Throws
MigrationHubStrategyServiceException
Base exception class for all service exceptions from MigrationHubStrategy service.