Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class StartImportFileTaskCommandProtected

Starts a file import.

Example

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 import
const 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",
// };

Param

StartImportFileTaskCommandInput

Returns

StartImportFileTaskCommandOutput

See

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.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods