CmdID / aws / aws iotthingsgraph
aws iotthingsgraph update-flow-template
Updates the specified workflow. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To update a flow
The following update-flow-template example updates a flow (workflow). The value of MyFlowDefinition is the GraphQL that models the flow.
aws iotthingsgraph update-flow-template --id "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow" --definition language=GRAPHQL,text="MyFlowDefinition"Identify--idThe ID of the workflow to be updated.--definitionThe DefinitionDocument that contains the updated workflow definition.Its output
{
"summary": {
"createdAt": 1559248067.545,
"id": "urn:tdm:us-west-2/123456789012/default:Workflow:MyFlow",
"revisionNumber": 2
}
}Options
--compatible-namespace-versionThe version of the user's namespace.--definitionThe DefinitionDocument that contains the updated workflow definition.--idThe ID of the workflow to be updated.