Jump to Content

This API Documentation is now deprecated

We are excited to announce our new API Documentation.

Class CreateSystemTemplateCommandProtected

Deprecated

Creates a system. The system is validated against the entities in the latest version of the user's namespace unless another namespace version is specified in the request.

Example

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

import { IoTThingsGraphClient, CreateSystemTemplateCommand } from "@aws-sdk/client-iotthingsgraph"; // ES Modules import
// const { IoTThingsGraphClient, CreateSystemTemplateCommand } = require("@aws-sdk/client-iotthingsgraph"); // CommonJS import
const client = new IoTThingsGraphClient(config);
const input = { // CreateSystemTemplateRequest
definition: { // DefinitionDocument
language: "GRAPHQL", // required
text: "STRING_VALUE", // required
},
compatibleNamespaceVersion: Number("long"),
};
const command = new CreateSystemTemplateCommand(input);
const response = await client.send(command);
// { // CreateSystemTemplateResponse
// summary: { // SystemTemplateSummary
// id: "STRING_VALUE",
// arn: "STRING_VALUE",
// revisionNumber: Number("long"),
// createdAt: new Date("TIMESTAMP"),
// },
// };

Param

CreateSystemTemplateCommandInput

Returns

CreateSystemTemplateCommandOutput

See

Throws

InternalFailureException (server fault)

Throws

InvalidRequestException (client fault)

Throws

ResourceAlreadyExistsException (client fault)

Throws

ThrottlingException (client fault)

Throws

IoTThingsGraphServiceException

Base exception class for all service exceptions from IoTThingsGraph service.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

Methods