Jump to Content

New API Documentation - Developer Preview Available

We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.

Class CreateDataSetImportTaskCommandProtected

Starts a data set import task for a specific application.

Example

Use a bare-bones client and the command you need to make an API call.

import { M2Client, CreateDataSetImportTaskCommand } from "@aws-sdk/client-m2"; // ES Modules import
// const { M2Client, CreateDataSetImportTaskCommand } = require("@aws-sdk/client-m2"); // CommonJS import
const client = new M2Client(config);
const input = { // CreateDataSetImportTaskRequest
applicationId: "STRING_VALUE", // required
importConfig: { // DataSetImportConfig Union: only one key present
s3Location: "STRING_VALUE",
dataSets: [ // DataSetImportList
{ // DataSetImportItem
dataSet: { // DataSet
storageType: "STRING_VALUE",
datasetName: "STRING_VALUE", // required
datasetOrg: { // DatasetOrgAttributes Union: only one key present
vsam: { // VsamAttributes
format: "STRING_VALUE", // required
encoding: "STRING_VALUE",
compressed: true || false,
primaryKey: { // PrimaryKey
name: "STRING_VALUE",
offset: Number("int"), // required
length: Number("int"), // required
},
alternateKeys: [ // AlternateKeyList
{ // AlternateKey
name: "STRING_VALUE",
offset: Number("int"), // required
length: Number("int"), // required
allowDuplicates: true || false,
},
],
},
gdg: { // GdgAttributes
limit: Number("int"),
rollDisposition: "STRING_VALUE",
},
po: { // PoAttributes
format: "STRING_VALUE", // required
encoding: "STRING_VALUE",
memberFileExtensions: [ // String20List // required
"STRING_VALUE",
],
},
ps: { // PsAttributes
format: "STRING_VALUE", // required
encoding: "STRING_VALUE",
},
},
relativePath: "STRING_VALUE",
recordLength: { // RecordLength
min: Number("int"), // required
max: Number("int"), // required
},
},
externalLocation: { // ExternalLocation Union: only one key present
s3Location: "STRING_VALUE",
},
},
],
},
clientToken: "STRING_VALUE",
};
const command = new CreateDataSetImportTaskCommand(input);
const response = await client.send(command);
// { // CreateDataSetImportTaskResponse
// taskId: "STRING_VALUE", // required
// };

Param

CreateDataSetImportTaskCommandInput

Returns

CreateDataSetImportTaskCommandOutput

See

Throws

AccessDeniedException (client fault)

The account or role doesn't have the right permissions to make the request.

Throws

ConflictException (client fault)

The parameters provided in the request conflict with existing resources.

Throws

InternalServerException (server fault)

An unexpected error occurred during the processing of the request.

Throws

ResourceNotFoundException (client fault)

The specified resource was not found.

Throws

ServiceQuotaExceededException (client fault)

One or more quotas for Amazon Web Services Mainframe Modernization exceeds the limit.

Throws

ThrottlingException (client fault)

The number of requests made exceeds the limit.

Throws

ValidationException (client fault)

One or more parameters provided in the request is not valid.

Throws

M2ServiceException

Base exception class for all service exceptions from M2 service.

Hierarchy

Constructors

Properties

Methods