CreateNodeFromTemplateJobCommand

Creates a camera stream node.

Example Syntax

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

import { PanoramaClient, CreateNodeFromTemplateJobCommand } from "@aws-sdk/client-panorama"; // ES Modules import
// const { PanoramaClient, CreateNodeFromTemplateJobCommand } = require("@aws-sdk/client-panorama"); // CommonJS import
const client = new PanoramaClient(config);
const input = { // CreateNodeFromTemplateJobRequest
  TemplateType: "STRING_VALUE", // required
  OutputPackageName: "STRING_VALUE", // required
  OutputPackageVersion: "STRING_VALUE", // required
  NodeName: "STRING_VALUE", // required
  NodeDescription: "STRING_VALUE",
  TemplateParameters: { // TemplateParametersMap // required
    "<keys>": "STRING_VALUE",
  },
  JobTags: [ // JobTagsList
    { // JobResourceTags
      ResourceType: "STRING_VALUE", // required
      Tags: { // TagMap // required
        "<keys>": "STRING_VALUE",
      },
    },
  ],
};
const command = new CreateNodeFromTemplateJobCommand(input);
const response = await client.send(command);
// { // CreateNodeFromTemplateJobResponse
//   JobId: "STRING_VALUE", // required
// };

CreateNodeFromTemplateJobCommand Input

Parameter
Type
Description
NodeName
Required
string | undefined

A name for the node.

OutputPackageName
Required
string | undefined

An output package name for the node.

OutputPackageVersion
Required
string | undefined

An output package version for the node.

TemplateParameters
Required
Record<string, string> | undefined

Template parameters for the node.

TemplateType
Required
TemplateType | undefined

The type of node.

JobTags
JobResourceTags[] | undefined

Tags for the job.

NodeDescription
string | undefined

A description for the node.

CreateNodeFromTemplateJobCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
JobId
Required
string | undefined

The job's ID.

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.