- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
CreatePackageImportJobCommand
Imports a node package.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { PanoramaClient, CreatePackageImportJobCommand } from "@aws-sdk/client-panorama"; // ES Modules import
// const { PanoramaClient, CreatePackageImportJobCommand } = require("@aws-sdk/client-panorama"); // CommonJS import
const client = new PanoramaClient(config);
const input = { // CreatePackageImportJobRequest
JobType: "STRING_VALUE", // required
InputConfig: { // PackageImportJobInputConfig
PackageVersionInputConfig: { // PackageVersionInputConfig
S3Location: { // S3Location
Region: "STRING_VALUE",
BucketName: "STRING_VALUE", // required
ObjectKey: "STRING_VALUE", // required
},
},
},
OutputConfig: { // PackageImportJobOutputConfig
PackageVersionOutputConfig: { // PackageVersionOutputConfig
PackageName: "STRING_VALUE", // required
PackageVersion: "STRING_VALUE", // required
MarkLatest: true || false,
},
},
ClientToken: "STRING_VALUE", // required
JobTags: [ // JobTagsList
{ // JobResourceTags
ResourceType: "STRING_VALUE", // required
Tags: { // TagMap // required
"<keys>": "STRING_VALUE",
},
},
],
};
const command = new CreatePackageImportJobCommand(input);
const response = await client.send(command);
// { // CreatePackageImportJobResponse
// JobId: "STRING_VALUE", // required
// };
CreatePackageImportJobCommand Input
See CreatePackageImportJobCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
ClientToken Required | string | undefined | A client token for the package import job. |
InputConfig Required | PackageImportJobInputConfig | undefined | An input config for the package import job. |
JobType Required | PackageImportJobType | undefined | A job type for the package import job. |
OutputConfig Required | PackageImportJobOutputConfig | undefined | An output config for the package import job. |
JobTags | JobResourceTags[] | undefined | Tags for the package import job. |
CreatePackageImportJobCommand Output
See CreatePackageImportJobCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
JobId Required | string | undefined | The job's ID. |
Throws
Name | Fault | Details |
---|
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. |