ListPackageImportJobsCommand

Returns a list of package import jobs.

Example Syntax

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

import { PanoramaClient, ListPackageImportJobsCommand } from "@aws-sdk/client-panorama"; // ES Modules import
// const { PanoramaClient, ListPackageImportJobsCommand } = require("@aws-sdk/client-panorama"); // CommonJS import
const client = new PanoramaClient(config);
const input = { // ListPackageImportJobsRequest
  NextToken: "STRING_VALUE",
  MaxResults: Number("int"),
};
const command = new ListPackageImportJobsCommand(input);
const response = await client.send(command);
// { // ListPackageImportJobsResponse
//   PackageImportJobs: [ // PackageImportJobList // required
//     { // PackageImportJob
//       JobId: "STRING_VALUE",
//       JobType: "STRING_VALUE",
//       Status: "STRING_VALUE",
//       StatusMessage: "STRING_VALUE",
//       CreatedTime: new Date("TIMESTAMP"),
//       LastUpdatedTime: new Date("TIMESTAMP"),
//     },
//   ],
//   NextToken: "STRING_VALUE",
// };

ListPackageImportJobsCommand Input

Parameter
Type
Description
MaxResults
number | undefined

The maximum number of package import jobs to return in one page of results.

NextToken
string | undefined

Specify the pagination token from a previous request to retrieve the next page of results.

ListPackageImportJobsCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
PackageImportJobs
Required
PackageImportJob[] | undefined

A list of package import jobs.

NextToken
string | undefined

A pagination token that's included if more results are available.

Throws

Name
Fault
Details
AccessDeniedException
client

The requestor does not have permission to access the target action or resource.

ConflictException
client

The target resource is in use.

InternalServerException
server

An internal error occurred.

ValidationException
client

The request contains an invalid parameter value.

PanoramaServiceException
Base exception class for all service exceptions from Panorama service.