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 ListDataSetsCommandProtected

Lists the data sets imported for a specific application. In Amazon Web Services Mainframe Modernization, data sets are associated with applications deployed on runtime environments. This is known as importing data sets. Currently, Amazon Web Services Mainframe Modernization can import data sets into catalogs using CreateDataSetImportTask.

Example

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

import { M2Client, ListDataSetsCommand } from "@aws-sdk/client-m2"; // ES Modules import
// const { M2Client, ListDataSetsCommand } = require("@aws-sdk/client-m2"); // CommonJS import
const client = new M2Client(config);
const input = { // ListDataSetsRequest
applicationId: "STRING_VALUE", // required
nextToken: "STRING_VALUE",
maxResults: Number("int"),
prefix: "STRING_VALUE",
};
const command = new ListDataSetsCommand(input);
const response = await client.send(command);
// { // ListDataSetsResponse
// dataSets: [ // DataSetsSummaryList // required
// { // DataSetSummary
// dataSetName: "STRING_VALUE", // required
// dataSetOrg: "STRING_VALUE",
// format: "STRING_VALUE",
// creationTime: new Date("TIMESTAMP"),
// lastUpdatedTime: new Date("TIMESTAMP"),
// lastReferencedTime: new Date("TIMESTAMP"),
// },
// ],
// nextToken: "STRING_VALUE",
// };

Param

ListDataSetsCommandInput

Returns

ListDataSetsCommandOutput

See

Throws

AccessDeniedException (client fault)

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

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

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

middlewareStack: MiddlewareStack<ListDataSetsCommandInput, ListDataSetsCommandOutput>

Methods