DeprecateFlowTemplateCommand

  • since: 2022-08-30

Deprecates the specified workflow. This action marks the workflow for deletion. Deprecated flows can't be deployed, but existing deployments will continue to run.

Example Syntax

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

import { IoTThingsGraphClient, DeprecateFlowTemplateCommand } from "@aws-sdk/client-iotthingsgraph"; // ES Modules import
// const { IoTThingsGraphClient, DeprecateFlowTemplateCommand } = require("@aws-sdk/client-iotthingsgraph"); // CommonJS import
const client = new IoTThingsGraphClient(config);
const input = { // DeprecateFlowTemplateRequest
  id: "STRING_VALUE", // required
};
const command = new DeprecateFlowTemplateCommand(input);
const response = await client.send(command);
// {};

DeprecateFlowTemplateCommand Input

Parameter
Type
Description
id
Required
string | undefined

The ID of the workflow to be deleted.

The ID should be in the following format.

urn:tdm:REGION/ACCOUNT ID/default:workflow:WORKFLOWNAME

DeprecateFlowTemplateCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
InternalFailureException
server

InvalidRequestException
client

ResourceNotFoundException
client

ThrottlingException
client

IoTThingsGraphServiceException
Base exception class for all service exceptions from IoTThingsGraph service.